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