-
Notifications
You must be signed in to change notification settings - Fork 809
/
Generic.xaml
26 lines (26 loc) · 1.03 KB
/
Generic.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
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:ScottPlot.WPF"
xmlns:skiaPreview="clr-namespace:SkiaSharp.Views.WPF"
xmlns:skia="clr-namespace:SkiaSharp.Views.WPF;assembly=SkiaSharp.Views.WPF"
>
<Style TargetType="{x:Type local:WpfPlotGL}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type local:WpfPlotGL}">
<skiaPreview:SKGLElement x:Name="PART_SKElement" />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="{x:Type local:WpfPlot}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type local:WpfPlot}">
<skia:SKElement x:Name="PART_SKElement" />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>