first commit
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
<Window x:Class="ClassicAssist.UI.Views.Autoloot.ClilocSelectionWindow"
|
||||
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_by_Cliloc}" Height="350" Width="600"
|
||||
Background="{DynamicResource ThemeWindowBackgroundBrush}" Topmost="True">
|
||||
<Window.DataContext>
|
||||
<autoloot:ClilocSelectionViewModel />
|
||||
</Window.DataContext>
|
||||
<Window.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="../../../Resources/Icons.xaml" />
|
||||
<ResourceDictionary Source="../../../Resources/ResourceDictionary.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Window.Resources>
|
||||
<Grid Margin="10">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="150" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid Grid.Column="0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<TextBox Grid.Row="0" Text="{Binding FilterText, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<ListView Grid.Row="1" Margin="0,10,0,0" ItemsSource="{Binding FilteredClilocs}"
|
||||
SelectedItem="{Binding SelectedCliloc}">
|
||||
<ListView.View>
|
||||
<GridView>
|
||||
<GridViewColumn Header="{x:Static resources:Strings.Property}" Width="300"
|
||||
DisplayMemberBinding="{Binding Value}" />
|
||||
<GridViewColumn Header="{x:Static resources:Strings.Cliloc}" Width="80"
|
||||
DisplayMemberBinding="{Binding Key}" />
|
||||
</GridView>
|
||||
</ListView.View>
|
||||
</ListView>
|
||||
</Grid>
|
||||
<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>
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace ClassicAssist.UI.Views.Autoloot
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for ClilocSelectedWindow.xaml
|
||||
/// </summary>
|
||||
public partial class ClilocSelectionWindow : Window
|
||||
{
|
||||
public ClilocSelectionWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
<Window x:Class="ClassicAssist.UI.Views.Autoloot.CustomPropertiesWindow"
|
||||
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:misc="clr-namespace:ClassicAssist.UI.Misc"
|
||||
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
|
||||
xmlns:autoloot="clr-namespace:ClassicAssist.Shared.UI.ViewModels.Autoloot;assembly=ClassicAssist.Shared"
|
||||
mc:Ignorable="d"
|
||||
Title="{x:Static resources:Strings.Define_Custom_Properties}" Height="350" Width="650"
|
||||
Background="{DynamicResource ThemeWindowBackgroundBrush}" Topmost="True">
|
||||
<Window.DataContext>
|
||||
<autoloot:CustomPropertiesViewModel />
|
||||
</Window.DataContext>
|
||||
<Window.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="../../../Resources/Icons.xaml" />
|
||||
<ResourceDictionary Source="../../../Resources/ResourceDictionary.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Window.Resources>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="150" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<ListView x:Name="listView1" Grid.Column="0" Margin="10"
|
||||
ItemsSource="{Binding Properties}" SelectedItem="{Binding SelectedProperty}">
|
||||
<ListView.View>
|
||||
<GridView>
|
||||
<GridViewColumn Header="{x:Static resources:Strings.Property}" Width="200"
|
||||
DisplayMemberBinding="{Binding Name}" />
|
||||
<GridViewColumn Header="{x:Static resources:Strings.Cliloc}" Width="100"
|
||||
DisplayMemberBinding="{Binding Cliloc}" />
|
||||
<GridViewColumn Header="{x:Static resources:Strings.Arguments}" Width="75" x:Name="ValueColumn">
|
||||
<GridViewColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<CheckBox IsChecked="{Binding Arguments}" />
|
||||
</DataTemplate>
|
||||
</GridViewColumn.CellTemplate>
|
||||
</GridViewColumn>
|
||||
</GridView>
|
||||
</ListView.View>
|
||||
</ListView>
|
||||
<Grid Grid.Column="1">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.Resources>
|
||||
<Style TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
|
||||
<Setter Property="Margin" Value="0,10, 10, 0" />
|
||||
</Style>
|
||||
</Grid.Resources>
|
||||
<StackPanel Grid.Row="0">
|
||||
<Button Content="{x:Static resources:Strings.Choose_from_Item}"
|
||||
Command="{Binding ChooseFromItemCommand}" />
|
||||
<Button Content="{x:Static resources:Strings.Choose_by_Cliloc}"
|
||||
Command="{Binding ChooseFromClilocCommand}" />
|
||||
<Button Content="{x:Static resources:Strings.Remove}" Command="{Binding RemoveCommand}" />
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Row="1" Margin="0,0,0,10">
|
||||
<Button Content="{x:Static resources:Strings.Save}" Command="{Binding SaveCommand}">
|
||||
<i:Interaction.Behaviors>
|
||||
<misc:CloseOnClickBehaviour />
|
||||
</i:Interaction.Behaviors>
|
||||
</Button>
|
||||
<Button Content="{x:Static resources:Strings.Cancel}">
|
||||
<i:Interaction.Behaviors>
|
||||
<misc:CloseOnClickBehaviour />
|
||||
</i:Interaction.Behaviors>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Window>
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace ClassicAssist.UI.Views.Autoloot
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for CustomPropertiesWindow.xaml
|
||||
/// </summary>
|
||||
public partial class CustomPropertiesWindow : Window
|
||||
{
|
||||
public CustomPropertiesWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
<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>
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace ClassicAssist.UI.Views.Autoloot
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for PropertySelectionWindow.xaml
|
||||
/// </summary>
|
||||
public partial class PropertySelectionWindow : Window
|
||||
{
|
||||
public PropertySelectionWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user