aboutsummaryrefslogtreecommitdiffstats
path: root/support/hololens/ServoApp/Themes
diff options
context:
space:
mode:
authorPaul Rouget <me@paulrouget.com>2019-08-06 05:02:48 +0200
committerPaul Rouget <me@paulrouget.com>2019-08-19 07:12:16 +0200
commit663ec48e00636ffaf6cb39054c3cfc5580f569eb (patch)
treefaf47840e877bb5b5cf88ec9b021fe83b8ef329b /support/hololens/ServoApp/Themes
parent3658a8cc591ef4ca827ce1cda9565a1bca7d7b3c (diff)
downloadservo-663ec48e00636ffaf6cb39054c3cfc5580f569eb.tar.gz
servo-663ec48e00636ffaf6cb39054c3cfc5580f569eb.zip
Move Servo into a Control Template
Diffstat (limited to 'support/hololens/ServoApp/Themes')
-rw-r--r--support/hololens/ServoApp/Themes/Generic.xaml19
1 files changed, 19 insertions, 0 deletions
diff --git a/support/hololens/ServoApp/Themes/Generic.xaml b/support/hololens/ServoApp/Themes/Generic.xaml
new file mode 100644
index 00000000000..c4969c9fd11
--- /dev/null
+++ b/support/hololens/ServoApp/Themes/Generic.xaml
@@ -0,0 +1,19 @@
+<!-- \Themes\Generic.xaml -->
+<ResourceDictionary
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:local="using:ServoApp">
+
+ <Style TargetType="local:ServoControl" >
+ <Setter Property="Template">
+ <Setter.Value>
+ <ControlTemplate TargetType="local:ServoControl">
+ <Grid>
+ <SwapChainPanel x:Name="swapChainPanel" MinHeight="200" MinWidth="200" ManipulationMode="All">
+ </SwapChainPanel>
+ </Grid>
+ </ControlTemplate>
+ </Setter.Value>
+ </Setter>
+ </Style>
+</ResourceDictionary>