FlyoutArrow/FlyoutArrow/FlyoutArrowPresenter.cs
/// <summary>
/// Updates the arrow styling based on location
/// </summary>
Updates the arrow styling based on location
Updates the arrow styling based on location
private void UpdateArrowStyle()
        {
            if (FlyoutLocation != null &&  _controlCanvas != null && _arrow != null)
            {
                var targetUI = FlyoutLocation.TransformToVisual(_controlCanvas);
                var screenCoords = targetUI.TransformPoint(new Point());
                _arrow.Style = (screenCoords.Y >= 0) ? ArrowBottomStyle : ArrowTopStyle;
            }
        }
private void UpdateArrowStyle ( ) { if ( FlyoutLocation != null && _controlCanvas != null && _arrow != null ) { var targetUI = FlyoutLocation . TransformToVisual ( _controlCanvas ) ; var screenCoords = targetUI . TransformPoint ( new Point ( ) ) ; _arrow . Style = ( screenCoords . Y >= 0 ) ? ArrowBottomStyle : ArrowTopStyle ; } }
Updates the arrow styling based on location
Updates the arrow styling based on location