private Control Template(GridSplitter control) { Border border = new Border { [~Border.BackgroundProperty] = control[~GridSplitter.BackgroundProperty], }; return border; }
/// <summary> /// The default template for a <see cref="GridSplitter"/> control. /// </summary> /// <param name="control">The control being styled.</param> /// <returns>The root of the instantiated template.</returns> public static Control Template(GridSplitter control) { Border border = new Border { [~Border.BackgroundProperty] = control[~TemplatedControl.BackgroundProperty], }; return border; }