24 lines
536 B
C#
24 lines
536 B
C#
using System.Windows;
|
|
using System.Windows.Controls;
|
|
|
|
namespace BS.Shared.Extensions
|
|
{
|
|
public static class GridExtensions
|
|
{
|
|
public static void AddChild(this Grid grid, UIElement uiElement)
|
|
{
|
|
grid?.Children.Add(uiElement);
|
|
}
|
|
|
|
public static void RemoveChild(this Grid grid, UIElement uiElement)
|
|
{
|
|
grid?.Children.Remove(uiElement);
|
|
}
|
|
|
|
public static void ClearChildren(this Grid grid)
|
|
{
|
|
grid?.Children.Clear();
|
|
}
|
|
}
|
|
}
|