/// <summary>
 /// Default constructor
 /// </summary>
 public BasePopupMenuViewModel()
 {
     // Set default values
     // TODO: Move colors into Core and make use of it here
     BubbleBackground = "ffffff";
     ArrowAlignment   = ElementHorizontalAlignment.Left;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Default Ctor
 /// </summary>
 public BasePopupViewModel()
 {
     //Set defaults
     // TODO: Move colros into core and make use
     BubbleBackground = "ffffff";
     ArrowAlignment   = ElementHorizontalAlignment.Left;
 }
Exemplo n.º 3
0
        public void SetHorizontalAlignment(ElementHorizontalAlignment value)
        {
            _horizontalAlignment = value;

            switch (value)
            {
            case ElementHorizontalAlignment.Left:
                Control.HorizontalAlignment = HorizontalAlignment.Left;
                break;

            case ElementHorizontalAlignment.Center:
                Control.HorizontalAlignment = HorizontalAlignment.Center;
                break;

            case ElementHorizontalAlignment.Right:
                Control.HorizontalAlignment = HorizontalAlignment.Right;
                break;

            case ElementHorizontalAlignment.Stretch:
                Control.HorizontalAlignment = HorizontalAlignment.Stretch;
                break;
            }
        }
 public BasePopupViewModel()
 {
     MenuBackgroundRGBHex = "fafafa";
     AnchorAlignment      = ElementHorizontalAlignment.Left;
 }
 public void SetHorizontalAlignment(ElementHorizontalAlignment value)
 {
     _horizontalAlignment = value;
 }