private static ClipToBounds ( |
||
fe | ||
return | void |
private static void OnToBoundsPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { FrameworkElement frameworkElement = d as FrameworkElement; if (frameworkElement != null) { Clip.ClipToBounds(frameworkElement); frameworkElement.Loaded += Clip.fe_Loaded; frameworkElement.SizeChanged += Clip.fe_SizeChanged; } }
private static void fe_Loaded(object sender, RoutedEventArgs e) { Clip.ClipToBounds(sender as FrameworkElement); }
private static void fe_SizeChanged(object sender, SizeChangedEventArgs e) { Clip.ClipToBounds(sender as FrameworkElement); }