개정판 a197bf6f
issue #00000 sign manager 수정
Change-Id: I37e286b276179d93d61c50d419ad6861b611bc75
KCOM/Controls/SignManager.xaml | ||
---|---|---|
1 | 1 |
<UserControl |
2 |
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" x:Class="KCOM.Controls.SignManager" |
|
3 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
4 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
5 |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
|
6 |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|
7 |
xmlns:local="clr-namespace:KCOM.Controls" Background="White" |
|
8 |
mc:Ignorable="d" Height="350" Width="1000"> |
|
2 |
x:Class="KCOM.Controls.SignManager" |
|
3 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
4 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
5 |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
|
6 |
xmlns:local="clr-namespace:KCOM.Controls" |
|
7 |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|
8 |
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" |
|
9 |
Width="1000" |
|
10 |
Height="350" |
|
11 |
Background="White" |
|
12 |
mc:Ignorable="d"> |
|
9 | 13 |
<UserControl.Resources> |
10 | 14 |
<FontFamily x:Key="MayQueen">pack://application:,,,/Resources/#May Queen</FontFamily> |
11 | 15 |
</UserControl.Resources> |
12 | 16 |
<Grid> |
13 | 17 |
<Grid.RowDefinitions> |
14 |
<RowDefinition Height="Auto"/> |
|
15 |
<RowDefinition Height="*"/> |
|
18 |
<RowDefinition Height="Auto" />
|
|
19 |
<RowDefinition Height="*" />
|
|
16 | 20 |
</Grid.RowDefinitions> |
17 | 21 |
<Grid Margin="10"> |
18 | 22 |
<Grid.ColumnDefinitions> |
19 |
<ColumnDefinition Width="Auto"/> |
|
20 |
<ColumnDefinition/> |
|
21 |
<ColumnDefinition Width="Auto"/> |
|
22 |
<ColumnDefinition Width="Auto"/> |
|
23 |
<ColumnDefinition Width="Auto" /> |
|
24 |
<ColumnDefinition /> |
|
25 |
<ColumnDefinition Width="Auto" /> |
|
26 |
<ColumnDefinition Width="Auto" /> |
|
27 |
<ColumnDefinition Width="Auto" /> |
|
23 | 28 |
</Grid.ColumnDefinitions> |
24 | 29 |
<StackPanel Orientation="Horizontal" Visibility="Collapsed"> |
25 |
<TextBlock Text="Input Signature as Text : " FontSize="14"/> |
|
26 |
<telerik:RadWatermarkTextBox x:Name="txtInput" WatermarkContent="Input Text" Width="150"/> |
|
30 |
<TextBlock FontSize="14" Text="Input Signature as Text : " /> |
|
31 |
<telerik:RadWatermarkTextBox |
|
32 |
x:Name="txtInput" |
|
33 |
Width="150" |
|
34 |
WatermarkContent="Input Text" /> |
|
27 | 35 |
</StackPanel> |
28 |
<telerik:RadButton Margin="10,0,10,0" Grid.Column="2" Click="Reset_Click" telerik:StyleManager.Theme="Office2016"> |
|
36 |
<telerik:RadButton |
|
37 |
Grid.Column="2" |
|
38 |
Margin="10,0,10,0" |
|
39 |
telerik:StyleManager.Theme="Office2016" |
|
40 |
Click="OpenImage_Click"> |
|
29 | 41 |
<StackPanel Orientation="Horizontal"> |
30 |
<Image Source="/KCOM;component/Resources/Images/MenuImage_new/Rotate_Minus.png" Width="16" Height="16"/> |
|
31 |
<TextBlock Text="Reset" FontSize="14" Margin="5,0,0,0"/> |
|
42 |
<Image |
|
43 |
Width="16" |
|
44 |
Height="16" |
|
45 |
Source="/KCOM;component/Resources/Images/MenuImage_new/picture.png" /> |
|
46 |
<TextBlock |
|
47 |
Margin="5,0,0,0" |
|
48 |
FontSize="14" |
|
49 |
Text="Open File" /> |
|
32 | 50 |
</StackPanel> |
33 | 51 |
</telerik:RadButton> |
34 |
<telerik:RadButton Margin="10,0,10,0" Grid.Column="3" Click="Save_Click" telerik:StyleManager.Theme="Office2016"> |
|
52 |
<telerik:RadButton |
|
53 |
Grid.Column="3" |
|
54 |
Margin="10,0,10,0" |
|
55 |
telerik:StyleManager.Theme="Office2016" |
|
56 |
Click="Reset_Click"> |
|
35 | 57 |
<StackPanel Orientation="Horizontal"> |
36 |
<Image Source="/KCOM;component/Resources/Images/MenuImage_new/diskette2.png" Width="16" Height="16"/> |
|
37 |
<TextBlock Text="Save" FontSize="14" Margin="5,0,0,0"/> |
|
58 |
<Image |
|
59 |
Width="16" |
|
60 |
Height="16" |
|
61 |
Source="/KCOM;component/Resources/Images/MenuImage_new/Rotate_Minus.png" /> |
|
62 |
<TextBlock |
|
63 |
Margin="5,0,0,0" |
|
64 |
FontSize="14" |
|
65 |
Text="Reset" /> |
|
66 |
</StackPanel> |
|
67 |
</telerik:RadButton> |
|
68 |
<telerik:RadButton |
|
69 |
Grid.Column="4" |
|
70 |
Margin="10,0,10,0" |
|
71 |
telerik:StyleManager.Theme="Office2016" |
|
72 |
Click="Save_Click"> |
|
73 |
<StackPanel Orientation="Horizontal"> |
|
74 |
<Image |
|
75 |
Width="16" |
|
76 |
Height="16" |
|
77 |
Source="/KCOM;component/Resources/Images/MenuImage_new/diskette2.png" /> |
|
78 |
<TextBlock |
|
79 |
Margin="5,0,0,0" |
|
80 |
FontSize="14" |
|
81 |
Text="Save" /> |
|
38 | 82 |
</StackPanel> |
39 | 83 |
</telerik:RadButton> |
40 | 84 |
</Grid> |
41 |
<Grid Grid.Row="1">
|
|
85 |
<Grid Grid.Row="1"> |
|
42 | 86 |
<Grid.RowDefinitions> |
43 |
<RowDefinition Height="9*"/> |
|
44 |
<RowDefinition Height="Auto"/> |
|
87 |
<RowDefinition Height="9*" />
|
|
88 |
<RowDefinition Height="Auto" />
|
|
45 | 89 |
</Grid.RowDefinitions> |
46 |
<TextBlock Text="Draws a signature." IsHitTestVisible="False" Grid.RowSpan="2" VerticalAlignment="Center" HorizontalAlignment="Center" FontStyle="Italic" FontSize="50" FontWeight="Bold" Foreground="#FFB2B2B2"/> |
|
47 |
<TextBlock Text="{Binding Text, ElementName=txtInput, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" x:Name="txtSignStr" IsHitTestVisible="False" Grid.RowSpan="2" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="150" Foreground="Black" FontFamily="/KCOM;component/Resources/#May Queen"/> |
|
48 |
<Canvas x:Name="editCanvas" Background="Transparent" Margin="5,5" Height="220" ClipToBounds="True"> |
|
49 |
<InkCanvas Grid.RowSpan="2" x:Name="SignCanvas" Height="220" VerticalAlignment="Stretch" Background="Transparent" SourceUpdated="SignCanvas_SourceUpdated" StrokeCollected="SignCanvas_StrokeCollected" Width="{Binding ActualWidth, ElementName=editCanvas, Mode=OneWay}"> |
|
90 |
<TextBlock |
|
91 |
Grid.RowSpan="2" |
|
92 |
HorizontalAlignment="Center" |
|
93 |
VerticalAlignment="Center" |
|
94 |
FontSize="50" |
|
95 |
FontStyle="Italic" |
|
96 |
FontWeight="Bold" |
|
97 |
Foreground="#FFB2B2B2" |
|
98 |
IsHitTestVisible="False" |
|
99 |
Text="Draws a signature." /> |
|
100 |
<TextBlock |
|
101 |
x:Name="txtSignStr" |
|
102 |
Grid.RowSpan="2" |
|
103 |
HorizontalAlignment="Center" |
|
104 |
VerticalAlignment="Center" |
|
105 |
FontFamily="/KCOM;component/Resources/#May Queen" |
|
106 |
FontSize="150" |
|
107 |
Foreground="Black" |
|
108 |
IsHitTestVisible="False" |
|
109 |
Text="{Binding Text, ElementName=txtInput, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /> |
|
110 |
<Canvas |
|
111 |
x:Name="editCanvas" |
|
112 |
Height="220" |
|
113 |
Margin="5,5" |
|
114 |
Background="Transparent" |
|
115 |
ClipToBounds="True"> |
|
116 |
<InkCanvas |
|
117 |
x:Name="SignCanvas" |
|
118 |
Grid.RowSpan="2" |
|
119 |
Width="{Binding ActualWidth, ElementName=editCanvas, Mode=OneWay}" |
|
120 |
Height="220" |
|
121 |
VerticalAlignment="Stretch" |
|
122 |
Background="Transparent" |
|
123 |
SourceUpdated="SignCanvas_SourceUpdated" |
|
124 |
StrokeCollected="SignCanvas_StrokeCollected"> |
|
50 | 125 |
<InkCanvas.DefaultDrawingAttributes> |
51 |
<DrawingAttributes Color="Black" Width="10" Height="10"/> |
|
126 |
<DrawingAttributes |
|
127 |
Width="10" |
|
128 |
Height="10" |
|
129 |
Color="Black" /> |
|
52 | 130 |
</InkCanvas.DefaultDrawingAttributes> |
53 | 131 |
</InkCanvas> |
54 | 132 |
</Canvas> |
55 |
<Rectangle Margin="10,10" Height="200" Stroke="#FF767676"/> |
|
133 |
<Rectangle |
|
134 |
Height="200" |
|
135 |
Margin="10,10" |
|
136 |
Stroke="#FF767676" /> |
|
56 | 137 |
<!--<Border Margin="10,10" Width="200" Height="100" BorderThickness="1" BorderBrush="#FF767676" VerticalAlignment="Top" HorizontalAlignment="Right"> |
57 | 138 |
<Image x:Name="preview" Stretch="Fill"/> |
58 | 139 |
</Border>--> |
내보내기 Unified diff