49 references to RibbonImageSize
System.Windows.Controls.Ribbon (49)
Microsoft\Windows\Controls\Ribbon\RibbonControlGroup.cs (6)
100RibbonImageSize imageSize = RibbonImageSize.Collapsed; 125if (imageSize == RibbonImageSize.Collapsed) 129else if (currentLargeCsd.ImageSize == RibbonImageSize.Large) 131imageSize = RibbonImageSize.Large; 136if (isLabelVisible && imageSize == RibbonImageSize.Large)
Microsoft\Windows\Controls\Ribbon\RibbonControlService.cs (4)
684RibbonImageSize imageSize = RibbonImageSize.Collapsed; 687imageSize = RibbonImageSize.Large; 691imageSize = RibbonImageSize.Small;
Microsoft\Windows\Controls\Ribbon\RibbonControlSizeDefinition.cs (15)
26public RibbonImageSize ImageSize 28get { return (RibbonImageSize)GetValue(ImageSizeProperty); } 34DependencyProperty.Register("ImageSize", typeof(RibbonImageSize), typeof(RibbonControlSizeDefinition), new FrameworkPropertyMetadata(RibbonImageSize.Large)); 148internal static RibbonControlSizeDefinition GetFrozenControlSizeDefinition(RibbonImageSize imageSize, 155case RibbonImageSize.Large: 157case RibbonImageSize.Small: 167case RibbonImageSize.Large: 169case RibbonImageSize.Small: 184_largeImageWithLabel.ImageSize = RibbonImageSize.Large; 199_smallImageWithLabel.ImageSize = RibbonImageSize.Small; 214_noImageWithLabel.ImageSize = RibbonImageSize.Collapsed; 229_largeImageWithoutLabel.ImageSize = RibbonImageSize.Large; 244_smallImageWithoutLabel.ImageSize = RibbonImageSize.Small; 259_noImageWithoutLabel.ImageSize = RibbonImageSize.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (14)
536if (large.ControlSizeDefinitions[0].ImageSize == RibbonImageSize.Large && 538large.ControlSizeDefinitions[1].ImageSize == RibbonImageSize.Large && 540large.ControlSizeDefinitions[2].ImageSize == RibbonImageSize.Large && 545medium.ControlSizeDefinitions.Add(new RibbonControlSizeDefinition() { ImageSize = RibbonImageSize.Small, IsLabelVisible = true }); 546medium.ControlSizeDefinitions.Add(new RibbonControlSizeDefinition() { ImageSize = RibbonImageSize.Small, IsLabelVisible = true }); 547medium.ControlSizeDefinitions.Add(new RibbonControlSizeDefinition() { ImageSize = RibbonImageSize.Small, IsLabelVisible = true }); 556if (large.ControlSizeDefinitions[0].ImageSize == RibbonImageSize.Large && 558large.ControlSizeDefinitions[1].ImageSize == RibbonImageSize.Large && 563medium.ControlSizeDefinitions.Add(new RibbonControlSizeDefinition() { ImageSize = RibbonImageSize.Small, IsLabelVisible = true }); 564medium.ControlSizeDefinitions.Add(new RibbonControlSizeDefinition() { ImageSize = RibbonImageSize.Small, IsLabelVisible = true }); 903if (controlSize.ImageSize != RibbonImageSize.Collapsed && 904(controlSize.IsLabelVisible || controlSize.ImageSize == RibbonImageSize.Large) && 941bool isNewLabelVisible = (repeatedControlSizeDefinition.ImageSize == RibbonImageSize.Large && repeatedControlSizeDefinition.IsLabelVisible); 947ImageSize = RibbonImageSize.Small,
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (9)
2631if (controlSizeDefinition.ImageSize == RibbonImageSize.Large) 2635else if (controlSizeDefinition.ImageSize == RibbonImageSize.Small) 2643if (controlSizeDefinition.ImageSize == RibbonImageSize.Small) 2676if (controlSizeDefinition.ImageSize == RibbonImageSize.Large) 2712if (controlSizeDefinition.ImageSize == RibbonImageSize.Large) 2716else if (controlSizeDefinition.ImageSize == RibbonImageSize.Small) 2724if (controlSizeDefinition.ImageSize == RibbonImageSize.Small) 2767if (controlSizeDefinition.ImageSize == RibbonImageSize.Large) 2782if (controlSizeDefinition.ImageSize == RibbonImageSize.Small)
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (1)
433if (ControlSizeDefinition.ImageSize == RibbonImageSize.Large)