Exemplo n.º 1
0
        private static BackgroundSize CreateSizeWithMaxValueSide(bool maxWidth)
        {
            BackgroundSize size = new BackgroundSize();

            if (maxWidth)
            {
                size.SetBackgroundSizeToValues(PERCENT_VALUE_100, null);
            }
            else
            {
                size.SetBackgroundSizeToValues(null, PERCENT_VALUE_100);
            }
            return(size);
        }
Exemplo n.º 2
0
 public void SetBackgroundSize(BackgroundSize size)
 {
     _backgroundSize = size;
 }