Files
bluflame/64kode/src/Tool/Layout/Views/Resources.xaml
2026-04-19 00:41:25 +02:00

30 lines
1.6 KiB
XML

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<ControlTemplate x:Key="HorizontalNodeView">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="{Binding FirstWeight, Mode=TwoWay}" />
<ColumnDefinition Width="5" />
<ColumnDefinition Width="{Binding SecondWeight, Mode=TwoWay}" />
</Grid.ColumnDefinitions>
<ContentPresenter Grid.Column="0" Content="{Binding FirstChild}" />
<GridSplitter Grid.Column="1" ResizeBehavior="PreviousAndNext" ResizeDirection="Columns" Width="5" VerticalAlignment="Stretch" Background="{DynamicResource GeneralBackground}" />
<ContentPresenter Grid.Column="2" Content="{Binding SecondChild}" />
</Grid>
</ControlTemplate>
<ControlTemplate x:Key="VerticalNodeView">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="{Binding FirstWeight, Mode=TwoWay}" />
<RowDefinition Height="5" />
<RowDefinition Height="{Binding SecondWeight, Mode=TwoWay}" />
</Grid.RowDefinitions>
<ContentPresenter Grid.Row="0" Content="{Binding FirstChild}" />
<GridSplitter Grid.Row="1" ResizeBehavior="PreviousAndNext" ResizeDirection="Rows" Height="5" HorizontalAlignment="Stretch" Background="{DynamicResource GeneralBackground}" />
<ContentPresenter Grid.Row="2" Content="{Binding SecondChild}" />
</Grid>
</ControlTemplate>
</ResourceDictionary>