121 lines
5.5 KiB
XML
121 lines
5.5 KiB
XML
<Window x:Class="ARAMUtility.MainWindow"
|
|
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:ARAMUtility"
|
|
xmlns:vm="clr-namespace:ARAMUtility.ViewModel"
|
|
mc:Ignorable="d"
|
|
Title="{Binding Title}"
|
|
Height="480"
|
|
Width="700"
|
|
Background="#0a1a2a"
|
|
>
|
|
<Window.DataContext>
|
|
<vm:MainViewModel />
|
|
</Window.DataContext>
|
|
<Window.Resources>
|
|
<Style TargetType="Button">
|
|
<Setter Property="Margin" Value="5" />
|
|
<Setter Property="Padding" Value="10,5,10,5" />
|
|
</Style>
|
|
|
|
<DataTemplate x:Key="ChampionItemTemplate" DataType="vm:ChampionViewModel">
|
|
<Border x:Name="OuterBorder"
|
|
BorderBrush="Black"
|
|
BorderThickness="3"
|
|
Margin="5"
|
|
Width="256"
|
|
Height="256">
|
|
<Grid ToolTip="{Binding Name}">
|
|
<Image Source="{Binding ImagePath}"
|
|
Stretch="UniformToFill" />
|
|
<TextBlock Text="{Binding AramBalanceText}"
|
|
Foreground="White"
|
|
Background="#99000000"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
Padding="15,10"
|
|
TextWrapping="Wrap"
|
|
TextTrimming="CharacterEllipsis"
|
|
FontSize="24"
|
|
FontWeight="Bold"
|
|
Height="256"
|
|
Width="256" />
|
|
</Grid>
|
|
</Border>
|
|
<DataTemplate.Triggers>
|
|
<DataTrigger Binding="{Binding IsNeededForChallenge}" Value="True">
|
|
<Setter TargetName="OuterBorder"
|
|
Property="BorderBrush"
|
|
Value="Green" />
|
|
</DataTrigger>
|
|
</DataTemplate.Triggers>
|
|
</DataTemplate>
|
|
</Window.Resources>
|
|
<DockPanel LastChildFill="True">
|
|
<Menu DockPanel.Dock="Top">
|
|
<MenuItem Header="Actions">
|
|
<MenuItem Header="Open Mayhem Lobby" Command="{Binding OpenLobbyCommand}" />
|
|
<MenuItem Header="Start Queueing" Command="{Binding StartQueueingCommand}" />
|
|
<Separator />
|
|
<MenuItem Header="Topmost" IsCheckable="True" IsChecked="{Binding Topmost, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:MainWindow}}}" />
|
|
<Separator />
|
|
<MenuItem Header="Reload ARAM Balance" Command="{Binding ReloadARAMBalanceCommand}" />
|
|
<Separator />
|
|
<MenuItem Header="Quit" Command="{Binding QuitCommand}" />
|
|
</MenuItem>
|
|
<MenuItem Header="{Binding ConnectionStatus}" Command="{Binding ConnectCommand}" />
|
|
<MenuItem Header="Update ARAM">
|
|
<StackPanel Orientation="Vertical">
|
|
<ComboBox ItemsSource="{Binding .}"
|
|
SelectedIndex="0"
|
|
SelectedItem="{Binding .}"
|
|
/>
|
|
<ItemsControl ItemsSource="{Binding .}">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Label Content="{Binding .}" />
|
|
<TextBox Text="{Binding .}" />
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
<Button Content="Save" />
|
|
</StackPanel>
|
|
</MenuItem>
|
|
</Menu>
|
|
<Viewbox Stretch="Uniform" StretchDirection="DownOnly">
|
|
<Grid Margin="10">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*" />
|
|
<RowDefinition Height="2*" />
|
|
</Grid.RowDefinitions>
|
|
<ItemsControl x:Name="TeamChampionGrid"
|
|
Grid.Row="0"
|
|
Margin="5"
|
|
ItemsSource="{Binding TeamChampions}"
|
|
ItemTemplate="{StaticResource ChampionItemTemplate}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<UniformGrid Columns="5" Rows="1"/>
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
</ItemsControl>
|
|
<ItemsControl x:Name="BenchChampionGrid"
|
|
Grid.Row="1"
|
|
Margin="5"
|
|
ItemsSource="{Binding BenchChampions}"
|
|
ItemTemplate="{StaticResource ChampionItemTemplate}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<UniformGrid Columns="5" Rows="2"/>
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
</ItemsControl>
|
|
</Grid>
|
|
</Viewbox>
|
|
</DockPanel>
|
|
</Window>
|