C# Class uguimvvm.INPCBinding.PropertyPath

ファイルを表示 Open project: jbruening/ugui-mvvm Class Usage Examples

Public Properties

Property Type Description
WarnOnGetValue bool
WarnOnSetValue bool

Public Methods

Method Description
AddHandler ( object root, System.ComponentModel.PropertyChangedEventHandler handler ) : void
ClearHandlers ( ) : void
GetProperty ( Type type, string name ) : PropertyInfo
GetValue ( object root, object index ) : object

Resolve the value by traversing the property path

PropertyPath ( string path, Type type, bool warnOnFailure = false ) : System
SetValue ( object root, object value, object index ) : void

Private Methods

Method Description
GetIdxProperty ( int idx, object root ) : PropertyInfo
OnPropertyChanged ( object sender, System.ComponentModel.PropertyChangedEventArgs args, Notifier notifier ) : void
TriggerHandler ( object sender ) : void
TrySubscribe ( object root, int idx ) : void

Method Details

AddHandler() public method

public AddHandler ( object root, System.ComponentModel.PropertyChangedEventHandler handler ) : void
root object
handler System.ComponentModel.PropertyChangedEventHandler
return void

ClearHandlers() public method

public ClearHandlers ( ) : void
return void

GetProperty() public static method

public static GetProperty ( Type type, string name ) : PropertyInfo
type System.Type
name string
return System.Reflection.PropertyInfo

GetValue() public method

Resolve the value by traversing the property path
public GetValue ( object root, object index ) : object
root object
index object
return object

PropertyPath() public method

public PropertyPath ( string path, Type type, bool warnOnFailure = false ) : System
path string
type System.Type
warnOnFailure bool
return System

SetValue() public method

public SetValue ( object root, object value, object index ) : void
root object
value object
index object
return void

Property Details

WarnOnGetValue public_oe static_oe property

Emit warnings when GetValue fails due to nulls in the path
public static bool WarnOnGetValue
return bool

WarnOnSetValue public_oe static_oe property

Emit warnings when SetValue fails due to nulls in the path
public static bool WarnOnSetValue
return bool