c# - is there a WPF version of FillRectangle -


I want to draw a rectangular (drag mouse) on a canvas. Normally I use the graphics class and I use Fill Rectangle on Mosemov.

Is there any good resource for anyone doing so in WPF?

rectangle use the class. And set the property that fills your desired brush.

Here's a quick example in XAML

  & lt; Fill rectangle = "black" height = "100" width = "200" />  

Comments