Search found 90 matches
- 08 Feb 2015, 03:33
- Forum: General Discussion
- Replies: 7
- Views: 3459
XAML editor
I am struggling to find a suitable XAML editor. I am designing aircraft instrumentation so freehand draw tools are unsuitable. Any support for constraint based parametric design would be ideal, but it should at least have robust aligning and snapping tools. InkScape has descent snapping tools but th...
- 08 Feb 2015, 01:53
- Forum: General Discussion
- Replies: 2
- Views: 1842
Re: RenderTransformOrigin does not work with grouped shapes
Thanks, setting the width and height of the canvas solves the problem, although I have yet to find a formula which converts the InkScape rotation center coordinates to RenderTransformOrigin, With, and Height values which give the same result. Edit: I found that the ViewerSvg svg to xaml converer cor...
- 07 Feb 2015, 16:48
- Forum: General Discussion
- Replies: 7
- Views: 7090
Re: Rotation center with XAML export
Setting the rotation center by code is possible, but it still requires you to know the coordinates of the rotation center. But this information is only available in the SVG. So this fix would required you to load the SVG, scan file for the missing information, and then inject it into the XAML file. ...
- 07 Feb 2015, 16:13
- Forum: General Discussion
- Replies: 3
- Views: 2002
Re: Transforming objects by code
Thanks, I understand now.
- 07 Feb 2015, 06:34
- Forum: General Discussion
- Replies: 2
- Views: 1842
RenderTransformOrigin does not work with grouped shapes
When shapes are grouped together (tree structure), setting RenderTransformOrigin on the parent has no effect. Take for example the code below (exported from InkScape): <Canvas Name="blueGroup"> <Rectangle xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Canvas.Left="25...
- 07 Feb 2015, 05:40
- Forum: General Discussion
- Replies: 7
- Views: 7090
Rotation center with XAML export
I noticed that an XAML file exported by InkScape does not contain object rotation center information. This is a major issue for my project as many objects shouldn't rotate around its center, so I can't use SetRenderTransformOrigin(new Point(0.5f, 0.5f)) ; The XAML format support this: https://msdn.m...
- 07 Feb 2015, 04:37
- Forum: General Discussion
- Replies: 3
- Views: 2002
Re: Transforming objects by code
Ok, I got it to work. c# code: using UnityEngine; using System.Collections; using Noesis; public class Controller : MonoBehaviour{ UIElement square; RotateTransform squareRotateTransform; TranslateTransform squareTranslateTransform; float x = 0; float angle = 0; void Start (){ NoesisGUIPanel panel =...
- 07 Feb 2015, 01:41
- Forum: General Discussion
- Replies: 3
- Views: 2002
Transforming objects by code
Continuing from my post here: http://forum.unity3d.com/threads/noesisgui-xaml-based-user-interface-released.192064/page-13#post-1952232 I modified it to this: using UnityEngine; using System.Collections; using Noesis; public class Controller : MonoBehaviour{ Noesis.UIElement circle; Noesis.RotateTra...
- 24 Jul 2014, 06:28
- Forum: Showcase Gallery
- Replies: 3
- Views: 6144
Re: Cessna Gauges
Thanks for the info. That definitely helps
- 20 Jul 2014, 04:33
- Forum: Showcase Gallery
- Replies: 3
- Views: 6144
Re: Cessna Gauges
Impressive!
Some questions:
-What editor did you use to create those gauges?
-How do you set the pivot point of a needle?
-Can you post the source which sets the needle positions?
Some questions:
-What editor did you use to create those gauges?
-How do you set the pivot point of a needle?
-Can you post the source which sets the needle positions?