139 references to Helper
PresentationFramework (139)
src\Framework\MS\Internal\Data\ObjectRef.cs (4)
158o = Helper.FindNameInTemplate(_name, d); 195parent = Helper.FindMentor(d.InheritanceContext); 261parent = Helper.FindMentor(dd.InheritanceContext); 402d = Helper.GetTemplatedParent(d);
src\Framework\MS\Internal\Data\PropertyPathWorker.cs (1)
259else if (!Helper.HasDefaultValue(d, dp))
src\Framework\MS\Internal\Data\XmlBindingWorker.cs (1)
284_xmlDataProvider = Helper.XmlDataProviderForElement(TargetElement);
src\Framework\MS\Internal\Documents\DocumentGrid.cs (3)
445if (!Helper.IsDoubleValid(scale)) 828if (!Helper.IsDoubleValid(value)) 850if (!Helper.IsDoubleValid(value))
src\Framework\MS\Internal\FrameworkObject.cs (2)
286foParent.Reset(Helper.FindMentor(_fe.InheritanceContext)); 317foParent.Reset(Helper.FindMentor(_fce.InheritanceContext));
src\Framework\MS\Internal\Helper.cs (2)
209Helper.DowncastToFEorFCE(d, out fe, out fce, false); 510MS.Internal.Controls.IGeneratorHost host = Helper.GeneratorHostForElement(d);
src\Framework\System\Windows\Application.cs (1)
387Helper.ResourceFailureThrow(resourceKey);
src\Framework\System\Windows\BroadcastEventHelper.cs (1)
660parent = Helper.FindMentor(fo.DO.InheritanceContext);
src\Framework\System\Windows\Controls\ComboBox.cs (2)
657if (!Helper.IsComposing(EditableTextBoxSite)) 689if (Helper.IsComposing(EditableTextBoxSite))
src\Framework\System\Windows\Controls\ContentControl.cs (2)
374Helper.CheckTemplateAndTemplateSelector("Content", ContentTemplateProperty, ContentTemplateSelectorProperty, this); 423Helper.CheckTemplateAndTemplateSelector("Content", ContentTemplateProperty, ContentTemplateSelectorProperty, this);
src\Framework\System\Windows\Controls\ContentPresenter.cs (5)
293Helper.CheckTemplateAndTemplateSelector("Content", ContentTemplateProperty, ContentTemplateSelectorProperty, this); 354Helper.CheckTemplateAndTemplateSelector("Content", ContentTemplateProperty, ContentTemplateSelectorProperty, this); 495return Helper.MeasureElementWithSingleChild(this, constraint); 506return Helper.ArrangeElementWithSingleChild(this, arrangeSize); 1107stringFormat = Helper.GetEffectiveStringFormat(stringFormat);
src\Framework\System\Windows\Controls\Frame.cs (1)
1329Helper.DowncastToFEorFCE(d, out fe, out fce, false);
src\Framework\System\Windows\Controls\GridView.cs (2)
295Helper.CheckTemplateAndTemplateSelector("GridViewColumnHeader", ColumnHeaderTemplateProperty, ColumnHeaderTemplateSelectorProperty, dv); 333Helper.CheckTemplateAndTemplateSelector("GridViewColumnHeader", ColumnHeaderTemplateProperty, ColumnHeaderTemplateSelectorProperty, dv);
src\Framework\System\Windows\Controls\GridViewColumn.cs (3)
188Helper.CheckTemplateAndTemplateSelector("Header", HeaderTemplateProperty, HeaderTemplateSelectorProperty, c); 226Helper.CheckTemplateAndTemplateSelector("Header", HeaderTemplateProperty, HeaderTemplateSelectorProperty, c); 504Helper.DowncastToFEorFCE(d, out fe, out fce, false);
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
222Helper.CheckTemplateAndTemplateSelector("GridViewHeaderRowPresenter", ColumnHeaderTemplateProperty, ColumnHeaderTemplateSelectorProperty, presenter);
src\Framework\System\Windows\Controls\GroupItem.cs (18)
59_expander = Helper.FindTemplatedDescendant<Expander>(this, this); 69Helper.SetItemValuesOnContainer(itemsControl, _expander, itemsControl.ItemContainerGenerator.ItemFromContainer(this)); 93Helper.InvalidateMeasureOnPath(itemsHostPresenter, groupItem, false /*duringMeasure*/); 116Helper.ComputeCorrectionFactor(ParentItemsControl, this, ItemsHost, HeaderElement); 222Helper.ClearVirtualizingElement(this); 229Helper.SetItemValuesOnContainer(parentItemsControl, this, item); 233Helper.SetItemValuesOnContainer(parentItemsControl, _expander, item); 248Helper.StoreItemValues((IContainItemStorage)parentItemsControl, this, item); 252Helper.StoreItemValues((IContainItemStorage)parentItemsControl, _expander, item); 300Helper.ApplyCorrectionFactorToPixelHeaderSize(ParentItemsControl, this, _itemsHost, ref pixelHeaderSize); 314return Helper.ApplyCorrectionFactorToItemDesiredSizes(this, _itemsHost); 349return Helper.ReadItemValue(this, item, dp.GlobalIndex); 355Helper.StoreItemValue(this, item, dp.GlobalIndex, value); 360Helper.ClearItemValue(this, item, dp.GlobalIndex); 365Helper.ClearItemValueStorage(this, new int[] {dp.GlobalIndex}); 370Helper.ClearItemValueStorage(this); 424return Helper.FindTemplatedDescendant<ItemsPresenter>(_expander, _expander); 428return Helper.FindTemplatedDescendant<ItemsPresenter>(this, this);
src\Framework\System\Windows\Controls\HeaderedContentControl.cs (2)
171Helper.CheckTemplateAndTemplateSelector("Header", HeaderTemplateProperty, HeaderTemplateSelectorProperty, this); 221Helper.CheckTemplateAndTemplateSelector("Header", HeaderTemplateProperty, HeaderTemplateSelectorProperty, this);
src\Framework\System\Windows\Controls\HeaderedItemsControl.cs (3)
159Helper.CheckTemplateAndTemplateSelector("Header", HeaderTemplateProperty, HeaderTemplateSelectorProperty, this); 206Helper.CheckTemplateAndTemplateSelector("Header", HeaderTemplateProperty, HeaderTemplateSelectorProperty, this); 291Helper.HasDefaultValue(this, HeaderStringFormatProperty))
src\Framework\System\Windows\Controls\ItemsControl.cs (17)
663Helper.CheckTemplateAndTemplateSelector("Item", ItemTemplateProperty, ItemTemplateSelectorProperty, this); 671if (Helper.IsTemplateDefined(ItemTemplateProperty, this)) 721Helper.CheckStyleAndStyleSelector("ItemContainer", ItemContainerStyleProperty, ItemContainerStyleSelectorProperty, this); 777Helper.CheckStyleAndStyleSelector("ItemContainer", ItemContainerStyleProperty, ItemContainerStyleSelectorProperty, this); 1386if (!Helper.HasUnmodifiedDefaultValue(this, ItemBindingGroupProperty) && 1387Helper.HasUnmodifiedDefaultOrInheritedValue(container, FrameworkElement.BindingGroupProperty)) 1775Helper.HasDefaultValue(this, ItemStringFormatProperty)) 1780Helper.HasDefaultValue(this, ItemContainerStyleProperty)) 1785Helper.HasDefaultValue(this, ItemContainerStyleSelectorProperty)) 1790Helper.HasDefaultValue(this, AlternationCountProperty)) 1795Helper.HasDefaultValue(this, ItemBindingGroupProperty)) 3149!Helper.IsAnyAncestorOf(itemContainer, focusedElement)) 3902return Helper.ReadItemValue(this, item, dp.GlobalIndex); 3908Helper.StoreItemValue(this, item, dp.GlobalIndex, value); 3913Helper.ClearItemValue(this, item, dp.GlobalIndex); 3918Helper.ClearItemValueStorage(this, new int[] {dp.GlobalIndex}); 3923Helper.ClearItemValueStorage(this);
src\Framework\System\Windows\Controls\ItemsPresenter.cs (2)
73return Helper.MeasureElementWithSingleChild(this, constraint); 83return Helper.ArrangeElementWithSingleChild(this, arrangeSize);
src\Framework\System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (1)
548Helper.InvalidateMeasureOnPath(_internalItemsHost, dataGrid.InternalItemsHost, false/*duringMeasure*/, true/*includePathEnd*/);
src\Framework\System\Windows\Controls\TreeViewItem.cs (8)
114Helper.InvalidateMeasureOnPath(itemsHostPresenter, item, false /*duringMeasure*/); 354Helper.ComputeCorrectionFactor(ParentTreeView, this, ItemsHost, HeaderElement); 379Helper.ApplyCorrectionFactorToPixelHeaderSize(ParentTreeView, this, ItemsHost, ref pixelHeaderSize); 392return Helper.ApplyCorrectionFactorToItemDesiredSizes(this, ItemsHost); 835ToggleButton toggleButton = Helper.FindTemplatedDescendant<ToggleButton>(this, this); 897Helper.ClearVirtualizingElement((IHierarchicalVirtualizationAndScrollInfo)this); 906Helper.SetItemValuesOnContainer(parentItemsControl, this, item); 924Helper.StoreItemValues(parentItemsControl, this, item);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (3)
3970Helper.ClearVirtualizingElement(virtualizingProvider); 4203Helper.ClearItemValueStorage((DependencyObject)itemStorageProvider, _indicesStoredInItemValueStorage); 6707Helper.InvalidateMeasureOnPath(childItemsHost, this, true /*duringMeasure*/);
src\Framework\System\Windows\Data\BindingBase.cs (1)
201Helper.CheckCanReceiveMarkupExtension(this, serviceProvider, out targetDependencyObject, out targetDependencyProperty);
src\Framework\System\Windows\Data\BindingExpression.cs (8)
123DependencyObject mentor = !UsingMentor ? target : Helper.FindMentor(target); 144get { return !UsingMentor ? TargetElement : Helper.FindMentor(TargetElement); } 529DependencyObject mentor = Helper.FindMentor(target); 674DependencyObject mentor = !UsingMentor ? target : Helper.FindMentor(target); 900target = Helper.FindMentor(target); 2261target = Helper.FindMentor(target); 2610fo.Reset(Helper.FindMentor(d)); 2625fo.Reset(Helper.FindMentor(d));
src\Framework\System\Windows\Data\BindingExpressionBase.cs (3)
1486if (Helper.IsComposing(Target, TargetProperty)) 1750FrameworkObject fo = new FrameworkObject(Helper.FindMentor(TargetElement)); 2664SetValue(Feature.EffectiveStringFormat, Helper.GetEffectiveStringFormat(stringFormat), null);
src\Framework\System\Windows\Data\BindingGroup.cs (11)
292DependencyObject mentor = Helper.FindMentor(this); 604UIElement layoutElement = Helper.FindMentor(this) as UIElement; 744DependencyObject mentor = Helper.FindMentor(this); 754DependencyObject mentor = Helper.FindMentor(this); 777DependencyObject mentor = Helper.FindMentor(this); 822DependencyObject mentor = Helper.FindMentor(this); 921DependencyObject mentor = Helper.FindMentor(this); 933Helper.DowncastToFEorFCE(mentor, out fe, out fce, false); 961DependencyObject mentor = Helper.FindMentor(this); 1027DependencyObject mentor = Helper.FindMentor(this); 1316DependencyObject mentor = Helper.FindMentor(this);
src\Framework\System\Windows\Data\MultiBindingExpression.cs (1)
93get { return !UsingMentor ? TargetElement : Helper.FindMentor(TargetElement); }
src\Framework\System\Windows\DynamicResourceExtension.cs (1)
70Helper.CheckCanReceiveMarkupExtension(this, serviceProvider, out targetDependencyObject, out targetDependencyProperty);
src\Framework\System\Windows\FrameworkContentElement.cs (1)
371Helper.ResourceFailureThrow(resourceKey);
src\Framework\System\Windows\FrameworkElement.cs (4)
844Helper.ResourceFailureThrow(resourceKey); 1475object appResource = Helper.FindTemplateResourceFromAppOrSystem(target, keys, exactMatch, ref bestMatch); 1756return !Helper.HasDefaultValue(this, dp); 1780d = (parent != null) ? parent : Helper.FindMentor(d.InheritanceContext);
src\Framework\System\Windows\FrameworkTemplate.cs (1)
1177Helper.DowncastToFEorFCE(rootObject, out feResult, out fceResult, true);
src\Framework\System\Windows\Generated\FrameworkContentElement.cs (1)
839DependencyObject newMentor = Helper.FindMentor(InheritanceContext);
src\Framework\System\Windows\Generated\FrameworkElement.cs (1)
869DependencyObject newMentor = Helper.FindMentor(InheritanceContext);
src\Framework\System\Windows\LostFocusEventManager.cs (2)
113Helper.DowncastToFEorFCE(typedSource, out fe, out fce, true); 129Helper.DowncastToFEorFCE(typedSource, out fe, out fce, true);
src\Framework\System\Windows\Markup\BamlRecordReader.cs (1)
4145Helper.DowncastToFEorFCE(feOrfceParent, out feParent, out fceParent, false /*throwIfNeither*/);
src\Framework\System\Windows\Media\Animation\Storyboard.cs (2)
429DependencyObject mentor = Helper.FindMentor(containingObject); 538DependencyObject mentor = Helper.FindMentor(containingObject);
src\Framework\System\Windows\ResourceReferenceExpression.cs (4)
103_mentorCache = Helper.FindMentor(d); 116Helper.DowncastToFEorFCE(_mentorCache, out mentorFE, out mentorFCE, true); 134Helper.DowncastToFEorFCE(_mentorCache, out fe, out fce, true /*throwIfNeither*/); 314Helper.DowncastToFEorFCE(_mentorCache, out mentorFE, out mentorFCE, true);
src\Framework\System\Windows\StyleHelper.cs (11)
1547Helper.DowncastToFEorFCE(child, out feChild, out fceChild, false); 2063Helper.DowncastToFEorFCE(walkNode, out feWalkNode, out fceWalkNode, false); 2406Helper.DowncastToFEorFCE((DependencyObject)sender, out fe, out fce, false); 2461Helper.DowncastToFEorFCE((DependencyObject)sender, out fe, out fce, false); 2483Helper.DowncastToFEorFCE(templatedParent, out feTemplatedParent, out fceTemplatedParent, false); 2922Helper.DowncastToFEorFCE(container, out feContainer, out fceContainer, true); 5140Helper.DowncastToFEorFCE(container, out fe, out fce, false); 5177Helper.DowncastToFEorFCE(container, out fe, out fce, false); 5220Helper.DowncastToFEorFCE(container, out fe, out fce, false); 5487Helper.DowncastToFEorFCE(d, out fe, out fce, false); 5512Helper.DowncastToFEorFCE(d, out fe, out fce, false);
src\Framework\System\Windows\TemplateNameScope.cs (1)
91Helper.DowncastToFEorFCE( scopedElement as DependencyObject,