Пример #1
0
        public override void SafeAreaInsetsDidChange()
        {
            base.SafeAreaInsetsDidChange();

            Template1Button.AdjustSideBarMenuItemStyle(SafeAreaInsets);
            Template2Button.AdjustSideBarMenuItemStyle(SafeAreaInsets);
            Template3Button.AdjustSideBarMenuItemStyle(SafeAreaInsets);
        }
Пример #2
0
        protected override void SetupSubviews()
        {
            base.SetupSubviews();

            BackgroundColor = AppTheme.Current.Colors.SideBarMenuBackground;

            Template1Button.SetSideBarMenuItemStyle(Strings.SideBarMenu_Item_Template1, AppTheme.Current.Images.GetTemplate1Icon24());

            Template2Button.SetSideBarMenuItemStyle(Strings.SideBarMenu_Item_Template2, AppTheme.Current.Images.GetTemplate2Icon24());

            Template3Button.SetSideBarMenuItemStyle(Strings.SideBarMenu_Item_Template3, AppTheme.Current.Images.GetTemplate3Icon24());
        }
Пример #3
0
        protected override void SetupLayoutConstraints()
        {
            base.SetupLayoutConstraints();

            this.SubviewsDoNotTranslateAutoresizingMaskIntoConstraints();
            ContentView.SubviewsDoNotTranslateAutoresizingMaskIntoConstraints();

            ContentView.AddConstraints(
                Template1Button.AtTopOfSafeArea(ContentView, AppTheme.Current.Dimens.Inset5x),
                Template1Button.AtLeadingOf(ContentView),
                Template1Button.AtTrailingOf(ContentView));

            ContentView.AddConstraints(
                Template2Button.Below(Template1Button),
                Template2Button.AtLeadingOf(ContentView),
                Template2Button.AtTrailingOf(ContentView));

            ContentView.AddConstraints(
                Template3Button.Below(Template2Button),
                Template3Button.AtLeadingOf(ContentView),
                Template3Button.AtTrailingOf(ContentView),
                Template3Button.AtBottomOfSafeArea(ContentView));
        }