markus / KCOM / Controls / SignManager.xaml @ ce54afaf
이력 | 보기 | 이력해설 | 다운로드 (6.35 KB)
1 | d21e9c15 | taeseongkim | <UserControl
|
---|---|---|---|
2 | a197bf6f | taeseongkim | 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"> |
||
13 | d21e9c15 | taeseongkim | <UserControl.Resources>
|
14 | <FontFamily x:Key="MayQueen">pack://application:,,,/Resources/#May Queen</FontFamily> |
||
15 | </UserControl.Resources>
|
||
16 | <Grid>
|
||
17 | <Grid.RowDefinitions>
|
||
18 | a197bf6f | taeseongkim | <RowDefinition Height="Auto" /> |
19 | <RowDefinition Height="*" /> |
||
20 | d21e9c15 | taeseongkim | </Grid.RowDefinitions>
|
21 | <Grid Margin="10"> |
||
22 | <Grid.ColumnDefinitions>
|
||
23 | a197bf6f | taeseongkim | <ColumnDefinition Width="Auto" /> |
24 | <ColumnDefinition /> |
||
25 | <ColumnDefinition Width="Auto" /> |
||
26 | <ColumnDefinition Width="Auto" /> |
||
27 | <ColumnDefinition Width="Auto" /> |
||
28 | d21e9c15 | taeseongkim | </Grid.ColumnDefinitions>
|
29 | 74abcf6f | taeseongkim | <StackPanel Orientation="Horizontal" Visibility="Collapsed"> |
30 | a197bf6f | taeseongkim | <TextBlock FontSize="14" Text="Input Signature as Text : " /> |
31 | <telerik:RadWatermarkTextBox
|
||
32 | x:Name="txtInput" |
||
33 | Width="150" |
||
34 | WatermarkContent="Input Text" /> |
||
35 | 74abcf6f | taeseongkim | </StackPanel>
|
36 | a197bf6f | taeseongkim | <telerik:RadButton
|
37 | Grid.Column="2" |
||
38 | Margin="10,0,10,0" |
||
39 | telerik:StyleManager.Theme="Office2016" |
||
40 | Click="OpenImage_Click"> |
||
41 | d21e9c15 | taeseongkim | <StackPanel Orientation="Horizontal"> |
42 | a197bf6f | taeseongkim | <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" /> |
||
50 | d21e9c15 | taeseongkim | </StackPanel>
|
51 | </telerik:RadButton>
|
||
52 | a197bf6f | taeseongkim | <telerik:RadButton
|
53 | Grid.Column="3" |
||
54 | Margin="10,0,10,0" |
||
55 | telerik:StyleManager.Theme="Office2016" |
||
56 | Click="Reset_Click"> |
||
57 | d21e9c15 | taeseongkim | <StackPanel Orientation="Horizontal"> |
58 | a197bf6f | taeseongkim | <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" /> |
||
82 | d21e9c15 | taeseongkim | </StackPanel>
|
83 | </telerik:RadButton>
|
||
84 | </Grid>
|
||
85 | a197bf6f | taeseongkim | <Grid Grid.Row="1"> |
86 | d21e9c15 | taeseongkim | <Grid.RowDefinitions>
|
87 | a197bf6f | taeseongkim | <RowDefinition Height="9*" /> |
88 | <RowDefinition Height="Auto" /> |
||
89 | d21e9c15 | taeseongkim | </Grid.RowDefinitions>
|
90 | a197bf6f | taeseongkim | <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"> |
||
125 | 74abcf6f | taeseongkim | <InkCanvas.DefaultDrawingAttributes>
|
126 | a197bf6f | taeseongkim | <DrawingAttributes
|
127 | Width="10" |
||
128 | Height="10" |
||
129 | Color="Black" /> |
||
130 | 74abcf6f | taeseongkim | </InkCanvas.DefaultDrawingAttributes>
|
131 | </InkCanvas>
|
||
132 | </Canvas>
|
||
133 | a197bf6f | taeseongkim | <Rectangle
|
134 | Height="200" |
||
135 | Margin="10,10" |
||
136 | Stroke="#FF767676" /> |
||
137 | 74abcf6f | taeseongkim | <!--<Border Margin="10,10" Width="200" Height="100" BorderThickness="1" BorderBrush="#FF767676" VerticalAlignment="Top" HorizontalAlignment="Right">
|
138 | <Image x:Name="preview" Stretch="Fill"/>
|
||
139 | </Border>-->
|
||
140 | d21e9c15 | taeseongkim | </Grid>
|
141 | ce54afaf | taeseongkim | <Grid
|
142 | x:Name="panelProgress" |
||
143 | Grid.RowSpan="3" |
||
144 | Background="#7F808080" |
||
145 | Visibility="Collapsed"> |
||
146 | <StackPanel VerticalAlignment="Center"> |
||
147 | <ProgressBar
|
||
148 | x:Name="progress" |
||
149 | Width="400" |
||
150 | Height="30" /> |
||
151 | <TextBlock
|
||
152 | HorizontalAlignment="Center" |
||
153 | FontStyle="Italic" |
||
154 | FontWeight="Bold" |
||
155 | Foreground="Black" |
||
156 | Text="Waiting...." /> |
||
157 | </StackPanel>
|
||
158 | </Grid>
|
||
159 | d21e9c15 | taeseongkim | </Grid>
|
160 | </UserControl> |