|
|
|
@ -10,7 +10,7 @@ |
|
|
|
|
|
|
|
<Styles.Resources> |
|
|
|
<x:Double x:Key="SplitButtonPrimaryButtonSize">32</x:Double> |
|
|
|
<x:Double x:Key="SplitButtonSecondaryButtonSize">32</x:Double> |
|
|
|
<GridLength x:Key="SplitButtonSecondaryButtonSize">32</GridLength> |
|
|
|
</Styles.Resources> |
|
|
|
|
|
|
|
<Style Selector="SplitButton"> |
|
|
|
@ -43,9 +43,9 @@ |
|
|
|
|
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition Width="*" |
|
|
|
MinWidth="{DynamicResource SplitButtonPrimaryButtonSize}" /> |
|
|
|
MinWidth="{StaticResource SplitButtonPrimaryButtonSize}" /> |
|
|
|
<ColumnDefinition Width="1" /> |
|
|
|
<ColumnDefinition Width="{DynamicResource SplitButtonSecondaryButtonSize}" /> |
|
|
|
<ColumnDefinition Width="{StaticResource SplitButtonSecondaryButtonSize}" /> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
|
|
|
<!-- Changed from Grid to Rectangle since Avalonia does not support Background on Grid directly --> |
|
|
|
@ -89,11 +89,12 @@ |
|
|
|
Background="{TemplateBinding Background}" |
|
|
|
BorderThickness="{TemplateBinding BorderThickness}" |
|
|
|
BorderBrush="Transparent" |
|
|
|
HorizontalContentAlignment="Center" |
|
|
|
HorizontalContentAlignment="Right" |
|
|
|
VerticalContentAlignment="Center" |
|
|
|
HorizontalAlignment="Stretch" |
|
|
|
VerticalAlignment="Stretch" |
|
|
|
KeyboardNavigation.IsTabStop="False"> |
|
|
|
KeyboardNavigation.IsTabStop="False" |
|
|
|
Padding="0,0,10,0"> |
|
|
|
<Button.Content> |
|
|
|
<!-- TextBlock converted to a Path and placed within Viewbox --> |
|
|
|
<Viewbox UseLayoutRounding="False" |
|
|
|
@ -384,10 +385,16 @@ |
|
|
|
</Style> |
|
|
|
|
|
|
|
<!-- SecondaryButtonPlacement States --> |
|
|
|
<!-- Note: ':secondary-button-right' is the default --> |
|
|
|
<!--<Style Selector="SplitButton:secondary-button-span /template/ Button#PART_SecondaryButton"> |
|
|
|
<!-- Note: Setting Grid attached properties doesn't work here for some unknown reason. |
|
|
|
They simply are never changed. In addition, touch-device changes of secondary button |
|
|
|
size are currently disabled in code-behind. --> |
|
|
|
<Style Selector="SplitButton:secondary-button-right /template/ Button#PART_SecondaryButton"> |
|
|
|
<Setter Property="(Grid.Column)" Value="2" /> |
|
|
|
<Setter Property="(Grid.ColumnSpan)" Value="1" /> |
|
|
|
</Style> |
|
|
|
<Style Selector="SplitButton:secondary-button-span /template/ Button#PART_SecondaryButton"> |
|
|
|
<Setter Property="(Grid.Column)" Value="0" /> |
|
|
|
<Setter Property="(Grid.ColumnSpan)" Value="3" /> |
|
|
|
</Style>--> |
|
|
|
</Style> |
|
|
|
|
|
|
|
</Styles> |
|
|
|
|