Use UseAcceleratedDisplay=true with ElementHost

3424
3
03-07-2013 11:28 PM
Labels (1)
JesúsVillajos1
New Contributor II
Hello,


I´ve working with MessageLayer, and I need set the UseAcceleratedDisplay property to true, I´ve introduced the Map
control into an ElementHost because my application works with Windows Forms. When loading the map can not see anything.

Is there any solution to work with MessageLayer without UseAcceleratedDisplay=true property?

Is there any solution to work with UseAcceleratedDisplay=true in windows forms?


Jesús Villajos
0 Kudos
3 Replies
MichaelBranscomb
Esri Frequent Contributor
Hi,

To use our API within the ElementHost you'll need to add the line below in order that the System.Windows.Application.Current is set (the API expects a WPF application). Just adding this line is enough.

...
new System.Windows.Application();
...


Cheers

Mike
JesúsVillajos1
New Contributor II
Hi,

To use our API within the ElementHost you'll need to add the line below in order that the System.Windows.Application.Current is set (the API expects a WPF application). Just adding this line is enough.

...
new System.Windows.Application();
...


Cheers

Mike



Great Mike!!!!!


Thanks a lot!

Regards.
0 Kudos
MichaelBranscomb
Esri Frequent Contributor

Please note: On July 1, 2016, ArcGIS Runtime SDK for WPF entered the retired phase of its product life cycle. There will be no further updates to the product or its documentation. We recommend you explore WPF solutions based on the ArcGIS Runtime SDK for .NET.  See this blog post for information on transitioning to the ArcGIS Runtime SDK for .NET. 

0 Kudos