208 references to StyleHelper
PresentationFramework (208)
System\Windows\Annotations\AnnotationHelper.cs (1)
663host = StyleHelper.FindNameInTemplateContent(fdr, "PART_ContentHost", fdr.TemplateInternal) as Decorator;
System\Windows\Condition.cs (1)
216StyleHelper.SealIfSealable(_value);
System\Windows\Controls\ContentPresenter.cs (4)
799StyleHelper.UpdateTemplateCache(c, (FrameworkTemplate) e.OldValue, (FrameworkTemplate) e.NewValue, TemplateProperty); 872StyleHelper.DoTemplateInvalidations(this, oldTemplate); 1009StyleHelper.AddCustomTemplateRoot( container, e ); 1061StyleHelper.AddCustomTemplateRoot(
System\Windows\Controls\Control.cs (1)
439StyleHelper.UpdateTemplateCache(c, (FrameworkTemplate) e.OldValue, (FrameworkTemplate) e.NewValue, TemplateProperty);
System\Windows\Controls\ItemsPresenter.cs (1)
142StyleHelper.UpdateTemplateCache(ip, (FrameworkTemplate) e.OldValue, (FrameworkTemplate) e.NewValue, TemplateProperty);
System\Windows\Controls\Page.cs (1)
544StyleHelper.UpdateTemplateCache(p, (FrameworkTemplate) e.OldValue, (FrameworkTemplate) e.NewValue, TemplateProperty);
System\Windows\Controls\TreeViewItem.cs (1)
824int index = StyleHelper.QueryChildIndexFromChildName(HeaderPartName, template.ChildIndexFromChildName);
System\Windows\Data\BindingOperations.cs (2)
156Expression expr = StyleHelper.GetExpression(target, dp); 273object o = StyleHelper.GetExpression(target, dp);
System\Windows\DataTrigger.cs (2)
151StyleHelper.SealIfSealable(_value); 191return TriggerConditions[0].ConvertAndMatch(StyleHelper.GetDataTriggerValue(dataField, container, TriggerConditions[0].Binding));
System\Windows\DependencyPropertyHelper.cs (1)
210return StyleHelper.IsValueDynamic(templatedParent, templateChildIndex, dependencyProperty);
System\Windows\FrameworkContentElement.cs (7)
153StyleHelper.UpdateStyleCache(null, fce, (Style) e.OldValue, (Style) e.NewValue, ref fce._styleCache); 227StyleHelper.UpdateThemeStyleCache(null, fce, (Style) oldValue, (Style) newValue, ref fce._themeStyleCache); 514if (StyleHelper.GetValueFromStyleOrTemplate(new FrameworkObject(null, this), dp, ref entry)) 655return StyleHelper.GetValueFromTemplatedParent( 727StyleHelper.OnTriggerSourcePropertyInvalidated(null, frameworkTemplate, TemplatedParent, dp, e, false /*invalidateOnlyContainer*/, 735StyleHelper.OnTriggerSourcePropertyInvalidated(Style, null, this, dp, e, true /*invalidateOnlyContainer*/, 745StyleHelper.OnTriggerSourcePropertyInvalidated(ThemeStyle, null, this, dp, e, true /*invalidateOnlyContainer*/,
System\Windows\FrameworkElement.cs (17)
175StyleHelper.UpdateStyleCache(fe, null, (Style) e.OldValue, (Style) e.NewValue, ref fe._styleCache); 275StyleHelper.UpdateThemeStyleCache(fe, null, (Style) oldValue, (Style) newValue, ref fe._themeStyleCache); 351UncommonField<HybridDictionary[]> dataField = StyleHelper.TemplateDataField; 374StyleHelper.InvokeDeferredActions(this, template); 812return StyleHelper.FindNameInTemplateContent(this, childName, template) as DependencyObject; 1220if ((fe != startNode.FE) || StyleHelper.ShouldGetValueFromStyle(dp)) 1225if ((fe != startNode.FE) || StyleHelper.ShouldGetValueFromTemplate(dp)) 1230if ((fe != startNode.FE) || StyleHelper.ShouldGetValueFromThemeStyle(dp)) 1256if ((fce != startNode.FCE) || StyleHelper.ShouldGetValueFromStyle(dp)) 1261if ((fce != startNode.FCE) || StyleHelper.ShouldGetValueFromThemeStyle(dp)) 1870if (StyleHelper.GetValueFromStyleOrTemplate(new FrameworkObject(this, null), dp, ref entry)) 1940return StyleHelper.GetValueFromTemplatedParent( 2099StyleHelper.OnTriggerSourcePropertyInvalidated(null, frameworkTemplate, TemplatedParent, dp, e, false /*invalidateOnlyContainer*/, 2108StyleHelper.OnTriggerSourcePropertyInvalidated(Style, null, this, dp, e, true /*invalidateOnlyContainer*/, 2116StyleHelper.OnTriggerSourcePropertyInvalidated(null, TemplateInternal, this, dp, e, !HasTemplateGeneratedSubTree /*invalidateOnlyContainer*/, 2123StyleHelper.OnTriggerSourcePropertyInvalidated(ThemeStyle, null, this, dp, e, true /*invalidateOnlyContainer*/, 3032handlers = StyleHelper.GetChildRoutedEventHandlers(templateChildIndex, args.RoutedEvent, ref templatedParentTemplate.EventDependents);
System\Windows\FrameworkElementFactory.cs (6)
217if (StyleHelper.IsStylingLogicalTree(dp, value)) 589StyleHelper.SealIfSealable(propertyValue.ValueInternal); 603_childIndex = StyleHelper.CreateChildIndexFromChildName(_childName, _frameworkTemplate); 698if (StyleHelper.HasResourceDependentsForChild(_childIndex, ref resourceDependents)) 719StyleHelper.CreateInstanceDataForChild(dataField, container, treeNode, _childIndex, 794StyleHelper.InvalidatePropertiesOnTemplateNode(
System\Windows\FrameworkTemplate.cs (20)
310return StyleHelper.FindNameInTemplateContent(templatedParent, name, this); 402StyleHelper.SealTemplate( 441StyleHelper.SortResourceDependents(ref ResourceDependents); 490bool visualsCreated = StyleHelper.ApplyTemplateContent(templateDataField, container, 771StyleHelper.ParentTemplateValuesField.SetValue(dependencyObject, parentTemplateValues); 776parentTemplateValues = StyleHelper.ParentTemplateValuesField.GetValue(dependencyObject); 797HybridDictionary instanceValues = StyleHelper.EnsureInstanceData(StyleHelper.TemplateDataField, templatedParent, InstanceStyleData.InstanceValues); 798StyleHelper.ProcessInstanceValue(dependencyObject, childIndex, instanceValues, dependencyProperty, StyleHelper.UnsharedTemplateContentPropertyIndex, true /*apply*/); 813HybridDictionary instanceValues = StyleHelper.EnsureInstanceData(StyleHelper.TemplateDataField, templatedParent, InstanceStyleData.InstanceValues); 814StyleHelper.ProcessInstanceValue(dependencyObject, childIndex, instanceValues, dependencyProperty, StyleHelper.UnsharedTemplateContentPropertyIndex, true /*apply*/); 855StyleHelper.GetInstanceValue( 856StyleHelper.TemplateDataField, 862StyleHelper.UnsharedTemplateContentPropertyIndex, 1171if (StyleHelper.HasResourceDependentsForChild(templateChildIndex, ref this.ResourceDependents)) 1178StyleHelper.InvalidatePropertiesOnTemplateNode(container, 1222childIndex = StyleHelper.QueryChildIndexFromChildName(name, childIndexFromChildName);
System\Windows\Generated\FrameworkContentElement.cs (2)
574FrameworkElementFactory fef = StyleHelper.FindFEF(fefRoot, TemplateChildIndex); 621StyleHelper.GetThemeStyle(/* fe = */ null, /* fce = */ this);
System\Windows\Generated\FrameworkElement.cs (2)
596FrameworkElementFactory fef = StyleHelper.FindFEF(fefRoot, TemplateChildIndex); 643StyleHelper.GetThemeStyle(/* fe = */ this, /* fce = */ null);
System\Windows\MultiDataTrigger.cs (1)
150retVal = TriggerConditions[i].ConvertAndMatch(StyleHelper.GetDataTriggerValue(dataField, container, TriggerConditions[i].Binding));
System\Windows\MultiTrigger.cs (1)
106(_conditions[i].SourceName != null) ? _conditions[i].SourceName : StyleHelper.SelfName);
System\Windows\ResourceDictionary.cs (1)
2330StyleHelper.SealIfSealable(value);
System\Windows\Setter.cs (1)
134StyleHelper.SealIfSealable(_value);
System\Windows\Style.cs (15)
35StyleHelper.RegisterAlternateExpressionStorage(); 462propertyValue.ChildName = StyleHelper.SelfName; 558StyleHelper.AddEventDependent(0, this.EventHandlersStore, ref EventDependents); 569StyleHelper.SortResourceDependents(ref ResourceDependents); 719StyleHelper.UpdateTables(ref propertyValue, ref ChildRecordFromChildIndex, 725StyleHelper.AddContainerDependent(propertyValue.Property, false /*fromVisualTrigger*/, ref ContainerDependents); 755if (propertyValue.ChildName != StyleHelper.SelfName) 763if( conditions[k].SourceName != StyleHelper.SelfName ) 771StyleHelper.AddContainerDependent(propertyValue.Property, true /*fromVisualTrigger*/, ref this.ContainerDependents); 773StyleHelper.UpdateTables(ref propertyValue, ref ChildRecordFromChildIndex, 783StyleHelper.AddPropertyTriggerWithAction( trigger, ((Trigger)trigger).Property, ref this.PropertyTriggersWithActions ); 792StyleHelper.AddPropertyTriggerWithAction( trigger, triggerCondition.Property, ref this.PropertyTriggersWithActions ); 797StyleHelper.AddDataTriggerWithAction( trigger, ((DataTrigger)trigger).Binding, ref this.DataTriggersWithActions ); 806StyleHelper.AddDataTriggerWithAction( trigger, dataCondition.Binding, ref this.DataTriggersWithActions ); 824StyleHelper.ProcessEventTrigger(eventTrigger,
System\Windows\StyleHelper.cs (95)
82StyleHelper.DoStyleInvalidations(fe, fce, oldStyle, newStyle); 86StyleHelper.ExecuteOnApplyEnterExitActions(fe, fce, newStyle, StyleDataField); 115if (StyleHelper.IsSetOnContainer(FrameworkElement.OverridesDefaultStyleProperty, ref newThemeStyle.ContainerDependents, true)) 150StyleHelper.DoThemeStyleInvalidations(fe, fce, oldThemeStyle, newThemeStyle, style); 154StyleHelper.ExecuteOnApplyEnterExitActions(fe, fce, newThemeStyle, ThemeStyleDataField); 301if( StyleHelper.ShouldGetValueFromStyle(templateProperty) 303StyleHelper.ShouldGetValueFromThemeStyle(templateProperty)) 307StyleHelper.CheckForCyclicReferencesInStyleAndTemplateTriggers(templateProperty, newTemplate, style, themeStyle); 318StyleHelper.DoTemplateInvalidations(fe, oldTemplate); 322StyleHelper.ExecuteOnApplyEnterExitActions(fe, null, newTemplate); 402StyleHelper.ProcessTemplateContentFromFEF( 421StyleHelper.ProcessTemplateTriggers( 444if (StyleHelper.IsSetOnContainer(Control.TemplateProperty, ref containerDependents, true) || 445StyleHelper.IsSetOnContainer(ContentPresenter.TemplateProperty, ref containerDependents, true)) 452if (StyleHelper.IsSetOnContainer(FrameworkElement.StyleProperty, ref containerDependents, true)) 459if (StyleHelper.IsSetOnContainer(FrameworkElement.DefaultStyleKeyProperty, ref containerDependents, true)) 466if (StyleHelper.IsSetOnContainer(FrameworkElement.OverridesDefaultStyleProperty, ref containerDependents, true)) 473if (StyleHelper.IsSetOnContainer(FrameworkElement.NameProperty, ref containerDependents, true)) 868StyleHelper.UpdateTables(ref propertyValue, ref childRecordFromChildIndex, 875StyleHelper.AddEventDependent(factory._childIndex, factory.EventHandlersStore, 933conditions[k].SourceChildIndex = StyleHelper.QueryChildIndexFromChildName(conditions[k].SourceName, childIndexFromChildID); 942if (propertyValue.ChildName == StyleHelper.SelfName) 948StyleHelper.AddContainerDependent(propertyValue.Property, true /*fromVisualTrigger*/, ref containerDependents); 951StyleHelper.UpdateTables(ref propertyValue, ref childRecordFromChildIndex, 961StyleHelper.AddPropertyTriggerWithAction( triggerBase, trigger.Property, ref propertyTriggersWithActions ); 969StyleHelper.AddPropertyTriggerWithAction( triggerBase, triggerCondition.Property, ref propertyTriggersWithActions ); 974StyleHelper.AddDataTriggerWithAction( triggerBase, dataTrigger.Binding, ref dataTriggersWithActions ); 982StyleHelper.AddDataTriggerWithAction( triggerBase, dataCondition.Binding, ref dataTriggersWithActions ); 993StyleHelper.ProcessEventTrigger(eventTrigger, 1088int childIndex = StyleHelper.QueryChildIndexFromChildName(eventTrigger.SourceName, childIndexFromChildName); 1150childFef = StyleHelper.FindFEF(templateRoot, eventTrigger.TriggerChildIndex); 1177StyleHelper.AddDelegateToFireTrigger(eventTrigger.RoutedEvent, 1217StyleHelper.AddDelegateToFireTrigger(eventTrigger.RoutedEvent, 1246StyleHelper.AddEventDependent(0, eventHandlersStore, ref eventDependents); 1248eventHandlersStore.AddRoutedEventHandler(routedEvent, StyleHelper.EventTriggerHandlerOnContainer, false/* HandledEventsToo */); 1259StyleHelper.AddEventDependent(childIndex, childFef.EventHandlersStore, ref eventDependents); 1261childFef.EventHandlersStore.AddRoutedEventHandler(routedEvent, StyleHelper.EventTriggerHandlerOnChild, false/* HandledEventsToo */); 1289StyleHelper.AddEventDependent( childIndex, 1292eventHandlersStore.AddRoutedEventHandler(routedEvent, StyleHelper.EventTriggerHandlerOnChild, false/* HandledEventsToo */); 1380StyleHelper.ProcessInstanceValuesForChild( 1390StyleHelper.ProcessInstanceValuesForChild( 1415StyleHelper.ProcessInstanceValuesForChild( 1448StyleHelper.ProcessInstanceValuesForChild( 1459StyleHelper.ProcessInstanceValuesForChild( 2139templatedChildren = StyleHelper.TemplatedFeChildrenField.GetValue(feContainer); 2140StyleHelper.TemplatedFeChildrenField.ClearValue(feContainer); 2144templatedChildren = StyleHelper.TemplatedFeChildrenField.GetValue(fceContainer); 2145StyleHelper.TemplatedFeChildrenField.ClearValue(fceContainer); 2297HybridDictionary parentTemplateValues = StyleHelper.ParentTemplateValuesField.GetValue(walk); 2299StyleHelper.ParentTemplateValuesField.ClearValue(walk); 2310StyleHelper.ProcessInstanceValue(walk, childIndex, instanceValues, dp, -1, false /*apply*/); 2672sourceNode = StyleHelper.GetChild(container, sourceChildIndex); 3077Debug.Assert(!StyleHelper.IsSetOnContainer(conditions[j].Property, ref containerDependents, true), 3165StyleHelper.UpdateLoadedFlag( container, oldStyle, newStyle ); 3170StyleHelper.UpdateInstanceData( 3171StyleHelper.StyleDataField, 3193oldStyle != null ? oldStyle.ContainerDependents : StyleHelper.EmptyContainerDependents; 3196newStyle != null ? newStyle.ContainerDependents : StyleHelper.EmptyContainerDependents; 3201StyleHelper.InvalidateContainerDependents(container, 3247StyleHelper.UpdateLoadedFlag( container, oldThemeStyle, newThemeStyle ); 3252StyleHelper.UpdateInstanceData( 3253StyleHelper.ThemeStyleDataField, 3275oldThemeStyle != null ? oldThemeStyle.ContainerDependents : StyleHelper.EmptyContainerDependents; 3278newThemeStyle != null ? newThemeStyle.ContainerDependents : StyleHelper.EmptyContainerDependents; 3286StyleHelper.InvalidateContainerDependents(container, 3319oldTemplateData = StyleHelper.TemplateDataField.GetValue(feContainer); 3333StyleHelper.UpdateLoadedFlag( container, oldFrameworkTemplate, newFrameworkTemplate ); 3344StyleHelper.UpdateInstanceData( 3345StyleHelper.TemplateDataField, 3385oldContainerDependents = (oldFrameworkTemplate != null) ? oldFrameworkTemplate.ContainerDependents : StyleHelper.EmptyContainerDependents; 3386newContainerDependents = (newFrameworkTemplate != null) ? newFrameworkTemplate.ContainerDependents : StyleHelper.EmptyContainerDependents; 3390StyleHelper.ClearGeneratedSubTree(oldTemplateData, 3398StyleHelper.InvalidateContainerDependents(container, 3426StyleHelper.ClearGeneratedSubTree(oldTemplateData, feContainer /* fe */, null /* fce */, 3464List<ResourceDictionary> oldStyleTables = StyleHelper.GetResourceDictionariesFromStyle(oldStyle); 3465List<ResourceDictionary> newStyleTables = StyleHelper.GetResourceDictionariesFromStyle(newStyle); 3767object value = StyleHelper.GetChildValue( 3768StyleHelper.TemplateDataField, 3803HybridDictionary parentTemplateValues = StyleHelper.ParentTemplateValuesField.GetValue(child.DO); 3813StyleHelper.GetInstanceValue( 3814StyleHelper.TemplateDataField, 3820StyleHelper.UnsharedTemplateContentPropertyIndex, 3869if ((style != null) && StyleHelper.ShouldGetValueFromStyle(dp)) 3878value = StyleHelper.GetChildValue( 3879StyleHelper.StyleDataField, 3910if (StyleHelper.ShouldGetValueFromTemplate(dp)) 3920value = StyleHelper.GetChildValue( 3921StyleHelper.TemplateDataField, 3953if (StyleHelper.ShouldGetValueFromThemeStyle(dp)) 3965value = StyleHelper.GetChildValue( 3966StyleHelper.ThemeStyleDataField, 5356if (childName == StyleHelper.SelfName) 5391index = StyleHelper.QueryChildIndexFromChildName(childName, frameworkTemplate.ChildIndexFromChildName); 5410return StyleHelper.GetChild(container, index); 5845this(binding, logicalOp, value, StyleHelper.SelfName)
System\Windows\SystemResources.cs (1)
1768StyleHelper.SealIfSealable(value);
System\Windows\TemplateContent.cs (9)
276StyleHelper.SealIfSealable(value.ValueInternal); 279StyleHelper.UpdateTables(ref value, ref OwnerTemplate.ChildRecordFromChildIndex, ref OwnerTemplate.TriggerSourceRecordFromChildIndex, 313int childIndex = StyleHelper.CreateChildIndexFromChildName(name, OwnerTemplate); 1252StyleHelper.UpdateTables(ref pv, ref childRecordFromChildIndex, 1273StyleHelper.UpdateTables(ref pv, ref childRecordFromChildIndex, 1289StyleHelper.UpdateTables(ref pv, ref childRecordFromChildIndex, 1306StyleHelper.UpdateTables(ref pv, ref childRecordFromChildIndex, 1345StyleHelper.UpdateTables(ref propertyValue, 1364StyleHelper.UpdateTables(ref propertyValue,
System\Windows\TemplateNameScope.cs (4)
182StyleHelper.CreateInstanceDataForChild( 183StyleHelper.TemplateDataField, 215return StyleHelper.FindNameInTemplateContent(fo.FE, name, fo.FE.TemplateInternal); 261private static UncommonField<Hashtable> _templatedNonFeChildrenField = (UncommonField<Hashtable>)StyleHelper.TemplatedNonFeChildrenField;
System\Windows\TreeWalkHelper.cs (7)
782StyleHelper.InvalidateResourceDependents(d, info, ref fe.Style.ResourceDependents, 791StyleHelper.InvalidateResourceDependents(d, info, ref fe.TemplateInternal.ResourceDependents, 804StyleHelper.InvalidateResourceDependentsForChild( 824StyleHelper.InvalidateResourceDependents(d, info, ref themeStyle.ResourceDependents, 857StyleHelper.InvalidateResourceDependents(d, info, ref fce.Style.ResourceDependents, ! 872StyleHelper.InvalidateResourceDependentsForChild( 891StyleHelper.InvalidateResourceDependents(d, info, ref themeStyle.ResourceDependents,
System\Windows\Trigger.cs (2)
205StyleHelper.SealIfSealable(_value); 216(_sourceName != null) ? _sourceName : StyleHelper.SelfName) };
System\Windows\TriggerBase.cs (2)
244if (source == dependent && propertyValue.ChildName == StyleHelper.SelfName) 286target = StyleHelper.SelfName;