internal override void Generate() { // Add control to dialog UpdateLayout(); DXControl = _groupBox = Parent.DialogRender.AddGroupBox(0, EffectiveLocation.X, EffectiveLocation.Y, EffectiveSize.Width, EffectiveSize.Height, ColorBorder.ToColorValue(), ColorFill.ToColorValue()); ControlModel.IsVisible = IsVisible; ControlModel.IsEnabled = IsEnabled; // Setup event hooks SetupMouseEvents(); }