1 //----------------------------------------------------------------
2 // <copyright company="Microsoft Corporation">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
5 //----------------------------------------------------------------
7 namespace System.Activities.Presentation
10 using System.Windows.Controls;
12 internal class DockedAnnotationDecorator : Decorator
14 protected override Size MeasureOverride(Size availableSize)
16 Size size = new Size();
18 if (this.Child != null)
20 this.Child.Measure(availableSize);
21 size.Height = this.Child.DesiredSize.Height;
27 protected override Size ArrangeOverride(Size finalSize)
29 if (this.Child != null)
31 this.Child.Arrange(new Rect(finalSize));