IList <UIElement> IAnchorRequestedEventArgsResolver.AnchorCandidates(AnchorRequestedEventArgs e) => e.AnchorCandidates;
void IAnchorRequestedEventArgsResolver.Anchor(AnchorRequestedEventArgs e, UIElement anchor) => e.Anchor = anchor;
UIElement IAnchorRequestedEventArgsResolver.Anchor(AnchorRequestedEventArgs e) => e.Anchor;
/// <summary> /// Gets the set of anchor candidates that are currently registered with the scrolling control (e.g. ScrollViewer). /// </summary> /// <param name="e">The requested <see cref="AnchorRequestedEventArgs"/>.</param> /// <returns>A list of UIElement anchor candidates.</returns> public static IList <UIElement> AnchorCandidates(this AnchorRequestedEventArgs e) => Resolver.AnchorCandidates(e);
/// <summary> /// Sets the anchor element to use when performing scroll anchoring. /// </summary> /// <param name="e">The requested <see cref="AnchorRequestedEventArgs"/>.</param> /// <param name="anchor">The UIElement to use as the CurrentAnchor.</param> public static void Anchor(this AnchorRequestedEventArgs e, UIElement anchor) => Resolver.Anchor(e, anchor);
/// <summary> /// Gets the anchor element to use when performing scroll anchoring. /// </summary> /// <param name="e">The requested <see cref="AnchorRequestedEventArgs"/>.</param> /// <returns>The UIElement to use as the CurrentAnchor. The default is <c>null</c>.</returns> public static UIElement Anchor(this AnchorRequestedEventArgs e) => Resolver.Anchor(e);