Skip to content

Instantly share code, notes, and snippets.

@lostmsu
Created February 3, 2022 06:27
Show Gist options
  • Save lostmsu/d59e52cab69fb96510772e1f34bcb671 to your computer and use it in GitHub Desktop.
Save lostmsu/d59e52cab69fb96510772e1f34bcb671 to your computer and use it in GitHub Desktop.
Style Stack tabs
<Grid
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:zones="clr-namespace:LostTech.Stack.Zones;assembly=Stack"
zones:Layout.Version="2"
mc:Ignorable="d"
Width="1024" Height="576"
d:DesignWidth="1024"
d:DesignHeight="576"
x:Name="Root"
>
<Grid.Resources>
<ResourceDictionary>
<Style TargetType="zones:WindowButton">
<Setter Property="Width" Value="450"/>
</Style>
</ResourceDictionary>
</Grid.Resources>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<zones:WindowTabs ItemsSource="{Binding Windows, Source={x:Reference Main}}"/>
<StackPanel HorizontalAlignment="Center">
<zones:WindowButton Background="Red" />
</StackPanel>
<zones:Zone x:Name="Main" Grid.Row="1" />
</Grid>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment