31 references to RibbonControlLengthUnitType
System.Windows.Controls.Ribbon (31)
Microsoft\Windows\Controls\Ribbon\RibbonControlLength.cs (16)
30
private
RibbonControlLengthUnitType
_unitType;
31
private static RibbonControlLength _auto = new RibbonControlLength(1.0,
RibbonControlLengthUnitType
.Auto);
41
: this(pixels,
RibbonControlLengthUnitType
.Pixel)
49
public RibbonControlLength(double value,
RibbonControlLengthUnitType
type)
56
if (type ==
RibbonControlLengthUnitType
.Star && double.IsInfinity(value))
61
if (type !=
RibbonControlLengthUnitType
.Auto
62
&& type !=
RibbonControlLengthUnitType
.Pixel
63
&& type !=
RibbonControlLengthUnitType
.Item
64
&& type !=
RibbonControlLengthUnitType
.Star)
69
_unitValue = (type ==
RibbonControlLengthUnitType
.Auto) ? 0.0 : value;
145
get { return (_unitType ==
RibbonControlLengthUnitType
.Pixel || _unitType ==
RibbonControlLengthUnitType
.Item); }
154
get { return (_unitType ==
RibbonControlLengthUnitType
.Auto); }
163
get { return (_unitType ==
RibbonControlLengthUnitType
.Star); }
171
get { return ((_unitType ==
RibbonControlLengthUnitType
.Auto) ? 1.0 : _unitValue); }
177
public
RibbonControlLengthUnitType
RibbonControlLengthUnitType
Microsoft\Windows\Controls\Ribbon\RibbonControlLengthConverter.cs (15)
92
RibbonControlLengthUnitType
type;
100
type =
RibbonControlLengthUnitType
.Auto;
104
type =
RibbonControlLengthUnitType
.Pixel;
132
ConstructorInfo ci = typeof(RibbonControlLength).GetConstructor(new Type[] { typeof(double), typeof(
RibbonControlLengthUnitType
) });
152
case
RibbonControlLengthUnitType
.Auto:
155
case
RibbonControlLengthUnitType
.Item:
160
case
RibbonControlLengthUnitType
.Star:
177
RibbonControlLengthUnitType
unit =
RibbonControlLengthUnitType
.Pixel;
191
unit = (
RibbonControlLengthUnitType
)i;
202
unit = (
RibbonControlLengthUnitType
)i;
228
if (strLen == strLenUnit && (unit ==
RibbonControlLengthUnitType
.Auto || unit ==
RibbonControlLengthUnitType
.Star))
235
Debug.Assert(unit ==
RibbonControlLengthUnitType
.Pixel || unit ==
RibbonControlLengthUnitType
.Item ||