You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
139 lines
9.2 KiB
139 lines
9.2 KiB
<!--************************************************************************
|
|
|
|
Extended WPF Toolkit
|
|
|
|
Copyright (C) 2010-2012 Xceed Software Inc.
|
|
|
|
This program is provided to you under the terms of the Microsoft Public
|
|
License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license
|
|
|
|
This program can be provided to you by Xceed Software Inc. under a
|
|
proprietary commercial license agreement for use in non-Open Source
|
|
projects. The commercial version of Extended WPF Toolkit also includes
|
|
priority technical support, commercial updates, and many additional
|
|
useful WPF controls if you license Xceed Business Suite for WPF.
|
|
|
|
Visit http://xceed.com and follow @datagrid on Twitter.
|
|
|
|
**********************************************************************-->
|
|
|
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:local="clr-namespace:Xceed.Wpf.Toolkit"
|
|
xmlns:prim="clr-namespace:Xceed.Wpf.Toolkit.Primitives"
|
|
xmlns:conv="clr-namespace:Xceed.Wpf.Toolkit.Core.Converters">
|
|
|
|
<conv:InverseBoolConverter x:Key="InverseBoolConverter" />
|
|
|
|
<DataTemplate x:Key="DefaultWatermarkTemplate">
|
|
<ContentControl Content="{Binding}" Foreground="Gray" Focusable="False" />
|
|
</DataTemplate>
|
|
|
|
<Style x:Key="NumericUpDown" TargetType="{x:Type prim:InputBase}">
|
|
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Right" />
|
|
<Setter Property="IsTabStop" Value="False" />
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
|
<Setter Property="TextAlignment" Value="Right" />
|
|
<Setter Property="WatermarkTemplate" Value="{StaticResource DefaultWatermarkTemplate}" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Control">
|
|
<local:ButtonSpinner x:Name="PART_Spinner"
|
|
IsTabStop="False"
|
|
Background="{TemplateBinding Background}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
AllowSpin="{Binding AllowSpin, RelativeSource={RelativeSource TemplatedParent}}"
|
|
ShowButtonSpinner="{Binding ShowButtonSpinner, RelativeSource={RelativeSource TemplatedParent}}">
|
|
<local:WatermarkTextBox x:Name="PART_TextBox"
|
|
BorderThickness="0"
|
|
Background="{TemplateBinding Background}"
|
|
ContextMenu="{TemplateBinding ContextMenu}"
|
|
FontFamily="{TemplateBinding FontFamily}"
|
|
FontSize="{TemplateBinding FontSize}"
|
|
FontStretch="{TemplateBinding FontStretch}"
|
|
FontStyle="{TemplateBinding FontStyle}"
|
|
FontWeight="{TemplateBinding FontWeight}"
|
|
Foreground="{TemplateBinding Foreground}"
|
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
IsReadOnly="{Binding IsReadOnly, RelativeSource={RelativeSource TemplatedParent}}"
|
|
MinWidth="20"
|
|
AcceptsReturn="False"
|
|
Padding="0"
|
|
SelectAllOnGotFocus="{Binding SelectAllOnGotFocus, RelativeSource={RelativeSource TemplatedParent}}"
|
|
TextAlignment="{Binding TextAlignment, RelativeSource={RelativeSource TemplatedParent}}"
|
|
TextWrapping="NoWrap"
|
|
TabIndex="{TemplateBinding TabIndex}"
|
|
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
Watermark="{Binding Watermark, RelativeSource={RelativeSource TemplatedParent}}"
|
|
WatermarkTemplate="{Binding WatermarkTemplate, RelativeSource={RelativeSource TemplatedParent}}" />
|
|
</local:ButtonSpinner>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- =============================================================================== -->
|
|
<!-- DecimalUpDown -->
|
|
<!-- =============================================================================== -->
|
|
<Style TargetType="{x:Type local:DecimalUpDown}" BasedOn="{StaticResource NumericUpDown}" />
|
|
|
|
<!-- =============================================================================== -->
|
|
<!-- DoubleUpDown -->
|
|
<!-- =============================================================================== -->
|
|
<Style TargetType="{x:Type local:DoubleUpDown}" BasedOn="{StaticResource NumericUpDown}" />
|
|
|
|
<!-- =============================================================================== -->
|
|
<!-- IntegerUpDown -->
|
|
<!-- =============================================================================== -->
|
|
<Style TargetType="{x:Type local:IntegerUpDown}" BasedOn="{StaticResource NumericUpDown}" />
|
|
|
|
<!-- =============================================================================== -->
|
|
<!-- ShortUpDown -->
|
|
<!-- =============================================================================== -->
|
|
<Style TargetType="{x:Type local:ShortUpDown}" BasedOn="{StaticResource NumericUpDown}" />
|
|
|
|
<!-- =============================================================================== -->
|
|
<!-- LongUpDown -->
|
|
<!-- =============================================================================== -->
|
|
<Style TargetType="{x:Type local:LongUpDown}" BasedOn="{StaticResource NumericUpDown}" />
|
|
|
|
<!-- =============================================================================== -->
|
|
<!-- ByteUpDown -->
|
|
<!-- =============================================================================== -->
|
|
<Style TargetType="{x:Type local:ByteUpDown}" BasedOn="{StaticResource NumericUpDown}" />
|
|
|
|
<!-- =============================================================================== -->
|
|
<!-- SingleUpDown -->
|
|
<!-- =============================================================================== -->
|
|
<Style TargetType="{x:Type local:SingleUpDown}" BasedOn="{StaticResource NumericUpDown}" />
|
|
|
|
<!-- =============================================================================== -->
|
|
<!-- SByteUpDown -->
|
|
<!-- =============================================================================== -->
|
|
<Style TargetType="{x:Type local:SByteUpDown}" BasedOn="{StaticResource NumericUpDown}" />
|
|
|
|
<!-- =============================================================================== -->
|
|
<!-- UIntegerUpDown -->
|
|
<!-- =============================================================================== -->
|
|
<Style TargetType="{x:Type local:UIntegerUpDown}" BasedOn="{StaticResource NumericUpDown}" />
|
|
|
|
<!-- =============================================================================== -->
|
|
<!-- ULongUpDown -->
|
|
<!-- =============================================================================== -->
|
|
<Style TargetType="{x:Type local:ULongUpDown}" BasedOn="{StaticResource NumericUpDown}" />
|
|
|
|
<!-- =============================================================================== -->
|
|
<!-- UShortUpDown -->
|
|
<!-- =============================================================================== -->
|
|
<Style TargetType="{x:Type local:UShortUpDown}" BasedOn="{StaticResource NumericUpDown}" />
|
|
|
|
|
|
</ResourceDictionary>
|
|
|