2020-01-11 06:43:40 +00:00
|
|
|
<local:UserControlRx
|
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"
|
2020-01-11 06:43:40 +00:00
|
|
|
x:TypeArguments="local:ICpuStatusVM"
|
2019-11-07 05:33:08 +00:00
|
|
|
mc:Ignorable="d">
|
2020-01-11 06:43:40 +00:00
|
|
|
<Grid x:Name="ControlGrid" Background="Transparent">
|
2019-12-08 22:30:49 +00:00
|
|
|
<Rectangle Fill="{StaticResource HeatedBorderBrush}" Opacity="{Binding ProgressPercent, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}" />
|
2020-01-11 06:43:40 +00:00
|
|
|
<Border BorderBrush="Transparent" BorderThickness="1" />
|
|
|
|
<Grid Margin="1" Background="{StaticResource DarkBackgroundBrush}">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<ListBox
|
|
|
|
x:Name="CpuListControl"
|
|
|
|
Grid.Row="0"
|
|
|
|
HorizontalContentAlignment="Stretch"
|
|
|
|
ScrollViewer.HorizontalScrollBarVisibility="Disabled">
|
|
|
|
<ListBox.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<Grid Background="{StaticResource WindowBackgroundBrush}">
|
2019-12-22 07:55:52 +00:00
|
|
|
<mahapps:MetroProgressBar
|
|
|
|
Background="Transparent"
|
|
|
|
BorderThickness="0"
|
2020-01-11 06:43:40 +00:00
|
|
|
Foreground="{StaticResource DarkPrimaryVariantBrush}"
|
2019-12-22 07:55:52 +00:00
|
|
|
Maximum="1"
|
2020-01-11 06:43:40 +00:00
|
|
|
Opacity="{Binding ProgressPercent, Mode=OneWay}"
|
2020-01-10 04:27:59 +00:00
|
|
|
Value="{Binding ProgressPercent, Mode=OneWay}" />
|
2020-01-11 06:43:40 +00:00
|
|
|
<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}" />
|
2019-12-22 07:55:52 +00:00
|
|
|
</Grid>
|
2020-01-11 06:43:40 +00:00
|
|
|
</DataTemplate>
|
|
|
|
</ListBox.ItemTemplate>
|
|
|
|
</ListBox>
|
|
|
|
<Border
|
|
|
|
x:Name="SettingsBar"
|
|
|
|
Grid.Row="1"
|
|
|
|
Background="{StaticResource BackgroundBrush}"
|
|
|
|
BorderBrush="{StaticResource ButtonNormalBorder}"
|
|
|
|
BorderThickness="0,1,0,0">
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="*" />
|
2020-01-11 20:20:14 +00:00
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
2020-01-11 06:43:40 +00:00
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock
|
|
|
|
Margin="5,0"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Text="Percent Usage" />
|
|
|
|
<Slider
|
|
|
|
x:Name="TargetPercentageSlider"
|
|
|
|
Grid.Column="1"
|
2020-01-11 20:20:14 +00:00
|
|
|
Margin="2,0,4,0"
|
2020-01-11 06:43:40 +00:00
|
|
|
Maximum="1"
|
|
|
|
Minimum="0.1"
|
|
|
|
Orientation="Horizontal" />
|
2020-01-11 20:20:14 +00:00
|
|
|
<TextBlock
|
|
|
|
x:Name="PercentageText"
|
|
|
|
Grid.Column="2"
|
|
|
|
Margin="2,0,4,0" />
|
|
|
|
<TextBlock Grid.Column="3" Text="|" />
|
|
|
|
<TextBlock
|
|
|
|
x:Name="CpuCountText"
|
|
|
|
Grid.Column="4"
|
|
|
|
Margin="2,0,6,0" />
|
2020-01-11 06:43:40 +00:00
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</Grid>
|
2019-11-07 05:33:08 +00:00
|
|
|
</Grid>
|
2020-01-11 06:43:40 +00:00
|
|
|
</local:UserControlRx>
|