Compare commits
No commits in common. 'bb392ba72dcc81f620c76b3b0d302d4192d1718f' and '9b644359061151911bcbd97bcd0b937fe9c461cd' have entirely different histories.
bb392ba72d
...
9b64435906
@ -1,20 +1,18 @@
|
|||||||
<UserControl x:Class="NodeEditor.Controls.EditorCanvas"
|
<UserControl x:Class="NodeEditor.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 Name="map" Source="../main-map.png"></Image>
|
||||||
<controls:Node />
|
|
||||||
</Canvas>
|
</Canvas>
|
||||||
<TextBox Name="test" />
|
<TextBox Name="test"></TextBox>
|
||||||
</Canvas>
|
</Canvas>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
|
|||||||
@ -1,36 +1,12 @@
|
|||||||
<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="7" Width="7"
|
|
||||||
HorizontalAlignment="Left"
|
</Grid>
|
||||||
VerticalAlignment="Top">
|
</UserControl>
|
||||||
<Button.Template>
|
|
||||||
<ControlTemplate TargetType="Button">
|
|
||||||
<Grid>
|
|
||||||
<Ellipse Stroke="Black"
|
|
||||||
StrokeThickness="0">
|
|
||||||
<Ellipse.Fill>
|
|
||||||
<RadialGradientBrush>
|
|
||||||
<GradientStop Offset="0" Color="Red"/>
|
|
||||||
<GradientStop Offset="1" Color="Red"/>
|
|
||||||
<GradientStop Offset="1" Color="DarkRed"/>
|
|
||||||
<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