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; }
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; }
async Task OpenDrawer() { await Task.WhenAll ( Backdrop.FadeTo(1, length: duration), BottomToolbar.TranslateTo(0, openY, length: duration, easing: Easing.SinIn) ); Backdrop.InputTransparent = false; }
async Task CloseDrawer() { await Task.WhenAll ( Backdrop.FadeTo(0, length: duration), BottomToolbar.TranslateTo(0, 260, length: duration, easing: Easing.SinIn) ); Backdrop.InputTransparent = true; }