How do I render my controls in multiple windows similar to the Magnifier, Camera controls?
The idea is to create my user controls and allow the related control to appear on the map when I click on button 1, and another control to appear on the map when I click on button 2, while keeping control 1 open.
I don't want to use a dock panel or Pro Window.
I'd like to get the same window layout as Magnifier and Camera, EmbeddableControl might be a way to go?
Solved! Go to Solution.
EmbeddableControl is the exact way to go.
Here are some samples/wikis to help:
EmbeddableControl is the exact way to go.
Here are some samples/wikis to help:
Hi,
Magnifier window is simple ProWindow opened as modalless with method Show. ProWindow opened with ShowDialog will be modal. Magnifier sample is here.
Hi @GKmieliauskas ,
I may be mistaken, but it seems to me that the native Magnifier tool is not a Pro Window, it seems to be an EmbeddableControl , Pro Window seems to me to behave differently from windows that are added as OverlayControl (case of Magnifier, Measure, Camera, etc.).
overlay control appears as an overlay on the map, unlike Pro Window.
Hi,
I have found ProWindow inside MapControlWindow.xaml:
<controls:ProWindow x:Class="MagnifierWindow.MapControlWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:controls="clr-namespace:ArcGIS.Desktop.Framework.Controls;assembly=ArcGIS.Desktop.Framework"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:mapControls="clr-namespace:ArcGIS.Desktop.Mapping.Controls;assembly=ArcGIS.Desktop.Mapping"
xmlns:extensions="clr-namespace:ArcGIS.Desktop.Extensions;assembly=ArcGIS.Desktop.Extensions"
mc:Ignorable="d"
Title="Magnifier" Height="300" Width="300"
ResizeMode="NoResize"
>