Created
January 24, 2022 18:48
-
-
Save lostmsu/a5598df8f13209cfff1c7838b79f7db1 to your computer and use it in GitHub Desktop.
Sample screen layout with zones directly capturing certain windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Grid | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:filters="clr-namespace:LostTech.Stack.Extensibility.Filters;assembly=LostTech.Stack.Extensibility" | |
xmlns:stack="https://schemas.losttech.software/stack/2022/xaml/all" | |
stack:Layout.Version="2" | |
> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="Auto"/> | |
<RowDefinition Height="*"/> | |
<RowDefinition Height="Auto"/> | |
<RowDefinition Height="550"/> | |
</Grid.RowDefinitions> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="Auto"/> | |
<ColumnDefinition Width="*"/> | |
</Grid.ColumnDefinitions> | |
<!--<TextBlock VerticalAlignment="Top" HorizontalAlignment="Left">Top Left</TextBlock> | |
<TextBlock VerticalAlignment="Bottom" HorizontalAlignment="Right">Bottom Right</TextBlock>--> | |
<stack:WindowTabs ItemsSource="{Binding Windows, Source={x:Reference Main}}" Grid.ColumnSpan="2"/> | |
<stack:Zone x:Name="Main" Grid.Row="1" Grid.ColumnSpan="2"/> | |
<!-- <stack:WindowTabs ItemsSource="{Binding Windows, Source={x:Reference UserLists}}" Grid.Row="2"/> --> | |
<stack:Zone x:Name="UserLists" Grid.Row="3" MinWidth="320"> | |
<stack:AutoCapture.Windows> | |
<stack:CaptureFilter> | |
<filters:And> | |
<filters:And.Filters> | |
<filters:ProcessName Value="steam"/> | |
<filters:Title Value="Friends List"/> | |
</filters:And.Filters> | |
</filters:And> | |
</stack:CaptureFilter> | |
</stack:AutoCapture.Windows> | |
<stack:Zone.Layout> | |
<ItemsPanelTemplate> | |
<StackPanel Orientation="Horizontal"> | |
<StackPanel.Resources> | |
<Style TargetType="{x:Type stack:WindowHost}"> | |
<Setter Property="Width" Value="320"/> | |
</Style> | |
</StackPanel.Resources> | |
</StackPanel> | |
</ItemsPanelTemplate> | |
</stack:Zone.Layout> | |
</stack:Zone> | |
<stack:Zone Grid.Row="2" Grid.RowSpan="2" Grid.Column="1"/> | |
</Grid> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment