WPF Tutorial
Welcome to this free online Windows Presentation Foundation tutorial.
Search This Blog
Showing posts with label
Canvas
.
Show all posts
Showing posts with label
Canvas
.
Show all posts
Wednesday, October 19, 2016
Get rectangles from canvas WPF code behind
WPF
>
Controls
>
Layout
>
Canvas
> Children
Example
Get all rectangles from canvas.
private
List
<
Rectangle
> GetRectangles()
{
return
canvas.Children.OfType<
Rectangle
>().ToList();
}
Older Posts
Home
Subscribe to:
Posts (Atom)