public static object Box(bool?nullableValue) { if (!nullableValue.HasValue) { return(null); } return(Boxes.Box(nullableValue.Value)); }
protected static void SetIsLast(UIElement element, bool value) { element.SetValue(SplitterPanel.IsLastPropertyKey, Boxes.Box(value)); }