FlyoutArrow/FlyoutArrow/FlyoutArrowPresenter.cs
/// <summary>
/// Updates the position offset vertically from the top of the canvas
/// </summary>
Updates the position offset vertically from the top of the canvas
Updates the position offset vertically from the top of the canvas
private void UpdateTopPosition()
        {
            if (FlyoutLocation != null && _content != null && _controlCanvas != null)
            {
                var targetUiTransform = FlyoutLocation.TransformToVisual(_controlCanvas);
                var screenCoords = targetUiTransform.TransformPoint(new Point());
                _topPosition = (screenCoords.Y >= 0) ? 0 : ArrowIndicatorHeight;
                Canvas.SetTop(_content, _topPosition);
            }
        }
private void UpdateTopPosition ( ) { if ( FlyoutLocation != null && _content != null && _controlCanvas != null ) { var targetUiTransform = FlyoutLocation . TransformToVisual ( _controlCanvas ) ; var screenCoords = targetUiTransform . TransformPoint ( new Point ( ) ) ; _topPosition = ( screenCoords . Y >= 0 ) ? 0 : ArrowIndicatorHeight ; Canvas . SetTop ( _content , _topPosition ) ; } }
Updates the position offset vertically from the top of the canvas
Updates the position offset vertically from the top of the canvas