2019-11-07 05:33:08 +00:00
|
|
|
<UserControl
|
2019-12-08 22:30:49 +00:00
|
|
|
x:Class="Wabbajack.CpuView"
|
2019-11-07 05:33:08 +00:00
|
|
|
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:local="clr-namespace:Wabbajack"
|
2019-11-28 17:30:19 +00:00
|
|
|
xmlns:mahapps="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
|
2019-11-29 22:09:22 +00:00
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2019-12-08 22:30:49 +00:00
|
|
|
d:DesignHeight="450"
|
2019-11-07 05:33:08 +00:00
|
|
|
d:DesignWidth="800"
|
|
|
|
mc:Ignorable="d">
|
|
|
|
<Grid>
|
2019-12-08 22:30:49 +00:00
|
|
|
<Rectangle Fill="{StaticResource HeatedBorderBrush}" Opacity="{Binding ProgressPercent, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}" />
|
2019-11-07 05:33:08 +00:00
|
|
|
<ListBox
|
2019-12-22 07:55:52 +00:00
|
|
|
HorizontalContentAlignment="Stretch"
|
2019-11-29 22:09:22 +00:00
|
|
|
BorderBrush="Transparent"
|
|
|
|
BorderThickness="1"
|
2019-12-22 07:55:52 +00:00
|
|
|
ItemsSource="{Binding StatusList}"
|
|
|
|
ScrollViewer.HorizontalScrollBarVisibility="Disabled">
|
2019-11-07 05:33:08 +00:00
|
|
|
<ListBox.ItemTemplate>
|
|
|
|
<DataTemplate>
|
2019-12-22 07:55:52 +00:00
|
|
|
<Grid Background="{StaticResource WindowBackgroundBrush}">
|
2019-11-28 17:30:19 +00:00
|
|
|
<mahapps:MetroProgressBar
|
|
|
|
Background="Transparent"
|
|
|
|
BorderThickness="0"
|
2019-12-22 07:55:52 +00:00
|
|
|
Foreground="{StaticResource DarkPrimaryVariantBrush}"
|
2019-11-28 17:30:19 +00:00
|
|
|
Maximum="1"
|
2019-12-15 19:20:27 +00:00
|
|
|
Opacity="{Binding Status.ProgressPercent, Mode=OneWay}"
|
|
|
|
Value="{Binding Status.ProgressPercent, Mode=OneWay}" />
|
2019-12-22 07:55:52 +00:00
|
|
|
<Grid Height="1" VerticalAlignment="Bottom">
|
|
|
|
<mahapps:MetroProgressBar
|
|
|
|
Background="Transparent"
|
|
|
|
BorderThickness="0"
|
|
|
|
Foreground="{StaticResource DarkSecondaryBrush}"
|
|
|
|
Maximum="1"
|
|
|
|
Value="{Binding Status.ProgressPercent, Mode=OneWay}" />
|
|
|
|
</Grid>
|
|
|
|
<TextBlock
|
|
|
|
Margin="0,0,0,2"
|
|
|
|
Text="{Binding Status.Msg}"
|
|
|
|
TextTrimming="CharacterEllipsis"
|
|
|
|
TextWrapping="NoWrap"
|
|
|
|
ToolTip="{Binding Status.Msg}" />
|
2019-11-07 05:33:08 +00:00
|
|
|
</Grid>
|
|
|
|
</DataTemplate>
|
|
|
|
</ListBox.ItemTemplate>
|
|
|
|
</ListBox>
|
|
|
|
</Grid>
|
|
|
|
</UserControl>
|