87 lines
4.9 KiB
XML
87 lines
4.9 KiB
XML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls"
|
|
xmlns:conv="clr-namespace:BeWo.Converter"
|
|
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
|
|
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
|
xmlns:dxei="http://schemas.devexpress.com/winfx/2008/xaml/editors/internal"
|
|
xmlns:dxet="http://schemas.devexpress.com/winfx/2008/xaml/editors/themekeys"
|
|
xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
|
|
>
|
|
<Style x:Key="TitleLabel" TargetType="Label">
|
|
<Setter Property="TextElement.FontSize" Value="16" />
|
|
<Setter Property="TextElement.Foreground" Value="{StaticResource TabItemHotTextBrush}" />
|
|
<Setter Property="TextElement.FontFamily" Value="Microsoft Sans Serif" />
|
|
<Setter Property="Padding" Value="3,0,3,0" />
|
|
<Setter Property="MinHeight" Value="20" />
|
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
|
<Setter Property="Margin" Value="3, -6, 3, 6"/>
|
|
</Style>
|
|
<Style TargetType="uc:NullItemComboBox" BasedOn="{StaticResource {x:Type uc:NullItemComboBox}}">
|
|
<Setter Property="Margin" Value="3"/>
|
|
</Style>
|
|
<Style TargetType="ComboBox" BasedOn="{StaticResource {x:Type ComboBox}}">
|
|
<Setter Property="Margin" Value="3"/>
|
|
<Setter Property="Height" Value="23"/>
|
|
</Style>
|
|
<Style TargetType="RadioButton">
|
|
<Setter Property="Margin" Value="3"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
</Style>
|
|
<Style TargetType="{x:Type CheckBox}" BasedOn="{StaticResource {x:Type CheckBox}}">
|
|
<Setter Property="Margin" Value="3"/>
|
|
</Style>
|
|
<!--<Style TargetType="dxe:DateEdit" BasedOn="{StaticResource {x:Type dxe:DateEdit}}" x:Shared="False">
|
|
<Setter Property="Margin" Value="3"/>
|
|
<Setter Property="Height" Value="23"/>
|
|
<Setter Property="AllowDefaultButton" Value="False"/>
|
|
<Setter Property="Buttons">
|
|
<Setter.Value>
|
|
<dxe:ButtonInfoCollection >
|
|
<dxe:ButtonInfo IsDefaultButton="True" x:Shared="False">
|
|
<dxe:ButtonInfo.Template>
|
|
<DataTemplate>
|
|
<ToggleButton x:Name="PART_Item" Style="{StaticResource ComboBoxTransparentButtonStyle}"/>
|
|
</DataTemplate>
|
|
</dxe:ButtonInfo.Template>
|
|
</dxe:ButtonInfo>
|
|
</dxe:ButtonInfoCollection>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>-->
|
|
<Style TargetType="{x:Type dxe:DateEdit}" BasedOn="{StaticResource {x:Type dxe:DateEdit}}">
|
|
<Setter Property="Margin" Value="3"/>
|
|
<Setter Property="Padding" Value="1"/>
|
|
<Setter Property="Height" Value="23"/>
|
|
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource TextBoxBorderBrush}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Style.Resources>
|
|
<DataTemplate x:Key="{dxet:ButtonsThemeKey ResourceKey=ToggleButtonInfoTemplate, IsThemeIndependent=True}">
|
|
<dx:ToggleStateButton IsChecked="{Binding Path=IsChecked, Mode=TwoWay}"
|
|
x:Name="PART_Item"
|
|
Margin="2"
|
|
dxei:SetIsCheckedToButtonInfoBehavior.IsEnabled="True"
|
|
Style="{StaticResource ComboBoxTransparentButtonStyle}">
|
|
</dx:ToggleStateButton>
|
|
<DataTemplate.Triggers>
|
|
<DataTrigger Binding="{Binding Path=IsDefaultButton}"
|
|
Value="True">
|
|
<Setter TargetName="PART_Item"
|
|
Property="IsChecked"
|
|
Value="{Binding Path=(dxe:BaseEdit.OwnerEdit).IsPopupOpen, RelativeSource={RelativeSource Self}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
|
</DataTrigger>
|
|
<DataTrigger Binding="{Binding Path=IsDefaultButton}"
|
|
Value="False">
|
|
<Setter TargetName="PART_Item"
|
|
Property="HandleToggle"
|
|
Value="False" />
|
|
</DataTrigger>
|
|
</DataTemplate.Triggers>
|
|
</DataTemplate>
|
|
</Style.Resources>
|
|
</Style>
|
|
<Style TargetType="{x:Type StackPanel}">
|
|
|
|
</Style>
|
|
</ResourceDictionary> |