netpoet coop and 64kode
This commit is contained in:
30
64kode/src/Tool/Layout/Views/Resources.xaml
Normal file
30
64kode/src/Tool/Layout/Views/Resources.xaml
Normal file
@@ -0,0 +1,30 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user