Using WinForms with ArcGIS Pro SDK? The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)What is ArcGIS Pro .NET SDK?Adding new map to current project using ArcGIS Pro .NET SDK?Programmatically fetching current Add-In version using ArcGIS Pro SDKHow to open shapefile dataset using ArcGIS Pro SDK .NET?Executing Intersect tool in arcgis pro .net sdkUnit testing ArcGIS Pro SDK?Async Databinding using ArcGIS Pro SDK and MVVM?Access Raster Functions via ArcGIS Pro SDKEdit operation failed - ArcGIS Pro SDK 2How to use Material Design in XAML Resources for an ArcGIS Pro SDK Add-In?
Mortgage adviser recommends a longer term than necessary combined with overpayments
Can the Right Ascension and Argument of Perigee of a spacecraft's orbit keep varying by themselves with time?
Do warforged have souls?
Why can't devices on different VLANs, but on the same subnet, communicate?
How did passengers keep warm on sail ships?
Word to describe a time interval
Homework question about an engine pulling a train
Drawing vertical/oblique lines in Metrical tree (tikz-qtree, tipa)
Can withdrawing asylum be illegal?
Do working physicists consider Newtonian mechanics to be "falsified"?
What happens to a Warlock's expended Spell Slots when they gain a Level?
Is there a way to generate uniformly distributed points on a sphere from a fixed amount of random real numbers per point?
How to make Illustrator type tool selection automatically adapt with text length
What do I do when my TA workload is more than expected?
What was the last x86 CPU that did not have the x87 floating-point unit built in?
Keeping a retro style to sci-fi spaceships?
Accepted by European university, rejected by all American ones I applied to? Possible reasons?
Is there a writing software that you can sort scenes like slides in PowerPoint?
Does Parliament hold absolute power in the UK?
Python - Fishing Simulator
Intergalactic human space ship encounters another ship, character gets shunted off beyond known universe, reality starts collapsing
One-dimensional Japanese puzzle
Why doesn't shell automatically fix "useless use of cat"?
Am I ethically obligated to go into work on an off day if the reason is sudden?
Using WinForms with ArcGIS Pro SDK?
The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)What is ArcGIS Pro .NET SDK?Adding new map to current project using ArcGIS Pro .NET SDK?Programmatically fetching current Add-In version using ArcGIS Pro SDKHow to open shapefile dataset using ArcGIS Pro SDK .NET?Executing Intersect tool in arcgis pro .net sdkUnit testing ArcGIS Pro SDK?Async Databinding using ArcGIS Pro SDK and MVVM?Access Raster Functions via ArcGIS Pro SDKEdit operation failed - ArcGIS Pro SDK 2How to use Material Design in XAML Resources for an ArcGIS Pro SDK Add-In?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I want to port a tool developed in ArcObjects for ArcMaps into ArcGIS Pro using the ArcGIS Pro SDK.
The tool's UI was created using WinForms but to recreate the UI in ArcGIS Pro is looks like I would need to use WPF.
I have seen generalized .NET posts online saying that is possible to embed WinForms inside WPF. What I want to know is if it is possible to do so in ArcGIS Pro.
I have not found yet any references or samples of anyone having done it before.
.net references wpf arcgis-pro-sdk winforms
add a comment |
I want to port a tool developed in ArcObjects for ArcMaps into ArcGIS Pro using the ArcGIS Pro SDK.
The tool's UI was created using WinForms but to recreate the UI in ArcGIS Pro is looks like I would need to use WPF.
I have seen generalized .NET posts online saying that is possible to embed WinForms inside WPF. What I want to know is if it is possible to do so in ArcGIS Pro.
I have not found yet any references or samples of anyone having done it before.
.net references wpf arcgis-pro-sdk winforms
2
Have you tried anything yet? I'd be surprised if it wasn't possible to just usevar f = new MyWinForm(); f.Show();
. Dockable windows may be harder though. It looks like you'd need WindowsFormsHost to do that: docs.microsoft.com/en-us/dotnet/api/…
– Berend
Nov 23 '18 at 7:52
add a comment |
I want to port a tool developed in ArcObjects for ArcMaps into ArcGIS Pro using the ArcGIS Pro SDK.
The tool's UI was created using WinForms but to recreate the UI in ArcGIS Pro is looks like I would need to use WPF.
I have seen generalized .NET posts online saying that is possible to embed WinForms inside WPF. What I want to know is if it is possible to do so in ArcGIS Pro.
I have not found yet any references or samples of anyone having done it before.
.net references wpf arcgis-pro-sdk winforms
I want to port a tool developed in ArcObjects for ArcMaps into ArcGIS Pro using the ArcGIS Pro SDK.
The tool's UI was created using WinForms but to recreate the UI in ArcGIS Pro is looks like I would need to use WPF.
I have seen generalized .NET posts online saying that is possible to embed WinForms inside WPF. What I want to know is if it is possible to do so in ArcGIS Pro.
I have not found yet any references or samples of anyone having done it before.
.net references wpf arcgis-pro-sdk winforms
.net references wpf arcgis-pro-sdk winforms
edited Nov 27 '18 at 4:11
PolyGeo♦
53.9k1782246
53.9k1782246
asked Nov 22 '18 at 21:43
arcobjectionarcobjection
606
606
2
Have you tried anything yet? I'd be surprised if it wasn't possible to just usevar f = new MyWinForm(); f.Show();
. Dockable windows may be harder though. It looks like you'd need WindowsFormsHost to do that: docs.microsoft.com/en-us/dotnet/api/…
– Berend
Nov 23 '18 at 7:52
add a comment |
2
Have you tried anything yet? I'd be surprised if it wasn't possible to just usevar f = new MyWinForm(); f.Show();
. Dockable windows may be harder though. It looks like you'd need WindowsFormsHost to do that: docs.microsoft.com/en-us/dotnet/api/…
– Berend
Nov 23 '18 at 7:52
2
2
Have you tried anything yet? I'd be surprised if it wasn't possible to just use
var f = new MyWinForm(); f.Show();
. Dockable windows may be harder though. It looks like you'd need WindowsFormsHost to do that: docs.microsoft.com/en-us/dotnet/api/…– Berend
Nov 23 '18 at 7:52
Have you tried anything yet? I'd be surprised if it wasn't possible to just use
var f = new MyWinForm(); f.Show();
. Dockable windows may be harder though. It looks like you'd need WindowsFormsHost to do that: docs.microsoft.com/en-us/dotnet/api/…– Berend
Nov 23 '18 at 7:52
add a comment |
3 Answers
3
active
oldest
votes
While I'd encourage you to port your code to use WPF, I don't see why you couldn't just host your WinForms control inside a WPF view. To ArcGIS Pro it's then still just a WPF control - it doesn't really care what's deeper down the UI Hierarchy (because there's no way it can care)
https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/walkthrough-hosting-a-windows-forms-control-in-wpf
add a comment |
It is technically possible and doable, but building the new ArcGIS Pro .NET Add-in on WPF is the way to go for ArcGIS Pro customizations.
If you are set on embedding WinForms in WPF, you'll use the WindowsFormsHost control.
Below are links to articles and walkthroughs that describe developing for ArcGIS Pro using WPF and MVVM, as well as what you need to do if you are planning to embed WinForms inside of WPF controls.
ProConcepts Migrating to ArcGIS Pro
https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Migrating-to-ArcGIS-Pro
ArcGIS Pro SDK for .NET: Intro and Pro Add-in Programming Pattern
http://proceedings.esri.com/library/userconf/devsummit-euro17/papers/devsummit-euro_38.pdf
ArcGIS Pro SDK for .NET: UI Design and MVVM
http://proceedings.esri.com/library/userconf/proc16/tech-workshops/tw_1853-255.pdf
WPF and Windows Forms Interoperation
https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/wpf-and-windows-forms-interoperation
Walkthrough: Hosting a Windows Forms Control in WPF by Using XAML
https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/walkthrough-hosting-a-windows-forms-control-in-wpf-by-using-xaml
Walkthrough: Hosting a Windows Forms Composite Control in WPF
https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/walkthrough-hosting-a-windows-forms-composite-control-in-wpf
WinForms and WPF: An Integrated Approach
https://www.slideshare.net/talentica/winforms-and-wpf-an-integrated-approach
How do I host a Windows Forms control in a WPF application ?
https://www.syncfusion.com/faq/929/how-do-i-host-a-windows-forms-control-in-a-wpf-application
add a comment |
I was looking at the same process for translation from ArcObjects to Pro SDK. I found the learning curve for WPF too steep for the time I had.
A few tests with ordinary Winforms revealed it worked ok. There was no need to embed the forms in a WPF view.
The translation was completed with WinForms and it works fine. When I have more time I'll update the forms to WPF.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "79"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f303668%2fusing-winforms-with-arcgis-pro-sdk%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
While I'd encourage you to port your code to use WPF, I don't see why you couldn't just host your WinForms control inside a WPF view. To ArcGIS Pro it's then still just a WPF control - it doesn't really care what's deeper down the UI Hierarchy (because there's no way it can care)
https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/walkthrough-hosting-a-windows-forms-control-in-wpf
add a comment |
While I'd encourage you to port your code to use WPF, I don't see why you couldn't just host your WinForms control inside a WPF view. To ArcGIS Pro it's then still just a WPF control - it doesn't really care what's deeper down the UI Hierarchy (because there's no way it can care)
https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/walkthrough-hosting-a-windows-forms-control-in-wpf
add a comment |
While I'd encourage you to port your code to use WPF, I don't see why you couldn't just host your WinForms control inside a WPF view. To ArcGIS Pro it's then still just a WPF control - it doesn't really care what's deeper down the UI Hierarchy (because there's no way it can care)
https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/walkthrough-hosting-a-windows-forms-control-in-wpf
While I'd encourage you to port your code to use WPF, I don't see why you couldn't just host your WinForms control inside a WPF view. To ArcGIS Pro it's then still just a WPF control - it doesn't really care what's deeper down the UI Hierarchy (because there's no way it can care)
https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/walkthrough-hosting-a-windows-forms-control-in-wpf
answered Nov 28 '18 at 20:35
dotMortendotMorten
37925
37925
add a comment |
add a comment |
It is technically possible and doable, but building the new ArcGIS Pro .NET Add-in on WPF is the way to go for ArcGIS Pro customizations.
If you are set on embedding WinForms in WPF, you'll use the WindowsFormsHost control.
Below are links to articles and walkthroughs that describe developing for ArcGIS Pro using WPF and MVVM, as well as what you need to do if you are planning to embed WinForms inside of WPF controls.
ProConcepts Migrating to ArcGIS Pro
https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Migrating-to-ArcGIS-Pro
ArcGIS Pro SDK for .NET: Intro and Pro Add-in Programming Pattern
http://proceedings.esri.com/library/userconf/devsummit-euro17/papers/devsummit-euro_38.pdf
ArcGIS Pro SDK for .NET: UI Design and MVVM
http://proceedings.esri.com/library/userconf/proc16/tech-workshops/tw_1853-255.pdf
WPF and Windows Forms Interoperation
https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/wpf-and-windows-forms-interoperation
Walkthrough: Hosting a Windows Forms Control in WPF by Using XAML
https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/walkthrough-hosting-a-windows-forms-control-in-wpf-by-using-xaml
Walkthrough: Hosting a Windows Forms Composite Control in WPF
https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/walkthrough-hosting-a-windows-forms-composite-control-in-wpf
WinForms and WPF: An Integrated Approach
https://www.slideshare.net/talentica/winforms-and-wpf-an-integrated-approach
How do I host a Windows Forms control in a WPF application ?
https://www.syncfusion.com/faq/929/how-do-i-host-a-windows-forms-control-in-a-wpf-application
add a comment |
It is technically possible and doable, but building the new ArcGIS Pro .NET Add-in on WPF is the way to go for ArcGIS Pro customizations.
If you are set on embedding WinForms in WPF, you'll use the WindowsFormsHost control.
Below are links to articles and walkthroughs that describe developing for ArcGIS Pro using WPF and MVVM, as well as what you need to do if you are planning to embed WinForms inside of WPF controls.
ProConcepts Migrating to ArcGIS Pro
https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Migrating-to-ArcGIS-Pro
ArcGIS Pro SDK for .NET: Intro and Pro Add-in Programming Pattern
http://proceedings.esri.com/library/userconf/devsummit-euro17/papers/devsummit-euro_38.pdf
ArcGIS Pro SDK for .NET: UI Design and MVVM
http://proceedings.esri.com/library/userconf/proc16/tech-workshops/tw_1853-255.pdf
WPF and Windows Forms Interoperation
https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/wpf-and-windows-forms-interoperation
Walkthrough: Hosting a Windows Forms Control in WPF by Using XAML
https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/walkthrough-hosting-a-windows-forms-control-in-wpf-by-using-xaml
Walkthrough: Hosting a Windows Forms Composite Control in WPF
https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/walkthrough-hosting-a-windows-forms-composite-control-in-wpf
WinForms and WPF: An Integrated Approach
https://www.slideshare.net/talentica/winforms-and-wpf-an-integrated-approach
How do I host a Windows Forms control in a WPF application ?
https://www.syncfusion.com/faq/929/how-do-i-host-a-windows-forms-control-in-a-wpf-application
add a comment |
It is technically possible and doable, but building the new ArcGIS Pro .NET Add-in on WPF is the way to go for ArcGIS Pro customizations.
If you are set on embedding WinForms in WPF, you'll use the WindowsFormsHost control.
Below are links to articles and walkthroughs that describe developing for ArcGIS Pro using WPF and MVVM, as well as what you need to do if you are planning to embed WinForms inside of WPF controls.
ProConcepts Migrating to ArcGIS Pro
https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Migrating-to-ArcGIS-Pro
ArcGIS Pro SDK for .NET: Intro and Pro Add-in Programming Pattern
http://proceedings.esri.com/library/userconf/devsummit-euro17/papers/devsummit-euro_38.pdf
ArcGIS Pro SDK for .NET: UI Design and MVVM
http://proceedings.esri.com/library/userconf/proc16/tech-workshops/tw_1853-255.pdf
WPF and Windows Forms Interoperation
https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/wpf-and-windows-forms-interoperation
Walkthrough: Hosting a Windows Forms Control in WPF by Using XAML
https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/walkthrough-hosting-a-windows-forms-control-in-wpf-by-using-xaml
Walkthrough: Hosting a Windows Forms Composite Control in WPF
https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/walkthrough-hosting-a-windows-forms-composite-control-in-wpf
WinForms and WPF: An Integrated Approach
https://www.slideshare.net/talentica/winforms-and-wpf-an-integrated-approach
How do I host a Windows Forms control in a WPF application ?
https://www.syncfusion.com/faq/929/how-do-i-host-a-windows-forms-control-in-a-wpf-application
It is technically possible and doable, but building the new ArcGIS Pro .NET Add-in on WPF is the way to go for ArcGIS Pro customizations.
If you are set on embedding WinForms in WPF, you'll use the WindowsFormsHost control.
Below are links to articles and walkthroughs that describe developing for ArcGIS Pro using WPF and MVVM, as well as what you need to do if you are planning to embed WinForms inside of WPF controls.
ProConcepts Migrating to ArcGIS Pro
https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Migrating-to-ArcGIS-Pro
ArcGIS Pro SDK for .NET: Intro and Pro Add-in Programming Pattern
http://proceedings.esri.com/library/userconf/devsummit-euro17/papers/devsummit-euro_38.pdf
ArcGIS Pro SDK for .NET: UI Design and MVVM
http://proceedings.esri.com/library/userconf/proc16/tech-workshops/tw_1853-255.pdf
WPF and Windows Forms Interoperation
https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/wpf-and-windows-forms-interoperation
Walkthrough: Hosting a Windows Forms Control in WPF by Using XAML
https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/walkthrough-hosting-a-windows-forms-control-in-wpf-by-using-xaml
Walkthrough: Hosting a Windows Forms Composite Control in WPF
https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/walkthrough-hosting-a-windows-forms-composite-control-in-wpf
WinForms and WPF: An Integrated Approach
https://www.slideshare.net/talentica/winforms-and-wpf-an-integrated-approach
How do I host a Windows Forms control in a WPF application ?
https://www.syncfusion.com/faq/929/how-do-i-host-a-windows-forms-control-in-a-wpf-application
answered Dec 6 '18 at 16:19
WillPollWillPoll
1
1
add a comment |
add a comment |
I was looking at the same process for translation from ArcObjects to Pro SDK. I found the learning curve for WPF too steep for the time I had.
A few tests with ordinary Winforms revealed it worked ok. There was no need to embed the forms in a WPF view.
The translation was completed with WinForms and it works fine. When I have more time I'll update the forms to WPF.
add a comment |
I was looking at the same process for translation from ArcObjects to Pro SDK. I found the learning curve for WPF too steep for the time I had.
A few tests with ordinary Winforms revealed it worked ok. There was no need to embed the forms in a WPF view.
The translation was completed with WinForms and it works fine. When I have more time I'll update the forms to WPF.
add a comment |
I was looking at the same process for translation from ArcObjects to Pro SDK. I found the learning curve for WPF too steep for the time I had.
A few tests with ordinary Winforms revealed it worked ok. There was no need to embed the forms in a WPF view.
The translation was completed with WinForms and it works fine. When I have more time I'll update the forms to WPF.
I was looking at the same process for translation from ArcObjects to Pro SDK. I found the learning curve for WPF too steep for the time I had.
A few tests with ordinary Winforms revealed it worked ok. There was no need to embed the forms in a WPF view.
The translation was completed with WinForms and it works fine. When I have more time I'll update the forms to WPF.
answered Mar 8 at 1:21
John MJohn M
161
161
add a comment |
add a comment |
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f303668%2fusing-winforms-with-arcgis-pro-sdk%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
Have you tried anything yet? I'd be surprised if it wasn't possible to just use
var f = new MyWinForm(); f.Show();
. Dockable windows may be harder though. It looks like you'd need WindowsFormsHost to do that: docs.microsoft.com/en-us/dotnet/api/…– Berend
Nov 23 '18 at 7:52