Select to view content in your preferred language

ShowWindow Start Position

799
3
02-07-2012 10:33 AM
DavidZhong
Emerging Contributor
Hi,

The MapApplication.Current.ShowWindow always popup the dialog window in the center of the application. Is there a way to change the start position of the dialog window?

Any help would be really appreciated.

David
0 Kudos
3 Replies
KatherineDalton
Esri Regular Contributor
Hi David,

No, you cannot specify the ShowWindow Start Position.

You could consider:
1. Put the tools on one of the toolbars on the OOTB layouts.
2. Add your tools (control) onto the layout of the page so it�??s not in a window that pops up in the middle of the screen. You may wish to see our document, Best" rel="nofollow" target="_blank">http://help.arcgis.com/en/webapps/silverlightviewer/help/index.... practices: Designing and displaying dialog boxes for additional information. For an example of adding a custom control to a layout, see our "Control in Layout" sample in the Interactive" rel="nofollow" target="_blank">http://help.arcgis.com/en/webapps/silverlightviewer/samp... SDK.

Katy
Katy Dalton | Technical Consultant
THE SCIENCE OF WHERE™
0 Kudos
DavidZhong
Emerging Contributor
Thank you so much Katy! This is exactly what I need.
0 Kudos
DavidZhong
Emerging Contributor
Hello Katy,

When I customized the layout by placing a control, if the controls are form ESRI or Mircrosoft libraries, I can see the added control in the customized layout in the viewer. just like the "Control in Layout" sample in the Interactive SDK.

However, when I placed a usercontrol created by myself to the customized layout, I could't see anything in viewer(the viewer is blank) after I changed the layout to the customized layout.   I can see the control in the customized layout.xaml in design view.

What I am trying to do is to customize the layout by adding a usercontrol which can comunicate with the map.

Your help would be really appreciated

David
0 Kudos