204 references to StyleHelper
PresentationFramework (204)
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (1)
682host = StyleHelper.FindNameInTemplateContent(fdr, "PART_ContentHost", fdr.TemplateInternal) as Decorator;
src\Framework\System\Windows\Condition.cs (1)
223StyleHelper.SealIfSealable(_value);
src\Framework\System\Windows\Controls\ContentPresenter.cs (4)
810StyleHelper.UpdateTemplateCache(c, (FrameworkTemplate) e.OldValue, (FrameworkTemplate) e.NewValue, TemplateProperty); 883StyleHelper.DoTemplateInvalidations(this, oldTemplate); 1020StyleHelper.AddCustomTemplateRoot( container, e ); 1073StyleHelper.AddCustomTemplateRoot(
src\Framework\System\Windows\Controls\Control.cs (1)
449StyleHelper.UpdateTemplateCache(c, (FrameworkTemplate) e.OldValue, (FrameworkTemplate) e.NewValue, TemplateProperty);
src\Framework\System\Windows\Controls\ItemsPresenter.cs (1)
148StyleHelper.UpdateTemplateCache(ip, (FrameworkTemplate) e.OldValue, (FrameworkTemplate) e.NewValue, TemplateProperty);
src\Framework\System\Windows\Controls\Page.cs (1)
559StyleHelper.UpdateTemplateCache(p, (FrameworkTemplate) e.OldValue, (FrameworkTemplate) e.NewValue, TemplateProperty);
src\Framework\System\Windows\Controls\TreeViewItem.cs (1)
827int index = StyleHelper.QueryChildIndexFromChildName(HeaderPartName, template.ChildIndexFromChildName);
src\Framework\System\Windows\Data\BindingOperations.cs (2)
172Expression expr = StyleHelper.GetExpression(target, dp); 294object o = StyleHelper.GetExpression(target, dp);
src\Framework\System\Windows\DataTrigger.cs (2)
154StyleHelper.SealIfSealable(_value); 194return TriggerConditions[0].ConvertAndMatch(StyleHelper.GetDataTriggerValue(dataField, container, TriggerConditions[0].Binding));
src\Framework\System\Windows\DependencyPropertyHelper.cs (1)
217return StyleHelper.IsValueDynamic(templatedParent, templateChildIndex, dependencyProperty);
src\Framework\System\Windows\FrameworkContentElement.cs (7)
162StyleHelper.UpdateStyleCache(null, fce, (Style) e.OldValue, (Style) e.NewValue, ref fce._styleCache); 236StyleHelper.UpdateThemeStyleCache(null, fce, (Style) oldValue, (Style) newValue, ref fce._themeStyleCache); 532if (StyleHelper.GetValueFromStyleOrTemplate(new FrameworkObject(null, this), dp, ref entry)) 673return StyleHelper.GetValueFromTemplatedParent( 745StyleHelper.OnTriggerSourcePropertyInvalidated(null, frameworkTemplate, TemplatedParent, dp, e, false /*invalidateOnlyContainer*/, 753StyleHelper.OnTriggerSourcePropertyInvalidated(Style, null, this, dp, e, true /*invalidateOnlyContainer*/, 763StyleHelper.OnTriggerSourcePropertyInvalidated(ThemeStyle, null, this, dp, e, true /*invalidateOnlyContainer*/,
src\Framework\System\Windows\FrameworkElement.cs (17)
183StyleHelper.UpdateStyleCache(fe, null, (Style) e.OldValue, (Style) e.NewValue, ref fe._styleCache); 283StyleHelper.UpdateThemeStyleCache(fe, null, (Style) oldValue, (Style) newValue, ref fe._themeStyleCache); 359UncommonField<HybridDictionary[]> dataField = StyleHelper.TemplateDataField; 382StyleHelper.InvokeDeferredActions(this, template); 816return StyleHelper.FindNameInTemplateContent(this, childName, template) as DependencyObject; 1230if ((fe != startNode.FE) || StyleHelper.ShouldGetValueFromStyle(dp)) 1235if ((fe != startNode.FE) || StyleHelper.ShouldGetValueFromTemplate(dp)) 1240if ((fe != startNode.FE) || StyleHelper.ShouldGetValueFromThemeStyle(dp)) 1266if ((fce != startNode.FCE) || StyleHelper.ShouldGetValueFromStyle(dp)) 1271if ((fce != startNode.FCE) || StyleHelper.ShouldGetValueFromThemeStyle(dp)) 1880if (StyleHelper.GetValueFromStyleOrTemplate(new FrameworkObject(this, null), dp, ref entry)) 1950return StyleHelper.GetValueFromTemplatedParent( 2109StyleHelper.OnTriggerSourcePropertyInvalidated(null, frameworkTemplate, TemplatedParent, dp, e, false /*invalidateOnlyContainer*/, 2118StyleHelper.OnTriggerSourcePropertyInvalidated(Style, null, this, dp, e, true /*invalidateOnlyContainer*/, 2126StyleHelper.OnTriggerSourcePropertyInvalidated(null, TemplateInternal, this, dp, e, !HasTemplateGeneratedSubTree /*invalidateOnlyContainer*/, 2133StyleHelper.OnTriggerSourcePropertyInvalidated(ThemeStyle, null, this, dp, e, true /*invalidateOnlyContainer*/, 3041handlers = StyleHelper.GetChildRoutedEventHandlers(templateChildIndex, args.RoutedEvent, ref templatedParentTemplate.EventDependents);
src\Framework\System\Windows\FrameworkElementFactory.cs (6)
231if (StyleHelper.IsStylingLogicalTree(dp, value)) 619StyleHelper.SealIfSealable(propertyValue.ValueInternal); 633_childIndex = StyleHelper.CreateChildIndexFromChildName(_childName, _frameworkTemplate); 728if (StyleHelper.HasResourceDependentsForChild(_childIndex, ref resourceDependents)) 749StyleHelper.CreateInstanceDataForChild(dataField, container, treeNode, _childIndex, 824StyleHelper.InvalidatePropertiesOnTemplateNode(
src\Framework\System\Windows\FrameworkTemplate.cs (20)
322return StyleHelper.FindNameInTemplateContent(templatedParent, name, this); 414StyleHelper.SealTemplate( 453StyleHelper.SortResourceDependents(ref ResourceDependents); 502bool visualsCreated = StyleHelper.ApplyTemplateContent(templateDataField, container, 784StyleHelper.ParentTemplateValuesField.SetValue(dependencyObject, parentTemplateValues); 789parentTemplateValues = StyleHelper.ParentTemplateValuesField.GetValue(dependencyObject); 810HybridDictionary instanceValues = StyleHelper.EnsureInstanceData(StyleHelper.TemplateDataField, templatedParent, InstanceStyleData.InstanceValues); 811StyleHelper.ProcessInstanceValue(dependencyObject, childIndex, instanceValues, dependencyProperty, StyleHelper.UnsharedTemplateContentPropertyIndex, true /*apply*/); 826HybridDictionary instanceValues = StyleHelper.EnsureInstanceData(StyleHelper.TemplateDataField, templatedParent, InstanceStyleData.InstanceValues); 827StyleHelper.ProcessInstanceValue(dependencyObject, childIndex, instanceValues, dependencyProperty, StyleHelper.UnsharedTemplateContentPropertyIndex, true /*apply*/); 868StyleHelper.GetInstanceValue( 869StyleHelper.TemplateDataField, 875StyleHelper.UnsharedTemplateContentPropertyIndex, 1205if (StyleHelper.HasResourceDependentsForChild(templateChildIndex, ref this.ResourceDependents)) 1212StyleHelper.InvalidatePropertiesOnTemplateNode(container, 1256childIndex = StyleHelper.QueryChildIndexFromChildName(name, childIndexFromChildName);
src\Framework\System\Windows\Generated\FrameworkContentElement.cs (2)
593FrameworkElementFactory fef = StyleHelper.FindFEF(fefRoot, TemplateChildIndex); 640StyleHelper.GetThemeStyle(/* fe = */ null, /* fce = */ this);
src\Framework\System\Windows\Generated\FrameworkElement.cs (2)
613FrameworkElementFactory fef = StyleHelper.FindFEF(fefRoot, TemplateChildIndex); 660StyleHelper.GetThemeStyle(/* fe = */ this, /* fce = */ null);
src\Framework\System\Windows\MultiDataTrigger.cs (1)
156retVal = TriggerConditions[i].ConvertAndMatch(StyleHelper.GetDataTriggerValue(dataField, container, TriggerConditions[i].Binding));
src\Framework\System\Windows\MultiTrigger.cs (1)
108(_conditions[i].SourceName != null) ? _conditions[i].SourceName : StyleHelper.SelfName);
src\Framework\System\Windows\ResourceDictionary.cs (1)
2313StyleHelper.SealIfSealable(value);
src\Framework\System\Windows\Setter.cs (1)
137StyleHelper.SealIfSealable(_value);
src\Framework\System\Windows\Style.cs (15)
45StyleHelper.RegisterAlternateExpressionStorage(); 478propertyValue.ChildName = StyleHelper.SelfName; 574StyleHelper.AddEventDependent(0, this.EventHandlersStore, ref EventDependents); 585StyleHelper.SortResourceDependents(ref ResourceDependents); 735StyleHelper.UpdateTables(ref propertyValue, ref ChildRecordFromChildIndex, 741StyleHelper.AddContainerDependent(propertyValue.Property, false /*fromVisualTrigger*/, ref ContainerDependents); 771if (propertyValue.ChildName != StyleHelper.SelfName) 779if( conditions[k].SourceName != StyleHelper.SelfName ) 787StyleHelper.AddContainerDependent(propertyValue.Property, true /*fromVisualTrigger*/, ref this.ContainerDependents); 789StyleHelper.UpdateTables(ref propertyValue, ref ChildRecordFromChildIndex, 799StyleHelper.AddPropertyTriggerWithAction( trigger, ((Trigger)trigger).Property, ref this.PropertyTriggersWithActions ); 808StyleHelper.AddPropertyTriggerWithAction( trigger, triggerCondition.Property, ref this.PropertyTriggersWithActions ); 813StyleHelper.AddDataTriggerWithAction( trigger, ((DataTrigger)trigger).Binding, ref this.DataTriggersWithActions ); 822StyleHelper.AddDataTriggerWithAction( trigger, dataCondition.Binding, ref this.DataTriggersWithActions ); 840StyleHelper.ProcessEventTrigger(eventTrigger,
src\Framework\System\Windows\StyleHelper.cs (91)
81StyleHelper.DoStyleInvalidations(fe, fce, oldStyle, newStyle); 85StyleHelper.ExecuteOnApplyEnterExitActions(fe, fce, newStyle, StyleDataField); 114if (StyleHelper.IsSetOnContainer(FrameworkElement.OverridesDefaultStyleProperty, ref newThemeStyle.ContainerDependents, true)) 149StyleHelper.DoThemeStyleInvalidations(fe, fce, oldThemeStyle, newThemeStyle, style); 153StyleHelper.ExecuteOnApplyEnterExitActions(fe, fce, newThemeStyle, ThemeStyleDataField); 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); 3170StyleHelper.UpdateLoadedFlag( container, oldStyle, newStyle ); 3175StyleHelper.UpdateInstanceData( 3176StyleHelper.StyleDataField, 3198oldStyle != null ? oldStyle.ContainerDependents : StyleHelper.EmptyContainerDependents; 3201newStyle != null ? newStyle.ContainerDependents : StyleHelper.EmptyContainerDependents; 3206StyleHelper.InvalidateContainerDependents(container, 3252StyleHelper.UpdateLoadedFlag( container, oldThemeStyle, newThemeStyle ); 3257StyleHelper.UpdateInstanceData( 3258StyleHelper.ThemeStyleDataField, 3280oldThemeStyle != null ? oldThemeStyle.ContainerDependents : StyleHelper.EmptyContainerDependents; 3283newThemeStyle != null ? newThemeStyle.ContainerDependents : StyleHelper.EmptyContainerDependents; 3291StyleHelper.InvalidateContainerDependents(container, 3324oldTemplateData = StyleHelper.TemplateDataField.GetValue(feContainer); 3338StyleHelper.UpdateLoadedFlag( container, oldFrameworkTemplate, newFrameworkTemplate ); 3349StyleHelper.UpdateInstanceData( 3350StyleHelper.TemplateDataField, 3390oldContainerDependents = (oldFrameworkTemplate != null) ? oldFrameworkTemplate.ContainerDependents : StyleHelper.EmptyContainerDependents; 3391newContainerDependents = (newFrameworkTemplate != null) ? newFrameworkTemplate.ContainerDependents : StyleHelper.EmptyContainerDependents; 3395StyleHelper.ClearGeneratedSubTree(oldTemplateData, 3403StyleHelper.InvalidateContainerDependents(container, 3431StyleHelper.ClearGeneratedSubTree(oldTemplateData, feContainer /* fe */, null /* fce */, 3469List<ResourceDictionary> oldStyleTables = StyleHelper.GetResourceDictionariesFromStyle(oldStyle); 3470List<ResourceDictionary> newStyleTables = StyleHelper.GetResourceDictionariesFromStyle(newStyle); 3772object value = StyleHelper.GetChildValue( 3773StyleHelper.TemplateDataField, 3808HybridDictionary parentTemplateValues = StyleHelper.ParentTemplateValuesField.GetValue(child.DO); 3818StyleHelper.GetInstanceValue( 3819StyleHelper.TemplateDataField, 3825StyleHelper.UnsharedTemplateContentPropertyIndex, 3874if ((style != null) && StyleHelper.ShouldGetValueFromStyle(dp)) 3883value = StyleHelper.GetChildValue( 3884StyleHelper.StyleDataField, 3915if (StyleHelper.ShouldGetValueFromTemplate(dp)) 3925value = StyleHelper.GetChildValue( 3926StyleHelper.TemplateDataField, 3958if (StyleHelper.ShouldGetValueFromThemeStyle(dp)) 3970value = StyleHelper.GetChildValue( 3971StyleHelper.ThemeStyleDataField, 5363if (childName == StyleHelper.SelfName) 5398index = StyleHelper.QueryChildIndexFromChildName(childName, frameworkTemplate.ChildIndexFromChildName); 5417return StyleHelper.GetChild(container, index); 5851this(binding, logicalOp, value, StyleHelper.SelfName)
src\Framework\System\Windows\SystemResources.cs (1)
1839StyleHelper.SealIfSealable(value);
src\Framework\System\Windows\TemplateContent.cs (9)
290StyleHelper.SealIfSealable(value.ValueInternal); 293StyleHelper.UpdateTables(ref value, ref OwnerTemplate.ChildRecordFromChildIndex, ref OwnerTemplate.TriggerSourceRecordFromChildIndex, 353int childIndex = StyleHelper.CreateChildIndexFromChildName(name, OwnerTemplate); 1319StyleHelper.UpdateTables(ref pv, ref childRecordFromChildIndex, 1340StyleHelper.UpdateTables(ref pv, ref childRecordFromChildIndex, 1356StyleHelper.UpdateTables(ref pv, ref childRecordFromChildIndex, 1373StyleHelper.UpdateTables(ref pv, ref childRecordFromChildIndex, 1412StyleHelper.UpdateTables(ref propertyValue, 1431StyleHelper.UpdateTables(ref propertyValue,
src\Framework\System\Windows\TemplateNameScope.cs (4)
185StyleHelper.CreateInstanceDataForChild( 186StyleHelper.TemplateDataField, 218return StyleHelper.FindNameInTemplateContent(fo.FE, name, fo.FE.TemplateInternal); 264private static UncommonField<Hashtable> _templatedNonFeChildrenField = (UncommonField<Hashtable>)StyleHelper.TemplatedNonFeChildrenField;
src\Framework\System\Windows\TreeWalkHelper.cs (7)
781StyleHelper.InvalidateResourceDependents(d, info, ref fe.Style.ResourceDependents, 790StyleHelper.InvalidateResourceDependents(d, info, ref fe.TemplateInternal.ResourceDependents, 803StyleHelper.InvalidateResourceDependentsForChild( 823StyleHelper.InvalidateResourceDependents(d, info, ref themeStyle.ResourceDependents, 856StyleHelper.InvalidateResourceDependents(d, info, ref fce.Style.ResourceDependents, ! 871StyleHelper.InvalidateResourceDependentsForChild( 890StyleHelper.InvalidateResourceDependents(d, info, ref themeStyle.ResourceDependents,
src\Framework\System\Windows\Trigger.cs (2)
210StyleHelper.SealIfSealable(_value); 221(_sourceName != null) ? _sourceName : StyleHelper.SelfName) };
src\Framework\System\Windows\TriggerBase.cs (2)
250if (source == dependent && propertyValue.ChildName == StyleHelper.SelfName) 292target = StyleHelper.SelfName;