diff options
Diffstat (limited to 'Samples/dockableWindows/ui/TabView.template')
| -rw-r--r-- | Samples/dockableWindows/ui/TabView.template | 32 |
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> + |