C# 클래스 Windows.UI.Interactivity.NameResolver

Helper class to handle the logic of resolving a TargetName into a Target element based on the context provided by a host element.
파일 보기 프로젝트 열기: jlaanstra/Windows.UI.Interactivity 1 사용 예제들

Private Properties

프로퍼티 타입 설명
GetActualNameScopeReference Windows.UI.Xaml.FrameworkElement
IsNameScope bool
OnNameScopeReferenceElementChanged void
OnNameScopeReferenceLoaded void
OnObjectChanged void
UpdateObjectFromName void

비공개 메소드들

메소드 설명
GetActualNameScopeReference ( FrameworkElement initialReferenceElement ) : FrameworkElement
IsNameScope ( FrameworkElement frameworkElement ) : bool
OnNameScopeReferenceElementChanged ( FrameworkElement oldNameScopeReference ) : void
OnNameScopeReferenceLoaded ( object sender, RoutedEventArgs e ) : void
OnObjectChanged ( DependencyObject oldTarget, DependencyObject newTarget ) : void
UpdateObjectFromName ( DependencyObject oldObject ) : void

Attempts to update the resolved object from the name within the context of the namescope reference element.

Resets the existing target and attempts to resolve the current TargetName from the context of the current Host. If it cannot resolve from the context of the Host, it will continue up the visual tree until it resolves. If it has not resolved it when it reaches the root, it will set the Target to null and write a warning message to Debug output.