Grid
int rowDefinations = Grid.GetRow(sender as Button); RowDefinition rDef = layOut.RowDefinitions[rowDefinations]; UIElement btn = layOut.Children.Cast<UIElement>().First(r=>Grid.GetRow(r)==rowDefinations && Grid.GetColumn(r)==2); UIElement txt1 = layOut.Children.Cast<UIElement>().First(r => Grid.GetRow(r) == rowDefinations && Grid.GetColumn(r) == 0); UIElement txt2 = layOut.Children.Cast<UIElement>().First(r => Grid.GetRow(r) == rowDefinations && Grid.GetColumn(r) == 1); layOut.Children.Remove(btn); layOut.Children.Remove(txt1); layOut.Children.Remove(txt2); layOut.RowDefinitions.Remove(rDef);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)