프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

markus / KCOM / Resources / ClearTextBoxStyle.xaml @ 90d1dee0

이력 | 보기 | 이력해설 | 다운로드 (8.17 KB)

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