Add Control Dynamically To Grid in WPF Using C#
To add a child control to a Grid Layout, simply call the Add() method in Children of the grid control.
Where: grdClock is the Grid control
Label lbl = new Label(); lbl.Content = "1"; grdClock.Children.Add(lbl);
Comments
Post a Comment