Example #1
0
 /// <summary>
 /// Sets the currently available directions.
 /// <para>
 /// - Should be used to dynamically update the available pan directions when panning is
 /// ongoing.
 /// </para><para>
 /// - For example: if the contents of a vertically scrollable area has been scrolled to
 /// the bottom, the down direction should temporarily be removed from the available
 /// directions until the contents has been scrolled up again.
 /// </para>
 /// </summary>
 /// <param name="element">The <see cref="FrameworkElement"/> to set the property for.</param>
 /// <param name="direction">The <see cref="PanDirectionType"/> value of the property.</param>
 public static void SetAvailablePanDirections(this FrameworkElement element, PanDirectionType direction)
 {
     element.SetValue(AvailablePanDirectionsProperty, direction);
 }
Example #2
0
 /// <summary>
 /// Sets the currently available directions.
 /// <para>
 /// - Should be used to dynamically update the available pan directions when panning is 
 /// ongoing. 
 /// </para><para>
 /// - For example: if the contents of a vertically scrollable area has been scrolled to 
 /// the bottom, the down direction should temporarily be removed from the available 
 /// directions until the contents has been scrolled up again.
 /// </para>
 /// </summary>
 /// <param name="element">The <see cref="FrameworkElement"/> to set the property for.</param>
 /// <param name="direction">The <see cref="PanDirectionType"/> value of the property.</param>
 public static void SetAvailablePanDirections(this FrameworkElement element, PanDirectionType direction)
 {
     element.SetValue(AvailablePanDirectionsProperty, direction);
 }