31 references to RibbonControlLengthUnitType
System.Windows.Controls.Ribbon (31)
Microsoft\Windows\Controls\Ribbon\RibbonControlLength.cs (16)
28private RibbonControlLengthUnitType _unitType; 29private static RibbonControlLength _auto = new RibbonControlLength(1.0, RibbonControlLengthUnitType.Auto); 39: this(pixels, RibbonControlLengthUnitType.Pixel) 47public RibbonControlLength(double value, RibbonControlLengthUnitType type) 54if (type == RibbonControlLengthUnitType.Star && double.IsInfinity(value)) 59if (type != RibbonControlLengthUnitType.Auto 60&& type != RibbonControlLengthUnitType.Pixel 61&& type != RibbonControlLengthUnitType.Item 62&& type != RibbonControlLengthUnitType.Star) 67_unitValue = (type == RibbonControlLengthUnitType.Auto) ? 0.0 : value; 143get { return (_unitType == RibbonControlLengthUnitType.Pixel || _unitType == RibbonControlLengthUnitType.Item); } 152get { return (_unitType == RibbonControlLengthUnitType.Auto); } 161get { return (_unitType == RibbonControlLengthUnitType.Star); } 169get { return ((_unitType == RibbonControlLengthUnitType.Auto) ? 1.0 : _unitValue); } 175public RibbonControlLengthUnitType RibbonControlLengthUnitType
Microsoft\Windows\Controls\Ribbon\RibbonControlLengthConverter.cs (15)
91RibbonControlLengthUnitType type; 99type = RibbonControlLengthUnitType.Auto; 103type = RibbonControlLengthUnitType.Pixel; 131ConstructorInfo ci = typeof(RibbonControlLength).GetConstructor(new Type[] { typeof(double), typeof(RibbonControlLengthUnitType) }); 151case RibbonControlLengthUnitType.Auto: 154case RibbonControlLengthUnitType.Item: 159case RibbonControlLengthUnitType.Star: 176RibbonControlLengthUnitType unit = RibbonControlLengthUnitType.Pixel; 190unit = (RibbonControlLengthUnitType)i; 201unit = (RibbonControlLengthUnitType)i; 227if (strLen == strLenUnit && (unit == RibbonControlLengthUnitType.Auto || unit == RibbonControlLengthUnitType.Star)) 234Debug.Assert(unit == RibbonControlLengthUnitType.Pixel || unit == RibbonControlLengthUnitType.Item ||