|
Dieser Artikel wurde maschinell übersetzt. Bewegen Sie den Mauszeiger über die Sätze im Artikel, um den Originaltext anzuzeigen. Weitere Informationen
|
Übersetzung
Original
|
Window::DialogResult-Eigenschaft
Namespace: System.Windows
Assembly: PresentationFramework (in PresentationFramework.dll)
[TypeConverterAttribute(typeof(DialogResultConverter))] public: property Nullable<bool> DialogResult { Nullable<bool> get (); void set (Nullable<bool> value); }
Eigenschaftswert
Typ: System::Nullable<Boolean>| Ausnahme | Bedingung |
|---|---|
| InvalidOperationException |
DrücktALT+F4. Klicken auf die Schaltfläche Schließen. Auswählen von Schließen im Systemmenü.
Hinweis |
|---|
<Button IsDefault="True" Click="acceptButton_Click">OK (IsDefault=True)</Button> <Button IsCancel="True">Cancel (IsCancel=True)</Button>
Imports System Imports System.Windows Imports System.Windows.Controls Namespace VisualBasic Partial Public Class DialogBox Inherits Window Public Sub New() InitializeComponent() End Sub ' The accept button is a button whose IsDefault property is set to true. ' This event is raised whenever this button is clicked, or the ENTER key ' is pressed. Private Sub acceptButton_Click(ByVal sender As Object, ByVal e As RoutedEventArgs) ' Accept the dialog and return the dialog result Me.DialogResult = True End Sub End Class End Namespace
using System; using System.Windows; using System.Windows.Controls; namespace CSharp { public partial class DialogBox : Window { public DialogBox() { InitializeComponent(); } // The accept button is a button whose IsDefault property is set to true. // This event is raised whenever this button is clicked, or the ENTER key // is pressed. void acceptButton_Click(object sender, RoutedEventArgs e) { // Accept the dialog and return the dialog result this.DialogResult = true; } } }
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core-Rolle wird nicht unterstützt), Windows Server 2008 R2 (Server Core-Rolle wird mit SP1 oder höher unterstützt; Itanium wird nicht unterstützt)
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET Framework.
Hinweis