public static bool GetShowControlBoxes(DependencyObject obj) { if (obj == null) { throw new ArgumentNullException("obj"); } return (bool)obj.GetValue(ShowControlBoxesProperty); }