/// <summary> /// Attach the GroupBox control to the dialog object /// </summary> /// <param name="dialog">Target dialog</param> internal override void Attach(IFileDialogCustomize dialog) { Debug.Assert(dialog != null, "CommonFileDialogGroupBox.Attach: dialog parameter can not be null"); // Start a visual group dialog.StartVisualGroup(this.Id, this.Text); // Add child controls foreach (CommonFileDialogControl item in this.items) { item.HostingDialog = HostingDialog; item.Attach(dialog); } // End visual group dialog.EndVisualGroup(); // Make this control prominent if needed if (IsProminent) { dialog.MakeProminent(this.Id); } // Sync unmanaged properties with managed properties SyncUnmanagedProperties(); }
/// <summary> /// Attach the GroupBox control to the dialog object /// </summary> /// <param name="dialog">Target dialog</param> internal override void Attach(IFileDialogCustomize dialog) { Debug.Assert(dialog != null, "CommonFileDialogGroupBox.Attach: dialog parameter can not be null"); // Start a visual group dialog.StartVisualGroup(this.Id, this.Text); // Add child controls foreach (CommonFileDialogControl item in this.items) { item.HostingDialog = HostingDialog; item.Attach(dialog); } // End visual group dialog.EndVisualGroup(); // Make this control prominent if needed if (IsProminent) dialog.MakeProminent(this.Id); // Sync unmanaged properties with managed properties SyncUnmanagedProperties(); }
/// <summary> /// End the visual group on the dialog /// </summary> public void EndVisualGroup() { GetCustomizedFileDialog(); customize.EndVisualGroup(); }