|
519 | 519 | <Style Selector="Button.flat:disabled">
|
520 | 520 | <Setter Property="Background" Value="{DynamicResource Brush.FlatButton.Background}"/>
|
521 | 521 | </Style>
|
| 522 | + |
| 523 | + <Style Selector="SplitButton"> |
| 524 | + <Setter Property="MinHeight" Value="24"/> |
| 525 | + <Setter Property="Template"> |
| 526 | + <ControlTemplate> |
| 527 | + <Grid> |
| 528 | + <Grid.ColumnDefinitions> |
| 529 | + <ColumnDefinition Width="*" /> |
| 530 | + <ColumnDefinition Width="1" /> |
| 531 | + <ColumnDefinition Width="Auto" /> |
| 532 | + </Grid.ColumnDefinitions> |
| 533 | + |
| 534 | + <Button x:Name="PART_PrimaryButton" |
| 535 | + Grid.Column="0" |
| 536 | + Classes="flat primary" |
| 537 | + MinWidth="32" |
| 538 | + HorizontalAlignment="Stretch" |
| 539 | + VerticalAlignment="Stretch" |
| 540 | + Content="{TemplateBinding Content}" |
| 541 | + ContentTemplate="{TemplateBinding ContentTemplate}" |
| 542 | + Command="{TemplateBinding Command}" |
| 543 | + CommandParameter="{TemplateBinding CommandParameter}" |
| 544 | + CornerRadius="3,0,0,3" |
| 545 | + Padding="{TemplateBinding Padding}" |
| 546 | + Focusable="False" |
| 547 | + KeyboardNavigation.IsTabStop="False" /> |
| 548 | + |
| 549 | + <Button x:Name="PART_SecondaryButton" |
| 550 | + Grid.Column="2" |
| 551 | + Classes="flat primary" |
| 552 | + Width="32" |
| 553 | + CornerRadius="0,3,3,0" |
| 554 | + Padding="0" |
| 555 | + Focusable="False" |
| 556 | + HorizontalAlignment="Stretch" |
| 557 | + VerticalAlignment="Stretch" |
| 558 | + KeyboardNavigation.IsTabStop="False"> |
| 559 | + <Path Height="12" Width="12" |
| 560 | + Margin="0,4,0,0" |
| 561 | + Fill="{DynamicResource AccentButtonForeground}" |
| 562 | + Data="{DynamicResource Icons.Down}"/> |
| 563 | + </Button> |
| 564 | + </Grid> |
| 565 | + </ControlTemplate> |
| 566 | + </Setter> |
| 567 | + |
| 568 | + <Style Selector="^:disabled /template/ Button"> |
| 569 | + <Setter Property="BorderThickness" Value="1"/> |
| 570 | + <Setter Property="BorderBrush" Value="{DynamicResource Brush.Border2}"/> |
| 571 | + <Setter Property="Background" Value="Transparent"/> |
| 572 | + </Style> |
| 573 | + |
| 574 | + <Style Selector="^:disabled TextBlock"> |
| 575 | + <Setter Property="Foreground" Value="{DynamicResource Brush.FG2}"/> |
| 576 | + </Style> |
| 577 | + |
| 578 | + <Style Selector="^:disabled Path"> |
| 579 | + <Setter Property="Fill" Value="{DynamicResource Brush.FG2}"/> |
| 580 | + </Style> |
| 581 | + </Style> |
522 | 582 |
|
523 | 583 | <Style Selector="aes|SearchPanel">
|
524 | 584 | <Setter Property="Template">
|
|
0 commit comments