/// <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;
 }
 /// <summary>
 /// Default Ctor
 /// </summary>
 public BasePopupViewModel()
 {
     //Set defaults
     // TODO: Move colros into core and make use
     BubbleBackground = "ffffff";
     ArrowAlignment   = ElementHorizontalAlignment.Left;
 }
Beispiel #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;
 }