markus / KCOM / Resources / ClearTextBoxStyle.xaml @ 2089959a
이력 | 보기 | 이력해설 | 다운로드 (8.3 KB)
1 |
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
---|---|
2 |
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" |
3 |
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" |
4 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
5 |
<ResourceDictionary.MergedDictionaries>
|
6 |
<ResourceDictionary Source="/Telerik.Windows.Controls;component/Themes/FontResources.xaml"/> |
7 |
</ResourceDictionary.MergedDictionaries>
|
8 |
<!--Control colors.-->
|
9 |
<Color x:Key="WindowColor">#FFE8EDF9</Color> |
10 |
<Color x:Key="ContentAreaColorLight">#FFC5CBF9</Color> |
11 |
<Color x:Key="ContentAreaColorDark">#FF7381F9</Color> |
12 |
|
13 |
<Color x:Key="DisabledControlLightColor">#FFE8EDF9</Color> |
14 |
<Color x:Key="DisabledControlDarkColor">#FFC5CBF9</Color> |
15 |
<Color x:Key="DisabledForegroundColor">#FF888888</Color> |
16 |
|
17 |
<Color x:Key="SelectedBackgroundColor">#FFC5CBF9</Color> |
18 |
<Color x:Key="SelectedUnfocusedColor">#FFDDDDDD</Color> |
19 |
|
20 |
<Color x:Key="ControlLightColor">White</Color> |
21 |
<Color x:Key="ControlMediumColor">#FF7381F9</Color> |
22 |
<Color x:Key="ControlDarkColor">#FF211AA9</Color> |
23 |
|
24 |
<Color x:Key="ControlMouseOverColor">#FF3843C4</Color> |
25 |
<Color x:Key="ControlPressedColor">#FF211AA9</Color> |
26 |
|
27 |
|
28 |
<Color x:Key="GlyphColor">#FF444444</Color> |
29 |
<Color x:Key="GlyphMouseOver">sc#1, 0.004391443, 0.002428215, 0.242281124</Color> |
30 |
|
31 |
<!--Border colors-->
|
32 |
<Color x:Key="BorderLightColor">#FFCCCCCC</Color> |
33 |
<Color x:Key="BorderMediumColor">#FF888888</Color> |
34 |
<Color x:Key="BorderDarkColor">#FF444444</Color> |
35 |
|
36 |
<Color x:Key="PressedBorderLightColor">#FF888888</Color> |
37 |
<Color x:Key="PressedBorderDarkColor">#FF444444</Color> |
38 |
|
39 |
<Color x:Key="DisabledBorderLightColor">#FFAAAAAA</Color> |
40 |
<Color x:Key="DisabledBorderDarkColor">#FF888888</Color> |
41 |
|
42 |
<Color x:Key="DefaultBorderBrushDarkColor">Black</Color> |
43 |
|
44 |
<!--Control-specific resources.-->
|
45 |
<Color x:Key="HeaderTopColor">#FFC5CBF9</Color> |
46 |
<Color x:Key="DatagridCurrentCellBorderColor">Black</Color> |
47 |
<Color x:Key="SliderTrackDarkColor">#FFC5CBF9</Color> |
48 |
|
49 |
<Color x:Key="NavButtonFrameColor">#FF3843C4</Color> |
50 |
|
51 |
<LinearGradientBrush x:Key="MenuPopupBrush" |
52 |
EndPoint="0.5,1" |
53 |
StartPoint="0.5,0"> |
54 |
<GradientStop Color="{DynamicResource ControlLightColor}" |
55 |
Offset="0" /> |
56 |
<GradientStop Color="{DynamicResource ControlMediumColor}" |
57 |
Offset="0.5" /> |
58 |
<GradientStop Color="{DynamicResource ControlLightColor}" |
59 |
Offset="1" /> |
60 |
</LinearGradientBrush>
|
61 |
|
62 |
<LinearGradientBrush x:Key="ProgressBarIndicatorAnimatedFill" |
63 |
StartPoint="0,0" |
64 |
EndPoint="1,0"> |
65 |
<LinearGradientBrush.GradientStops>
|
66 |
<GradientStopCollection>
|
67 |
<GradientStop Color="#000000FF" |
68 |
Offset="0" /> |
69 |
<GradientStop Color="#600000FF" |
70 |
Offset="0.4" /> |
71 |
<GradientStop Color="#600000FF" |
72 |
Offset="0.6" /> |
73 |
<GradientStop Color="#000000FF" |
74 |
Offset="1" /> |
75 |
</GradientStopCollection>
|
76 |
</LinearGradientBrush.GradientStops>
|
77 |
</LinearGradientBrush>
|
78 |
<Style x:Key="ClearTextBoxStyle" TargetType="{x:Type TextBox}"> |
79 |
<Setter Property="SnapsToDevicePixels" |
80 |
Value="True" /> |
81 |
<Setter Property="OverridesDefaultStyle" |
82 |
Value="True" /> |
83 |
<Setter Property="KeyboardNavigation.TabNavigation" |
84 |
Value="None" /> |
85 |
<Setter Property="Text" Value="{x:Null}"/> |
86 |
<Setter Property="FocusVisualStyle" |
87 |
Value="{x:Null}" /> |
88 |
<Setter Property="MinWidth" |
89 |
Value="0" /> |
90 |
<Setter Property="MinHeight" |
91 |
Value="20" /> |
92 |
<Setter Property="AllowDrop" |
93 |
Value="true" /> |
94 |
<Setter Property="Template"> |
95 |
<Setter.Value>
|
96 |
<ControlTemplate TargetType="{x:Type TextBox}"> |
97 |
<Border Name="Border" |
98 |
CornerRadius="0" |
99 |
Padding="0"> |
100 |
<Border.Background>
|
101 |
<SolidColorBrush Color="{DynamicResource ControlLightColor}" /> |
102 |
</Border.Background>
|
103 |
<Border.BorderBrush>
|
104 |
<SolidColorBrush Color="{DynamicResource BorderMediumColor}" /> |
105 |
</Border.BorderBrush>
|
106 |
<VisualStateManager.VisualStateGroups>
|
107 |
<VisualStateGroup x:Name="CommonStates"> |
108 |
<VisualState x:Name="Normal" /> |
109 |
<VisualState x:Name="Disabled"> |
110 |
<Storyboard>
|
111 |
<ColorAnimationUsingKeyFrames Storyboard.TargetName="Border" |
112 |
Storyboard.TargetProperty="(Panel.Background). |
113 |
(SolidColorBrush.Color)"> |
114 |
<EasingColorKeyFrame KeyTime="0" |
115 |
Value="{StaticResource DisabledControlLightColor}" /> |
116 |
</ColorAnimationUsingKeyFrames>
|
117 |
</Storyboard>
|
118 |
</VisualState>
|
119 |
<VisualState x:Name="ReadOnly"> |
120 |
<Storyboard>
|
121 |
<ColorAnimationUsingKeyFrames Storyboard.TargetName="Border" |
122 |
Storyboard.TargetProperty="(Panel.Background). |
123 |
(SolidColorBrush.Color)"> |
124 |
<EasingColorKeyFrame KeyTime="0" |
125 |
Value="{StaticResource DisabledControlDarkColor}" /> |
126 |
</ColorAnimationUsingKeyFrames>
|
127 |
</Storyboard>
|
128 |
</VisualState>
|
129 |
<VisualState x:Name="MouseOver" /> |
130 |
</VisualStateGroup>
|
131 |
</VisualStateManager.VisualStateGroups>
|
132 |
<Border BorderBrush="#FFDDE2E5" Background="Transparent" BorderThickness="1"> |
133 |
<Grid>
|
134 |
<Grid.ColumnDefinitions>
|
135 |
<ColumnDefinition/> |
136 |
<ColumnDefinition Width="17"/> |
137 |
</Grid.ColumnDefinitions>
|
138 |
<ScrollViewer Margin="0" BorderThickness="0" x:Name="PART_ContentHost" /> |
139 |
<!--<telerik:RadPathButton BorderThickness="0" Background="Transparent" Grid.Column="1" x:Name="ClearButton"
|
140 |
Content="{StaticResource GlyphCloseCircle}"
|
141 |
FontFamily="{StaticResource TelerikWebUI}">
|
142 |
</telerik:RadPathButton>-->
|
143 |
<Button BorderThickness="0" IsEnabled="{TemplateBinding IsEnabled}" Background="Transparent" Grid.Column="1" x:Name="ClearButton" |
144 |
Content="{StaticResource GlyphCloseCircle}" |
145 |
FontFamily="{StaticResource TelerikWebUI}"> |
146 |
</Button>
|
147 |
</Grid>
|
148 |
</Border>
|
149 |
</Border>
|
150 |
<ControlTemplate.Triggers>
|
151 |
<Trigger SourceName="ClearButton" Property="IsPressed" Value="True"> |
152 |
<Setter Property="Text" Value="{x:Null}"/> |
153 |
</Trigger>
|
154 |
<Trigger Property="Text" Value="{x:Null}"> |
155 |
<Setter TargetName="ClearButton" Property="Visibility" Value="Collapsed"/> |
156 |
</Trigger>
|
157 |
<Trigger Property="Text" Value=""> |
158 |
<Setter TargetName="ClearButton" Property="Visibility" Value="Collapsed"/> |
159 |
</Trigger>
|
160 |
</ControlTemplate.Triggers>
|
161 |
</ControlTemplate>
|
162 |
</Setter.Value>
|
163 |
</Setter>
|
164 |
</Style>
|
165 |
</ResourceDictionary>
|