コード例 #1
0
ファイル: ButtonBarButton.cs プロジェクト: showmap/smartwalk
        private void Initialize(
            UIImage verticalIcon,
            UIImage landscapeIcon,
            CGSize?verticalSize,
            CGSize?landscapeSize,
            SemiTransparentType semiTransparentType = SemiTransparentType.None)
        {
            _background = new Circle {
                UserInteractionEnabled = false
            };

            _background.Layer.ShadowColor   = ThemeColors.ContentDarkBackground.CGColor;
            _background.Layer.ShadowOpacity = 0.13f;
            _background.Layer.ShadowOffset  = new CGSize(2, 2);

            Add(_background);

            VerticalIcon        = verticalIcon;
            LandscapeIcon       = landscapeIcon;
            VerticalSize        = verticalSize ?? DefaultVerticalSize;
            LandscapeSize       = landscapeSize ?? DefaultLandscapeSize;
            SemiTransparentType = semiTransparentType;
            UpdateBackgroundState();

            TouchDown += (sender, e) =>
                         _background.FillColor = ThemeColors.ContentLightHighlight.ColorWithAlpha(0.58f);
            TouchUpInside  += (sender, e) => UpdateBackgroundState();
            TouchUpOutside += (sender, e) => UpdateBackgroundState();
        }
コード例 #2
0
ファイル: ButtonBarUtil.cs プロジェクト: showmap/smartwalk
        public static ButtonBarButton Create(
            SemiTransparentType semiTransparentType = SemiTransparentType.None)
        {
            var button = new ButtonBarButton(null, null, semiTransparentType);

            return(button);
        }
コード例 #3
0
ファイル: ButtonBarButton.cs プロジェクト: showmap/smartwalk
 public ButtonBarButton(
     UIImage verticalIcon,
     UIImage landscapeIcon,
     SemiTransparentType semiTransparentType = SemiTransparentType.None)
     : this(
         verticalIcon,
         landscapeIcon,
         DefaultVerticalSize,
         DefaultLandscapeSize,
         semiTransparentType)
 {
 }
コード例 #4
0
ファイル: ButtonBarUtil.cs プロジェクト: showmap/smartwalk
        public static ButtonBarButton Create(
            UIImage verticalIcon,
            UIImage landscapeIcon,
            SemiTransparentType semiTransparentType = SemiTransparentType.None)
        {
            var button =
                new ButtonBarButton(
                    verticalIcon,
                    landscapeIcon,
                    semiTransparentType);

            return(button);
        }
コード例 #5
0
ファイル: ButtonBarButton.cs プロジェクト: showmap/smartwalk
 public ButtonBarButton(
     UIImage verticalIcon,
     UIImage landscapeIcon,
     CGSize?verticalSize,
     CGSize?landscapeSize,
     SemiTransparentType semiTransparentType = SemiTransparentType.None)
     : base()
 {
     Initialize(
         verticalIcon,
         landscapeIcon,
         verticalSize,
         landscapeSize,
         semiTransparentType);
     UpdateState();
 }
コード例 #6
0
ファイル: NavBarViewBase.cs プロジェクト: showmap/smartwalk
 protected virtual void SetNavBarTransparent(SemiTransparentType transparentType, bool animated)
 {
     NavBarManager.Instance.SetTransparentType(transparentType, animated);
     UpdateViewTitle();
 }
コード例 #7
0
 public void SetTransparentType(SemiTransparentType transparentType, bool animated)
 {
     _navBar.ItemSemiTransparentType = transparentType;
     _navBar.SetTransparent(transparentType != SemiTransparentType.None, animated);
 }