screwed around with optimizations and styles
parent
9b64435906
commit
a9918c479a
@ -1,18 +1,20 @@
|
|||||||
<UserControl x:Class="NodeEditor.EditorCanvas"
|
<UserControl x:Class="NodeEditor.Controls.EditorCanvas"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:controls="clr-namespace:NodeEditor.Controls"
|
||||||
xmlns:local="clr-namespace:NodeEditor"
|
xmlns:local="clr-namespace:NodeEditor"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
d:DesignHeight="450" d:DesignWidth="800">
|
d:DesignHeight="450" d:DesignWidth="800">
|
||||||
<Canvas Name="m_EditorCanvas" Background="Green">
|
<Canvas Name="m_EditorCanvas" Background="Green">
|
||||||
<Canvas Name="mapCanvas" Background="Blue">
|
<Canvas Name="mapCanvas" Background="Blue">
|
||||||
<Canvas.RenderTransform>
|
<Canvas.RenderTransform>
|
||||||
<MatrixTransform/>
|
<MatrixTransform />
|
||||||
</Canvas.RenderTransform>
|
</Canvas.RenderTransform>
|
||||||
<Image Name="map" Source="../main-map.png"></Image>
|
<Image Name="map" Source="../main-map.png" />
|
||||||
|
<controls:Node />
|
||||||
</Canvas>
|
</Canvas>
|
||||||
<TextBox Name="test"></TextBox>
|
<TextBox Name="test" />
|
||||||
</Canvas>
|
</Canvas>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
@ -1,12 +1,36 @@
|
|||||||
<UserControl x:Class="NodeEditor.Controls.Node"
|
<UserControl x:Class="NodeEditor.Controls.Node"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:local="clr-namespace:NodeEditor.Controls"
|
xmlns:local="clr-namespace:NodeEditor.Controls"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
d:DesignHeight="450" d:DesignWidth="800">
|
d:DesignHeight="450" d:DesignWidth="800">
|
||||||
<Grid>
|
|
||||||
|
<Button Height="10" Width="10"
|
||||||
</Grid>
|
HorizontalAlignment="Left"
|
||||||
</UserControl>
|
VerticalAlignment="Top">
|
||||||
|
<Button.Template>
|
||||||
|
<ControlTemplate TargetType="Button">
|
||||||
|
<Grid>
|
||||||
|
<Ellipse Stroke="Black"
|
||||||
|
StrokeThickness="0">
|
||||||
|
<Ellipse.Fill>
|
||||||
|
<RadialGradientBrush>
|
||||||
|
<GradientStop Offset="0" Color="Gray"/>
|
||||||
|
<GradientStop Offset="1" Color="Gray"/>
|
||||||
|
<GradientStop Offset="1" Color="DarkGray"/>
|
||||||
|
<RadialGradientBrush.Transform>
|
||||||
|
<TransformGroup>
|
||||||
|
<ScaleTransform ScaleY="0.65"/>
|
||||||
|
</TransformGroup>
|
||||||
|
</RadialGradientBrush.Transform>
|
||||||
|
</RadialGradientBrush>
|
||||||
|
</Ellipse.Fill>
|
||||||
|
</Ellipse>
|
||||||
|
</Grid>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Button.Template>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
</UserControl>
|
||||||
Loading…
Reference in New Issue