added samples
[windows-sources.git] / sdk / samples / CrossTechnologySamples / VistaBridge / vistabridgelibrary / dialogs / taskdialogbutton.cs
blobc6cde613da077a963f3050fb3c21272dc735abb9
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
5 namespace Microsoft.SDK.Samples.VistaBridge.Library
7 /// <summary>
8 /// Implements a button that can be hosted in a task dialog.
9 /// </summary>
10 public class TaskDialogButton : TaskDialogButtonBase
12 /// <summary>
13 /// Creates a new instance of this class.
14 /// </summary>
15 public TaskDialogButton() { }
17 /// <summary>
18 /// Creates a new instance of this class with the specified property settings.
19 /// </summary>
20 /// <param name="name">The name of the button.</param>
21 /// <param name="text">The button label.</param>
22 public TaskDialogButton(string name, string text) : base(name, text) { }
24 private bool showElevationIcon;
25 /// <summary>
26 /// Gets or sets a value that controls whether the elevation icon is displayed.
27 /// </summary>
28 public bool ShowElevationIcon
30 get { return showElevationIcon; }
31 set
33 CheckPropertyChangeAllowed("ShowElevationIcon");
34 showElevationIcon = value;
35 ApplyPropertyChange("ShowElevationIcon");