Skip to content

Instantly share code, notes, and snippets.

@Sunjammer
Created October 31, 2017 10:58
Show Gist options
  • Save Sunjammer/c112ff61df6c3f7936cf85682c92d15d to your computer and use it in GitHub Desktop.
Save Sunjammer/c112ff61df6c3f7936cf85682c92d15d to your computer and use it in GitHub Desktop.
Fusetools Gizmos util classes
<Panel ux:Class="Gizmo.Gizmos">
<Text ux:Class="Gizmo.Text" HitTestMode="None" Color="Black" FontSize="12" />
<Circle ux:Class="Gizmo.Dot" StrokeColor="#0F0" Width="10" Height="10" SnapToPixels="true" HitTestMode="None" />
<Rectangle ux:Class="Gizmo.Rect" StrokeColor="#0F0" HitTestMode="None" />
<Gizmo.Rect ux:Class="Gizmo.Bounds" >
<StackPanel Alignment="TopLeft">
<Gizmo.Text Value="x:{= x(this)}" />
<Gizmo.Text Value="y:{= y(this)}" />
</StackPanel>
<StackPanel Alignment="BottomRight">
<Gizmo.Text Value="w:{= width(this)}" Alignment="Right"/>
<Gizmo.Text Value="h:{= height(this)}" Alignment="Right"/>
</StackPanel>
</Gizmo.Rect>
<Panel ux:Class="Gizmo.Cross" HitTestMode="None">
<Rectangle Width="1px" X="50%" SnapToPixels="true" Color="#0F0"/>
<Rectangle Height="1px" Y="50%" SnapToPixels="true" Color="#0F0"/>
</Panel>
</Panel>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment