changed function node ui so that user is able to differentiate
Some checks failed
Build / build (push) Has been cancelled
Some checks failed
Build / build (push) Has been cancelled
This commit is contained in:
@@ -435,12 +435,29 @@
|
|||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
|
|
||||||
<DataTemplate DataType="{x:Type local:FunctionOperationViewModel}">
|
<DataTemplate DataType="{x:Type local:FunctionOperationViewModel}">
|
||||||
<nodify:Node Header="{Binding Title}"
|
<nodify:Node Input="{Binding Input}"
|
||||||
Input="{Binding Input}"
|
|
||||||
Output="{Binding Output}"
|
Output="{Binding Output}"
|
||||||
ToolTip="Double click to edit function"
|
ToolTip="Double click to edit function"
|
||||||
BorderBrush="#FF9800"
|
BorderBrush="#FF9800"
|
||||||
BorderThickness="2">
|
BorderThickness="2">
|
||||||
|
<nodify:Node.Header>
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<TextBlock Text="ƒ"
|
||||||
|
FontSize="16"
|
||||||
|
FontWeight="Bold"
|
||||||
|
Foreground="#FF9800"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Margin="0 0 6 0" />
|
||||||
|
<TextBlock Text="{Binding Title}"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
FontWeight="SemiBold" />
|
||||||
|
</StackPanel>
|
||||||
|
</nodify:Node.Header>
|
||||||
|
<TextBlock Text="⚡ Double-click to edit"
|
||||||
|
FontSize="10"
|
||||||
|
Foreground="#FF9800"
|
||||||
|
Opacity="0.8"
|
||||||
|
Margin="4 2" />
|
||||||
<nodify:Node.InputBindings>
|
<nodify:Node.InputBindings>
|
||||||
<MouseBinding Gesture="LeftDoubleClick"
|
<MouseBinding Gesture="LeftDoubleClick"
|
||||||
Command="{Binding DataContext.OpenCalculatorCommand, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
Command="{Binding DataContext.OpenCalculatorCommand, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||||
|
|||||||
Reference in New Issue
Block a user