XIVChat/XIVChat Desktop/UpdateWindow.xaml

48 lines
2.1 KiB
XML

<local:XivChatWindow x:Class="XIVChat_Desktop.UpdateWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:XIVChat_Desktop"
xmlns:ui="http://schemas.modernwpf.com/2019"
ui:WindowHelper.UseModernWindowStyle="True"
WindowStartupLocation="CenterOwner"
mc:Ignorable="d"
SizeToContent="Height"
Width="600"
Title="Update available"
d:DataContext="{d:DesignInstance local:UpdateWindow}">
<Grid Margin="8">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<TextBlock x:Name="UpdateInfo"
TextWrapping="Wrap" />
<TextBox Grid.Row="1"
x:Name="Changelog"
Margin="0,8,0,0"
TextWrapping="Wrap"
VerticalScrollBarVisibility="Visible"
Height="250"
IsReadOnly="True"
ui:ControlHelper.Header="Changelog"
Text="Loading..." />
<WrapPanel Grid.Row="2"
HorizontalAlignment="Right"
Orientation="Horizontal"
Margin="0,8,0,0">
<Button Margin="0,0,8,0"
IsEnabled="{Binding Downloading, Converter={StaticResource NotConverter}}"
Click="Close_Click">
Close
</Button>
<Button IsEnabled="{Binding Downloading, Converter={StaticResource NotConverter}}"
Click="Update_Click">
Update
</Button>
</WrapPanel>
</Grid>
</local:XivChatWindow>