1 //----------------------------------------------------------------
2 // <copyright company="Microsoft Corporation">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
5 //----------------------------------------------------------------
7 namespace System.Activities.Presentation.Annotations
10 using System.Activities.Presentation.Model;
11 using System.Activities.Presentation.View;
13 // This is to workaround a
14 internal class NotifyArgumentVariableAnnotationTextChanged : Change
16 public ArgumentDesigner ArgumentDesigner { get; set; }
18 public VariableDesigner VariableDesigner { get; set; }
20 public override string Description
22 get { return SR.NotifyAnnotationTextChangedDescription; }
25 public override bool Apply()
27 this.VariableDesigner.Dispatcher.BeginInvoke(
30 this.VariableDesigner.NotifyAnnotationTextChanged();
31 this.ArgumentDesigner.NotifyAnnotationTextChanged();
33 Windows.Threading.DispatcherPriority.ApplicationIdle,
38 public override Change GetInverse()
40 return new NotifyArgumentVariableAnnotationTextChanged()
42 VariableDesigner = this.VariableDesigner,
43 ArgumentDesigner = this.ArgumentDesigner,