C# Class Com.Aote.Attachs.DataGridAttach

Show file Open project: DuBin1988/restv2

Public Properties

Property Type Description
FoceToCellOnEnterProperty System.Windows.DependencyProperty
ServerSortProperty System.Windows.DependencyProperty

Public Methods

Method Description
GetFoceToCellOnEnter ( FrameworkElement ui ) : int
GetServerSort ( FrameworkElement ui ) : bool
SetFoceToCellOnEnter ( FrameworkElement ui, int value ) : void
SetServerSort ( FrameworkElement ui, bool value ) : void

Private Methods

Method Description
OnFoceToCellOnEnterChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs args ) : void

回车时更新绑定,值为要更新的属性名,一般情况下,为Text

OnServerSortChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs args ) : void

是否执行后台排序,为True时执行

dg_KeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void
dg_MouseLeftButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

Method Details

GetFoceToCellOnEnter() public static method

public static GetFoceToCellOnEnter ( FrameworkElement ui ) : int
ui System.Windows.FrameworkElement
return int

GetServerSort() public static method

public static GetServerSort ( FrameworkElement ui ) : bool
ui System.Windows.FrameworkElement
return bool

SetFoceToCellOnEnter() public static method

public static SetFoceToCellOnEnter ( FrameworkElement ui, int value ) : void
ui System.Windows.FrameworkElement
value int
return void

SetServerSort() public static method

public static SetServerSort ( FrameworkElement ui, bool value ) : void
ui System.Windows.FrameworkElement
value bool
return void

Property Details

FoceToCellOnEnterProperty public static property

public static DependencyProperty,System.Windows FoceToCellOnEnterProperty
return System.Windows.DependencyProperty

ServerSortProperty public static property

public static DependencyProperty,System.Windows ServerSortProperty
return System.Windows.DependencyProperty