port from perforce
This commit is contained in:
76
intromat/Intromat/Views/CodeGenPortView.xaml
Normal file
76
intromat/Intromat/Views/CodeGenPortView.xaml
Normal file
@@ -0,0 +1,76 @@
|
||||
<UserControl x:Class="Intromat.Views.CodeGenPortView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:views="clr-namespace:NodeNetwork.Views;assembly=NodeNetwork"
|
||||
xmlns:local1="clr-namespace:Intromat.Views"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="100" d:DesignWidth="100">
|
||||
<UserControl.Resources>
|
||||
<!-- ReSharper disable Xaml.RedundantResource -->
|
||||
<ControlTemplate x:Key="{x:Static local1:CodeGenPortView.ExecutionPortTemplateKey}" TargetType="views:PortView">
|
||||
<Viewbox StretchDirection="Both" Stretch="Uniform">
|
||||
<Grid Width="20" Height="20">
|
||||
<Path Fill="White" Data="M 0 0 L 8 0 L 18 10 L 8 20 L 0 20 Z" HorizontalAlignment="Center"/>
|
||||
</Grid>
|
||||
</Viewbox>
|
||||
</ControlTemplate>
|
||||
|
||||
<ControlTemplate x:Key="{x:Static local1:CodeGenPortView.IntegerPortTemplateKey}" TargetType="views:PortView">
|
||||
<Viewbox StretchDirection="Both" Stretch="Uniform">
|
||||
<Grid Width="20" Height="20">
|
||||
<Ellipse Fill="#7cb342" HorizontalAlignment="Left" VerticalAlignment="Center" Height="15" Width="15"/>
|
||||
<Path Fill="#7cb342" Data="M 0 0 L 4 4 L 0 8 Z" HorizontalAlignment="Right" VerticalAlignment="Center" Height="8" Width="4"/>
|
||||
</Grid>
|
||||
</Viewbox>
|
||||
</ControlTemplate>
|
||||
|
||||
<ControlTemplate x:Key="{x:Static local1:CodeGenPortView.FloatPortTemplateKey}" TargetType="views:PortView">
|
||||
<Viewbox StretchDirection="Both" Stretch="Uniform">
|
||||
<Grid Width="20" Height="20">
|
||||
<Ellipse Fill="#68c8ba" HorizontalAlignment="Left" VerticalAlignment="Center" Height="15" Width="15"/>
|
||||
<Path Fill="#68c8ba" Data="M 0 0 L 4 4 L 0 8 Z" HorizontalAlignment="Right" VerticalAlignment="Center" Height="8" Width="4"/>
|
||||
</Grid>
|
||||
</Viewbox>
|
||||
</ControlTemplate>
|
||||
|
||||
<ControlTemplate x:Key="{x:Static local1:CodeGenPortView.StringPortTemplateKey}" TargetType="views:PortView">
|
||||
<Viewbox StretchDirection="Both" Stretch="Uniform">
|
||||
<Grid Width="20" Height="20">
|
||||
<Ellipse Fill="#ba68c8" HorizontalAlignment="Left" VerticalAlignment="Center" Height="15" Width="15"/>
|
||||
<Path Fill="#ba68c8" Data="M 0 0 L 4 4 L 0 8 Z" HorizontalAlignment="Right" VerticalAlignment="Center" Height="8" Width="4"/>
|
||||
</Grid>
|
||||
</Viewbox>
|
||||
</ControlTemplate>
|
||||
|
||||
<ControlTemplate x:Key="{x:Static local1:CodeGenPortView.BooleanPortTemplateKey}" TargetType="views:PortView">
|
||||
<Viewbox StretchDirection="Both" Stretch="Uniform">
|
||||
<Grid Width="20" Height="20">
|
||||
<Path Fill="#808080" Data="M 0 0 L 15 0 L 15 15 L 0 15 Z" HorizontalAlignment="Left" VerticalAlignment="Center" Height="15" Width="15"/>
|
||||
<Path Fill="#808080" Data="M 0 0 L 4 4 L 0 8 Z" HorizontalAlignment="Right" VerticalAlignment="Center" Height="8" Width="4"/>
|
||||
</Grid>
|
||||
</Viewbox>
|
||||
</ControlTemplate>
|
||||
|
||||
<ControlTemplate x:Key="{x:Static local1:CodeGenPortView.TexturePortTemplateKey}" TargetType="views:PortView">
|
||||
<Viewbox StretchDirection="Both" Stretch="Uniform">
|
||||
<Grid Width="20" Height="20">
|
||||
<Ellipse Fill="#F0A040" HorizontalAlignment="Left" VerticalAlignment="Center" Height="15" Width="15"/>
|
||||
<Path Fill="#F0A040" Data="M 0 0 L 4 4 L 0 8 Z" HorizontalAlignment="Right" VerticalAlignment="Center" Height="8" Width="4"/>
|
||||
</Grid>
|
||||
</Viewbox>
|
||||
</ControlTemplate>
|
||||
|
||||
<ControlTemplate x:Key="{x:Static local1:CodeGenPortView.MeshPortTemplateKey}" TargetType="views:PortView">
|
||||
<Viewbox StretchDirection="Both" Stretch="Uniform">
|
||||
<Grid Width="20" Height="20">
|
||||
<Ellipse Fill="#40A0F0" HorizontalAlignment="Left" VerticalAlignment="Center" Height="15" Width="15"/>
|
||||
<Path Fill="#40A0F0" Data="M 0 0 L 4 4 L 0 8 Z" HorizontalAlignment="Right" VerticalAlignment="Center" Height="8" Width="4"/>
|
||||
</Grid>
|
||||
</Viewbox>
|
||||
</ControlTemplate>
|
||||
<!-- ReSharper enable Xaml.RedundantResource -->
|
||||
</UserControl.Resources>
|
||||
<views:PortView x:Name="PortView" RenderTransformOrigin="0.5,0.5" />
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user