C# Class Harriet.Views.MainWindow

Harrietのメインウィンドウを表します。このウィンドウは一切表示されません。
Show file Open project: malaybaku/harriet Class Usage Examples

Public Properties

Property Type Description
NadenadeProperty System.Windows.DependencyProperty
WindowItselfProperty System.Windows.DependencyProperty

Public Methods

Method Description
GetNadenade ( Window target ) : double

添付プロパティから撫でた量を取得します。

GetWindowItself ( Window target ) : MainWindow

ウィンドウ自身を取得します。

MainWindow ( ) : System.Windows

インスタンスを初期化します。

SetNadenade ( Window target, double value ) : void

添付プロパティに撫でた量を設定します。

SetWindowItself ( Window target, Window value ) : void

ウィンドウの参照を設定します。

Protected Methods

Method Description
OnMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void

掴んで動かす操作を認める。

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

キャラを撫でたのを検知

Method Details

GetNadenade() public static method

添付プロパティから撫でた量を取得します。
public static GetNadenade ( Window target ) : double
target System.Windows.Window 取得元
return double

GetWindowItself() public static method

ウィンドウ自身を取得します。
public static GetWindowItself ( Window target ) : MainWindow
target System.Windows.Window 取得元
return MainWindow

MainWindow() public method

インスタンスを初期化します。
public MainWindow ( ) : System.Windows
return System.Windows

OnMouseLeftButtonDown() protected method

掴んで動かす操作を認める。
protected OnMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
return void

OnMouseMove() protected method

キャラを撫でたのを検知
protected OnMouseMove ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs
return void

SetNadenade() public static method

添付プロパティに撫でた量を設定します。
public static SetNadenade ( Window target, double value ) : void
target System.Windows.Window 設定対象
value double 撫でた量
return void

SetWindowItself() public static method

ウィンドウの参照を設定します。
public static SetWindowItself ( Window target, Window value ) : void
target System.Windows.Window 設定対象
value System.Windows.Window 設定したいウィンドウ
return void

Property Details

NadenadeProperty public static property

撫でた量を取得、設定する依存関係プロパティです。
public static DependencyProperty,System.Windows NadenadeProperty
return System.Windows.DependencyProperty

WindowItselfProperty public static property

ウィンドウ自身を添付プロパティとして定義します。
public static DependencyProperty,System.Windows WindowItselfProperty
return System.Windows.DependencyProperty