CtrEditor/PopUps/AssignImagesWindow.xaml

74 lines
3.5 KiB
Plaintext
Raw Permalink Normal View History

<Window x:Class="CtrEditor.PopUps.AssignImagesWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
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:i="http://schemas.microsoft.com/xaml/behaviors"
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" xmlns:local="clr-namespace:CtrEditor.PopUps"
xmlns:viewModels="clr-namespace:CtrEditor.PopUps" xmlns:i1="http://schemas.microsoft.com/xaml/behaviors"
mc:Ignorable="d" Title="Assign Pages to MultiPage Object"
Height="450" Width="800">
<Window.DataContext>
<viewModels:AssignImagesViewModel />
</Window.DataContext>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<ToolBarTray Grid.Column="0" Grid.Row="0">
<ToolBar>
<Button Command="{Binding TBSelectAllCommand}" ToolTip="Select All">
<StackPanel>
<Image Source="/Icons/allselect.png" Width="16" Height="16" />
<TextBlock Text="Select All Objects" />
</StackPanel>
</Button>
<Button Command="{Binding TBUnSelectAllCommand}" ToolTip="Unselect All">
<StackPanel>
<Image Source="/Icons/unselect.png" Width="16" Height="16" />
<TextBlock Text="Unselect All Objects" />
</StackPanel>
</Button>
</ToolBar>
</ToolBarTray>
<ToolBarTray Grid.Column="1" Grid.Row="0">
<ToolBar>
<Button Command="{Binding TBSelectAllIamgesCommand}" ToolTip="Select All Images">
<StackPanel>
<Image Source="/Icons/allselect.png" Width="16" Height="16" />
<TextBlock Text="Select All Images" />
</StackPanel>
</Button>
<Button Command="{Binding TBUnSelectAllImagesCommand}" ToolTip="Unselect All">
<StackPanel>
<Image Source="/Icons/unselect.png" Width="16" Height="16" />
<TextBlock Text="Unselect all Images" />
</StackPanel>
</Button>
</ToolBar>
</ToolBarTray>
<!-- Lista de Objetos -->
2024-06-11 07:30:27 -03:00
<xctk:CheckListBox Grid.Row="1" Grid.Column="0" ItemsSource="{Binding ObjetosSimulables}" DisplayMemberPath="Nombre"
SelectedItemsOverride="{Binding SelectedObjetosSimulables, Mode=TwoWay}" />
<!-- Lista de Imágenes con CheckListBox -->
<xctk:CheckListBox Grid.Row="1" Grid.Column="1" ItemsSource="{Binding ListaImagenes}" DisplayMemberPath="."
SelectedItemsOverride="{Binding SelectedImagenes, Mode=TwoWay}" />
<!-- Botón para guardar cambios -->
<Button Grid.Row="2" Grid.ColumnSpan="2" Content="Save" Command="{Binding AssignImagesCommand}"
Margin="10,10,10,10" />
<TextBlock Grid.Row="3" Grid.ColumnSpan="2" Text="{Binding SelectedObjetosSimulables.Count}" />
</Grid>
</Window>