Exemplo n.º 1
0
 void UpdateCurrentItem()
 {
     _currentShellItem?.Dispose();
     if (Element.CurrentItem != null)
     {
         _currentShellItem = CreateShellItemRenderer(Element.CurrentItem);
         _drawer.Main      = _currentShellItem.NativeView;
     }
     else
     {
         _drawer.Main = null;
     }
 }
Exemplo n.º 2
0
 void UpdateCurrentItem()
 {
     _shellItem?.Dispose();
     if (Element.CurrentItem != null)
     {
         _shellItem = new ShellItemRenderer(this, Element.CurrentItem);
         _shellItem.Control.SetAlignment(-1, -1);
         _shellItem.Control.SetWeight(1, 1);
         _native.Main = _shellItem.Control;
     }
     else
     {
         _native.Main = null;
     }
 }
Exemplo n.º 3
0
        public ShellMoreToolbar(ShellItemRenderer renderer) : base(Forms.NativeParent)
        {
            _shellItemRenderer = renderer;

            Homogeneous     = true;
            AlignmentX      = -1;
            AlignmentY      = -1;
            WeightX         = 1;
            WeightY         = 1;
            BackgroundColor = ShellRenderer.DefaultBackgroundColor.ToNative();
            ItemSelected   += OnItemSelected;
            _defaultClass   = new GenItemClass("full")
            {
                GetContentHandler = GetContent,
            };
        }