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