Windows.UI.Xaml.UIElement.Arrange C# (CSharp) Method

Arrange() public method

public Arrange ( [ finalRect ) : void
finalRect [
return void
		public extern void Arrange([In] Rect finalRect);
		public extern bool CapturePointer([In] Pointer value);

Usage Example

示例#1
0
        protected void ArrangeChildFluently(UIElement child, Point targetPosition, Size childSize, Duration duration)
        {
            if (_currentStoryboardDisposable == null)
                throw new InvalidOperationException("You must call BeginStoryboard before arranging UI Elements fluently");

            var translateTransform = child.RenderTransform as TranslateTransform;
            if (translateTransform == null)
                child.RenderTransform = translateTransform = new TranslateTransform();

            child.Arrange(new Rect(new Point(), childSize));

            _currentStoryboardDisposable.AddAnimtation(CreateDoubleAnimation(targetPosition.X,
                                                                             duration,
                                                                             child,
                                                                             TranslateXPath));
            _currentStoryboardDisposable.AddAnimtation(CreateDoubleAnimation(targetPosition.Y,
                                                                             duration,
                                                                             child,
                                                                             TranslateYPath));
        }
All Usage Examples Of Windows.UI.Xaml.UIElement::Arrange