2023-08-25 23:46:11 -04:00
|
|
|
<UserControl xmlns="https://github.com/avaloniaui"
|
2023-08-24 22:28:37 -04:00
|
|
|
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"
|
2023-08-25 23:46:11 -04:00
|
|
|
xmlns:cc="using:SPTInstaller.CustomControls"
|
|
|
|
xmlns:convt="using:SPTInstaller.Converters"
|
2023-08-24 22:28:37 -04:00
|
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
|
|
x:Class="SPTInstaller.CustomControls.CacheInfo">
|
2023-08-25 23:46:11 -04:00
|
|
|
<UserControl.Resources>
|
2024-05-01 10:31:55 -04:00
|
|
|
<convt:StatusSpinnerIsProcessingConverter x:Key="IsInProcessingStateConverter" />
|
2023-08-25 23:46:11 -04:00
|
|
|
</UserControl.Resources>
|
2024-05-01 10:31:55 -04:00
|
|
|
|
2024-03-25 19:00:01 -04:00
|
|
|
<Grid RowDefinitions="Auto,Auto" ColumnDefinitions="*,AUTO,10,AUTO,*">
|
2024-05-01 10:31:55 -04:00
|
|
|
<cc:StatusSpinner Grid.Column="1"
|
|
|
|
State="{Binding State, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
2023-08-25 23:46:11 -04:00
|
|
|
IsVisible="{Binding State, RelativeSource={RelativeSource AncestorType=UserControl},
|
2024-05-01 10:31:55 -04:00
|
|
|
Converter={StaticResource IsInProcessingStateConverter}}" />
|
|
|
|
|
2024-03-25 19:00:01 -04:00
|
|
|
<Path Grid.Column="1" Data="{StaticResource Cache}" Fill="DodgerBlue" Margin="0 6 0 0"
|
2023-08-25 23:46:11 -04:00
|
|
|
IsVisible="{Binding State, RelativeSource={RelativeSource AncestorType=UserControl},
|
|
|
|
Converter={StaticResource IsInProcessingStateConverter},
|
2024-05-01 10:31:55 -04:00
|
|
|
ConverterParameter=invert}" />
|
|
|
|
|
2024-03-25 19:00:01 -04:00
|
|
|
<Label Grid.Column="3" Content="{Binding InfoText, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
2024-05-01 10:31:55 -04:00
|
|
|
Margin="0 2 0 0" />
|
|
|
|
<Button Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="3" Content="What's this?" Classes="link"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
Command="{Binding ShowCacheDialogCommand, RelativeSource={RelativeSource AncestorType=UserControl}}" />
|
2023-08-25 23:46:11 -04:00
|
|
|
</Grid>
|
2024-05-01 10:31:55 -04:00
|
|
|
</UserControl>
|