EveruWPF

Helper

WindowHelper

With the WindowHelper, you can:

  • Disable Window Buttons
  • Disable Window Icon
  • Glass Frame Extention
  • Disable Window Dragging

 

xmlns:wndhlp="clr-namespace:EveruWPF.Windows.Helpers;assembly=EveruWPF"
wndhlp:WindowHelper.MinimizeButtonEnabled="False"
wndhlp:WindowHelper.MaximizeButtonEnabled="False"
wndhlp:WindowHelper.HasIcon="False"

This code create the follwing Window Header:

Window Header

 

 

To extend the Glass Extention use this:

wndhlp:WindowHelper.GlassFrameExtention="0,15,0,0" 

And you need to extend the LayoutRoot:

<Grid x:Name="LayoutRoot" Margin="0,15,0,0" Background="White">

Now, the Window looks like:

 

 

 

UserControl Helper

With the UserControlHelper you can make a Usercontrol to a window dragger. That means, you can move the window by this element. This is very useful, when you used the GlassFrameExtention.

<Rectangle Height="20" VerticalAlignment="Top" Fill="Transparent" wndhlp:UserControlHelper.IsWindowDragger="True" />

CursorHelper

With the Cursor helper, you can create custom cursors, with a hotspot:

EveruWPF.Windows.Helpers.CursorHelper.CreateCursor(Stream, 5, 5);


WPF 3D

Viewport3D mouse interaction (in progress)

With the Class V3DInteraction you can add mouse events to your Viewport3D, which report if  GeometryModel3D were clicked. In the EventArgs are the information, which GeometryModel3D were clicked. So you can create interactive 3DApplications with WPF.

First you need to enable the Listener for the Events:

xmlns:V3DI="clr-namespace:EveruWPF.Windows.V3D;assembly=EveruWPF"
...
 <Viewport3D V3DI:V3DInteraction.ListenInteraction="True">

Then you can add the events:

<Viewport3D V3DI:V3DInteraction.ListenInteraction="True" V3DI:V3DInteraction.GeometryMousedown="Viewport3D_GeometryMousedown" V3DI:V3DInteraction.GeometryMouseup="Viewport3D_GeometryMouseup">

 


Last edited Aug 17, 2011 at 11:56 AM by Ahn1, version 9

Comments

No comments yet.