markus / KCOM / Controls / SignManager.xaml @ 99b9f32a
이력 | 보기 | 이력해설 | 다운로드 (3.95 KB)
1 | d21e9c15 | taeseongkim | <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 | 74abcf6f | taeseongkim | mc:Ignorable="d" Height="350" Width="1000"> |
9 | d21e9c15 | taeseongkim | <UserControl.Resources>
|
10 | <FontFamily x:Key="MayQueen">pack://application:,,,/Resources/#May Queen</FontFamily> |
||
11 | </UserControl.Resources>
|
||
12 | <Grid>
|
||
13 | <Grid.RowDefinitions>
|
||
14 | <RowDefinition Height="Auto"/> |
||
15 | <RowDefinition Height="*"/> |
||
16 | </Grid.RowDefinitions>
|
||
17 | <Grid Margin="10"> |
||
18 | <Grid.ColumnDefinitions>
|
||
19 | <ColumnDefinition Width="Auto"/> |
||
20 | <ColumnDefinition/> |
||
21 | <ColumnDefinition Width="Auto"/> |
||
22 | <ColumnDefinition Width="Auto"/> |
||
23 | </Grid.ColumnDefinitions>
|
||
24 | 74abcf6f | taeseongkim | <StackPanel Orientation="Horizontal" Visibility="Collapsed"> |
25 | d21e9c15 | taeseongkim | <TextBlock Text="Input Signature as Text : " FontSize="14"/> |
26 | <telerik:RadWatermarkTextBox x:Name="txtInput" WatermarkContent="Input Text" Width="150"/> |
||
27 | 74abcf6f | taeseongkim | </StackPanel>
|
28 | d21e9c15 | taeseongkim | <telerik:RadButton Margin="10,0,10,0" Grid.Column="2" Click="Reset_Click" telerik:StyleManager.Theme="Office2016"> |
29 | <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"/> |
||
32 | </StackPanel>
|
||
33 | </telerik:RadButton>
|
||
34 | <telerik:RadButton Margin="10,0,10,0" Grid.Column="3" Click="Save_Click" telerik:StyleManager.Theme="Office2016"> |
||
35 | <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"/> |
||
38 | </StackPanel>
|
||
39 | </telerik:RadButton>
|
||
40 | </Grid>
|
||
41 | <Grid Grid.Row="1"> |
||
42 | <Grid.RowDefinitions>
|
||
43 | <RowDefinition Height="9*"/> |
||
44 | <RowDefinition Height="Auto"/> |
||
45 | </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 | 74abcf6f | taeseongkim | <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}"> |
||
50 | <InkCanvas.DefaultDrawingAttributes>
|
||
51 | <DrawingAttributes Color="Black" Width="10" Height="10"/> |
||
52 | </InkCanvas.DefaultDrawingAttributes>
|
||
53 | </InkCanvas>
|
||
54 | </Canvas>
|
||
55 | d21e9c15 | taeseongkim | <Rectangle Margin="10,10" Height="200" Stroke="#FF767676"/> |
56 | 74abcf6f | taeseongkim | <!--<Border Margin="10,10" Width="200" Height="100" BorderThickness="1" BorderBrush="#FF767676" VerticalAlignment="Top" HorizontalAlignment="Right">
|
57 | <Image x:Name="preview" Stretch="Fill"/>
|
||
58 | </Border>-->
|
||
59 | d21e9c15 | taeseongkim | </Grid>
|
60 | </Grid>
|
||
61 | </UserControl> |