Select to view content in your preferred language

How to open multiple windows like Navigation controls?

200
4
Jump to solution
06-21-2024 10:17 AM
jefferson_bzp
New Contributor II

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?

jefferson_bzp_0-1718990187516.png

 

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
UmaHarano
Esri Regular Contributor

@jefferson_bzp 

EmbeddableControl is the exact way to go.

Here are some samples/wikis to help: 

ProGuide: Embeddable Control

MapToolWithEmbeddableControl 

Dynamic Menu 

BasicMapTool 

View solution in original post

4 Replies
UmaHarano
Esri Regular Contributor

@jefferson_bzp 

EmbeddableControl is the exact way to go.

Here are some samples/wikis to help: 

ProGuide: Embeddable Control

MapToolWithEmbeddableControl 

Dynamic Menu 

BasicMapTool 

GKmieliauskas
Esri Regular Contributor

Hi,

Magnifier window is simple ProWindow opened as modalless with method Show. ProWindow opened with ShowDialog will be modal. Magnifier sample is here.

jefferson_bzp
New Contributor II

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.

0 Kudos
GKmieliauskas
Esri Regular Contributor

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"
    >

  

0 Kudos