protected PrettyDialogViewController()
 {
     HeaderView = new ImageAndTitleHeaderView();
     SlideUpTitle = new SlideUpTitleView(44f) { Offset = 100f };
     NavigationItem.TitleView = SlideUpTitle;
     _backgroundHeaderView = new UIView();
 }
Пример #2
0
        protected BaseDialogViewController()
            : base(UITableViewStyle.Grouped)
        {
            NavigationItem.TitleView = SlideUpTitle = new SlideUpTitleView(44f)
            {
                Offset = 100f,
            };

            HeaderView = new ImageAndTitleHeaderView();
        }
Пример #3
0
        protected BaseDialogViewController()
            : base(UITableViewStyle.Grouped)
        {
            SlideUpTitle = new SlideUpTitleView(44f)
            {
                Offset = 100f
            };
            NavigationItem.TitleView = SlideUpTitle;

            HeaderView = new ImageAndTitleHeaderView();

            Appearing
            .Where(x => ToolbarItems != null && NavigationController != null)
            .Subscribe(x => NavigationController.SetToolbarHidden(false, x));
            Disappearing
            .Where(x => ToolbarItems != null && NavigationController != null)
            .Subscribe(x => NavigationController.SetToolbarHidden(true, x));
            Disappearing
            .Where(_ => NavigationController != null)
            .Subscribe(_ => NavigationController.NavigationBar.ShadowImage = null);
        }
Пример #4
0
        public static EventHandler MakeHandler(ImageAndTitleHeaderView view)
        {
            var weakRef = new WeakReference <ImageAndTitleHeaderView>(view);

            return(new EventHandler((s, e) => weakRef.Get()._clickedSubject.OnNext(Unit.Default)));
        }