Advertisement
Guest User

Untitled

a guest
Oct 15th, 2022
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. class MyBrushClass
  2. {
  3.     public static readonly DependencyProperty MyBrushProperty = DependencyProperty.RegisterAttached("MyBrush", typeof(SolidColorBrush), typeof(MyBrushClass));
  4.  
  5.  
  6.     public Geometry MyBrush
  7.     {
  8.         get
  9.         {
  10.             return (SolidColorBrush)GetValue(MyBrushProperty);
  11.         }
  12.         set
  13.         {
  14.             //Вот сюда заходит норм
  15.             SetValue(MyBrushProperty, Value);
  16.         }
  17.     }
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement