1 write to ControlSizeDefinitions
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonGroupSizeDefinition.cs (1)
29ControlSizeDefinitions = new RibbonControlSizeDefinitionCollection();
31 references to ControlSizeDefinitions
System.Windows.Controls.Ribbon (31)
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (31)
513int lastRepeatStartIndex = last.ControlSizeDefinitions.Count - 1; 528lastRepeatStartIndex = last.ControlSizeDefinitions.Count - 1; 536if (large.ControlSizeDefinitions[0].ImageSize == RibbonImageSize.Large && 537large.ControlSizeDefinitions[0].IsLabelVisible && 538large.ControlSizeDefinitions[1].ImageSize == RibbonImageSize.Large && 539large.ControlSizeDefinitions[1].IsLabelVisible && 540large.ControlSizeDefinitions[2].ImageSize == RibbonImageSize.Large && 541large.ControlSizeDefinitions[2].IsLabelVisible) 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 && 557large.ControlSizeDefinitions[0].IsLabelVisible && 558large.ControlSizeDefinitions[1].ImageSize == RibbonImageSize.Large && 559large.ControlSizeDefinitions[1].IsLabelVisible) 563medium.ControlSizeDefinitions.Add(new RibbonControlSizeDefinition() { ImageSize = RibbonImageSize.Small, IsLabelVisible = true }); 564medium.ControlSizeDefinitions.Add(new RibbonControlSizeDefinition() { ImageSize = RibbonImageSize.Small, IsLabelVisible = true }); 882largeGroupSizeDefinition.ControlSizeDefinitions.Add(controlSizeDefinition); 894RibbonControlSizeDefinition lastControlSize = groupSizeDefinition.ControlSizeDefinitions[repeatStartIndex]; 901RibbonControlSizeDefinition controlSize = groupSizeDefinition.ControlSizeDefinitions[i]; 934RibbonControlSizeDefinition controlSize = (RibbonControlSizeDefinition)groupSizeDefinition.ControlSizeDefinitions[i].Clone(); 935reduced.ControlSizeDefinitions.Add(controlSize); 940RibbonControlSizeDefinition repeatedControlSizeDefinition = groupSizeDefinition.ControlSizeDefinitions[repeatStartIndex]; 951reduced.ControlSizeDefinitions.Add(sameSize); 956for (int i = repeatStartIndex + 3; i < groupSizeDefinition.ControlSizeDefinitions.Count; i++) 958RibbonControlSizeDefinition controlSize = (RibbonControlSizeDefinition)groupSizeDefinition.ControlSizeDefinitions[i].Clone(); 959reduced.ControlSizeDefinitions.Add(controlSize); 1072RibbonControlSizeDefinitionCollection controlSizeDefinitions = groupDefinition.ControlSizeDefinitions; 1189RibbonControlSizeDefinitionCollection currentControlSizeDefinitions = currentGroupSizeDefinition.ControlSizeDefinitions; 1193return currentGroupSizeDefinition.ControlSizeDefinitions; 1205RibbonControlSizeDefinitionCollection controlSizeDefinitions = groupSizeDefinition.ControlSizeDefinitions;