Files
ClassicAssist.Avalonia/ClassicAssist/UI/Views/Autoloot/PropertySelectionWindow.xaml
T
Beyhan Oğur d5f52cc3d3 first commit
2026-09-03 04:45:36 +03:00

53 lines
2.6 KiB
XML

<Window x:Class="ClassicAssist.UI.Views.Autoloot.PropertySelectionWindow"
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:local="clr-namespace:ClassicAssist.UI.Views.Autoloot"
xmlns:resources="clr-namespace:ClassicAssist.Shared.Resources;assembly=ClassicAssist.Shared"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:misc="clr-namespace:ClassicAssist.UI.Misc"
xmlns:autoloot="clr-namespace:ClassicAssist.Shared.UI.ViewModels.Autoloot;assembly=ClassicAssist.Shared"
mc:Ignorable="d"
Title="{x:Static resources:Strings.Choose_from_Item}" Height="250" Width="400"
Background="{DynamicResource ThemeWindowBackgroundBrush}" Topmost="True">
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="../../../Resources/Icons.xaml" />
<ResourceDictionary Source="../../../Resources/ResourceDictionary.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
<Window.DataContext>
<autoloot:PropertySelectionViewModel />
</Window.DataContext>
<Grid Margin="10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="100" />
</Grid.ColumnDefinitions>
<ListBox Grid.Column="0" ItemsSource="{Binding Properties}">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<CheckBox IsChecked="{Binding Selected}" />
<Label Content="{Binding Name}" />
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<StackPanel Grid.Column="1">
<Button Content="{x:Static resources:Strings.OK}" Margin="10,0,0,10" Command="{Binding OKCommand}">
<i:Interaction.Behaviors>
<misc:CloseOnClickBehaviour />
</i:Interaction.Behaviors>
</Button>
<Button Content="{x:Static resources:Strings.Cancel}" Margin="10,0,0,10">
<i:Interaction.Behaviors>
<misc:CloseOnClickBehaviour />
</i:Interaction.Behaviors>
</Button>
</StackPanel>
</Grid>
</Window>