System.Windows.Controls.AnimatedPanel.GetInitialRect C# (CSharp) Method

GetInitialRect() protected method

Gets the initial bounds of an element.
protected GetInitialRect ( Size panelSize, Rect elementRect, UIElement element ) : Rect
panelSize System.Windows.Size The size of this panel.
elementRect System.Windows.Rect The computed bounds of the panel.
element UIElement The element whose initial bounds are required.
return System.Windows.Rect
        protected virtual Rect GetInitialRect(Size panelSize, Rect elementRect, UIElement element)
        {
            return new Rect(0, 0, elementRect.Width, elementRect.Height);
        }