protected override void OnClick() { if (DropDown != null) { // If there is a drop-down assigned to this button, then position and display it DropDown.PlacementTarget = this; DropDown.Placement = PlacementMode.Bottom; DropDown.IsOpen = true; } }