Files
LeagueOfLegendsRandomLaneAn…/LOLRLCG/Views/MainWindow.axaml
T
2025-04-17 14:05:16 +02:00

48 lines
2.3 KiB
XML

<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="using:LOLRLCG.ViewModels"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:system="clr-namespace:System;assembly=System.Runtime"
mc:Ignorable="d" d:DesignWidth="{StaticResource Width}" d:DesignHeight="{StaticResource Height}"
x:Class="LOLRLCG.Views.MainWindow"
x:DataType="vm:MainWindowViewModel"
Icon="/Assets/avalonia-logo.ico"
Title="LOLRLCG"
Width="{StaticResource Width}"
Height="{StaticResource Height}"
>
<Window.Resources>
<system:Double x:Key="Width">1280</system:Double>
<system:Double x:Key="Height">720</system:Double>
</Window.Resources>
<Design.DataContext>
<!-- This only sets the DataContext for the previewer in an IDE,
to set the actual DataContext for runtime, set the DataContext property in code (look at App.axaml.cs) -->
<vm:MainWindowViewModel/>
</Design.DataContext>
<Panel>
<Image Source="avares://LOLRLCG/Resources/background.png" Width="{StaticResource Width}" Height="{StaticResource Height}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<!-- Champion Visualisation -->
<StackPanel Grid.Column="0">
<TextBlock Text="{Binding SelectedChampion.Name}"></TextBlock>
<Image Source="{Binding SelectedChampion.Image.Full}"></Image>
<TextBlock Text="{Binding Lane}"></TextBlock>
</StackPanel>
<!-- Possibility Settings -->
<StackPanel Grid.Column="1">
<TextBlock Text="League Client Version: "></TextBlock>
<TextBlock Text="{Binding LeagueClientVersion}"></TextBlock>
<Button Content="Get Random Champion" Command="{Binding getRandomChampionLaneComboCommand}"/>
</StackPanel>
</Grid>
</Panel>
</Window>