예제 #1
0
        private void Init()
        {
            if (Device.RuntimePlatform == Device.iOS)
            {
                ToolbarItems.Add(new DismissModalToolBarItem(this));
            }

            InitProps();

            var fabLayout = new FabLayout(Table);

            if (Device.RuntimePlatform == Device.Android)
            {
                Fab = new Fab(fabLayout, "pencil.png", async(sender, args) =>
                {
                    await Navigation.PushForDeviceAsync(new VaultEditCipherPage(_cipherId));
                });
            }
            else
            {
                EditItem = new EditCipherToolBarItem(this, _cipherId);
                ToolbarItems.Add(EditItem);
            }

            Content        = fabLayout;
            Title          = AppResources.ViewItem;
            BindingContext = Model;
        }
예제 #2
0
        private void Init()
        {
            EditItem = new EditCipherToolBarItem(this, _cipherId);
            ToolbarItems.Add(EditItem);
            if (Device.RuntimePlatform == Device.iOS)
            {
                ToolbarItems.Add(new DismissModalToolBarItem(this));
            }

            InitProps();
            Title          = AppResources.ViewItem;
            Content        = Table;
            BindingContext = Model;
        }