-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathViewC.axaml
More file actions
40 lines (40 loc) · 1.67 KB
/
ViewC.axaml
File metadata and controls
40 lines (40 loc) · 1.67 KB
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
<UserControl
x:Class="Lemon.ModuleNavigation.Sample.ModuleCs.ViewC"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:lm="https://github.com/NeverMorewd/Lemon.ModuleNavigation"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
d:DesignHeight="450"
d:DesignWidth="800"
mc:Ignorable="d">
<StackPanel Orientation="Vertical" Spacing="10">
<TextBlock Text="{Binding Greeting}" />
<Button
Command="{Binding NavigateCommand}"
CommandParameter="ModuleA"
Content="ToModuleA" />
<Button
Command="{Binding NavigateCommand}"
CommandParameter="ModuleB"
Content="ToModuleB" />
<TabControl lm:NavigationExtension.ModuleContainerName="tabcontrol">
<TabControl.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" Spacing="2">
<TextBlock Text="{Binding Alias}" />
<Button
Width="20"
Height="20"
Padding="-1,0,0,0"
HorizontalContentAlignment="Center"
VerticalContentAlignment="Center"
lm:NavigationExtension.CanUnload="{Binding CanUnload}"
Content="X"
FontSize="11" />
</StackPanel>
</DataTemplate>
</TabControl.ItemTemplate>
</TabControl>
</StackPanel>
</UserControl>