|
@@ -8,25 +8,22 @@
|
|
<ControlTemplate>
|
|
<ControlTemplate>
|
|
<Grid Margin="-5, 2" ColumnDefinitions="15, *, 15" MinHeight="18">
|
|
<Grid Margin="-5, 2" ColumnDefinitions="15, *, 15" MinHeight="18">
|
|
<properties:NodeSocket Name="PART_InputSocket"
|
|
<properties:NodeSocket Name="PART_InputSocket"
|
|
- Node="{Binding DataContext.Node, RelativeSource={RelativeSource TemplatedParent}}"
|
|
|
|
- Label="{Binding DataContext.DisplayName, RelativeSource={RelativeSource TemplatedParent}}"
|
|
|
|
ClipToBounds="False"
|
|
ClipToBounds="False"
|
|
|
|
+ Node="{Binding DataContext.Node, RelativeSource={RelativeSource TemplatedParent}}"
|
|
SocketBrush="{Binding DataContext.SocketBrush, RelativeSource={RelativeSource TemplatedParent}}"
|
|
SocketBrush="{Binding DataContext.SocketBrush, RelativeSource={RelativeSource TemplatedParent}}"
|
|
- IsFunc="{Binding DataContext.IsFunc, RelativeSource={RelativeSource TemplatedParent}}"
|
|
|
|
- IsVisible="{Binding DataContext.IsInput,
|
|
|
|
- RelativeSource={RelativeSource TemplatedParent}}">
|
|
|
|
|
|
+ IsVisible="{Binding DataContext.IsInput, RelativeSource={RelativeSource TemplatedParent}}"
|
|
|
|
+ IsFunc="{Binding DataContext.IsFunc, RelativeSource={RelativeSource TemplatedParent}}">
|
|
<properties:NodeSocket.IsInput>
|
|
<properties:NodeSocket.IsInput>
|
|
<x:Boolean>True</x:Boolean>
|
|
<x:Boolean>True</x:Boolean>
|
|
</properties:NodeSocket.IsInput>
|
|
</properties:NodeSocket.IsInput>
|
|
</properties:NodeSocket>
|
|
</properties:NodeSocket>
|
|
- <ContentPresenter Grid.Column="1" Grid.Row="0" Grid.RowSpan="2" VerticalAlignment="Top" Content="{TemplateBinding Content}" />
|
|
|
|
- <properties:NodeSocket Grid.Column="2" Name="PART_OutputSocket"
|
|
|
|
- Label="{Binding DataContext.DisplayName, RelativeSource={RelativeSource TemplatedParent}}"
|
|
|
|
- HorizontalAlignment="Right"
|
|
|
|
- ClipToBounds="False"
|
|
|
|
- IsFunc="{Binding DataContext.IsFunc, RelativeSource={RelativeSource TemplatedParent}}"
|
|
|
|
|
|
+ <ContentPresenter Grid.Column="1" VerticalAlignment="Top" Content="{TemplateBinding Content}" />
|
|
|
|
+ <properties:NodeSocket Name="PART_OutputSocket"
|
|
|
|
+ ClipToBounds="False" HorizontalAlignment="Right" Grid.Column="2"
|
|
|
|
+ Node="{Binding DataContext.Node, RelativeSource={RelativeSource TemplatedParent}}"
|
|
|
|
+ SocketBrush="{Binding DataContext.SocketBrush, RelativeSource={RelativeSource TemplatedParent}}"
|
|
IsVisible="{Binding !DataContext.IsInput,RelativeSource={RelativeSource TemplatedParent}}"
|
|
IsVisible="{Binding !DataContext.IsInput,RelativeSource={RelativeSource TemplatedParent}}"
|
|
- SocketBrush="{Binding DataContext.SocketBrush, RelativeSource={RelativeSource TemplatedParent}}">
|
|
|
|
|
|
+ IsFunc="{Binding DataContext.IsFunc, RelativeSource={RelativeSource TemplatedParent}}">
|
|
<properties:NodeSocket.IsInput>
|
|
<properties:NodeSocket.IsInput>
|
|
<x:Boolean>False</x:Boolean>
|
|
<x:Boolean>False</x:Boolean>
|
|
</properties:NodeSocket.IsInput>
|
|
</properties:NodeSocket.IsInput>
|