5 instantiations of RibbonControlLength
System.Windows.Controls.Ribbon (5)
Microsoft\Windows\Controls\Ribbon\RibbonControlLength.cs (1)
29private static RibbonControlLength _auto = new RibbonControlLength(1.0, RibbonControlLengthUnitType.Auto);
Microsoft\Windows\Controls\Ribbon\RibbonControlLengthConverter.cs (2)
106return new RibbonControlLength(doubleValue, type); 241return new RibbonControlLength(value, unit);
Microsoft\Windows\Controls\Ribbon\RibbonControlSizeDefinition.cs (2)
84new FrameworkPropertyMetadata(new RibbonControlLength(0)), 98new FrameworkPropertyMetadata(new RibbonControlLength(double.PositiveInfinity)),
31 references to RibbonControlLength
System.Windows.Controls.Ribbon (31)
Microsoft\Windows\Controls\Ribbon\RibbonControlLength.cs (9)
23public struct RibbonControlLength : IEquatable<RibbonControlLength> 29private static RibbonControlLength _auto = new RibbonControlLength(1.0, RibbonControlLengthUnitType.Auto); 78public static bool operator ==(RibbonControlLength length1, RibbonControlLength length2) 87public static bool operator !=(RibbonControlLength length1, RibbonControlLength length2) 98if (obj is RibbonControlLength length) 111public bool Equals(RibbonControlLength other) 182public static RibbonControlLength Auto
Microsoft\Windows\Controls\Ribbon\RibbonControlLengthConverter.cs (6)
120if (value != null && value is RibbonControlLength) 122RibbonControlLength length = (RibbonControlLength)value; 131ConstructorInfo ci = typeof(RibbonControlLength).GetConstructor(new Type[] { typeof(double), typeof(RibbonControlLengthUnitType) }); 146internal static string ToString(RibbonControlLength length, CultureInfo cultureInfo) 171internal static RibbonControlLength FromString(string s, CultureInfo cultureInfo)
Microsoft\Windows\Controls\Ribbon\RibbonControlSizeDefinition.cs (16)
59public RibbonControlLength Width 61get { return (RibbonControlLength)GetValue(WidthProperty); } 68typeof(RibbonControlLength), 70new FrameworkPropertyMetadata(RibbonControlLength.Auto), 73public RibbonControlLength MinWidth 75get { return (RibbonControlLength)GetValue(MinWidthProperty); } 82typeof(RibbonControlLength), 87public RibbonControlLength MaxWidth 89get { return (RibbonControlLength)GetValue(MaxWidthProperty); } 96typeof(RibbonControlLength), 107RibbonControlLength length = (RibbonControlLength)width; 117RibbonControlLength length = (RibbonControlLength)minWidth; 127RibbonControlLength length = (RibbonControlLength)maxWidth;