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