C# Class 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.
ファイルを表示 Open project: jlaanstra/Windows.UI.Interactivity Class Usage Examples

Private Properties

Property Type Description
GetActualNameScopeReference Windows.UI.Xaml.FrameworkElement
IsNameScope bool
OnNameScopeReferenceElementChanged void
OnNameScopeReferenceLoaded void
OnObjectChanged void
UpdateObjectFromName void

Private Methods

Method Description
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.