/
Note.xaml
39 lines (39 loc) · 2.42 KB
/
Note.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<s:ScatterViewItem
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:s="http://schemas.microsoft.com/surface/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:Custom="http://schemas.microsoft.com/surface/2008"
mc:Ignorable="d"
x:Class="ActivityDesk.Note"
x:Name="UserControl">
<s:ScatterViewItem.Resources>
<ControlTemplate x:Key="Floating" >
<Grid x:Name="LayoutRoot" Background="#E6171616" Height="auto" Width="auto">
<Custom:SurfaceInkCanvas x:Name="Painter" Margin="20,60,20,60" Background="White"/>
<Custom:SurfaceButton Content="Reset" HorizontalAlignment="Left" Margin="8,8,0,0" VerticalAlignment="Top" Width="104.827" Style="{DynamicResource Invert}" x:Name="btnReset" Click="btnReset_Click" />
<Custom:SurfaceButton Content="Save" HorizontalAlignment="Left" Margin="126,8,0,0" VerticalAlignment="Top" Width="104.827" x:Name="btnSave" Click="btnSave_Click" />
<Custom:SurfaceButton Content="Close" HorizontalAlignment="Right" Margin="0,8,8,0" VerticalAlignment="Top" Width="104.827" x:Name="btnClose" PreviewTouchDown="btnClose_PreviewTouchDown" />
</Grid>
</ControlTemplate>
<ControlTemplate x:Key="Docked">
<Grid x:Name="LayoutRoot" Height="150" Width="150">
<Border x:Name="btnBody" BorderBrush="Black" BorderThickness="15" Margin="0,0,0,0" Background="Yellow" CornerRadius="10">
<Label x:Name="lblName" Content="{Binding Name}" RenderTransformOrigin="0.5,0.5" Foreground="White"
Background="#00000000" FontSize="18.667" FontWeight="Bold"
d:LayoutOverrides="Height" HorizontalAlignment="Center">
<Label.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform Angle="0.033"/>
<TranslateTransform/>
</TransformGroup>
</Label.RenderTransform>
</Label>
</Border>
</Grid>
</ControlTemplate>
</s:ScatterViewItem.Resources>
</s:ScatterViewItem>