blob: 1d15743172263a5fe2b9e9967114ba6031a150a6 (
plain)
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
|
<?xml version="1.0"?>
<Menu Data="{AllCommands}">
<ItemTemplate DataType="Crow.Command" Path="Interfaces/menuCommand.itmp"/>
<ItemTemplate DataType="Crow.CommandGroup" >
<MenuItem Data="{Commands}" Width="Fit" IsEnabled="{CanExecute}">
<Template>
<Popper PopDirection="Bottom" Caption="{Caption}" Width="Fit"
MouseEnter="{Background=${ControlHighlight}}"
MouseLeave="{Background=Transparent}">
<Template>
<Label Text="{./Caption}" Width="Stretched" Height="Fit" Margin="3"
Background="{./Background}"/>
</Template>
<VerticalStack Name="ItemsContainer" Fit="true" Background="Jet"/>
</Popper>
</Template>
<ItemTemplate DataType="Crow.Command" Path="Interfaces/menuCommand.itmp"/>
<ItemTemplate DataType="Crow.CommandGroup" >
<MenuItem Data="{Commands}" Width="Stretched" IsEnabled="{CanExecute}">
<Template>
<Popper PopDirection="Right" Caption="{Caption}"
MouseEnter="{Background=${ControlHighlight}}"
MouseLeave="{Background=Transparent}">
<Template>
<Label Text="{./Caption}" Width="Stretched" Height="Stretched" Margin="3"
Background="{./Background}"/>
</Template>
<Border Foreground="DimGrey" Width="{../PopWidth}" Height="{../PopHeight}" Background="DarkGrey">
<VerticalStack Name="ItemsContainer"/>
</Border>
</Popper>
</Template>
<ItemTemplate DataType="Crow.Command" Path="Interfaces/menuCommand.itmp"/>
</MenuItem>
</ItemTemplate>
</MenuItem>
</ItemTemplate>
</Menu>
|