208 references to StyleHelper
PresentationFramework (208)
System\Windows\Annotations\AnnotationHelper.cs (1)
675host = StyleHelper.FindNameInTemplateContent(fdr, "PART_ContentHost", fdr.TemplateInternal) as Decorator;
System\Windows\Condition.cs (1)
221StyleHelper.SealIfSealable(_value);
System\Windows\Controls\ContentPresenter.cs (4)
808StyleHelper.UpdateTemplateCache(c, (FrameworkTemplate) e.OldValue, (FrameworkTemplate) e.NewValue, TemplateProperty); 881StyleHelper.DoTemplateInvalidations(this, oldTemplate); 1018StyleHelper.AddCustomTemplateRoot( container, e ); 1070StyleHelper.AddCustomTemplateRoot(
System\Windows\Controls\Control.cs (1)
448StyleHelper.UpdateTemplateCache(c, (FrameworkTemplate) e.OldValue, (FrameworkTemplate) e.NewValue, TemplateProperty);
System\Windows\Controls\ItemsPresenter.cs (1)
146StyleHelper.UpdateTemplateCache(ip, (FrameworkTemplate) e.OldValue, (FrameworkTemplate) e.NewValue, TemplateProperty);
System\Windows\Controls\Page.cs (1)
551StyleHelper.UpdateTemplateCache(p, (FrameworkTemplate) e.OldValue, (FrameworkTemplate) e.NewValue, TemplateProperty);
System\Windows\Controls\TreeViewItem.cs (1)
828int index = StyleHelper.QueryChildIndexFromChildName(HeaderPartName, template.ChildIndexFromChildName);
System\Windows\Data\BindingOperations.cs (2)
165Expression expr = StyleHelper.GetExpression(target, dp); 282object o = StyleHelper.GetExpression(target, dp);
System\Windows\DataTrigger.cs (2)
153StyleHelper.SealIfSealable(_value); 193return TriggerConditions[0].ConvertAndMatch(StyleHelper.GetDataTriggerValue(dataField, container, TriggerConditions[0].Binding));
System\Windows\DependencyPropertyHelper.cs (1)
211return StyleHelper.IsValueDynamic(templatedParent, templateChildIndex, dependencyProperty);
System\Windows\FrameworkContentElement.cs (7)
165StyleHelper.UpdateStyleCache(null, fce, (Style) e.OldValue, (Style) e.NewValue, ref fce._styleCache); 239StyleHelper.UpdateThemeStyleCache(null, fce, (Style) oldValue, (Style) newValue, ref fce._themeStyleCache); 526if (StyleHelper.GetValueFromStyleOrTemplate(new FrameworkObject(null, this), dp, ref entry)) 667return StyleHelper.GetValueFromTemplatedParent( 739StyleHelper.OnTriggerSourcePropertyInvalidated(null, frameworkTemplate, TemplatedParent, dp, e, false /*invalidateOnlyContainer*/, 747StyleHelper.OnTriggerSourcePropertyInvalidated(Style, null, this, dp, e, true /*invalidateOnlyContainer*/, 757StyleHelper.OnTriggerSourcePropertyInvalidated(ThemeStyle, null, this, dp, e, true /*invalidateOnlyContainer*/,
System\Windows\FrameworkElement.cs (17)
186StyleHelper.UpdateStyleCache(fe, null, (Style) e.OldValue, (Style) e.NewValue, ref fe._styleCache); 286StyleHelper.UpdateThemeStyleCache(fe, null, (Style) oldValue, (Style) newValue, ref fe._themeStyleCache); 362UncommonField<HybridDictionary[]> dataField = StyleHelper.TemplateDataField; 385StyleHelper.InvokeDeferredActions(this, template); 823return StyleHelper.FindNameInTemplateContent(this, childName, template) as DependencyObject; 1231if ((fe != startNode.FE) || StyleHelper.ShouldGetValueFromStyle(dp)) 1236if ((fe != startNode.FE) || StyleHelper.ShouldGetValueFromTemplate(dp)) 1241if ((fe != startNode.FE) || StyleHelper.ShouldGetValueFromThemeStyle(dp)) 1267if ((fce != startNode.FCE) || StyleHelper.ShouldGetValueFromStyle(dp)) 1272if ((fce != startNode.FCE) || StyleHelper.ShouldGetValueFromThemeStyle(dp)) 1881if (StyleHelper.GetValueFromStyleOrTemplate(new FrameworkObject(this, null), dp, ref entry)) 1951return StyleHelper.GetValueFromTemplatedParent( 2110StyleHelper.OnTriggerSourcePropertyInvalidated(null, frameworkTemplate, TemplatedParent, dp, e, false /*invalidateOnlyContainer*/, 2119StyleHelper.OnTriggerSourcePropertyInvalidated(Style, null, this, dp, e, true /*invalidateOnlyContainer*/, 2127StyleHelper.OnTriggerSourcePropertyInvalidated(null, TemplateInternal, this, dp, e, !HasTemplateGeneratedSubTree /*invalidateOnlyContainer*/, 2134StyleHelper.OnTriggerSourcePropertyInvalidated(ThemeStyle, null, this, dp, e, true /*invalidateOnlyContainer*/, 3043handlers = StyleHelper.GetChildRoutedEventHandlers(templateChildIndex, args.RoutedEvent, ref templatedParentTemplate.EventDependents);
System\Windows\FrameworkElementFactory.cs (6)
225if (StyleHelper.IsStylingLogicalTree(dp, value)) 597StyleHelper.SealIfSealable(propertyValue.ValueInternal); 611_childIndex = StyleHelper.CreateChildIndexFromChildName(_childName, _frameworkTemplate); 706if (StyleHelper.HasResourceDependentsForChild(_childIndex, ref resourceDependents)) 727StyleHelper.CreateInstanceDataForChild(dataField, container, treeNode, _childIndex, 802StyleHelper.InvalidatePropertiesOnTemplateNode(
System\Windows\FrameworkTemplate.cs (20)
319return StyleHelper.FindNameInTemplateContent(templatedParent, name, this); 411StyleHelper.SealTemplate( 450StyleHelper.SortResourceDependents(ref ResourceDependents); 499bool visualsCreated = StyleHelper.ApplyTemplateContent(templateDataField, container, 780StyleHelper.ParentTemplateValuesField.SetValue(dependencyObject, parentTemplateValues); 785parentTemplateValues = StyleHelper.ParentTemplateValuesField.GetValue(dependencyObject); 806HybridDictionary instanceValues = StyleHelper.EnsureInstanceData(StyleHelper.TemplateDataField, templatedParent, InstanceStyleData.InstanceValues); 807StyleHelper.ProcessInstanceValue(dependencyObject, childIndex, instanceValues, dependencyProperty, StyleHelper.UnsharedTemplateContentPropertyIndex, true /*apply*/); 822HybridDictionary instanceValues = StyleHelper.EnsureInstanceData(StyleHelper.TemplateDataField, templatedParent, InstanceStyleData.InstanceValues); 823StyleHelper.ProcessInstanceValue(dependencyObject, childIndex, instanceValues, dependencyProperty, StyleHelper.UnsharedTemplateContentPropertyIndex, true /*apply*/); 864StyleHelper.GetInstanceValue( 865StyleHelper.TemplateDataField, 871StyleHelper.UnsharedTemplateContentPropertyIndex, 1180if (StyleHelper.HasResourceDependentsForChild(templateChildIndex, ref this.ResourceDependents)) 1187StyleHelper.InvalidatePropertiesOnTemplateNode(container, 1231childIndex = StyleHelper.QueryChildIndexFromChildName(name, childIndexFromChildName);
System\Windows\Generated\FrameworkContentElement.cs (2)
580FrameworkElementFactory fef = StyleHelper.FindFEF(fefRoot, TemplateChildIndex); 627StyleHelper.GetThemeStyle(/* fe = */ null, /* fce = */ this);
System\Windows\Generated\FrameworkElement.cs (2)
602FrameworkElementFactory fef = StyleHelper.FindFEF(fefRoot, TemplateChildIndex); 649StyleHelper.GetThemeStyle(/* fe = */ this, /* fce = */ null);
System\Windows\MultiDataTrigger.cs (1)
155retVal = TriggerConditions[i].ConvertAndMatch(StyleHelper.GetDataTriggerValue(dataField, container, TriggerConditions[i].Binding));
System\Windows\MultiTrigger.cs (1)
112(_conditions[i].SourceName != null) ? _conditions[i].SourceName : StyleHelper.SelfName);
System\Windows\ResourceDictionary.cs (1)
2340StyleHelper.SealIfSealable(value);
System\Windows\Setter.cs (1)
135StyleHelper.SealIfSealable(_value);
System\Windows\Style.cs (15)
45StyleHelper.RegisterAlternateExpressionStorage(); 472propertyValue.ChildName = StyleHelper.SelfName; 568StyleHelper.AddEventDependent(0, this.EventHandlersStore, ref EventDependents); 579StyleHelper.SortResourceDependents(ref ResourceDependents); 729StyleHelper.UpdateTables(ref propertyValue, ref ChildRecordFromChildIndex, 735StyleHelper.AddContainerDependent(propertyValue.Property, false /*fromVisualTrigger*/, ref ContainerDependents); 765if (propertyValue.ChildName != StyleHelper.SelfName) 773if( conditions[k].SourceName != StyleHelper.SelfName ) 781StyleHelper.AddContainerDependent(propertyValue.Property, true /*fromVisualTrigger*/, ref this.ContainerDependents); 783StyleHelper.UpdateTables(ref propertyValue, ref ChildRecordFromChildIndex, 793StyleHelper.AddPropertyTriggerWithAction( trigger, ((Trigger)trigger).Property, ref this.PropertyTriggersWithActions ); 802StyleHelper.AddPropertyTriggerWithAction( trigger, triggerCondition.Property, ref this.PropertyTriggersWithActions ); 807StyleHelper.AddDataTriggerWithAction( trigger, ((DataTrigger)trigger).Binding, ref this.DataTriggersWithActions ); 816StyleHelper.AddDataTriggerWithAction( trigger, dataCondition.Binding, ref this.DataTriggersWithActions ); 834StyleHelper.ProcessEventTrigger(eventTrigger,
System\Windows\StyleHelper.cs (95)
88StyleHelper.DoStyleInvalidations(fe, fce, oldStyle, newStyle); 92StyleHelper.ExecuteOnApplyEnterExitActions(fe, fce, newStyle, StyleDataField); 121if (StyleHelper.IsSetOnContainer(FrameworkElement.OverridesDefaultStyleProperty, ref newThemeStyle.ContainerDependents, true)) 156StyleHelper.DoThemeStyleInvalidations(fe, fce, oldThemeStyle, newThemeStyle, style); 160StyleHelper.ExecuteOnApplyEnterExitActions(fe, fce, newThemeStyle, ThemeStyleDataField); 307if( StyleHelper.ShouldGetValueFromStyle(templateProperty) 309StyleHelper.ShouldGetValueFromThemeStyle(templateProperty)) 313StyleHelper.CheckForCyclicReferencesInStyleAndTemplateTriggers(templateProperty, newTemplate, style, themeStyle); 324StyleHelper.DoTemplateInvalidations(fe, oldTemplate); 328StyleHelper.ExecuteOnApplyEnterExitActions(fe, null, newTemplate); 408StyleHelper.ProcessTemplateContentFromFEF( 427StyleHelper.ProcessTemplateTriggers( 450if (StyleHelper.IsSetOnContainer(Control.TemplateProperty, ref containerDependents, true) || 451StyleHelper.IsSetOnContainer(ContentPresenter.TemplateProperty, ref containerDependents, true)) 458if (StyleHelper.IsSetOnContainer(FrameworkElement.StyleProperty, ref containerDependents, true)) 465if (StyleHelper.IsSetOnContainer(FrameworkElement.DefaultStyleKeyProperty, ref containerDependents, true)) 472if (StyleHelper.IsSetOnContainer(FrameworkElement.OverridesDefaultStyleProperty, ref containerDependents, true)) 479if (StyleHelper.IsSetOnContainer(FrameworkElement.NameProperty, ref containerDependents, true)) 874StyleHelper.UpdateTables(ref propertyValue, ref childRecordFromChildIndex, 881StyleHelper.AddEventDependent(factory._childIndex, factory.EventHandlersStore, 939conditions[k].SourceChildIndex = StyleHelper.QueryChildIndexFromChildName(conditions[k].SourceName, childIndexFromChildID); 948if (propertyValue.ChildName == StyleHelper.SelfName) 954StyleHelper.AddContainerDependent(propertyValue.Property, true /*fromVisualTrigger*/, ref containerDependents); 957StyleHelper.UpdateTables(ref propertyValue, ref childRecordFromChildIndex, 967StyleHelper.AddPropertyTriggerWithAction( triggerBase, trigger.Property, ref propertyTriggersWithActions ); 975StyleHelper.AddPropertyTriggerWithAction( triggerBase, triggerCondition.Property, ref propertyTriggersWithActions ); 980StyleHelper.AddDataTriggerWithAction( triggerBase, dataTrigger.Binding, ref dataTriggersWithActions ); 988StyleHelper.AddDataTriggerWithAction( triggerBase, dataCondition.Binding, ref dataTriggersWithActions ); 999StyleHelper.ProcessEventTrigger(eventTrigger, 1094int childIndex = StyleHelper.QueryChildIndexFromChildName(eventTrigger.SourceName, childIndexFromChildName); 1156childFef = StyleHelper.FindFEF(templateRoot, eventTrigger.TriggerChildIndex); 1183StyleHelper.AddDelegateToFireTrigger(eventTrigger.RoutedEvent, 1223StyleHelper.AddDelegateToFireTrigger(eventTrigger.RoutedEvent, 1252StyleHelper.AddEventDependent(0, eventHandlersStore, ref eventDependents); 1254eventHandlersStore.AddRoutedEventHandler(routedEvent, StyleHelper.EventTriggerHandlerOnContainer, false/* HandledEventsToo */); 1265StyleHelper.AddEventDependent(childIndex, childFef.EventHandlersStore, ref eventDependents); 1267childFef.EventHandlersStore.AddRoutedEventHandler(routedEvent, StyleHelper.EventTriggerHandlerOnChild, false/* HandledEventsToo */); 1295StyleHelper.AddEventDependent( childIndex, 1298eventHandlersStore.AddRoutedEventHandler(routedEvent, StyleHelper.EventTriggerHandlerOnChild, false/* HandledEventsToo */); 1386StyleHelper.ProcessInstanceValuesForChild( 1396StyleHelper.ProcessInstanceValuesForChild( 1421StyleHelper.ProcessInstanceValuesForChild( 1454StyleHelper.ProcessInstanceValuesForChild( 1465StyleHelper.ProcessInstanceValuesForChild( 2145templatedChildren = StyleHelper.TemplatedFeChildrenField.GetValue(feContainer); 2146StyleHelper.TemplatedFeChildrenField.ClearValue(feContainer); 2150templatedChildren = StyleHelper.TemplatedFeChildrenField.GetValue(fceContainer); 2151StyleHelper.TemplatedFeChildrenField.ClearValue(fceContainer); 2303HybridDictionary parentTemplateValues = StyleHelper.ParentTemplateValuesField.GetValue(walk); 2305StyleHelper.ParentTemplateValuesField.ClearValue(walk); 2316StyleHelper.ProcessInstanceValue(walk, childIndex, instanceValues, dp, -1, false /*apply*/); 2678sourceNode = StyleHelper.GetChild(container, sourceChildIndex); 3083Debug.Assert(!StyleHelper.IsSetOnContainer(conditions[j].Property, ref containerDependents, true), 3171StyleHelper.UpdateLoadedFlag( container, oldStyle, newStyle ); 3176StyleHelper.UpdateInstanceData( 3177StyleHelper.StyleDataField, 3199oldStyle != null ? oldStyle.ContainerDependents : StyleHelper.EmptyContainerDependents; 3202newStyle != null ? newStyle.ContainerDependents : StyleHelper.EmptyContainerDependents; 3207StyleHelper.InvalidateContainerDependents(container, 3253StyleHelper.UpdateLoadedFlag( container, oldThemeStyle, newThemeStyle ); 3258StyleHelper.UpdateInstanceData( 3259StyleHelper.ThemeStyleDataField, 3281oldThemeStyle != null ? oldThemeStyle.ContainerDependents : StyleHelper.EmptyContainerDependents; 3284newThemeStyle != null ? newThemeStyle.ContainerDependents : StyleHelper.EmptyContainerDependents; 3292StyleHelper.InvalidateContainerDependents(container, 3325oldTemplateData = StyleHelper.TemplateDataField.GetValue(feContainer); 3339StyleHelper.UpdateLoadedFlag( container, oldFrameworkTemplate, newFrameworkTemplate ); 3350StyleHelper.UpdateInstanceData( 3351StyleHelper.TemplateDataField, 3391oldContainerDependents = (oldFrameworkTemplate != null) ? oldFrameworkTemplate.ContainerDependents : StyleHelper.EmptyContainerDependents; 3392newContainerDependents = (newFrameworkTemplate != null) ? newFrameworkTemplate.ContainerDependents : StyleHelper.EmptyContainerDependents; 3396StyleHelper.ClearGeneratedSubTree(oldTemplateData, 3404StyleHelper.InvalidateContainerDependents(container, 3432StyleHelper.ClearGeneratedSubTree(oldTemplateData, feContainer /* fe */, null /* fce */, 3470List<ResourceDictionary> oldStyleTables = StyleHelper.GetResourceDictionariesFromStyle(oldStyle); 3471List<ResourceDictionary> newStyleTables = StyleHelper.GetResourceDictionariesFromStyle(newStyle); 3773object value = StyleHelper.GetChildValue( 3774StyleHelper.TemplateDataField, 3809HybridDictionary parentTemplateValues = StyleHelper.ParentTemplateValuesField.GetValue(child.DO); 3819StyleHelper.GetInstanceValue( 3820StyleHelper.TemplateDataField, 3826StyleHelper.UnsharedTemplateContentPropertyIndex, 3875if ((style != null) && StyleHelper.ShouldGetValueFromStyle(dp)) 3884value = StyleHelper.GetChildValue( 3885StyleHelper.StyleDataField, 3916if (StyleHelper.ShouldGetValueFromTemplate(dp)) 3926value = StyleHelper.GetChildValue( 3927StyleHelper.TemplateDataField, 3959if (StyleHelper.ShouldGetValueFromThemeStyle(dp)) 3971value = StyleHelper.GetChildValue( 3972StyleHelper.ThemeStyleDataField, 5362if (childName == StyleHelper.SelfName) 5397index = StyleHelper.QueryChildIndexFromChildName(childName, frameworkTemplate.ChildIndexFromChildName); 5416return StyleHelper.GetChild(container, index); 5851this(binding, logicalOp, value, StyleHelper.SelfName)
System\Windows\SystemResources.cs (1)
1775StyleHelper.SealIfSealable(value);
System\Windows\TemplateContent.cs (9)
279StyleHelper.SealIfSealable(value.ValueInternal); 282StyleHelper.UpdateTables(ref value, ref OwnerTemplate.ChildRecordFromChildIndex, ref OwnerTemplate.TriggerSourceRecordFromChildIndex, 316int childIndex = StyleHelper.CreateChildIndexFromChildName(name, OwnerTemplate); 1255StyleHelper.UpdateTables(ref pv, ref childRecordFromChildIndex, 1276StyleHelper.UpdateTables(ref pv, ref childRecordFromChildIndex, 1292StyleHelper.UpdateTables(ref pv, ref childRecordFromChildIndex, 1309StyleHelper.UpdateTables(ref pv, ref childRecordFromChildIndex, 1348StyleHelper.UpdateTables(ref propertyValue, 1367StyleHelper.UpdateTables(ref propertyValue,
System\Windows\TemplateNameScope.cs (4)
186StyleHelper.CreateInstanceDataForChild( 187StyleHelper.TemplateDataField, 219return StyleHelper.FindNameInTemplateContent(fo.FE, name, fo.FE.TemplateInternal); 265private static UncommonField<Hashtable> _templatedNonFeChildrenField = (UncommonField<Hashtable>)StyleHelper.TemplatedNonFeChildrenField;
System\Windows\TreeWalkHelper.cs (7)
786StyleHelper.InvalidateResourceDependents(d, info, ref fe.Style.ResourceDependents, 795StyleHelper.InvalidateResourceDependents(d, info, ref fe.TemplateInternal.ResourceDependents, 808StyleHelper.InvalidateResourceDependentsForChild( 828StyleHelper.InvalidateResourceDependents(d, info, ref themeStyle.ResourceDependents, 861StyleHelper.InvalidateResourceDependents(d, info, ref fce.Style.ResourceDependents, ! 876StyleHelper.InvalidateResourceDependentsForChild( 895StyleHelper.InvalidateResourceDependents(d, info, ref themeStyle.ResourceDependents,
System\Windows\Trigger.cs (2)
211StyleHelper.SealIfSealable(_value); 222(_sourceName != null) ? _sourceName : StyleHelper.SelfName) };
System\Windows\TriggerBase.cs (2)
249if (source == dependent && propertyValue.ChildName == StyleHelper.SelfName) 291target = StyleHelper.SelfName;