C# 클래스 Illusion.BindingEngine

A bind engine supports custom data binding.
It exports two methods for data binding: 1.SetPropertyBinding 2.ClearPropertyBinding The binding engine use weak reference to hold the dependent, that means if u miss to clear data binding, the dependent will not leak memory.
파일 보기 프로젝트 열기: kasicass/kasicass

공개 메소드들

메소드 설명
ClearPropertyBinding ( Object source, INotifyPropertyChanged target, string sourceProp, string targetProp ) : void

Clears the property binding.

SetPropertyBinding ( Object source, INotifyPropertyChanged target, string sourceProp, string targetProp, bool notify = true, IDataConverter converter = null, object parameter = null ) : void

Sets the property binding.

비공개 메소드들

메소드 설명
GetExpressionAction ( WeakEntry entry, object source, bool createNew, IDataConverter converter = null ) : Delegate

Gets the expression action.

메소드 상세

ClearPropertyBinding() 공개 정적인 메소드

Clears the property binding.
public static ClearPropertyBinding ( Object source, INotifyPropertyChanged target, string sourceProp, string targetProp ) : void
source Object The source.
target INotifyPropertyChanged The target.
sourceProp string The source prop.
targetProp string The target prop.
리턴 void

SetPropertyBinding() 공개 정적인 메소드

Sets the property binding.
public static SetPropertyBinding ( Object source, INotifyPropertyChanged target, string sourceProp, string targetProp, bool notify = true, IDataConverter converter = null, object parameter = null ) : void
source Object The source.
target INotifyPropertyChanged The target.
sourceProp string The source prop.
targetProp string The target prop.
notify bool if set to true update immediately.
converter IDataConverter The converter.
parameter object The converter parameter.
리턴 void