Hi bjornidar,
A few things:
1) If you grab and rotate the image, for whatever reason, iX Developer will update the Xaml and allow you to move/resize/etc in the Layout editor.
2) iX Developer's Layout editor does not support all the options that you may want to do to an Xaml object. That means that for some things you will need to edit the Xaml yourself. For example, your object has two places that you may want a fill color, the background of the Canvas and the interior of the Path. However, iX Developer's Layout editor only has one place to enter a fill color. For the path object I created the Layout fill option changes the Canvas background fill, not the Path interior Fill.
3) Check out the MSDN on the
Path Xaml.
Here is the Xaml for the screen that I got using your example. Notice how I deleted the <Viewbox> markup tags.
Code: Select all
<?neo version='2.0.356.0'?>
<natss:NeoElementCanvas Name="m_EditorCanvas" Width="800" Height="600" FocusVisualStyle="{x:Null}" AllowDrop="True" ClipToBounds="True" Focusable="True" TextOptions.TextFormattingMode="Ideal" TextOptions.TextRenderingMode="Auto" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:natss="clr-namespace:Neo.ApplicationFramework.Tools.Screen.ScreenEditor;assembly=ToolsIde">
<Canvas Background="#FF275C8B" Name="svg2" Width="266" Height="161" Panel.ZIndex="1" Canvas.Left="299" Canvas.Top="147">
<Canvas.RenderTransform>
<TransformGroup>
<TransformGroup.Children>
<TransformCollection>
<ScaleTransform ScaleX="1" ScaleY="1" />
<RotateTransform Angle="0" />
</TransformCollection>
</TransformGroup.Children>
</TransformGroup>
</Canvas.RenderTransform>
<Canvas Name="layer1">
<Canvas.RenderTransform>
<TranslateTransform X="0" Y="-902.36215" />
</Canvas.RenderTransform>
<Path Fill="#FF808080" Stroke="#FF000000" StrokeThickness="1" StrokeStartLineCap="Flat" StrokeEndLineCap="Flat" StrokeLineJoin="Miter" Name="path2993">
<Path.Data>
<PathGeometry FillRule="Nonzero" Figures="M6.9790989,963.83529L28.016107,1051.3492 234.72784,1011.8518 257.59417,968.48205 242.95972,911.94652 2.4058306,959.96299z" />
</Path.Data>
</Path>
</Canvas>
</Canvas>
</natss:NeoElementCanvas>