-
Notifications
You must be signed in to change notification settings - Fork 0
/
MyTemplateResourceDictionary.xaml
46 lines (28 loc) · 1.18 KB
/
MyTemplateResourceDictionary.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
40
41
42
43
44
45
46
<?xml version="1.0" encoding="utf-8"?>
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:ContextFlyoutRepro"
x:Class="ContextFlyoutRepro.MyTemplateResourceDictionary">
<DataTemplate x:DataType="local:MyClass"
x:Key="MyTemplateDataTemplate">
<StackPanel Background="Black"
Height="400"
Width="400">
<Button Click="{x:Bind OpenWindow}"
Content="Click to open me on another window"/>
<Button Content="Left mouse button for Flyout. Right mouse button for ContextFlyout">
<Button.Flyout>
<Flyout>
<TextBlock Text="This opens normally"/>
</Flyout>
</Button.Flyout>
<Button.ContextFlyout>
<Flyout>
<TextBlock Text="Can you see me?"/>
</Flyout>
</Button.ContextFlyout>
</Button>
</StackPanel>
</DataTemplate>
</ResourceDictionary>