Пример #1
0
 /// <summary>
 /// Updates the content clipping. </summary>
 /// <param name="dependencyObject">The clipping border.</param>
 /// <param name="eventArgs">Dependency Property Changed Event Args</param>
 private static void ClipContent_Changed(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs eventArgs)
 {
     ClippingBorder clippingBorder = (ClippingBorder)dependencyObject;
     clippingBorder.UpdateClipContent((bool)eventArgs.NewValue);
 }
Пример #2
0
 /// <summary>
 /// Updates the corner radius. </summary>
 /// <param name="dependencyObject">The clipping border.</param>
 /// <param name="eventArgs">Dependency Property Changed Event Args</param>
 private static void CornerRadius_Changed(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs eventArgs)
 {
     ClippingBorder clippingBorder = (ClippingBorder)dependencyObject;
     clippingBorder.UpdateCornerRadius((CornerRadius)eventArgs.NewValue);
 }