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

            var toolbarBg = FoodyTheme.SharedTheme.NavigationBackgroundForSplitView();

            Toolbar.SetBackgroundImage(toolbarBg, UIToolbarPosition.Any, UIBarMetrics.Default);

            var bottomToolbarBg = FoodyTheme.SharedTheme.ToolbarBackgroundForSplitView();

            BottomToolbar.SetBackgroundImage(bottomToolbarBg, UIToolbarPosition.Bottom, UIBarMetrics.Default);


            ingredientsController = new IngredientsTableVIewController(UITableViewStyle.Plain);
            IngredientsTableView.WeakDataSource = ingredientsController;
            IngredientsTableView.WeakDelegate   = ingredientsController;

            IngredientsTableView.SeparatorColor = UIColor.Clear;
            IngredientsTableView.SeparatorStyle = UITableViewCellSeparatorStyle.None;


            stepsController = new StepsTableVIewController(UITableViewStyle.Plain);
            StepsTableView.WeakDataSource = stepsController;
            StepsTableView.WeakDelegate   = stepsController;

            FoodyTheme.Apply(View);
            ViewsContainer.Hidden = true;
        }
Пример #2
0
 internal void CreateChilds(DesignerWithMapPath designer)
 {
     CreateChildControls();
     TopToolbar.CreateChilds(designer);
     BottomToolbar.CreateChilds(designer);
     EditPanel.SetDesigner(designer);
 }
        private async Task OpenDrawer()
        {
            await Task.WhenAll(Backdrop.FadeTo(1, duration), BottomToolbar.TranslateTo(0, 0, duration, Easing.SinIn),
                               ToolbarWrapper.TranslateTo(0, openY, duration, Easing.SinIn));

            Backdrop.InputTransparent = false;
        }
Пример #4
0
        async Task OpenDrawer()
        {
            await Task.WhenAll
            (
                Backdrop.FadeTo(1, length: duration),
                BottomToolbar.TranslateTo(0, openY, length: duration, easing: Easing.SinIn)
            );

            Backdrop.InputTransparent = false;
        }
Пример #5
0
        async Task CloseDrawer()
        {
            await Task.WhenAll
            (
                Backdrop.FadeTo(0, length: duration),
                BottomToolbar.TranslateTo(0, 260, length: duration, easing: Easing.SinIn)
            );

            Backdrop.InputTransparent = true;
        }