OliviaAddInPro/View/PaneLimpieza.xaml

69 lines
3.6 KiB
XML

<UserControl x:Class="OliviaAddInPro.PaneLimpiezaView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:extensions="clr-namespace:ArcGIS.Desktop.Extensions;assembly=ArcGIS.Desktop.Extensions"
xmlns:local="clr-namespace:OliviaAddInPro"
xmlns:localMenu="clr-namespace:OliviaAddInPro"
xmlns:viewModel="clr-namespace:OliviaAddInPro"
xmlns:view="clr-namespace:OliviaAddInPro"
xmlns:frameworkControls="clr-namespace:ArcGIS.Desktop.Framework.Controls;assembly=ArcGIS.Desktop.Framework"
xmlns:ui="clr-namespace:OliviaAddInPro"
mc:Ignorable="d"
d:DesignHeight="500" d:DesignWidth="300"
d:DataContext="{Binding Path=ui.PaneLimpiezaViewModel}">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<extensions:DesignOnlyResourceDictionary Source="pack://application:,,,/ArcGIS.Desktop.Framework;component\Themes\Default.xaml"/>
</ResourceDictionary.MergedDictionaries>
<!--Datatemplate to view the items in the Sub Panel Indicator list box control-->
<DataTemplate x:Key="SubPanelListItem" DataType="{x:Type localMenu:OptionsMenuItem}">
<Image Stretch="Fill" Width="32" Height="32" Source="{Binding Path=ImageSource}" >
<Image.ToolTip>
<ToolTip Content="{Binding Path=OptionString}"/>
</Image.ToolTip>
</Image>
</DataTemplate>
<!--DataTemplate to view when you select an item in the sub panel list control-->
<DataTemplate DataType="{x:Type viewModel:PaneLimpiezaSub1ViewModel}">
<view:PaneLimpiezaSub1View/>
</DataTemplate>
<DataTemplate DataType="{x:Type viewModel:PaneLimpiezaSub2ViewModel}">
<view:PaneLimpiezaSub2View/>
</DataTemplate>
<DataTemplate DataType="{x:Type viewModel:PaneLimpiezaSub3ViewModel}">
<view:PaneLimpiezaSub3View/>
</DataTemplate>
<DataTemplate DataType="{x:Type viewModel:PaneLimpiezaSub4ViewModel}">
<view:PaneLimpiezaSub4View/>
</DataTemplate>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<!--TextBlock Text="Add your custom content here" VerticalAlignment="Center" HorizontalAlignment="Center"></-->
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="380"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="0">
<frameworkControls:TabIndicator HorizontalAlignment="Stretch"
Margin="0,0,6,0"
HorizontalContentAlignment="Left"
ItemTemplate="{StaticResource SubPanelListItem}"
ItemsSource="{Binding OptionsMenu}"
SelectedItem="{Binding SelectedOption}">
</frameworkControls:TabIndicator>
</StackPanel>
<StackPanel Grid.Row="1">
<ContentPresenter Content="{Binding CurrentSubPanelPage}"/>
</StackPanel>
<StackPanel Grid.Row="2">
<Label Content="botón ejecutar"></Label>
</StackPanel>
</Grid>
</UserControl>