markus / KCOM / Resources / RadPasswordPromptStyle.xaml @ daa1b25b
이력 | 보기 | 이력해설 | 다운로드 (4.01 KB)
1 | 24c5e56c | taeseongkim | <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
---|---|---|---|
2 | xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" |
||
3 | xmlns:local="clr-namespace:KCOM.Controls" |
||
4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
||
5 | <SolidColorBrush x:Key="BorderLineOuterColor" Color="#26000000"/> |
||
6 | <SolidColorBrush x:Key="BorderLineInnerColor" Color="#FFFFFFFF"/> |
||
7 | <Style x:Key="RadPasswordPromptStyle" TargetType="telerik:RadPrompt"> |
||
8 | <Setter Property="Template"> |
||
9 | <Setter.Value>
|
||
10 | <ControlTemplate TargetType="telerik:RadPrompt"> |
||
11 | <Grid x:Name="LayoutRoot"> |
||
12 | <Grid.RowDefinitions>
|
||
13 | <RowDefinition Height="*"/> |
||
14 | <RowDefinition Height="Auto"/> |
||
15 | </Grid.RowDefinitions>
|
||
16 | <Grid.ColumnDefinitions>
|
||
17 | <ColumnDefinition Width="Auto"/> |
||
18 | <ColumnDefinition Width="*"/> |
||
19 | </Grid.ColumnDefinitions>
|
||
20 | <ContentPresenter x:Name="Icon" VerticalAlignment="Top" Margin="16 8 8 8" ContentTemplate="{TemplateBinding IconTemplate}"/> |
||
21 | <StackPanel x:Name="PromptContent" Grid.Row="0" Grid.Column="1" FocusManager.FocusedElement="{Binding ElementName=PromptTextBox}"> |
||
22 | <ScrollViewer IsTabStop="False" Grid.Row="0" Grid.Column="1" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Margin="0 0 0 8"> |
||
23 | <ContentPresenter x:Name="PromptText" Margin="8 8 8 0"/> |
||
24 | </ScrollViewer>
|
||
25 | <telerik:RadPasswordBox x:Name="PromptPasswordBox" Margin="8" IsTabStop="True" TabIndex="0" Focusable="True" |
||
26 | local:PasswordBoxUtilities.SendPasswordToPromptResult="True" |
||
27 | local:PasswordBoxUtilities.IsFocused="True"/> |
||
28 | </StackPanel>
|
||
29 | <Border x:Name="HorizontalRule" |
||
30 | Grid.Row="1" |
||
31 | Grid.ColumnSpan="2" |
||
32 | BorderThickness="0 0 0 1" |
||
33 | Height="2" |
||
34 | Background="{StaticResource BorderLineOuterColor}" |
||
35 | BorderBrush="{StaticResource BorderLineInnerColor}" |
||
36 | VerticalAlignment="Top"/> |
||
37 | <StackPanel x:Name="DialogButtons" Grid.Row="1" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Right"> |
||
38 | <telerik:RadButton x:Name="OK" |
||
39 | Command="{x:Static telerik:WindowCommands.Confirm}" |
||
40 | telerik:RadWindow.ResponseButton="Accept" |
||
41 | MinWidth="70" |
||
42 | IsTabStop="True" |
||
43 | TabIndex="1" |
||
44 | HorizontalAlignment="Right" |
||
45 | telerik:LocalizationManager.ResourceKey="Ok" |
||
46 | Margin="0 10 8 8"/> |
||
47 | <telerik:RadButton x:Name="Cancel" |
||
48 | Command="{x:Static telerik:WindowCommands.Cancel}" |
||
49 | telerik:RadWindow.ResponseButton="Cancel" |
||
50 | MinWidth="70" |
||
51 | IsTabStop="True" |
||
52 | TabIndex="2" |
||
53 | HorizontalAlignment="Right" |
||
54 | telerik:LocalizationManager.ResourceKey="Cancel" |
||
55 | Margin="0 10 8 8"/> |
||
56 | </StackPanel>
|
||
57 | </Grid>
|
||
58 | </ControlTemplate>
|
||
59 | </Setter.Value>
|
||
60 | </Setter>
|
||
61 | </Style>
|
||
62 | </ResourceDictionary> |