35 lines
2.2 KiB
XML
35 lines
2.2 KiB
XML
<UserControl x:Class="OperationControl.Controls.LabeledBar"
|
|
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:OperationControl.Controls"
|
|
mc:Ignorable="d"
|
|
d:DesignWidth="520" d:DesignHeight="26">
|
|
<Grid Margin="0,2">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="160"/>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="120"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock Text="{Binding Label, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
|
VerticalAlignment="Center" />
|
|
|
|
<local:ProgressBarText Grid.Column="1"
|
|
Minimum="{Binding Minimum, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
|
Maximum="{Binding Maximum, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
|
Value="{Binding Value, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
|
ValueFormat="{Binding ValueFormat, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
|
BarBrush="{Binding BarBrush, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
|
BackgroundBrush="{Binding BackgroundBrush, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
|
BorderBrush="{Binding BorderBrush, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
|
TextBrush="{Binding TextBrush, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
|
Height="18"/>
|
|
|
|
<TextBlock Grid.Column="2"
|
|
Text="{Binding RightText, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
|
HorizontalAlignment="Right" VerticalAlignment="Center" FontWeight="SemiBold"/>
|
|
</Grid>
|
|
</UserControl>
|