1 //----------------------------------------------------------------
2 // <copyright company="Microsoft Corporation">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
5 //----------------------------------------------------------------
7 namespace System.Activities.Presentation.View
9 using System.Activities.Presentation.Annotations;
11 using System.Windows.Input;
13 internal partial class AnnotationDialog : DialogWindow
15 public AnnotationDialog()
17 this.InitializeComponent();
18 this.HelpKeyword = typeof(Annotation).FullName;
21 public string AnnotationText
25 return this.annotationTextBox.Text;
32 this.annotationTextBox.Text = string.Empty;
36 this.annotationTextBox.Text = value;
41 protected override void OnKeyDown(Windows.Input.KeyEventArgs e)
43 if (e.Key == Key.Escape)
45 this.DialogResult = false;
54 private void OnOkClick(object sender, RoutedEventArgs args)
56 this.DialogResult = true;
59 private void OnCancelClick(object sender, RoutedEventArgs args)
61 this.DialogResult = false;