82 lines
3.6 KiB
XML
82 lines
3.6 KiB
XML
<Grid x:Class="OMNIPruefung.Views.Options.COMOption"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<ToggleButton Grid.Row="0"
|
|
IsChecked="{Binding IsExpanded}">
|
|
<ToggleButton.Template>
|
|
<ControlTemplate TargetType="ToggleButton">
|
|
<ContentPresenter SnapsToDevicePixels="True" />
|
|
</ControlTemplate>
|
|
</ToggleButton.Template>
|
|
<RadioButton GroupName="sidebar_nodes"
|
|
Cursor="Hand"
|
|
Padding="0, 2"
|
|
Margin="0, 2, 0, 0"
|
|
Style="{StaticResource RadioNodeStyle}"
|
|
IsChecked="{Binding IsSelected}">
|
|
<RadioButton.InputBindings>
|
|
<MouseBinding Gesture="LeftDoubleClick" Command="{Binding ToggleNodes}" />
|
|
</RadioButton.InputBindings>
|
|
<Grid Margin="0, 0, 0, 1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="{Binding Indent}" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<ProgressBar Grid.Column="2"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
Visibility="{Binding Connected, Converter={StaticResource BooleanVisibility}}"
|
|
Foreground="{Binding Running, Converter={StaticResource BooleanProgress}}"
|
|
Background="Transparent"
|
|
Value="{Binding Progress}"
|
|
BorderThickness="0"
|
|
Opacity="0.1"
|
|
Margin="5, 2"
|
|
Padding="0"/>
|
|
<Label Grid.Column="2"
|
|
Visibility="{Binding Connected, Converter={StaticResource BooleanVisibility}}"
|
|
Content="{Binding Progress}"
|
|
ContentStringFormat="{}{0}%"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Stretch"
|
|
Opacity="0.5" />
|
|
|
|
<Label Grid.Column="1"
|
|
FontSize="14"
|
|
Margin="0"
|
|
Padding="0"
|
|
FontWeight="Bold"
|
|
Foreground="Black"
|
|
Background="Transparent"
|
|
Content="{Binding Nr}"
|
|
ContentStringFormat="{}{0}."
|
|
VerticalAlignment="Stretch"
|
|
HorizontalAlignment="Stretch"
|
|
HorizontalContentAlignment="Left"
|
|
VerticalContentAlignment="Center"/>
|
|
|
|
<Label Grid.Column="2"
|
|
Padding="0"
|
|
Margin="5"
|
|
Content="{Binding Header}"
|
|
VerticalAlignment="Stretch"
|
|
HorizontalAlignment="Stretch"
|
|
HorizontalContentAlignment="Left"
|
|
VerticalContentAlignment="Center"/>
|
|
</Grid>
|
|
</RadioButton>
|
|
</ToggleButton>
|
|
|
|
<ItemsControl Grid.Row="1"
|
|
ItemsSource="{Binding Options}"
|
|
Visibility="{Binding IsExpanded, Converter={StaticResource BooleanVisibility}}"/>
|
|
</Grid>
|