forked from mono/SkiaSharp.Extended
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMainPage.xaml
35 lines (34 loc) · 1.33 KB
/
MainPage.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
<Page
x:Class="SkiaSharpUnoDemo.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:SkiaSharpUnoDemo"
xmlns:views="using:SkiaSharp.Views.UWP"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Pivot>
<PivotItem Header="Shapes">
<views:SKXamlCanvas PaintSurface="OnPaintingShapes" />
</PivotItem>
<PivotItem Header="Interpolation">
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Slider Grid.Row="0"
Minimum="0"
Maximum="100"
Value="{x:Bind Interpolation, Mode=TwoWay}" />
<Button Grid.Row="0"
Content="Toggle Animation"
Click="OnAnimateClicked" />
<views:SKXamlCanvas Grid.Row="1"
x:Name="interpolationCanvas"
PaintSurface="OnPaintingInterpolation" />
</Grid>
</PivotItem>
</Pivot>
</Page>