Exemple #1
0
        void UpdateFlyout()
        {
            if (_flyoutLayout.ChildView == null)
            {
                Update();
            }
            else
            {
                // Queue up disposal of the previous renderers after the current layout updates have finished
                new Handler(Looper.MainLooper).Post(Update);
            }

            void Update()
            {
                if (_flyoutLayout == null || _flyoutLayout.IsDisposed())
                {
                    return;
                }

                if (_flyoutLayout.ChildView != null)
                {
                    _flyoutLayout.ChildView.PropertyChanged -= HandleFlyoutPropertyChanged;
                }

                _flyoutLayout.ChildView = Element.Flyout;

                if (_flyoutLayout.ChildView != null)
                {
                    _flyoutLayout.ChildView.PropertyChanged += HandleFlyoutPropertyChanged;
                }
            }
        }
Exemple #2
0
        void UpdateDetail()
        {
            if (_detailLayout.ChildView == null)
            {
                Update();
            }
            else
            {
                // Queue up disposal of the previous renderers after the current layout updates have finished
                new Handler(Looper.MainLooper).Post(Update);
            }

            void Update()
            {
                if (_detailLayout == null || _detailLayout.IsDisposed())
                {
                    return;
                }

                Context.HideKeyboard(this);
                _detailLayout.ChildView = Element.Detail;
            }
        }