aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/dockableWindows/ui/TabView.template
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-04-11 15:25:22 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-04-11 15:25:22 +0200
commit8d1522d4cb7ff6db0a9f0c7a61dd75faa887fdd7 (patch)
tree148186f17a068129ead511363616c02727d73ab6 /Samples/dockableWindows/ui/TabView.template
parentaf75526e0ba507bad1b32963437491a4f752330e (diff)
debug docking windows
Diffstat (limited to 'Samples/dockableWindows/ui/TabView.template')
-rw-r--r--Samples/dockableWindows/ui/TabView.template32
1 files changed, 32 insertions, 0 deletions
diff --git a/Samples/dockableWindows/ui/TabView.template b/Samples/dockableWindows/ui/TabView.template
new file mode 100644
index 00000000..9490aa7f
--- /dev/null
+++ b/Samples/dockableWindows/ui/TabView.template
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+<VerticalStack Spacing="0" Background="{./Background}">
+ <ListBox Data="{./Items}" Fit="true" HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{²./SelectedItem}">
+ <Template>
+ <HorizontalStack Name="ItemsContainer" />
+ </Template>
+ <ItemTemplate>
+ <!--<ListItem Fit="true" Background="Transparent" IsSelected="{IsVisible}"
+ Selected="{.DataSource.Visible='true'};{Background=.DataSource.Background}"
+ Unselected="{.DataSource.Visible='false'};{Background=Transparent}">
+ <Label Text="{Caption}" Margin="5" />
+ </ListItem>-->
+ <ListItem Fit="true" Background="Transparent" IsSelected="{IsVisible}"
+ Selected="{.DataSource.Visible='true'};{Background=.DataSource.Background}"
+ Unselected="{.DataSource.Visible='false'};{Background=Transparent}">
+ <HorizontalStack Margin="2" >
+ <Label Text="{Caption}" Margin="3" />
+ <Border CornerRadius="6" BorderWidth="1" Foreground="Transparent" Height="10" Width="10" VerticalAlignment="Center"
+ MouseEnter="{Foreground=White}" MouseLeave="{Foreground=Transparent}">
+ <Image Focusable="true" Name="Image" Margin="0" Width="Stretched" Height="Stretched" Path="#Crow.Icons.exit2.svg"
+ MouseClick="onQuitPress"/>
+ </Border>
+ </HorizontalStack>
+ </ListItem>
+ </ItemTemplate>
+ </ListBox>
+ <VerticalStack>
+ <Group Name="ItemsContainer" />
+ <Label DataSource="{../../../SelectedItem}" Text="{Caption}" Background="White" Foreground="Black"/>
+ </VerticalStack>
+</VerticalStack>
+