enhance: add IsMouseSelectable property for StepBar (#1142)
close #1142
This commit is contained in:
1 parent
3e7bd22f32
commit
759abff637
6 files changed
+69
-40
No files matched your search
@@ -10663,12 +10663,14 @@
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="hc:StepBarItem">
|
||||
<StackPanel>
|
||||
<Border Background="{DynamicResource RegionBrush}" HorizontalAlignment="Center" CornerRadius="12" BorderThickness="2" BorderBrush="{TemplateBinding Foreground}" Height="24" MinWidth="24">
|
||||
<TextBlock Foreground="{TemplateBinding Foreground}" Style="{StaticResource TextBlockDefaultThiLight}" Text="{Binding Index,RelativeSource={RelativeSource TemplatedParent}}" />
|
||||
</Border>
|
||||
<ContentPresenter HorizontalAlignment="Center" ContentTemplate="{Binding ItemTemplate,RelativeSource={RelativeSource AncestorType=hc:StepBar}}" TextElement.Foreground="{TemplateBinding Foreground}" Margin="0,4,0,0" />
|
||||
</StackPanel>
|
||||
<Border Background="Transparent">
|
||||
<StackPanel>
|
||||
<Border Background="{DynamicResource RegionBrush}" HorizontalAlignment="Center" CornerRadius="12" BorderThickness="2" BorderBrush="{TemplateBinding Foreground}" Height="24" MinWidth="24">
|
||||
<TextBlock Foreground="{TemplateBinding Foreground}" Style="{StaticResource TextBlockDefaultThiLight}" Text="{Binding Index,RelativeSource={RelativeSource TemplatedParent}}" />
|
||||
</Border>
|
||||
<ContentPresenter HorizontalAlignment="Center" ContentTemplate="{Binding ItemTemplate,RelativeSource={RelativeSource AncestorType=hc:StepBar}}" TextElement.Foreground="{TemplateBinding Foreground}" Margin="0,4,0,0" />
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
@@ -10688,7 +10690,7 @@
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style x:Key="StepBarItemVerticalLeft" BasedOn="{StaticResource StepBarItemBaseStyle}" TargetType="hc:StepBarItem">
|
||||
<Style x:Key="StepBarItemVertical" BasedOn="{StaticResource StepBarItemBaseStyle}" TargetType="hc:StepBarItem">
|
||||
<Setter Property="Margin" Value="0, 10" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
@@ -10715,7 +10717,7 @@
|
||||
<ItemsPresenter VerticalAlignment="Bottom" />
|
||||
</hc:SimplePanel>
|
||||
</ControlTemplate>
|
||||
<ControlTemplate x:Key="StepBarVerticalLeftControlTemplate" TargetType="hc:StepBar">
|
||||
<ControlTemplate x:Key="StepBarVerticalControlTemplate" TargetType="hc:StepBar">
|
||||
<hc:SimplePanel>
|
||||
<ProgressBar Orientation="Vertical" Width="4" HorizontalAlignment="Left" Name="PART_ProgressBarBack" VerticalAlignment="Center" Margin="10,0,0,0" Style="{StaticResource ProgressBarFlat}" Background="{DynamicResource ThirdlyTextBrush}" RenderTransformOrigin="0.5,0.5">
|
||||
<ProgressBar.RenderTransform>
|
||||
@@ -10734,8 +10736,8 @@
|
||||
<Setter Property="ItemsPanel" Value="{StaticResource UniformHorizontalItemsPanelTemplate}" />
|
||||
<Style.Triggers>
|
||||
<Trigger Property="Dock" Value="Left">
|
||||
<Setter Property="ItemContainerStyle" Value="{StaticResource StepBarItemVerticalLeft}" />
|
||||
<Setter Property="Template" Value="{StaticResource StepBarVerticalLeftControlTemplate}" />
|
||||
<Setter Property="ItemContainerStyle" Value="{StaticResource StepBarItemVertical}" />
|
||||
<Setter Property="Template" Value="{StaticResource StepBarVerticalControlTemplate}" />
|
||||
<Setter Property="ItemsPanel" Value="{StaticResource UniformVerticalItemsPanelTemplate}" />
|
||||
</Trigger>
|
||||
<Trigger Property="Dock" Value="Bottom">
|
||||
@@ -10745,8 +10747,8 @@
|
||||
</Trigger>
|
||||
<Trigger Property="Dock" Value="Right">
|
||||
<Setter Property="FlowDirection" Value="RightToLeft" />
|
||||
<Setter Property="ItemContainerStyle" Value="{StaticResource StepBarItemVerticalLeft}" />
|
||||
<Setter Property="Template" Value="{StaticResource StepBarVerticalLeftControlTemplate}" />
|
||||
<Setter Property="ItemContainerStyle" Value="{StaticResource StepBarItemVertical}" />
|
||||
<Setter Property="Template" Value="{StaticResource StepBarVerticalControlTemplate}" />
|
||||
<Setter Property="ItemsPanel" Value="{StaticResource UniformVerticalItemsPanelTemplate}" />
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
|
||||
Reference in new issue
Block a user