C# 클래스 WaveWPF.WaveCanvas

Class that represents a canvas that contains the wave application.
상속: System.Windows.FrameworkElement
파일 보기 프로젝트 열기: WaveEngine/Samples 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
AutoRenderProperty System.Windows.DependencyProperty
IsInDesignMode bool
LowPriorityRenderingProperty System.Windows.DependencyProperty
SendResizeDelayProperty System.Windows.DependencyProperty

공개 메소드들

메소드 설명
WaveCanvas ( ) : System

Initializes a new instance of the WaveCanvas class.

보호된 메소드들

메소드 설명
OnMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void

Invoked when an unhandled E:System.Windows.Input.Mouse.MouseDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

OnMouseLeave ( System.Windows.Input.MouseEventArgs e ) : void

Invoked when an unhandled E:System.Windows.Input.Mouse.MouseLeave attached event is raised on this element. Implement this method to add class handling for this event.

OnMouseMove ( System.Windows.Input.MouseEventArgs e ) : void

Invoked when an unhandled E:System.Windows.Input.Mouse.MouseMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

OnMouseUp ( System.Windows.Input.MouseButtonEventArgs e ) : void

Invoked when an unhandled E:System.Windows.Input.Mouse.MouseUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

OnMouseWheel ( System.Windows.Input.MouseWheelEventArgs e ) : void

Invoked when an unhandled E:System.Windows.Input.Mouse.MouseWheel attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void

When overridden in a derived class, participates in rendering operations that are directed by the layout system. The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing.

비공개 메소드들

메소드 설명
CheckInit ( object sender, EventArgs e ) : void

Checks the initialize.

HandleResizeDelayChanged ( DependencyObject dependencyObject, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handles the resize delay changed.

OnKeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void

Called when [key down].

OnKeyUp ( object sender, System.Windows.Input.KeyEventArgs e ) : void

Called when [key up].

OnLoaded ( object sender, System e ) : void

Called when [loaded].

OnRendering ( object sender, EventArgs e ) : void

Called when [rendering].

OnSizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void

Called when [size changed].

Render ( ) : void

Renders the action.

ResizeGame ( object sender, EventArgs e ) : void

Resizes the game.

Unload ( ) : void

Unloads this instance.

메소드 상세

OnMouseDown() 보호된 메소드

Invoked when an unhandled E:System.Windows.Input.Mouse.MouseDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
protected OnMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs The that contains the event data. This event data reports details about the mouse button that was pressed and the handled state.
리턴 void

OnMouseLeave() 보호된 메소드

Invoked when an unhandled E:System.Windows.Input.Mouse.MouseLeave attached event is raised on this element. Implement this method to add class handling for this event.
protected OnMouseLeave ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs The that contains the event data.
리턴 void

OnMouseMove() 보호된 메소드

Invoked when an unhandled E:System.Windows.Input.Mouse.MouseMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
protected OnMouseMove ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs The that contains the event data.
리턴 void

OnMouseUp() 보호된 메소드

Invoked when an unhandled E:System.Windows.Input.Mouse.MouseUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
protected OnMouseUp ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs The that contains the event data. The event data reports that the mouse button was released.
리턴 void

OnMouseWheel() 보호된 메소드

Invoked when an unhandled E:System.Windows.Input.Mouse.MouseWheel attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
protected OnMouseWheel ( System.Windows.Input.MouseWheelEventArgs e ) : void
e System.Windows.Input.MouseWheelEventArgs The that contains the event data.
리턴 void

OnRender() 보호된 메소드

When overridden in a derived class, participates in rendering operations that are directed by the layout system. The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing.
protected OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void
drawingContext System.Windows.Media.DrawingContext The drawing instructions for a specific element. This context is provided to the layout system.
리턴 void

WaveCanvas() 공개 메소드

Initializes a new instance of the WaveCanvas class.
public WaveCanvas ( ) : System
리턴 System

프로퍼티 상세

AutoRenderProperty 공개적으로 정적으로 프로퍼티

Indicates whether the wave canvas will render automatically.
public static DependencyProperty,System.Windows AutoRenderProperty
리턴 System.Windows.DependencyProperty

IsInDesignMode 공개적으로 정적으로 프로퍼티

Gets a value indicating whether the control is in design mode (running in Blend or Visual Studio).
public static bool IsInDesignMode
리턴 bool

LowPriorityRenderingProperty 공개적으로 정적으로 프로퍼티

Indicates whether the rendering should be done in the System.Windows.Threading.DispatcherPriority.Input priority. This may cause loss of FPS, but will not interfere with the input processing. Default is false.
public static DependencyProperty,System.Windows LowPriorityRenderingProperty
리턴 System.Windows.DependencyProperty

SendResizeDelayProperty 공개적으로 정적으로 프로퍼티

Indicates the time delay before the resize event will be propagated to the bound Game class which will cause its backbuffer resize. Default is 1 second.
public static DependencyProperty,System.Windows SendResizeDelayProperty
리턴 System.Windows.DependencyProperty