mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
50 lines
2.4 KiB
XML
50 lines
2.4 KiB
XML
<UserControl
|
|
x:Class="Wabbajack.CpuView"
|
|
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"
|
|
xmlns:mahapps="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
d:DesignHeight="450"
|
|
d:DesignWidth="800"
|
|
mc:Ignorable="d">
|
|
<Grid>
|
|
<Rectangle Fill="{StaticResource HeatedBorderBrush}" Opacity="{Binding ProgressPercent, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}" />
|
|
<ListBox
|
|
HorizontalContentAlignment="Stretch"
|
|
BorderBrush="Transparent"
|
|
BorderThickness="1"
|
|
ItemsSource="{Binding StatusList}"
|
|
ScrollViewer.HorizontalScrollBarVisibility="Disabled">
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<Grid Background="{StaticResource WindowBackgroundBrush}">
|
|
<mahapps:MetroProgressBar
|
|
Background="Transparent"
|
|
BorderThickness="0"
|
|
Foreground="{StaticResource DarkPrimaryVariantBrush}"
|
|
Maximum="1"
|
|
Opacity="{Binding ProgressPercent, Mode=OneWay}"
|
|
Value="{Binding ProgressPercent, Mode=OneWay}" />
|
|
<Grid Height="1" VerticalAlignment="Bottom">
|
|
<mahapps:MetroProgressBar
|
|
Background="Transparent"
|
|
BorderThickness="0"
|
|
Foreground="{StaticResource DarkSecondaryBrush}"
|
|
Maximum="1"
|
|
Value="{Binding ProgressPercent, Mode=OneWay}" />
|
|
</Grid>
|
|
<TextBlock
|
|
Margin="0,0,0,2"
|
|
Text="{Binding Msg, Mode=OneWay}"
|
|
TextTrimming="CharacterEllipsis"
|
|
TextWrapping="NoWrap"
|
|
ToolTip="{Binding Msg, Mode=OneWay}" />
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
</Grid>
|
|
</UserControl>
|