31 references to RibbonControlLengthUnitType
System.Windows.Controls.Ribbon (31)
Microsoft\Windows\Controls\Ribbon\RibbonControlLength.cs (16)
27
private
RibbonControlLengthUnitType
_unitType;
28
private static RibbonControlLength _auto = new RibbonControlLength(1.0,
RibbonControlLengthUnitType
.Auto);
38
: this(pixels,
RibbonControlLengthUnitType
.Pixel)
46
public RibbonControlLength(double value,
RibbonControlLengthUnitType
type)
53
if (type ==
RibbonControlLengthUnitType
.Star && double.IsInfinity(value))
58
if (type !=
RibbonControlLengthUnitType
.Auto
59
&& type !=
RibbonControlLengthUnitType
.Pixel
60
&& type !=
RibbonControlLengthUnitType
.Item
61
&& type !=
RibbonControlLengthUnitType
.Star)
66
_unitValue = (type ==
RibbonControlLengthUnitType
.Auto) ? 0.0 : value;
141
get { return (_unitType ==
RibbonControlLengthUnitType
.Pixel || _unitType ==
RibbonControlLengthUnitType
.Item); }
150
get { return (_unitType ==
RibbonControlLengthUnitType
.Auto); }
159
get { return (_unitType ==
RibbonControlLengthUnitType
.Star); }
167
get { return ((_unitType ==
RibbonControlLengthUnitType
.Auto) ? 1.0 : _unitValue); }
173
public
RibbonControlLengthUnitType
RibbonControlLengthUnitType
Microsoft\Windows\Controls\Ribbon\RibbonControlLengthConverter.cs (15)
90
RibbonControlLengthUnitType
type;
98
type =
RibbonControlLengthUnitType
.Auto;
102
type =
RibbonControlLengthUnitType
.Pixel;
130
ConstructorInfo ci = typeof(RibbonControlLength).GetConstructor(new Type[] { typeof(double), typeof(
RibbonControlLengthUnitType
) });
150
case
RibbonControlLengthUnitType
.Auto:
153
case
RibbonControlLengthUnitType
.Item:
158
case
RibbonControlLengthUnitType
.Star:
175
RibbonControlLengthUnitType
unit =
RibbonControlLengthUnitType
.Pixel;
189
unit = (
RibbonControlLengthUnitType
)i;
200
unit = (
RibbonControlLengthUnitType
)i;
226
if (strLen == strLenUnit && (unit ==
RibbonControlLengthUnitType
.Auto || unit ==
RibbonControlLengthUnitType
.Star))
233
Debug.Assert(unit ==
RibbonControlLengthUnitType
.Pixel || unit ==
RibbonControlLengthUnitType
.Item ||