当前位置: 首页>>代码示例>>C#>>正文


C# IFileDialogCustomize.MakeProminent方法代码示例

本文整理汇总了C#中IFileDialogCustomize.MakeProminent方法的典型用法代码示例。如果您正苦于以下问题:C# IFileDialogCustomize.MakeProminent方法的具体用法?C# IFileDialogCustomize.MakeProminent怎么用?C# IFileDialogCustomize.MakeProminent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IFileDialogCustomize的用法示例。


在下文中一共展示了IFileDialogCustomize.MakeProminent方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Attach

        /// <summary>
        /// Attach the PushButton control to the dialog object
        /// </summary>
        /// <param name="dialog">Target dialog</param>
        public override void Attach(IFileDialogCustomize dialog)
        {
            Debug.Assert(dialog != null, "CommonFileDialogButton.Attach: dialog parameter can not be null");

            // Add a push button control
            dialog.AddPushButton(this.Id, this.Text);

            // Make this control prominent if needed
            if (IsProminent) { dialog.MakeProminent(this.Id); }

            // Sync unmanaged properties with managed properties
            SyncUnmanagedProperties();
        }
开发者ID:uonun,项目名称:TaggableShell,代码行数:17,代码来源:CommonFileDialogButton.cs

示例2: Attach

		/// <summary>
		/// Attach the Menu control to the dialog object.
		/// </summary>
		/// <param name="dialog">the target dialog</param>
		internal override void Attach(IFileDialogCustomize dialog) {
			Debug.Assert(dialog != null, "CommonFileDialogMenu.Attach: dialog parameter can not be null");

			// Add the menu control
			dialog.AddMenu(this.Id, this.Text);

			// Add the menu items
			foreach (CommonFileDialogMenuItem item in this.items)
				dialog.AddControlItem(this.Id, item.Id, item.Text);

			// Make prominent as needed
			if (IsProminent)
				dialog.MakeProminent(this.Id);

			// Sync unmanaged properties with managed properties
			SyncUnmanagedProperties();
		}
开发者ID:GodLesZ,项目名称:svn-dump,代码行数:21,代码来源:CommonFileDialogMenu.cs

示例3: Attach

		/// <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();
		}
开发者ID:GodLesZ,项目名称:svn-dump,代码行数:26,代码来源:CommonFileDialogGroupBox.cs

示例4: Attach

        /// <summary>
        /// Attach the CheckButton control to the dialog object.
        /// </summary>
        /// <param name="dialog">the target dialog</param>
        internal override void Attach(IFileDialogCustomize dialog)
        {
            Debug.Assert(dialog != null, "CommonFileDialogCheckBox.Attach: dialog parameter can not be null");

            // Add a check button control
            dialog.AddCheckButton(this.Id, this.Text, this.isChecked);

            // Make this control prominent if needed
            if (IsProminent) { dialog.MakeProminent(this.Id); }

            // Make sure this property is set
            ApplyPropertyChange("IsChecked");

            // Sync unmanaged properties with managed properties
            SyncUnmanagedProperties();
        }
开发者ID:FreeBSD-DotNet,项目名称:monodevelop,代码行数:20,代码来源:CommonFileDialogCheckBox.cs

示例5: Attach

        /// <summary>
        /// Attach the ComboBox control to the dialog object
        /// </summary>
        /// <param name="dialog">The target dialog</param>
        internal override void Attach(IFileDialogCustomize dialog)
        {
            Debug.Assert(dialog != null, "CommonFileDialogComboBox.Attach: dialog parameter can not be null");
            
            // Add the combo box control
            dialog.AddComboBox(this.Id);

            // Add the combo box items
            for (int index = 0; index < items.Count; index++)
                dialog.AddControlItem(this.Id, index, items[index].Text);

            // Set the currently selected item
            if (selectedIndex >= 0 && selectedIndex < items.Count)
            {
                dialog.SetSelectedControlItem(this.Id, this.selectedIndex);
            }
            else if (selectedIndex != -1)
            {
                throw new IndexOutOfRangeException("Index was outside the bounds of the CommonFileDialogComboBox.");
            }

            // Make this control prominent if needed
            if (IsProminent)
                dialog.MakeProminent(this.Id);

            // Sync additional properties
            SyncUnmanagedProperties();
        }
开发者ID:dbremner,项目名称:blurip,代码行数:32,代码来源:CommonFileDialogComboBox.cs


注:本文中的IFileDialogCustomize.MakeProminent方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。