Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. public Brush ShapeColor{ get; set; }
  2.  
  3. public Color StoreColor
  4. {
  5. get
  6. {
  7. g = ((Color)ShapeColor.GetValue(SolidColorBrush.ColorProperty)).G;
  8. r = ((Color)ShapeColor.GetValue(SolidColorBrush.ColorProperty)).R;
  9. b = ((Color)ShapeColor.GetValue(SolidColorBrush.ColorProperty)).B;
  10. return Color.FromRgb(r, g, b);
  11. }
  12. set {}
  13. }
  14.  
  15. The calling thread cannot access this object because a different thread owns it.
  16.  
  17. g = ((Color)ShapeColor.GetValue(SolidColorBrush.ColorProperty)).G;
  18. r = ((Color)ShapeColor.GetValue(SolidColorBrush.ColorProperty)).R;
  19. b = ((Color)ShapeColor.GetValue(SolidColorBrush.ColorProperty)).B;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement