コード例 #1
0
ファイル: SvgButton.cs プロジェクト: tro476/photo-plugin
        public bool TouchUpInside(SKRect rect)
        {
            bool touchUpInsideButton = Touched && ViewBox.IntersectsWithInclusive(rect) && IsVisible;

            if (IsToggleButton && touchUpInsideButton)
            {
                IsToggled = !IsToggled;
            }

            return(touchUpInsideButton);
        }
コード例 #2
0
ファイル: SvgButton.cs プロジェクト: tro476/photo-plugin
        public bool TouchUpInside(SKRect rect)
        {
            bool touchUpInsideButton = Touched && ViewBox.IntersectsWithInclusive(rect) && IsVisible;

            if (IsToggleButton && touchUpInsideButton)
            {
                IsToggled = !IsToggled;
            }

            if (touchUpInsideButton)
            {
                Handler?.Invoke(this, new EventArgs());
            }

            return(touchUpInsideButton);
        }
コード例 #3
0
ファイル: SvgButton.cs プロジェクト: tro476/photo-plugin
 public void CheckIntersection(SKRect rect)
 {
     Touched = ViewBox.IntersectsWithInclusive(rect);
 }