1 instantiation of ValueAndValueSource
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
204return new ValueAndValueSource() { Value = d.GetValue(property), ValueSource = DependencyPropertyHelper.GetValueSource(d, property).BaseValueSource };
36 references to ValueAndValueSource
System.Windows.Controls.Ribbon (36)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (10)
1044var itemTemplate = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemTemplateProperty); 1045var itemTemplateSelector = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemTemplateSelectorProperty); 1046var itemStringFormat = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemStringFormatProperty); 1047var itemContainerStyle = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemContainerStyleProperty); 1048var itemContainerStyleSelector = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemContainerStyleSelectorProperty); 1049var alternationCount = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.AlternationCountProperty); 1050var itemBindingGroup = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemBindingGroupProperty); 1052var headerTemplate = RibbonHelper.GetValueAndValueSource(headeredItemsControl, HeaderedItemsControl.HeaderTemplateProperty); 1053var headerTemplateSelector = RibbonHelper.GetValueAndValueSource(headeredItemsControl, HeaderedItemsControl.HeaderTemplateSelectorProperty); 1054var headerStringFormat = RibbonHelper.GetValueAndValueSource(headeredItemsControl, HeaderedItemsControl.HeaderStringFormatProperty);
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (7)
2181var itemTemplate = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemTemplateProperty); 2182var itemTemplateSelector = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemTemplateSelectorProperty); 2183var itemStringFormat = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemStringFormatProperty); 2184var itemContainerStyle = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemContainerStyleProperty); 2185var itemContainerStyleSelector = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemContainerStyleSelectorProperty); 2186var alternationCount = RibbonHelper.GetValueAndValueSource(category, ItemsControl.AlternationCountProperty); 2187var itemBindingGroup = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemBindingGroupProperty);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (12)
197public static ValueAndValueSource GetValueAndValueSource(DependencyObject d, DependencyProperty property) 207private static void RestoreValue(DependencyObject d, DependencyProperty property, ValueAndValueSource v) 249ValueAndValueSource itemTemplate, 250ValueAndValueSource itemTemplateSelector, 251ValueAndValueSource itemStringFormat, 252ValueAndValueSource itemContainerStyle, 253ValueAndValueSource itemContainerStyleSelector, 254ValueAndValueSource alternationCount, 255ValueAndValueSource itemBindingGroup, 256ValueAndValueSource headerTemplate, 257ValueAndValueSource headerTemplateSelector, 258ValueAndValueSource headerStringFormat)
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (7)
253var itemTemplate = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemTemplateProperty); 254var itemTemplateSelector = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemTemplateSelectorProperty); 255var itemStringFormat = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemStringFormatProperty); 256var itemContainerStyle = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemContainerStyleProperty); 257var itemContainerStyleSelector = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemContainerStyleSelectorProperty); 258var alternationCount = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.AlternationCountProperty); 259var itemBindingGroup = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemBindingGroupProperty);