43 types derived from FrameworkElement
PresentationFramework (33)
MS\Internal\Documents\DocumentGrid.cs (1)
29internal class DocumentGrid : FrameworkElement, IDocumentScrollInfo
MS\Internal\Documents\DocumentGridPage.cs (1)
22internal class DocumentGridPage : FrameworkElement, IDisposable
MS\Internal\Documents\DocumentPageHost.cs (1)
16internal class DocumentPageHost : FrameworkElement
MS\Internal\Documents\FlowDocumentView.cs (1)
22internal class FlowDocumentView : FrameworkElement, IScrollInfo, IServiceProvider
MS\Internal\Documents\TextBoxView.cs (1)
22internal class TextBoxView : FrameworkElement, ITextView, IScrollInfo, IServiceProvider
System\Windows\Controls\AccessText.cs (1)
22public class AccessText : FrameworkElement, IAddChild
System\Windows\Controls\AdornedElementPlaceholder.cs (1)
26public class AdornedElementPlaceholder : FrameworkElement, IAddChild
System\Windows\Controls\ContentPresenter.cs (1)
29public class ContentPresenter : FrameworkElement
System\Windows\Controls\Control.cs (1)
20public class Control : FrameworkElement
System\Windows\Controls\Decorator.cs (1)
22public class Decorator : FrameworkElement, IAddChild
System\Windows\Controls\Image.cs (1)
27public class Image : FrameworkElement, IUriContext, IProvidePropertyFallback
System\Windows\Controls\InkCanvas.cs (1)
37public class InkCanvas : FrameworkElement, IAddChild
System\Windows\Controls\ItemsPresenter.cs (1)
20public class ItemsPresenter : FrameworkElement
System\Windows\Controls\MediaElement.cs (1)
54public class MediaElement : FrameworkElement, IUriContext
System\Windows\Controls\Page.cs (1)
25public class Page : FrameworkElement, IWindowService, IAddChild
System\Windows\Controls\Panel.cs (1)
22public abstract class Panel : FrameworkElement, IAddChild
System\Windows\Controls\Primitives\DocumentPageView.cs (1)
23public class DocumentPageView : FrameworkElement, IServiceProvider, IDisposable
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
18public abstract class GridViewRowPresenterBase : FrameworkElement, IWeakEventListener
System\Windows\Controls\Primitives\Popup.cs (1)
42public class Popup : FrameworkElement, IAddChild
System\Windows\Controls\Primitives\PopupRoot.cs (1)
16internal sealed class PopupRoot : FrameworkElement
System\Windows\Controls\Primitives\TickBar.cs (1)
48public class TickBar : FrameworkElement
System\Windows\Controls\Primitives\Track.cs (1)
22public class Track : FrameworkElement
System\Windows\Controls\TextBlock.cs (1)
44public class TextBlock : FrameworkElement, IContentHost, IAddChildInternal, IServiceProvider
System\Windows\Controls\ToolBarTray.cs (1)
28public class ToolBarTray : FrameworkElement, IAddChild
System\Windows\Controls\ViewPort3D.cs (1)
27public class Viewport3D : FrameworkElement, IAddChild
System\Windows\Documents\Adorner.cs (1)
28public abstract class Adorner : FrameworkElement
System\Windows\Documents\AdornerLayer.cs (1)
27public class AdornerLayer : FrameworkElement
System\Windows\Documents\DocumentReference.cs (1)
24public sealed class DocumentReference : FrameworkElement, IUriContext
System\Windows\Documents\FixedPage.cs (1)
39public sealed class FixedPage : FrameworkElement, IAddChildInternal, IFixedNavigate, IUriContext
System\Windows\Documents\Glyphs.cs (1)
24public sealed class Glyphs : FrameworkElement, IUriContext
System\Windows\Documents\PageContent.cs (1)
34public sealed class PageContent : FrameworkElement, IAddChildInternal, IUriContext
System\Windows\Interop\HwndHost.cs (1)
22public abstract class HwndHost : FrameworkElement, IDisposable, IWin32Window, IKeyboardInputSink
System\Windows\Shapes\Shape.cs (1)
23public abstract class Shape : FrameworkElement
PresentationFramework.Aero (2)
Microsoft\Windows\Themes\BulletChrome.cs (1)
19public sealed class BulletChrome : FrameworkElement
Microsoft\Windows\Themes\ScrollChrome.cs (1)
17public sealed class ScrollChrome : FrameworkElement
PresentationFramework.Aero2 (2)
Microsoft\Windows\Themes\BulletChrome.cs (1)
19public sealed class BulletChrome : FrameworkElement
Microsoft\Windows\Themes\ScrollChrome.cs (1)
17public sealed class ScrollChrome : FrameworkElement
PresentationFramework.AeroLite (1)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
16public sealed class ScrollChrome : FrameworkElement
PresentationFramework.Luna (2)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
17public sealed class ScrollChrome : FrameworkElement
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
11public sealed class BulletChrome : FrameworkElement
PresentationFramework.Royale (2)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
17public sealed class ScrollChrome : FrameworkElement
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
11public sealed class BulletChrome : FrameworkElement
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\TextSearchInternal.cs (1)
892private class DummyObject : FrameworkElement
5 instantiations of FrameworkElement
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Async\WaitHelper.cs (1)
19new FrameworkElement().Dispatcher.Invoke(action, priority);
PresentationFramework (4)
System\Windows\Controls\DataGrid.cs (2)
6890target = new FrameworkElement 6928target = new FrameworkElement
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4929DefaultConstructor = delegate () { return new System.Windows.FrameworkElement(); },
System\Windows\Markup\KnownTypes.cs (1)
1279case KnownElements.FrameworkElement: o = new System.Windows.FrameworkElement(); break;
1636 references to FrameworkElement
Microsoft.AspNetCore.Components.WebView.Wpf (2)
BlazorWebView.cs (2)
221 /// <inheritdoc cref="FrameworkElement.OnApplyTemplate" /> 236 /// <inheritdoc cref="FrameworkElement.OnInitialized(EventArgs)" />
Microsoft.CodeAnalysis.EditorFeatures.Wpf (13)
InlineHints\InlineHintsTag.cs (4)
44FrameworkElement adornment, 118private static FrameworkElement CreateElement( 243var hintUIElement = (FrameworkElement)sender;
InlineRename\UI\Adornment\RenameFlyout.xaml.cs (2)
189var lastItem = _viewModel.IsExpanded 191: (FrameworkElement)RenameUserInput;
IWpfThemeService.cs (1)
13void ApplyThemeToElement(FrameworkElement element);
QuickInfo\ContentControlService.cs (1)
50public void AttachToolTipToControl(FrameworkElement element, Func<DisposableToolTip> createToolTip)
QuickInfo\IContentControlService.cs (1)
49void AttachToolTipToControl(FrameworkElement element, Func<DisposableToolTip> createToolTip);
QuickInfo\LazyToolTip.cs (3)
26private readonly FrameworkElement _element; 32FrameworkElement element, 53public static void AttachTo(FrameworkElement element, IThreadingContext threadingContext, Func<DisposableToolTip> createToolTip)
QuickInfo\OnTheFlyDocsView.xaml.cs (1)
112if (LoadingContent is FrameworkElement element)
Microsoft.VisualStudio.LanguageServices (38)
DebuggerIntelliSense\DebuggerTextView.cs (1)
245public FrameworkElement VisualElement
EditorConfigSettings\Analyzers\View\ColumnDefinitions\AnalyzerEnabledColumnDefinition.cs (1)
33public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement content)
EditorConfigSettings\Analyzers\View\ColumnDefinitions\AnalyzerSeverityColumnDefinition.cs (1)
55public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content)
EditorConfigSettings\CodeStyle\View\ColumnDefinitions\CodeStyleSeverityColumnDefinition.cs (1)
35public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content)
EditorConfigSettings\CodeStyle\View\ColumnDefinitions\CodeStyleValueColumnDefinition.cs (1)
34public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content)
EditorConfigSettings\NamingStyle\View\ColumnDefinitions\NamingStylesLocationColumnDefinition.cs (1)
59out FrameworkElement? content)
EditorConfigSettings\NamingStyle\View\ColumnDefinitions\NamingStylesSeverityColumnDefinition.cs (1)
59public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content)
EditorConfigSettings\NamingStyle\View\ColumnDefinitions\NamingStylesStyleColumnDefinition.cs (1)
47public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content)
EditorConfigSettings\NamingStyle\View\ColumnDefinitions\NamingStylesTypeColumnDefinition.cs (1)
50out FrameworkElement? content)
EditorConfigSettings\Whitespace\View\ColumnDefnitions\WhitespaceValueColumnDefinition.cs (1)
41public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content)
FindReferences\Entries\AbstractItemEntry.cs (1)
26public override bool TryCreateColumnContent(string columnName, [NotNullWhen(true)] out FrameworkElement? content)
FindReferences\Entries\DocumentSpanEntry.cs (1)
145public override bool TryCreateColumnContent(string columnName, [NotNullWhen(true)] out FrameworkElement? content)
FindReferences\Entries\Entry.cs (1)
47public virtual bool TryCreateColumnContent(string columnName, [NotNullWhen(true)] out FrameworkElement? content)
FindReferences\TableEntriesSnapshot.cs (1)
48int index, string columnName, bool singleColumnView, [NotNullWhen(true)] out FrameworkElement? content)
InheritanceMargin\InheritanceMarginViewMargin.cs (1)
205FrameworkElement IWpfTextViewMargin.VisualElement
InheritanceMargin\MarginGlyph\InheritanceMarginGlyph.cs (1)
217var visualElement = _textView.VisualElement;
PreviewPane\PreviewPane.xaml.cs (13)
117public FrameworkElement ParentElement 119get { return (FrameworkElement)GetValue(ParentElementProperty); } 124DependencyProperty.Register("ParentElement", typeof(FrameworkElement), typeof(PreviewPane), new PropertyMetadata(null)); 129ParentElement = Parent as FrameworkElement; 136var previewElement = CreatePreviewElement(previewItems); 156private FrameworkElement CreatePreviewElement(IReadOnlyList<object> previewItems) 173var previewElement = GetPreviewElement(previewItem); 218return (FrameworkElement)preview; 224private FrameworkElement GetPreviewElement(object previewItem) 237var previewElement = viewer.VisualElement; 246if (previewItem is FrameworkElement frameworkElement) 267private static FrameworkElement GetPreviewForString(string previewContent) 282private void AdjustWidthAndHeight(FrameworkElement previewElement)
UnusedReferences\Dialog\UnusedReferencesTableProvider.ColumnDefinitions.cs (7)
59internal static FrameworkElement CreateGridElement(ImageMoniker imageMoniker, string text, bool isBold) 121public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content) 158public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content) 202public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content) 256public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content) 298public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content) 347public override bool TryCreateColumnContent(out FrameworkElement content)
ValueTracking\ValueTrackingRoot.xaml.cs (1)
22public void SetChild(FrameworkElement? child)
VSWpfThemeService.cs (1)
28public void ApplyThemeToElement(FrameworkElement frameworkElement)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
SemanticSearch\SemanticSearchToolWindowImpl.cs (1)
110private async Task<FrameworkElement> CreateContentAsync(CancellationToken cancellationToken)
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Venus\DocumentService_IntegrationTests.vb (1)
638Public ReadOnly Property Control As FrameworkElement Implements IWpfTableControl.Control
PresentationFramework (1402)
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (4)
111FrameworkElement nodeParent = null; 112FrameworkElement feNode = node as FrameworkElement; 115nodeParent = feNode.Parent as FrameworkElement;
MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
55RegisterSelectionProcessor(nodeProcessor, typeof(FrameworkElement));
MS\Internal\Annotations\Anchoring\PathNode.cs (1)
239or FrameworkElement
MS\Internal\Annotations\Component\AnnotationAdorner.cs (1)
141/// Override for <seealso cref="FrameworkElement.ArrangeOverride" />
MS\Internal\Controls\InkCanvasInnerCanvas.cs (2)
70/// Override of <seealso cref="FrameworkElement.MeasureOverride" /> 195protected override UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent)
MS\Internal\Controls\InnerItemCollectionView.cs (1)
632private FrameworkElement ModelParentFE
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (11)
212snc.SetValue(FrameworkElement.HeightProperty, height); 216snc.ClearValue(FrameworkElement.HeightProperty); 227snc.SetValue(FrameworkElement.WidthProperty, width); 231snc.ClearValue(FrameworkElement.WidthProperty); 805double height = (double)snc.GetValue(FrameworkElement.HeightProperty); 813double width = (double)snc.GetValue(FrameworkElement.WidthProperty); 1368FrameworkElement target = ((IAnnotationComponent)this).AnnotatedElement as FrameworkElement; 1373target = host.PageVisual as FrameworkElement; 1415FrameworkElement target = (FrameworkElement)(args[0]);
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (4)
33protected StickyNoteContentControl(FrameworkElement innerControl) 97public FrameworkElement InnerControl 119protected void SetInnerControl(FrameworkElement innerControl) 134protected FrameworkElement _innerControl;
MS\Internal\Controls\TemplatedAdorner.cs (2)
85public FrameworkElement ReferenceElement 179private FrameworkElement _referenceElement;
MS\Internal\Data\ClrBindingWorker.cs (1)
71else if (targetDP == FrameworkElement.DataContextProperty ||
MS\Internal\Data\ObjectRef.cs (7)
144FrameworkElement fe = d as FrameworkElement; 368o = el.GetValue(FrameworkElement.DataContextProperty); 457for (; d != null; d = FrameworkElement.GetFrameworkParent(d)) 471FrameworkElement parent, child; 477parent = cp.TemplatedParent as FrameworkElement; 485child = d as FrameworkElement;
MS\Internal\Data\PropertyPathWorker.cs (2)
627_arySVS[k - 1].info == FrameworkElement.DataContextProperty) 658_arySVS[_arySVS.Length - 1].info == FrameworkElement.DataContextProperty &&
MS\Internal\Documents\ContentHostHelper.cs (3)
105else if (textView.RenderScope is FrameworkElement) 154FrameworkElement fe; 164fe = child as FrameworkElement;
MS\Internal\Documents\DocumentGrid.cs (1)
1278_rubberBandSelector.AttachRubberbandSelector((FrameworkElement)this); //attach the Rubber band selector.
MS\Internal\Documents\DocumentGridContextMenu.cs (3)
29EventManager.RegisterClassHandler(typeof(DocumentGrid), FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpening)); 30EventManager.RegisterClassHandler(typeof(DocumentApplicationDocumentViewer), FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnDocumentViewerContextMenuOpening)); 84if (documentGrid.ReadLocalValue(FrameworkElement.ContextMenuProperty) == null)
MS\Internal\Documents\DocumentGridPage.cs (1)
227var key = new ComponentResourceKey(typeof(FrameworkElement), "DocumentGridPageContainerWithBorder");
MS\Internal\Documents\DocumentViewerHelper.cs (2)
245XmlLanguage language = (XmlLanguage)textContainer.Parent.GetValue(FrameworkElement.LanguageProperty); 368cm = e.TargetElement.GetValue(FrameworkElement.ContextMenuProperty) as ContextMenu;
MS\Internal\Documents\PageCache.cs (1)
118FlowDirection flowDirection = (FlowDirection)((DependencyObject)_documentPaginator.Source).GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\Documents\TextBoxLine.cs (2)
205var uiScope = _owner?.Host?.TextContainer?.TextSelection?.TextEditor?.UiScope; 459var uiScope = textEditor?.UiScope;
MS\Internal\Documents\TextContainerHelper.cs (2)
599internal static ITextPointer GetTextPointerForEmbeddedObject(FrameworkElement embeddedObject) 702if (embeddedObject is FrameworkElement fe)
MS\Internal\Documents\TextViewBase.cs (4)
152FrameworkElement frameworkParent = FrameworkElement.GetFrameworkParent(textView.RenderScope) as FrameworkElement; 168((FrameworkElement)textView.RenderScope).BringIntoView(rect);
MS\Internal\Documents\UIElementIsland.cs (5)
74if (_child is FrameworkElement && ((FrameworkElement)_child).Parent != null) 76SetValue(FrameworkElement.FlowDirectionProperty, ((FrameworkElement)_child).Parent.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\FrameworkObject.cs (9)
56_fe = d as FrameworkElement; 70internal FrameworkObject(FrameworkElement fe, FrameworkContentElement fce) 85_fe = d as FrameworkElement; 93internal FrameworkElement FE { get { return _fe; } } 227Invariant.Assert(parent is FrameworkElement || parent is FrameworkContentElement); 231return new FrameworkObject((FrameworkElement)parent, null); 264Invariant.Assert(parent is FrameworkElement || parent is FrameworkContentElement); 268return new FrameworkObject((FrameworkElement)parent, null); 1177private FrameworkElement _fe;
MS\Internal\Helper.cs (16)
186FrameworkElement fe; 256if (d is FrameworkElement || d is FrameworkContentElement) 276out FrameworkElement fe, out FrameworkContentElement fce, 279if (d is FrameworkElement frameworkElement) 398FrameworkElement fe = templatedParent as FrameworkElement; 472FrameworkElement fe; 1054FrameworkElement virtualizingElement, 1077FrameworkElement virtualizingElement, 1156FrameworkElement virtualizingElement, 1158FrameworkElement headerElement) 1261internal static T FindTemplatedDescendant<T>(FrameworkElement searchStart, FrameworkElement templatedParent) where T : FrameworkElement 1263FrameworkElement descendant = null; 1269descendant = VisualTreeHelper.GetChild(searchStart, i) as FrameworkElement;
MS\Internal\Ink\InkCanvasSelection.cs (4)
375FrameworkElement frameworkElement = originalElement as FrameworkElement; 405((FrameworkElement)updatedElement).Width = newBounds.Width; 419( (FrameworkElement)updatedElement ).Height = newBounds.Height;
MS\Internal\PrePostDescendentsWalker.cs (1)
71if (startNode is FrameworkElement or FrameworkContentElement)
MS\Internal\PtsHost\BaseParaClient.cs (1)
79_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\CellParaClient.cs (1)
112_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\ContainerParagraph.cs (3)
462uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 628uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 758uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\FigureParaClient.cs (1)
199_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\FigureParagraph.cs (1)
119uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\FloaterParaClient.cs (1)
188_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\FloaterParagraph.cs (2)
166uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 380uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
272DependencyObject frameworkParent = FrameworkElement.GetFrameworkParent(_structuralCache.FormattingOwner);
MS\Internal\PtsHost\Line.cs (4)
391FlowDirection paragraphFlowDirection = (FlowDirection)paragraphElement.GetValue(FrameworkElement.FlowDirectionProperty); 417if (inlineObject.UIElementIsland.Root is FrameworkElement) 419DependencyObject parent = ((FrameworkElement)inlineObject.UIElementIsland.Root).Parent; 420FlowDirection parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\LineBase.cs (2)
190parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 264parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\ListParaClient.cs (1)
55uint fswdir = PTS.FlowDirectionToFswdir((FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\PtsHost\PtsHelper.cs (2)
43visualChild.SetValue(FrameworkElement.FlowDirectionProperty, childFD); 48visualChild.ClearValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\Section.cs (2)
120StructuralCache.PageFlowDirection = (FlowDirection)_structuralCache.PropertyOwner.GetValue(FrameworkElement.FlowDirectionProperty); 221fswdir = PTS.FlowDirectionToFswdir((FlowDirection)_structuralCache.PropertyOwner.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\PtsHost\SubpageParagraph.cs (3)
118uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 325uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 486uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\TableParagraph.cs (1)
156fswdirTable = PTS.FlowDirectionToFswdir((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))
MS\Internal\PtsHost\TextParagraph.cs (1)
139fstxtprops.fswdir = PTS.FlowDirectionToFswdir((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\Text\ComplexLine.cs (5)
180if (inlineObject.Element is FrameworkElement) 185DependencyObject parent = ((FrameworkElement)inlineObject.Element).Parent; 188parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 417parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 489parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\Text\DynamicPropertyReader.cs (1)
301XmlLanguage language = (XmlLanguage) element.GetValue(FrameworkElement.LanguageProperty);
MS\Internal\Text\TextProperties.cs (5)
101internal TextProperties(FrameworkElement target, bool isTypographyDefaultValue) 107_numberSubstitution = FrameworkElement.DefaultNumberSubstitution; 139FrameworkElement fe = target as FrameworkElement; 142_numberSubstitution = FrameworkElement.DefaultNumberSubstitution;
MS\Internal\TraceData.cs (2)
188FrameworkElement fe = o as FrameworkElement;
System\Windows\Annotations\AnnotationHelper.cs (12)
354FrameworkElement viewer = sender as FrameworkElement; 490ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 583ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 811ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 914ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 1037private static ITextSelection GetTextSelection(FrameworkElement viewer) 1043viewer = GetFdrHost(reader) as FrameworkElement; 1117FrameworkElement viewer = sender as FrameworkElement; 1120FrameworkElement parent = viewer.Parent as FrameworkElement;
System\Windows\Annotations\AnnotationService.cs (5)
133if (!(root is FrameworkElement || root is FrameworkContentElement)) 352if (!(element is FrameworkElement || element is FrameworkContentElement)) 387if (!(element is FrameworkElement || element is FrameworkContentElement)) 1540FrameworkElement viewer = this.Root as FrameworkElement;
System\Windows\Application.cs (2)
2173((FrameworkElement)args[0]).ShouldLookupImplicitStyles = true; 2175TreeWalkHelper.InvalidateOnResourcesChange((FrameworkElement)args[0], null, (ResourcesChangeInfo)args[1]);
System\Windows\AttachedPropertyBrowsableForChildrenAttribute.cs (1)
106walk = FrameworkElement.GetFrameworkParent(walk);
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (2)
193FrameworkElement focusedButton = focusedItem.OwningButton; 373object dataContext = (child as FrameworkElement).DataContext;
System\Windows\Automation\Peers\FrameworkContentElementAutomationPeer.cs (2)
61FrameworkElement toolTipElement = toolTip as FrameworkElement;
System\Windows\Automation\Peers\FrameworkElementAutomationPeer.cs (8)
10public FrameworkElementAutomationPeer(FrameworkElement owner) 23FrameworkElement owner = (FrameworkElement)Owner; 47result = ((FrameworkElement)Owner).GetPlainText(); 59object toolTip = ((FrameworkElement)Owner).ToolTip; 65FrameworkElement toolTipElement = toolTip as FrameworkElement; 88owner.GetValue(FrameworkElement.DataContextProperty) ==
System\Windows\Automation\Peers\ItemAutomationPeer.cs (4)
112if(wrapper is FrameworkElement) 113wrapperPeer = new FrameworkElementAutomationPeer((FrameworkElement)wrapper); 528FrameworkElement fe = item as FrameworkElement;
System\Windows\Automation\Peers\TextAutomationPeer.cs (1)
22protected TextAutomationPeer(FrameworkElement owner)
System\Windows\BroadcastEventHelper.cs (32)
19Debug.Assert(d is FrameworkElement || d is FrameworkContentElement); 32d.SetValue(FrameworkElement.LoadedPendingPropertyKey, new object[]{loadedOp, operation, logicalParent}); 40Debug.Assert(d is FrameworkElement || d is FrameworkContentElement); 47d.ClearValue(FrameworkElement.LoadedPendingPropertyKey); 67Debug.Assert(d is FrameworkElement || d is FrameworkContentElement); 80d.SetValue(FrameworkElement.UnloadedPendingPropertyKey, new object[]{unloadedOp, operation, logicalParent}); 88Debug.Assert(d is FrameworkElement || d is FrameworkContentElement); 95d.ClearValue(FrameworkElement.UnloadedPendingPropertyKey); 162object[] loadedPending = (object[])rootDO.GetValue(FrameworkElement.LoadedPendingProperty); 185BroadcastEventHelper.BroadcastEvent(rootDO, FrameworkElement.LoadedEvent); 199object[] unloadedPending = (object[])rootDO.GetValue(FrameworkElement.UnloadedPendingProperty); 222BroadcastEvent(rootDO, FrameworkElement.UnloadedEvent); 271if (routedEvent == FrameworkElement.LoadedEvent) 290if (d is FrameworkElement fe) 292if (fe != root && routedEvent == FrameworkElement.LoadedEvent && fe.UnloadedPending != null) 299else if (fe != root && routedEvent == FrameworkElement.UnloadedEvent && fe.LoadedPending != null) 310if (routedEvent == FrameworkElement.LoadedEvent && fe.LoadedPending != null) 317else if (routedEvent == FrameworkElement.UnloadedEvent && fe.UnloadedPending != null) 339fe.IsLoadedCache = (routedEvent == FrameworkElement.LoadedEvent); 353if (fce != root && routedEvent == FrameworkElement.LoadedEvent && fce.UnloadedPending != null) 360else if (fce != root && routedEvent == FrameworkElement.UnloadedEvent && fce.LoadedPending != null) 371if (routedEvent == FrameworkElement.LoadedEvent && fce.LoadedPending != null) 378else if (routedEvent == FrameworkElement.UnloadedEvent && fce.UnloadedPending != null) 400fce.IsLoadedCache = (routedEvent == FrameworkElement.LoadedEvent); 416if (d is FrameworkElement fe) 429if (d is FrameworkElement fe) 441if (d is FrameworkElement fe) 586FrameworkElement child = VisualTreeHelper.GetChild(v, i) as FrameworkElement; 717FrameworkElement fe, 720if (fe.GetValue(FrameworkElement.LoadedPendingProperty) == null) 752if (fce.GetValue(FrameworkElement.LoadedPendingProperty) == null)
System\Windows\Controls\AdornedElementPlaceholder.cs (2)
218FrameworkElement templateParent = this.TemplatedParent as FrameworkElement;
System\Windows\Controls\ComboBox.cs (2)
235cb._clonedElement?.CoerceValue(FrameworkElement.FlowDirectionProperty); 1587return (bool)d.GetValue(FrameworkElement.IsEnabledProperty);
System\Windows\Controls\ContentControl.cs (2)
103FrameworkElement feContent = content as FrameworkElement;
System\Windows\Controls\ContentPresenter.cs (3)
1011internal override bool BuildVisualTree(FrameworkElement container) 1043internal override bool BuildVisualTree(FrameworkElement container) 1170template = (DataTemplate)FrameworkElement.FindTemplateResourceInternal(container, item, typeof(DataTemplate));
System\Windows\Controls\Control.cs (2)
285new ValidateValueCallback(FrameworkElement.ValidateHorizontalAlignmentValue)); 311new ValidateValueCallback(FrameworkElement.ValidateVerticalAlignmentValue));
System\Windows\Controls\DataGrid.cs (10)
41dataGridRowPresenterFactory.SetValue(FrameworkElement.NameProperty, ItemsPanelPartName); 5835FrameworkElement focusContainer; 5836FrameworkElement startingElement = Keyboard.FocusedElement as FrameworkElement; 6131FrameworkElement targetElement; 6134FrameworkElement startingElement = null; 6137startingElement = Keyboard.FocusedElement as FrameworkElement; 6509private static bool CalculateCellDistance(FrameworkElement cell, DataGridRow rowOwner, Panel itemsHost, Rect itemsHostBounds, bool isMouseInCorner, out double distance) 6879FrameworkElement target; 6917FrameworkElement target;
System\Windows\Controls\DataGridBoundColumn.cs (2)
156internal void ApplyStyle(bool isEditing, bool defaultToElementStyle, FrameworkElement element) 205protected internal override void RefreshCellContent(FrameworkElement element, string propertyName)
System\Windows\Controls\DataGridCell.cs (11)
111else if ((Content as FrameworkElement) == null) 387FrameworkElement newContent = column.BuildVisualTree(IsEditing, RowDataItem, this); 392FrameworkElement oldContent = Content as FrameworkElement; 398oldContent.SetValue(FrameworkElement.DataContextProperty, BindingExpressionBase.DisconnectedItem); 579column?.BeginEdit(Content as FrameworkElement, e); 590column?.CancelEdit(Content as FrameworkElement); 605validationPassed = column.CommitEdit(Content as FrameworkElement); 621FrameworkElement currentEditingElement = EditingElement; 627internal FrameworkElement EditingElement 632return Content as FrameworkElement;
System\Windows\Controls\DataGridCellEditEndingEventArgs.cs (3)
18public DataGridCellEditEndingEventArgs(DataGridColumn column, DataGridRow row, FrameworkElement editingElement, DataGridEditAction editAction) 54public FrameworkElement EditingElement 70private FrameworkElement _editingElement;
System\Windows\Controls\DataGridCellsPanel.cs (2)
2431FrameworkElement itemsPresenter = TemplatedParent as FrameworkElement;
System\Windows\Controls\DataGridCheckBoxColumn.cs (4)
90protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 98protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 119protected internal override void RefreshCellContent(FrameworkElement element, string propertyName) 164protected override object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs)
System\Windows\Controls\DataGridColumn.cs (13)
612public FrameworkElement GetCellContent(object dataItem) 633public FrameworkElement GetCellContent(DataGridRow dataGridRow) 645return cell.Content as FrameworkElement; 659internal FrameworkElement BuildVisualTree(bool isEditing, object dataItem, DataGridCell cell) 674protected abstract FrameworkElement GenerateElement(DataGridCell cell, object dataItem); 679protected abstract FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem); 690protected virtual object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs) 701protected virtual void CancelCellEdit(FrameworkElement editingElement, object uneditedValue) 711protected virtual bool CommitCellEdit(FrameworkElement editingElement) 716internal void BeginEdit(FrameworkElement editingElement, RoutedEventArgs e) 729internal void CancelEdit(FrameworkElement editingElement) 738internal bool CommitEdit(FrameworkElement editingElement) 902protected internal virtual void RefreshCellContent(FrameworkElement element, string propertyName)
System\Windows\Controls\DataGridComboBoxColumn.cs (7)
284private void ApplyStyle(bool isEditing, bool defaultToElementStyle, FrameworkElement element) 406protected internal override void RefreshCellContent(FrameworkElement element, string propertyName) 484protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 499protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 532protected override object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs) 557protected override void CancelCellEdit(FrameworkElement editingElement, object uneditedValue) 574protected override bool CommitCellEdit(FrameworkElement editingElement)
System\Windows\Controls\DataGridHelper.cs (13)
149public static T FindParent<T>(FrameworkElement element) where T : FrameworkElement 151FrameworkElement parent = element.TemplatedParent as FrameworkElement; 161parent = parent.TemplatedParent as FrameworkElement; 511internal static BindingExpression GetBindingExpression(FrameworkElement element, DependencyProperty dp) 521internal static bool ValidateWithoutUpdate(FrameworkElement element) 554internal static bool BindingExpressionBelongsToElement<T>(BindingExpressionBase beb, T element) where T : FrameworkElement 614internal static void CacheFlowDirection(FrameworkElement element, DataGridCell cell) 618object flowDirectionObj = element.ReadLocalValue(FrameworkElement.FlowDirectionProperty); 626internal static void RestoreFlowDirection(FrameworkElement element, DataGridCell cell) 633element.SetValue(FrameworkElement.FlowDirectionProperty, flowDirectionObj); 638internal static void UpdateTarget(FrameworkElement element)
System\Windows\Controls\DataGridHyperlinkColumn.cs (6)
106protected internal override void RefreshCellContent(FrameworkElement element, string propertyName) 162protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 187protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 209protected override object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs) 246protected override void CancelCellEdit(FrameworkElement editingElement, object uneditedValue) 258protected override bool CommitCellEdit(FrameworkElement editingElement)
System\Windows\Controls\DataGridPreparingCellForEditEventArgs.cs (3)
19public DataGridPreparingCellForEditEventArgs(DataGridColumn column, DataGridRow row, RoutedEventArgs editingEventArgs, FrameworkElement editingElement) 54public FrameworkElement EditingElement 62private FrameworkElement _editingElement;
System\Windows\Controls\DataGridRow.cs (2)
815var detailsElement = row.DetailsPresenter?.DetailsElement; 1298public static DataGridRow GetRowContainingElement(FrameworkElement element)
System\Windows\Controls\DataGridRowDetailsEventArgs.cs (2)
8public DataGridRowDetailsEventArgs(DataGridRow row, FrameworkElement detailsElement) 14public FrameworkElement DetailsElement
System\Windows\Controls\DataGridTemplateColumn.cs (4)
159private FrameworkElement LoadTemplateContent(bool isEditing, object dataItem, DataGridCell cell) 179protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 187protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 202protected internal override void RefreshCellContent(FrameworkElement element, string propertyName)
System\Windows\Controls\DataGridTextColumn.cs (9)
78protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 95protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 109private void SyncProperties(FrameworkElement e) 118protected internal override void RefreshCellContent(FrameworkElement element, string propertyName) 124FrameworkElement textElement = cell.Content as FrameworkElement; 162protected override object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs) 216protected override void CancelCellEdit(FrameworkElement editingElement, object uneditedValue) 228protected override bool CommitCellEdit(FrameworkElement editingElement)
System\Windows\Controls\DateTimeHelper.cs (3)
107internal static CultureInfo GetCulture(FrameworkElement element) 111if (element.GetValueSource(FrameworkElement.LanguageProperty, null, out hasModifiers) != BaseValueSourceInternal.Default) 204public static string ToDecadeRangeString(int decade, FrameworkElement fe)
System\Windows\Controls\DocumentViewer.cs (4)
1310FrameworkElement grid = _documentScrollInfo as FrameworkElement; 2012FrameworkElement fe = _documentScrollInfo as FrameworkElement;
System\Windows\Controls\FlowDocumentReader.cs (12)
780((FrameworkElement)CurrentViewer).Focus(); 901FrameworkElement feViewer; 934feViewer = (FrameworkElement)viewer; 984FrameworkElement fe = focusedElement as FrameworkElement; 1066Invariant.Assert(viewer != null && viewer is FrameworkElement); 1067FrameworkElement feViewer = (FrameworkElement)viewer; 1089Invariant.Assert(viewer != null && viewer is FrameworkElement); 1090FrameworkElement feViewer = (FrameworkElement)viewer; 1110private void CreateTwoWayBinding(FrameworkElement fe, DependencyProperty dp, string propertyPath)
System\Windows\Controls\FlowDocumentScrollViewer.cs (3)
805FrameworkElement.AddIntermediateElementsToRoute( 822continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(LogicalTreeHelper.GetParent(document), LogicalTreeHelper.GetParent(branchNode)); 1292private void CreateTwoWayBinding(FrameworkElement fe, DependencyProperty dp, string propertyPath)
System\Windows\Controls\Frame.cs (3)
642FrameworkElement journalEntryUIElem = e.Parameter as FrameworkElement; 1282FrameworkElement fe;
System\Windows\Controls\Grid.cs (1)
89/// <see cref="FrameworkElement.LogicalChildren"/>
System\Windows\Controls\GridSplitter.cs (1)
91FrameworkElement.HorizontalAlignmentProperty.OverrideMetadata(typeof(GridSplitter), new FrameworkPropertyMetadata(HorizontalAlignment.Right));
System\Windows\Controls\GridViewColumn.cs (2)
377FrameworkElement.WidthProperty.AddOwner( 498FrameworkElement fe;
System\Windows\Controls\GridViewColumnHeader.cs (2)
629FrameworkElement gripperContainer = _headerGripper.Parent as FrameworkElement;
System\Windows\Controls\GridViewHeaderRowPresenter.cs (5)
235/// Override of <seealso cref="FrameworkElement.MeasureOverride" />. 1254FrameworkElement fe = presenter.TemplatedParent as FrameworkElement; 1264fe = fe.TemplatedParent as FrameworkElement; 1573private static bool IsMousePositionValid(FrameworkElement floatingHeader, Point currentPos, double arrange)
System\Windows\Controls\GridViewRowPresenter.cs (11)
123/// Override of <seealso cref="FrameworkElement.MeasureOverride" />. 307FrameworkElement cell = InternalChildren[index] as FrameworkElement; 441_viewItem = this.TemplatedParent as FrameworkElement; 457_viewPort = scrollViewer.GetTemplateChild(ScrollViewer.ScrollContentPresenterTemplateName) as FrameworkElement; 572private FrameworkElement CreateCell(GridViewColumn column) 576FrameworkElement cell; 640FrameworkElement cell; 646cell = (FrameworkElement)children[i]; 695private FrameworkElement _viewPort; 696private FrameworkElement _viewItem;
System\Windows\Controls\GroupItem.cs (7)
44_header = this.GetTemplateChild("PART_Header") as FrameworkElement; 280FrameworkElement headerElement = HeaderElement; 421private FrameworkElement ExpanderHeader 427return _expander.GetTemplateChild(ExpanderHeaderPartName) as FrameworkElement; 434private FrameworkElement HeaderElement 438FrameworkElement headerElement = null; 460private FrameworkElement _header;
System\Windows\Controls\Image.cs (1)
223/// Override for <seealso cref="FrameworkElement.ArrangeOverride" />.
System\Windows\Controls\InkCanvas.cs (2)
276e.Property == FrameworkElement.LayoutTransformProperty) 315if (e.Property == FrameworkElement.FlowDirectionProperty)
System\Windows\Controls\InkPresenter.cs (2)
143/// Override of <seealso cref="FrameworkElement.MeasureOverride" /> 187/// Override of <seealso cref="FrameworkElement.ArrangeOverride" />.
System\Windows\Controls\ItemCollection.cs (3)
76internal ItemCollection(FrameworkElement modelParent, int capacity) 1485internal FrameworkElement ModelParentFE 1487get { return ModelParent as FrameworkElement; }
System\Windows\Controls\ItemContainerGenerator.cs (5)
108label = (string)d.GetValue(FrameworkElement.NameProperty); 1053string name = (String)peer.GetValue(FrameworkElement.NameProperty); 2269DependencyProperty dp = FrameworkElement.DataContextProperty; 2274container.SetValue(FrameworkElement.DataContextProperty, item); 2329DependencyProperty dp = FrameworkElement.DataContextProperty;
System\Windows\Controls\ItemContainerTemplateSelector.cs (1)
27return FrameworkElement.FindTemplateResourceInternal(parentItemsControl, item, typeof(ItemContainerTemplate)) as DataTemplate;
System\Windows\Controls\ItemsControl.cs (85)
32[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(FrameworkElement))] 1321Invariant.Assert(parent is FrameworkElement, SR.ItemsControl_ParentNotFrameworkElement); 1329((FrameworkElement)parent).TemplateChild = null; 1361Helper.HasUnmodifiedDefaultOrInheritedValue(container, FrameworkElement.BindingGroupProperty)) 1367container.SetValue(FrameworkElement.BindingGroupProperty, containerBindingGroup); 1791FrameworkElement element = info.Container as FrameworkElement; 1835while (startingElement != null && !(startingElement is FrameworkElement)) 1842return NavigateByLine(FocusedInfo, startingElement as FrameworkElement, direction, itemNavigateArgs); 1846FrameworkElement startingElement, 1849out FrameworkElement container) 1887FrameworkElement startingElement, 1910FrameworkElement container; 1921FrameworkElement startingElement, 1924out FrameworkElement container) 1938FrameworkElement nextElement = null; 1979treeViewNavigation) as FrameworkElement; 1984FrameworkElement viewport = GetViewportElement(); 1998TryGetTreeViewItemHeader(nextElement) as FrameworkElement, 2108treeViewNavigation) as FrameworkElement; 2146FrameworkElement startingElement, 2149out FrameworkElement container) 2182return NavigateByPage(FocusedInfo, Keyboard.FocusedElement as FrameworkElement, direction, itemNavigateArgs); 2195FrameworkElement startingElement, 2218FrameworkElement container; 2229FrameworkElement startingElement, 2232out FrameworkElement container) 2249FrameworkElement firstElement; 2327FrameworkElement container; 2331internal bool NavigateToStartInternal(ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container) 2365FrameworkElement firstElement; 2366FrameworkElement hopefulFirstElement = FindEndFocusableLeafContainer(ItemsHost, false /*last*/); 2393FrameworkElement container; 2397internal bool NavigateToEndInternal(ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container) 2431FrameworkElement lastElement; 2432FrameworkElement hopefulLastElement = FindEndFocusableLeafContainer(ItemsHost, true /*last*/); 2457private FrameworkElement FindEndFocusableLeafContainer(Panel itemsHost, bool last) 2471FrameworkElement fe = children[i] as FrameworkElement; 2475FrameworkElement result = null; 2553FrameworkElement container; 2560private object FindFocusable(int startIndex, int direction, out int foundIndex, out FrameworkElement foundContainer) 2569FrameworkElement container = ItemContainerGenerator.ContainerFromIndex(startIndex) as FrameworkElement; 2588private void AdjustOffsetToAlignWithEdge(FrameworkElement element, FocusNavigationDirection direction) 2595FrameworkElement viewportElement = GetViewportElement(); 2596element = TryGetTreeViewItemHeader(element) as FrameworkElement; 2631private void MakeVisible(int index, FocusNavigationDirection direction, bool alwaysAtTopOfViewport, out FrameworkElement container) 2637container = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement; 2647container = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement; 2657private void MakeVisible(ItemInfo info, FocusNavigationDirection direction, out FrameworkElement container) 2673internal void MakeVisible(FrameworkElement container, FocusNavigationDirection direction, bool alwaysAtTopOfViewport) 2680FrameworkElement viewportElement = GetViewportElement(); 2702FrameworkElement firstElement; 2731private bool NavigateToFirstItemOnCurrentPage(object startingItem, FocusNavigationDirection direction, ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container) 2733object firstItem = GetFirstItemOnCurrentPage(ItemContainerGenerator.ContainerFromItem(startingItem) as FrameworkElement, 2747private object GetFirstItemOnCurrentPage(FrameworkElement startingElement, 2749out FrameworkElement firstElement) 2798FrameworkElement currentElement = startingElement; 2813FrameworkElement viewportElement = GetViewportElement(); 2819viewportElement) as FrameworkElement; 2855internal FrameworkElement GetViewportElement() 2862FrameworkElement viewPort = ScrollHost; 2888FrameworkElement container = ItemContainerGenerator.ContainerFromItem(item) as FrameworkElement; 2898private bool IsOnCurrentPage(FrameworkElement element, FocusNavigationDirection axis) 2910private bool IsOnCurrentPage(FrameworkElement viewPort, FrameworkElement element, FocusNavigationDirection axis, bool fullyVisible) 2915internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort, 2924internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort, 2951internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort, 3042internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort, 3327FrameworkElement relativeTo = ScrollHost != null ? (FrameworkElement)ScrollHost : ItemsHost; 3376private bool IsRTL(FrameworkElement element) 3382private static ItemsControl GetEncapsulatingItemsControl(FrameworkElement element) 3391element = VisualTreeHelper.GetParent(element) as FrameworkElement; 3396private static object GetEncapsulatingItem(FrameworkElement element, out FrameworkElement container) 3402private static object GetEncapsulatingItem(FrameworkElement element, out FrameworkElement container, out ItemsControl itemsControl) 3420element = VisualTreeHelper.GetParent(element) as FrameworkElement; 3455container.ReadLocalValue(FrameworkElement.StyleProperty) != DependencyProperty.UnsetValue) 3486container.ClearValue(FrameworkElement.StyleProperty); 3496container.ClearValue(FrameworkElement.StyleProperty);
System\Windows\Controls\ItemsPanelTemplate.cs (1)
147protected override void ValidateTemplatedParent(FrameworkElement templatedParent)
System\Windows\Controls\ItemsPresenter.cs (2)
60/// Override of <seealso cref="FrameworkElement.MeasureOverride" />. 71/// Override of <seealso cref="FrameworkElement.ArrangeOverride" />.
System\Windows\Controls\MediaElement.cs (2)
696/// Override for <seealso cref="FrameworkElement.MeasureOverride" />. 704/// Override for <seealso cref="FrameworkElement.ArrangeOverride" />.
System\Windows\Controls\Menu.cs (2)
272FrameworkElement element = e.OriginalSource as FrameworkElement;
System\Windows\Controls\MenuItem.cs (3)
2437FrameworkElement parent = LogicalParent as FrameworkElement; 2462private static bool IsMouseReallyOver(FrameworkElement elem)
System\Windows\Controls\Page.cs (5)
663FrameworkElement feParent = visualParent as FrameworkElement; 675feParent = parent as FrameworkElement; 756FrameworkElement feParent = this.Parent as FrameworkElement;
System\Windows\Controls\Panel.cs (2)
388protected virtual UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent) 598private void EnsureEmptyChildren(FrameworkElement logicalParent)
System\Windows\Controls\PasswordBox.cs (7)
24[TemplatePart(Name = "PART_ContentHost", Type = typeof(FrameworkElement))] 465/// <see cref="FrameworkElement.OnPropertyChanged"/> 774internal FrameworkElement RenderScope 927_passwordBoxContentHost = GetTemplateChild(ContentHostTemplateName) as FrameworkElement; 977FrameworkElement element = _renderScope; 984element = element.Parent as FrameworkElement; 1270private FrameworkElement _passwordBoxContentHost;
System\Windows\Controls\PopupControlService.cs (1)
1177return FrameworkElement.PopupControlService;
System\Windows\Controls\Primitives\CalendarItem.cs (9)
11[TemplatePart(Name = CalendarItem.ElementRoot, Type = typeof(FrameworkElement))] 18[TemplatePart(Name = CalendarItem.ElementDisabledVisual, Type = typeof(FrameworkElement))] 45private FrameworkElement _disabledVisual; 170_disabledVisual = GetTemplateChild(ElementDisabledVisual) as FrameworkElement; 443FrameworkElement focusTarget = null; 944FrameworkElement titleCell = (this._dayTitleTemplate != null) ? (FrameworkElement)this._dayTitleTemplate.LoadContent() : new ContentControl(); 1012FrameworkElement daytitle = _monthView.Children[childIndex] as FrameworkElement;
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (1)
200/// Override for <see cref="System.Windows.FrameworkElement.OnApplyTemplate">FrameworkElement.OnApplyTemplate</see>
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (2)
137internal FrameworkElement DetailsElement 144return VisualTreeHelper.GetChild(this, 0) as FrameworkElement;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (9)
432this.TextEditorRenderScope = (adornerDecorator != null) ? (adornerDecorator.Child as FrameworkElement) : null; 727internal FrameworkElement TextEditorRenderScope 897FrameworkElement fe; 907fe = child as FrameworkElement; 943FrameworkElement fe; 956fe = child as FrameworkElement; 1129FrameworkElement fe = child as FrameworkElement; 1629private FrameworkElement _textEditorRenderScope; // RenderScope associated with the TextEditor.
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (2)
302private FrameworkElement GetStableAncester() 306return ic ?? (FrameworkElement)this;
System\Windows\Controls\Primitives\LayoutInformation.cs (3)
18private static void CheckArgument(FrameworkElement element) 27public static Rect GetLayoutSlot(FrameworkElement element) 40public static Geometry GetLayoutClip(FrameworkElement element)
System\Windows\Controls\Primitives\PopupRoot.cs (2)
363FrameworkElement child = Child as FrameworkElement;
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (2)
731FrameworkElement templatedParent = scrollContainer.TemplatedParent as FrameworkElement;
System\Windows\Controls\Primitives\Selector.cs (8)
103FrameworkElement.AddHandler(element, SelectedEvent, handler); 114FrameworkElement.RemoveHandler(element, SelectedEvent, handler); 132FrameworkElement.AddHandler(element, UnselectedEvent, handler); 143FrameworkElement.RemoveHandler(element, UnselectedEvent, handler); 1420private void SetSelectedHelper(object item, FrameworkElement UI, bool selected) 1885((Selector)sender).NotifyIsSelectedChanged(e.OriginalSource as FrameworkElement, true, e); 1890((Selector)sender).NotifyIsSelectedChanged(e.OriginalSource as FrameworkElement, false, e); 1901internal void NotifyIsSelectedChanged(FrameworkElement container, bool selected, RoutedEventArgs e)
System\Windows\Controls\Primitives\TextBoxBase.cs (7)
33[TemplatePart(Name = "PART_ContentHost", Type = typeof(FrameworkElement))] 1336internal abstract FrameworkElement CreateRenderScope(); 1734internal FrameworkElement RenderScope 1892FrameworkElement renderScope = CreateRenderScope(); 1898_textBoxContentHost = GetTemplateChild(ContentHostTemplateName) as FrameworkElement; 2163private FrameworkElement _textBoxContentHost; 2166private FrameworkElement _renderScope;
System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (1)
189protected override UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent)
System\Windows\Controls\Primitives\Track.cs (3)
405/// <seealso cref="FrameworkElement.MeasureOverride" /> 453/// <seealso cref="FrameworkElement.ArrangeOverride" /> 681private void BindChildToTemplatedParent(FrameworkElement element, DependencyProperty target, DependencyProperty source)
System\Windows\Controls\ProgressBar.cs (11)
26[TemplatePart(Name = "PART_Track", Type = typeof(FrameworkElement))] 27[TemplatePart(Name = "PART_Indicator", Type = typeof(FrameworkElement))] 28[TemplatePart(Name = "PART_GlowRect", Type = typeof(FrameworkElement))] 259_glow.BeginAnimation(FrameworkElement.MarginProperty, animation); 263_glow.BeginAnimation(FrameworkElement.MarginProperty, null); 343_track = GetTemplateChild(TrackTemplateName) as FrameworkElement; 344_indicator = GetTemplateChild(IndicatorTemplateName) as FrameworkElement; 345_glow = GetTemplateChild(GlowingRectTemplateName) as FrameworkElement; 369private FrameworkElement _track; 370private FrameworkElement _indicator; 371private FrameworkElement _glow;
System\Windows\Controls\RichTextBox.cs (2)
314internal override FrameworkElement CreateRenderScope() 781this.RenderScope.ClearValue(FrameworkElement.HorizontalAlignmentProperty);
System\Windows\Controls\ScrollViewer.cs (8)
375/// <see cref="System.Windows.FrameworkElement.Width" /> on the content element. 387/// <see cref="System.Windows.FrameworkElement.Height" /> on the content element. 416/// <see cref="System.Windows.FrameworkElement.Width" /> on this element. 428/// <see cref="System.Windows.FrameworkElement.Height" /> on this element. 1030FrameworkElement fe = elementRoot as FrameworkElement; 2718hsb.SetValue(FrameworkElement.CursorProperty, Cursors.Arrow); 2728vsb.SetValue(FrameworkElement.CursorProperty, Cursors.Arrow);
System\Windows\Controls\SinglePageViewer.cs (2)
789FrameworkElement.AddIntermediateElementsToRoute( 806continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(LogicalTreeHelper.GetParent(document), LogicalTreeHelper.GetParent(branchNode));
System\Windows\Controls\Slider.cs (11)
31[TemplatePart(Name = "PART_SelectionRange", Type = typeof(FrameworkElement))] 974FrameworkElement rangeElement = this.SelectionRangeElement as FrameworkElement; 1034FrameworkElement rangeElement = this.SelectedRangeElement as FrameworkElement; 1116internal FrameworkElement SelectionRangeElement 1128internal FrameworkElement SelectedRangeElement 1331SelectionRangeElement = GetTemplateChild(SelectionRangeElementName) as FrameworkElement; 1332SelectedRangeElement = GetTemplateChild(SelectedRangeElementName) as FrameworkElement; 1434private FrameworkElement _selectionRangeElement; 1435private FrameworkElement _selectedRangeElement;
System\Windows\Controls\SoundPlayerAction.cs (2)
112internal sealed override void Invoke(FrameworkElement el, 124internal sealed override void Invoke(FrameworkElement el)
System\Windows\Controls\StickyNote.cs (8)
778FrameworkElement innerControl = stickyNoteControl.Content.InnerControl; 794FrameworkElement innerControl = stickyNoteControl.Content.InnerControl; 957FrameworkElement parent = VisualTreeHelper.GetParent(Content.InnerControl) as FrameworkElement; 1349parent = FrameworkElement.GetFrameworkParent(parent); 1417FrameworkElement innerControl = Content.InnerControl; 1467FrameworkElement innerControl = (FrameworkElement)Content.InnerControl;
System\Windows\Controls\TabControl.cs (2)
545FrameworkElement visualParent = VisualTreeHelper.GetParent(tabItem) as FrameworkElement;
System\Windows\Controls\TextAdaptor.cs (2)
264FrameworkElement fe = renderScope as FrameworkElement;
System\Windows\Controls\TextBox.cs (2)
1010/// <see cref="FrameworkElement.OnPropertyChanged"/> 1116internal override FrameworkElement CreateRenderScope()
System\Windows\Controls\TextRangeAdaptor.cs (7)
149object val = tp.GetValue(FrameworkElement.LanguageProperty); 317Thickness margin = (Thickness)tp.GetValue(FrameworkElement.MarginProperty); 328Thickness margin = (Thickness)tp.GetValue(FrameworkElement.MarginProperty); 339Thickness margin = (Thickness)tp.GetValue(FrameworkElement.MarginProperty); 350Thickness margin = (Thickness)tp.GetValue(FrameworkElement.MarginProperty); 412FlowDirection flowWCP = (FlowDirection)tp.GetValue(FrameworkElement.FlowDirectionProperty); 1276(XmlLanguage)context.GetValue(FrameworkElement.LanguageProperty) :
System\Windows\Controls\TextSearch.cs (4)
603FrameworkElement fe = o as FrameworkElement; 740internal static string GetPrimaryText(FrameworkElement element) 800object o = element.GetValue(FrameworkElement.LanguageProperty);
System\Windows\Controls\ToolBar.cs (2)
457FrameworkElement fe = element as FrameworkElement;
System\Windows\Controls\TreeView.cs (3)
611FrameworkElement container; 618FrameworkElement container; 703FrameworkElement startingContainer = _selectedContainer.HeaderElement;
System\Windows\Controls\TreeViewItem.cs (13)
21[TemplatePart(Name = HeaderPartName, Type = typeof(FrameworkElement))] 42EventManager.RegisterClassHandler(typeof(TreeViewItem), FrameworkElement.RequestBringIntoViewEvent, new RequestBringIntoViewEventHandler(OnRequestBringIntoView)); 364FrameworkElement headerElement = HeaderElement; 676FrameworkElement startingContainer = this.HeaderElement; 762FrameworkElement header = HeaderElement; 778FrameworkElement header = HeaderElement; 783internal FrameworkElement HeaderElement 787return GetTemplateChild(HeaderPartName) as FrameworkElement; 793internal FrameworkElement TryGetHeaderElement() 796FrameworkElement header = HeaderElement; 820FrameworkElement parent = VisualTreeHelper.GetParent(toggleButton) as FrameworkElement; 828header = VisualTreeHelper.GetChild(parent, index+1) as FrameworkElement;
System\Windows\Controls\UIElementCollection.cs (3)
32public UIElementCollection(UIElement visualParent, FrameworkElement logicalParent) 528internal FrameworkElement LogicalParent 535private readonly FrameworkElement _logicalParent;
System\Windows\Controls\UserControl.cs (2)
54internal override FrameworkElement StateGroupsRoot 58return Content as FrameworkElement;
System\Windows\Controls\Validation.cs (4)
44FrameworkElement.AddHandler(element, ErrorEvent, handler); 54FrameworkElement.RemoveHandler(element, ErrorEvent, handler); 329if (!HasValidationGroup(targetElement as FrameworkElement)) 342private static bool HasValidationGroup(FrameworkElement fe)
System\Windows\Controls\VirtualizingStackPanel.cs (33)
418FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport( 542FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport( 670FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport( 874FrameworkElement prevFirstContainerInViewport = _scrollData._firstContainerInViewport; 879FrameworkElement currFirstContainerInViewport = ComputeFirstContainerInViewport( 902FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport( 1118private FrameworkElement ComputeFirstContainerInViewport( 1119FrameworkElement viewportElement, 1132private FrameworkElement ComputeFirstContainerInViewport( 1133FrameworkElement viewportElement, 1170FrameworkElement result = null; 1179FrameworkElement fe = children[i] as FrameworkElement; 1706FrameworkElement childFE = child as FrameworkElement; 1970FrameworkElement.AddHandler(element, CleanUpVirtualizedItemEvent, handler); 1980FrameworkElement.RemoveHandler(element, CleanUpVirtualizedItemEvent, handler); 5261FrameworkElement container = virtualizationInfoProvider as FrameworkElement; 6380FrameworkElement container = virtualizationInfoProvider as FrameworkElement; 6439FrameworkElement fe = virtualizingChild as FrameworkElement; 6576private bool IsHeaderBeforeItems(bool isHorizontal, FrameworkElement container, ref Thickness inset) 7088bool isHeaderBeforeItems = IsHeaderBeforeItems(isHorizontal, virtualizingChild as FrameworkElement, ref inset); 11065bool isHeaderBeforeItems = IsHeaderBeforeItems(isHorizontal, virtualizingElement as FrameworkElement, ref inset); 11598private FrameworkElement FirstContainerInViewport 11785internal FrameworkElement _firstContainerInViewport; 12148sti = new ScrollTracingInfo(tracer, _nullInfo.Generation, 0, itemsOwner as FrameworkElement, null, null, 0); 12170sti = new ScrollTracingInfo(tracer, _nullInfo.Generation, parentInfo.Depth + 1, itemsOwner as FrameworkElement, parent, parentItem, itemIndex); 12647internal FrameworkElement Owner { get; private set; } 12652internal ScrollTracingInfo(ScrollTracer tracer, int generation, int depth, FrameworkElement owner, VirtualizingStackPanel parent, object parentItem, int itemIndex) 12849internal FrameworkElement _firstContainerInViewport;
System\Windows\Controls\WrapPanel.cs (2)
208/// <see cref="FrameworkElement.MeasureOverride"/> 269/// <see cref="FrameworkElement.ArrangeOverride"/>
System\Windows\ControlTemplate.cs (1)
58protected override void ValidateTemplatedParent(FrameworkElement templatedParent)
System\Windows\Data\Binding.cs (4)
106FrameworkElement.AddHandler(element, SourceUpdatedEvent, handler); 116FrameworkElement.RemoveHandler(element, SourceUpdatedEvent, handler); 136FrameworkElement.AddHandler(element, TargetUpdatedEvent, handler); 146FrameworkElement.RemoveHandler(element, TargetUpdatedEvent, handler);
System\Windows\Data\BindingExpression.cs (16)
217if (dp == FrameworkElement.DataContextProperty && d == ContextElement) 225else if (dp == FrameworkElement.LanguageProperty && UsesLanguage && d == TargetElement) 453BaseValueSourceInternal valueSource = d.GetValueSource(FrameworkElement.DataContextProperty, null, out hasModifiers); 700if (TargetProperty == FrameworkElement.DataContextProperty || 705cvs.PropertyForInheritanceContext == FrameworkElement.DataContextProperty) 708contextElement = FrameworkElement.GetFrameworkParent(contextElement); 754source = contextElement.GetValue(FrameworkElement.DataContextProperty); 921object item = contextElement.GetValue(FrameworkElement.DataContextProperty); 1214newSources[offset++] = new WeakDependencySource(_ctxElement, FrameworkElement.DataContextProperty); 1227newSources[offset++] = new WeakDependencySource(TargetElementReference, FrameworkElement.LanguageProperty); 2243item = contextElement.GetValue(FrameworkElement.DataContextProperty); 2391object newItem = contextElement.GetValue(FrameworkElement.DataContextProperty); 2624if (dp == FrameworkElement.DataContextProperty) 2643if (dp == FrameworkElement.LanguageProperty && UsesLanguage && d == TargetElement) 2685ancestor = FrameworkElement.GetFrameworkParent(ancestor)) 2689b = BindingOperations.GetBindingExpression(ancestor, FrameworkElement.DataContextProperty) as BindingExpression;
System\Windows\Data\BindingExpressionBase.cs (5)
1266if (IsInTransfer && (TargetProperty == FrameworkElement.LanguageProperty)) 1284_culture = ((XmlLanguage) target.GetValue(FrameworkElement.LanguageProperty)).GetSpecificCulture(); 1720bg = (BindingGroup)contextElement.GetValue(FrameworkElement.BindingGroupProperty); 1728DependencyProperty dataContextDP = FrameworkElement.DataContextProperty; 1746DependencyProperty bindingGroupDP = FrameworkElement.BindingGroupProperty;
System\Windows\Data\BindingGroup.cs (5)
586if (property == FrameworkElement.BindingGroupProperty && 808object dataContextItem = mentor.GetValue(FrameworkElement.DataContextProperty); 911FrameworkElement fe; 1009mentor.GetValue(FrameworkElement.DataContextProperty) == CollectionView.NewItemPlaceholder) 1288_culture = ((System.Windows.Markup.XmlLanguage) mentor.GetValue(FrameworkElement.LanguageProperty)).GetSpecificCulture();
System\Windows\Data\CollectionViewSource.cs (1)
828XmlLanguage language = (d != null) ? (XmlLanguage)d.GetValue(FrameworkElement.LanguageProperty) : null;
System\Windows\Data\MultiBindingExpression.cs (3)
224WeakDependencySource[] commonSources = new WeakDependencySource[] { new WeakDependencySource(TargetElement, FrameworkElement.LanguageProperty) }; 442commonSources = new WeakDependencySource[] { new WeakDependencySource(TargetElement, FrameworkElement.LanguageProperty) }; 1025if (UsesLanguage && d == TargetElement && dp == FrameworkElement.LanguageProperty)
System\Windows\DataTemplate.cs (1)
184protected override void ValidateTemplatedParent(FrameworkElement templatedParent)
System\Windows\DescendentsWalker.cs (10)
53if (_startNode is FrameworkElement 76if (d is FrameworkElement fe) 181FrameworkElement feParent, 224FrameworkElement feParent, bool hasLogicalChildren ) 256FrameworkElement fe = current as FrameworkElement; 297FrameworkElement feParent, bool hasLogicalChildren) 314if (child != null && child is FrameworkElement fe) 348private void VisitNode(FrameworkElement fe, bool visitedViaVisualTree) 394if (d is FrameworkElement fe)
System\Windows\DescendentsWalkerBase.cs (1)
36if (ancestor is FrameworkElement fe)
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (4)
277public static IEnumerable<FrameworkElement> GetFrameworkElementOwners(ResourceDictionary dictionary) 279return GetOwners<FrameworkElement>(dictionary.FrameworkElementOwners, EmptyFrameworkElementList); 313private static IReadOnlyCollection<FrameworkElement> EmptyFrameworkElementList 314=> Array.Empty<FrameworkElement>();
System\Windows\Documents\AdornerDecorator.cs (1)
131/// Override for <seealso cref="FrameworkElement.ArrangeOverride" />
System\Windows\Documents\Block.cs (1)
254FrameworkElement.FlowDirectionProperty.AddOwner(typeof(Block));
System\windows\Documents\CaretElement.cs (7)
124FrameworkElement owner = GetOwnerElement(); 777private static FrameworkElement Debug_RenderScope 781return ((ITextSelection)TextEditor._ThreadLocalStore.FocusedTextSelection).TextView.RenderScope as FrameworkElement; // TextBlock / TextFlow 827private FrameworkElement GetOwnerElement() 832internal static FrameworkElement GetOwnerElement(FrameworkElement uiScope) 844return (FrameworkElement)node;
System\Windows\Documents\FixedDSBuilder.cs (1)
157XmlLanguage language = (XmlLanguage) _fixedPage.GetValue(FrameworkElement.LanguageProperty);
System\Windows\Documents\FixedElement.cs (2)
55FrameworkElement.LanguageProperty.AddOwner( 84FrameworkElement.FlowDirectionProperty.AddOwner(
System\Windows\Documents\FixedHyperlink.cs (2)
90FrameworkElement targetElement = null; 92targetElement = ((IFixedNavigate)ElementHost).FindElementByID(elementID, out rootFixedPage) as FrameworkElement;
System\Windows\Documents\FixedPage.cs (5)
444/// <seealso cref="FrameworkElement.Margin" /> 461/// <seealso cref="FrameworkElement.Margin" /> 478/// <seealso cref="FrameworkElement.Margin" /> 496/// <seealso cref="FrameworkElement.Margin" /> 717private UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent)
System\Windows\Documents\FixedSOMFixedBlock.cs (1)
207element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft);
System\Windows\Documents\FixedSOMTextRun.cs (3)
230element.SetValue(FrameworkElement.LanguageProperty, XmlLanguage.GetLanguage(_cultureInfo.IetfLanguageTag)); 238element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 242element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight);
System\Windows\Documents\FixedTextBuilder.cs (1)
1388public void FindHyperlinkPaths(FrameworkElement elem)
System\Windows\Documents\Floater.cs (1)
80FrameworkElement.HorizontalAlignmentProperty.AddOwner(
System\Windows\Documents\FlowDocument.cs (4)
899else if (element is FrameworkElement) 902while (element is FrameworkElement) 909if (!(parentOfEmbeddedElement is FrameworkElement)) 917textPointer = TextContainerHelper.GetTextPointerForEmbeddedObject((FrameworkElement)element);
System\Windows\Documents\Hyperlink.cs (2)
889FrameworkElement fe = d as FrameworkElement;
System\Windows\Documents\ImmComposition.cs (2)
62internal static ImmComposition GetImmComposition(FrameworkElement scope) 1851private FrameworkElement UiScope
System\Windows\Documents\Inline.cs (1)
133FrameworkElement.FlowDirectionProperty.AddOwner(typeof(Inline));
System\Windows\Documents\RangeContentEnumerator.cs (2)
321FrameworkElement fe = node as FrameworkElement;
System\Windows\Documents\RubberbandSelector.cs (2)
43internal void AttachRubberbandSelector(FrameworkElement scope) 608private FrameworkElement _uiScope; // parent of _scope, if _scope is a DocumentGrid.
System\Windows\Documents\Speller.cs (3)
304return property == FrameworkElement.LanguageProperty || 1498_textEditor.UiScope.GetValueSource(FrameworkElement.LanguageProperty, null, out hasModifiers) == BaseValueSourceInternal.Default) 1505language = (XmlLanguage)position.GetValue(FrameworkElement.LanguageProperty);
System\Windows\Documents\TextContainer.cs (2)
173internal void EnableUndo(FrameworkElement uiScope) 181internal void DisableUndo(FrameworkElement uiScope)
System\windows\Documents\TextEditor.cs (25)
46internal TextEditor(ITextContainer textContainer, FrameworkElement uiScope, bool isUndoEnabled) 297internal static ITextSelection GetTextSelection(FrameworkElement frameworkElement) 467XmlLanguage language = (XmlLanguage)((ITextPointer)range.Start).GetValue(FrameworkElement.LanguageProperty); 475range.ApplyPropertyValue(FrameworkElement.LanguageProperty, XmlLanguage.GetLanguage(inputCultureInfo.IetfLanguageTag)); 490FlowDirection currentFlowDirection = (FlowDirection)((ITextPointer)range.Start).GetValue(FrameworkElement.FlowDirectionProperty); 496range.ApplyPropertyValue(FrameworkElement.FlowDirectionProperty, inputFlowDirection); 832internal FrameworkElement UiScope 1264if ((source is FrameworkElement) && ((FrameworkElement)source).TemplatedParent == this.UiScope) 1316internal FrameworkElement _Scroller 1320FrameworkElement scroller = this.TextView == null ? null : (this.TextView.RenderScope as FrameworkElement); 1324scroller = FrameworkElement.GetFrameworkParent(scroller) as FrameworkElement; 1616TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1633FrameworkElement frameworkElement = sender as FrameworkElement; 1670TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1722TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1759TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1802TextEditor This = TextEditor._GetTextEditor((FrameworkElement)target); 1828TextEditor This = TextEditor._GetTextEditor((FrameworkElement)target); 1854TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1874TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1959private FrameworkElement _uiScope;
System\windows\Documents\TextEditorContextMenu.cs (8)
36EventManager.RegisterClassHandler(controlType, FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpening)); 74contextMenu = (ContextMenu)e.TargetElement.GetValue(FrameworkElement.ContextMenuProperty); 87contextMenu = (ContextMenu)element.GetValue(FrameworkElement.ContextMenuProperty); 129if (This.UiScope.ReadLocalValue(FrameworkElement.ContextMenuProperty) == null) 269FrameworkElement element = This.TextView.RenderScope as FrameworkElement; 285element = visual as FrameworkElement; 332private static void ClipToElement(FrameworkElement element, GeneralTransform transform,
System\windows\Documents\TextEditorCopyPaste.cs (3)
711else if (element is FrameworkElement) 713((TextSelection)This.Selection).InsertEmbeddedUIElement((FrameworkElement)element); 1003private static bool ConfirmDataFormatSetting(FrameworkElement uiScope, IDataObject dataObject, string format)
System\windows\Documents\TextEditorDragDrop.cs (1)
346FrameworkElement scroller = _textEditor._Scroller;
System\windows\Documents\TextEditorMouse.cs (3)
506FrameworkElement scroller = This._Scroller; 785if (hitElement is FrameworkElement && ((FrameworkElement)hitElement).TemplatedParent == textEditor.UiScope)
System\windows\Documents\TextEditorParagraphs.cs (2)
140TextEditorCharacters._OnApplyProperty(This, FrameworkElement.FlowDirectionProperty, 150TextEditorCharacters._OnApplyProperty(This, FrameworkElement.FlowDirectionProperty,
System\windows\Documents\TextEditorSelection.cs (1)
2431return (FlowDirection)navigator.GetValue(FrameworkElement.FlowDirectionProperty);
System\windows\Documents\TextEditorSpelling.cs (1)
162XmlLanguage language = (XmlLanguage)spellingError.Start.GetValue(FrameworkElement.LanguageProperty);
System\windows\Documents\TextEditorTyping.cs (4)
1220UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1221This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1236UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 1237This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft);
System\Windows\Documents\TextPointer.cs (2)
3788internal FrameworkElement ContainingFrameworkElement 3792return ((FrameworkElement)_tree.Parent);
System\Windows\Documents\TextPointerBase.cs (2)
889if (templatedParent == null && ((FlowDocumentView)textView.RenderScope).Parent is FrameworkElement) 891templatedParent = ((FrameworkElement)((FlowDocumentView)textView.RenderScope).Parent).TemplatedParent as Visual;
System\Windows\Documents\TextRange.cs (4)
1011internal void InsertEmbeddedUIElement(FrameworkElement embeddedElement) 1300internal FrameworkElement ContainingFrameworkElement 1562internal virtual void InsertEmbeddedUIElementVirtual(FrameworkElement embeddedElement) 1623if (formattingProperty == FrameworkElement.FlowDirectionProperty)
System\Windows\Documents\TextRangeEdit.cs (10)
840parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 844parentFlowDirection = (FlowDirection)FrameworkElement.FlowDirectionProperty.GetDefaultValue(typeof(FrameworkElement)); 883UIElementPropertyUndoUnit.Add(block.TextContainer, embeddedElement, FrameworkElement.HorizontalAlignmentProperty, horizontalAlignment); 884embeddedElement.SetValue(FrameworkElement.HorizontalAlignmentProperty, horizontalAlignment); 1319FlowDirection midpointFlowDirection = (FlowDirection)commonAncestor.GetValue(FrameworkElement.FlowDirectionProperty); 1320FlowDirection previousFlowDirection = (FlowDirection)previousRun.GetValue(FrameworkElement.FlowDirectionProperty); 1321FlowDirection nextFlowDirection = (FlowDirection)nextRun.GetValue(FrameworkElement.FlowDirectionProperty); 1333SetStructuralInlineProperty(scopingPreviousInline.ElementStart, scopingNextInline.ElementEnd, FrameworkElement.FlowDirectionProperty, previousFlowDirection); 1858while ((FlowDirection)inline.Parent.GetValue(FrameworkElement.FlowDirectionProperty) == flowDirection)
System\Windows\Documents\TextRangeSerialization.cs (3)
1226FrameworkElement embeddedElement = null; 1229embeddedElement = ((BlockUIContainer)uiContainer).Child as FrameworkElement; 1237embeddedElement = ((InlineUIContainer)uiContainer).Child as FrameworkElement;
System\Windows\Documents\TextSchema.cs (18)
41FrameworkElement.LanguageProperty, 42FrameworkElement.FlowDirectionProperty, 1159FrameworkElement.LanguageProperty, 1163FrameworkElement.LayoutTransformProperty, 1164FrameworkElement.WidthProperty, 1165FrameworkElement.MinWidthProperty, 1166FrameworkElement.MaxWidthProperty, 1167FrameworkElement.HeightProperty, 1168FrameworkElement.MinHeightProperty, 1169FrameworkElement.MaxHeightProperty, 1171FrameworkElement.MarginProperty, 1172FrameworkElement.HorizontalAlignmentProperty, 1173FrameworkElement.VerticalAlignmentProperty, 1175FrameworkElement.CursorProperty, 1176FrameworkElement.ForceCursorProperty, 1178FrameworkElement.ToolTipProperty, 1214FrameworkElement.FlowDirectionProperty, 1215FrameworkElement.LanguageProperty,
System\windows\Documents\TextSelection.cs (14)
312FrameworkElement uiScope = UiScope; 313FrameworkElement owner = CaretElement.GetOwnerElement(uiScope); 494FlowDirection initialFlowDirection = (FlowDirection)caretPosition.GetValue(FrameworkElement.FlowDirectionProperty); 499initialFlowDirection == (FlowDirection)caretPosition.GetValue(FrameworkElement.FlowDirectionProperty) && 1235internal override void InsertEmbeddedUIElementVirtual(FrameworkElement embeddedElement) 1264formattingProperty != FrameworkElement.FlowDirectionProperty) // We dont want to apply flowdirection property to inlines when selection is empty. 1476inheritableProperties[i] != FrameworkElement.LanguageProperty && 1477inheritableProperties[i] != FrameworkElement.FlowDirectionProperty && 2248FlowDirection flowDirection = (FlowDirection)focusedTextSelection.Start.GetValue(FrameworkElement.FlowDirectionProperty); 2374FlowDirection uiScopeflowDirection = (FlowDirection)textEditor.UiScope.GetValue(FrameworkElement.FlowDirectionProperty); 2561if (element is FrameworkElement || element is FrameworkContentElement) 2564if (parent == null && element is FrameworkElement) 2566parent = ((FrameworkElement)element).TemplatedParent; 2646private FrameworkElement UiScope
System\Windows\Documents\TextStore.cs (15)
2080internal FrameworkElement UiScope 4713FrameworkElement target = o as FrameworkElement; 4765FrameworkElement uiScope = textStore.UiScope; 4910FrameworkElement uiScope = textStore.UiScope; 4954private static List<Tuple<WeakReference<FrameworkElement>,TraceList>> s_TargetToTraceListMap 4955= new List<Tuple<WeakReference<FrameworkElement>,TraceList>>(); 4958private static TraceList TraceListForUiScope(FrameworkElement target) 4967WeakReference<FrameworkElement> wr = s_TargetToTraceListMap[i].Item1; 4968FrameworkElement fe; 4986private static TraceList AddToMap(FrameworkElement target) 5013new Tuple<WeakReference<FrameworkElement>,TraceList>( 5014new WeakReference<FrameworkElement>(target), 5038WeakReference<FrameworkElement> wr = s_TargetToTraceListMap[i].Item1; 5039FrameworkElement unused;
System\Windows\Documents\TextTreeNode.cs (1)
333if (objectNode.EmbeddedElement is FrameworkElement)
System\Windows\EventTrigger.cs (8)
258private FrameworkElement _source; 270internal static void ProcessTriggerCollection( FrameworkElement triggersHost ) 292internal static void ProcessOneTrigger( FrameworkElement triggersHost, TriggerBase triggerBase ) 308eventTrigger._source = FrameworkElement.FindNamedFrameworkElement( triggersHost, eventTrigger.SourceName ); 331internal static void DisconnectAllTriggers( FrameworkElement triggersHost ) 352internal static void DisconnectOneTrigger( FrameworkElement triggersHost, TriggerBase triggerBase ) 371internal EventTriggerSourceListener( EventTrigger trigger, FrameworkElement host ) 388private FrameworkElement _owningTriggerHost;
System\Windows\FrameworkContentElement.cs (43)
110FrameworkElement.StyleProperty.AddOwner( 156= FrameworkElement.OverridesDefaultStyleProperty.AddOwner(typeof(FrameworkContentElement), 175FrameworkElement.DefaultStyleKeyProperty.AddOwner( 341object resource = FrameworkElement.FindResourceInternal(null /* fe */, this, resourceKey); 368object resource = FrameworkElement.FindResourceInternal(null /* fe */, this, resourceKey); 509object implicitValue = FrameworkElement.FindImplicitStyleResource(this, this.GetType(), out source); 549FrameworkElement parentFE; 550bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE); 613hasParent = FrameworkElement.GetFrameworkParent(parentFE, out parentFE, out parentFCE); 617hasParent = FrameworkElement.GetFrameworkParent(parentFCE, out parentFE, out parentFCE); 637FrameworkElement feTemplatedParent = (FrameworkElement)_templatedParent; 696if (dp == FrameworkElement.NameProperty && 713FrameworkElement feTemplatedParent = TemplatedParent as FrameworkElement; 812FrameworkElement.NameProperty.AddOwner( 831FrameworkElement.TagProperty.AddOwner( 852FrameworkElement.LanguageProperty.AddOwner( 876FrameworkElement.FocusVisualStyleProperty.AddOwner(typeof(FrameworkContentElement), 877new FrameworkPropertyMetadata(FrameworkElement.DefaultFocusVisualStyle)); 892FrameworkElement.CursorProperty.AddOwner( 924FrameworkElement.ForceCursorProperty.AddOwner( 1053RoutedEvent = FrameworkElement.RequestBringIntoViewEvent 1108FrameworkElement.DataContextProperty.AddOwner( 1127add { EventHandlersStoreAdd(FrameworkElement.DataContextChangedKey, value); } 1128remove { EventHandlersStoreRemove(FrameworkElement.DataContextChangedKey, value); } 1147((FrameworkContentElement) d).RaiseDependencyPropertyChanged(FrameworkElement.DataContextChangedKey, e); 1185FrameworkElement.BindingGroupProperty.AddOwner( 1330FrameworkElement.AddIntermediateElementsToRoute(this, route, args, LogicalTreeHelper.GetParent(branchNode)); 1364FrameworkElement.AddStyleHandlersToEventRoute(null, this, route, args); 1395continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(this, LogicalTreeHelper.GetParent(branchNode)); 1575add { EventHandlersStoreAdd(FrameworkElement.InitializedKey, value); } 1576remove { EventHandlersStoreRemove(FrameworkElement.InitializedKey, value); } 1598RaiseInitialized(FrameworkElement.InitializedKey, e); 1640= FrameworkElement.LoadedPendingProperty.AddOwner(typeof(FrameworkContentElement)); 1647= FrameworkElement.UnloadedPendingProperty.AddOwner(typeof(FrameworkContentElement)); 1695public static readonly RoutedEvent LoadedEvent = FrameworkElement.LoadedEvent.AddOwner( typeof(FrameworkContentElement)); 1705AddHandler(FrameworkElement.LoadedEvent, value, false); 1709RemoveHandler(FrameworkElement.LoadedEvent, value); 1726public static readonly RoutedEvent UnloadedEvent = FrameworkElement.UnloadedEvent.AddOwner( typeof(FrameworkContentElement)); 1735AddHandler(FrameworkElement.UnloadedEvent, value, false); 1739RemoveHandler(FrameworkElement.UnloadedEvent, value); 2162private static readonly UncommonField<ResourceDictionary> ResourcesField = FrameworkElement.ResourcesField;
System\Windows\FrameworkElement.cs (96)
95private static readonly Type _typeofThis = typeof(FrameworkElement); 127FrameworkElement.EnsureFrameworkServices(); 165FrameworkElement fe = (FrameworkElement) d; 197typeof(FrameworkElement), 216FrameworkElement fe = (FrameworkElement)d; 246((FrameworkElement)d).UpdateThemeStyleProperty(); 266FrameworkElement fe = (FrameworkElement) d; 461internal static FrameworkElement FindNamedFrameworkElement( FrameworkElement startElement, string targetName ) 463FrameworkElement targetFE = null; 601internal virtual FrameworkElement StateGroupsRoot 605return _templateChild as FrameworkElement; 821object resource = FrameworkElement.FindResourceInternal(this, null /* fce */, resourceKey); 849object resource = FrameworkElement.FindResourceInternal(this, null /* fce */, resourceKey); 863internal static object FindImplicitStyleResource(FrameworkElement fe, object resourceKey, out object source) 887FrameworkElement.StyleProperty, // dp 971internal static object FindResourceInternal(FrameworkElement fe, FrameworkContentElement fce, object resourceKey) 1000return FrameworkElement.FindResourceInternal(null, // fe 1014FrameworkElement fe, 1143FrameworkElement feStart, 1190FrameworkElement fe = fo.FE; 1612private static ResourceDictionary GetInstanceResourceDictionary(FrameworkElement fe, FrameworkContentElement fce) 1636private static ResourceDictionary GetStyleResourceDictionary(FrameworkElement fe, FrameworkContentElement fce) 1676private static ResourceDictionary GetThemeStyleResourceDictionary(FrameworkElement fe, FrameworkContentElement fce) 1716private static ResourceDictionary GetTemplateResourceDictionary(FrameworkElement fe, FrameworkContentElement fce) 1867object implicitValue = FrameworkElement.FindImplicitStyleResource(this, this.GetType(), out source); 1924FrameworkElement feTemplatedParent = (FrameworkElement)_templatedParent; 1956FrameworkElement parentFE; 2068if (dp == FrameworkElement.NameProperty && 2085FrameworkElement feTemplatedParent = TemplatedParent as FrameworkElement; 2214if(layoutParent is FrameworkElement fe) 2275internal static bool GetFrameworkParent(FrameworkElement current, out FrameworkElement feParent, out FrameworkContentElement fceParent) 2288internal static bool GetFrameworkParent(FrameworkContentElement current, out FrameworkElement feParent, out FrameworkContentElement fceParent) 2300internal static bool GetContainingFrameworkElement(DependencyObject current, out FrameworkElement fe, out FrameworkContentElement fce) 2368EventManager.RegisterClassHandler(_typeofThis, Mouse.QueryCursorEvent, new QueryCursorEventHandler(FrameworkElement.OnQueryCursorOverride), true); 2399typeof(FrameworkElement), 2407FrameworkElement fe = (FrameworkElement) d; 2462if (newParent != null && newParent is not FrameworkElement) 2476else if (oldParent != null && oldParent is not FrameworkElement) 2524FrameworkElement feParent = null; 2528FrameworkElement.GetContainingFrameworkElement(VisualTreeHelper.GetParent(this), out feParent, out fceParent); 2559FrameworkElement.GetContainingFrameworkElement(e.OldParent, out feParent, out fceParent); 2728((FrameworkElement) d).RaiseDependencyPropertyChanged(DataContextChangedKey, e); 2913FrameworkElement.AddIntermediateElementsToRoute(this, route, args, LogicalTreeHelper.GetParent(branchNode)); 2968FrameworkElement fe, 3014FrameworkElement feTemplatedParent = templatedParent as FrameworkElement; 3104continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(this, LogicalTreeHelper.GetParent(branchNode)); 3330FrameworkElement fe = (FrameworkElement) d; 3375FrameworkElement fe = (FrameworkElement) d; 3433FrameworkElement fe = (FrameworkElement)d; 3458FrameworkElement fe = (FrameworkElement)d; 3644FrameworkElement fe = d as FrameworkElement; 3658FrameworkElement fe = d as FrameworkElement; 3866FrameworkElement fe = ((FrameworkElement)d); 3901FrameworkElement fe = ((FrameworkElement)d); 3911FrameworkElement fe = (FrameworkElement) sender; 3950internal static bool ShouldApplyMirrorTransform(FrameworkElement fe) 3967FrameworkElement parentFE; 3997FrameworkElement fe = v as FrameworkElement; 4038internal MinMax(FrameworkElement e) 5135FrameworkElement fe = element as FrameworkElement; 5328FrameworkElement fe = (FrameworkElement)sender; 5354FrameworkElement fe = (FrameworkElement)sender; 5522((FrameworkElement) o).HasNumberSubstitutionChanged = true; 5526private static bool ShouldUseSystemFont(FrameworkElement fe, DependencyProperty dp) 5541if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontFamilyProperty)) 5552if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontSizeProperty)) 5563if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontStyleProperty)) 5574if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontWeightProperty)) 5942((FrameworkElement)sender).OnToolTipOpening(e); 5974((FrameworkElement)sender).OnToolTipClosing(e); 6007((FrameworkElement)sender).OnContextMenuOpening(e); 6034((FrameworkElement)sender).OnContextMenuClosing(e); 6079FrameworkElement fe = uiElement as FrameworkElement;
System\Windows\FrameworkElementFactory.cs (14)
83if (!typeof(FrameworkElement).IsAssignableFrom(value) && 324if ( (routedEvent == FrameworkElement.LoadedEvent) 325||(routedEvent == FrameworkElement.UnloadedEvent)) 355if ( (routedEvent == FrameworkElement.LoadedEvent) 356||(routedEvent == FrameworkElement.UnloadedEvent)) 358if ( !_eventHandlersStore.Contains(FrameworkElement.LoadedEvent) 359&&!_eventHandlersStore.Contains(FrameworkElement.UnloadedEvent)) 636FrameworkElement containerAsFE = container as FrameworkElement; 998bool treeNodeIsFE, FrameworkElement treeNodeFE, FrameworkContentElement treeNodeFCE, 1037FrameworkElement treeNodeFE, FrameworkContentElement treeNodeFCE ) 1056FrameworkElement treeNodeFE, FrameworkContentElement treeNodeFCE ) 1077bool treeNodeIsFE, FrameworkElement treeNodeFE, FrameworkContentElement treeNodeFCE) 1100bool treeNodeIsFE, FrameworkElement treeNodeFE, FrameworkContentElement treeNodeFCE)
System\Windows\FrameworkTemplate.cs (15)
55protected virtual void ValidateTemplatedParent(FrameworkElement templatedParent) 298public Object FindName(string name, FrameworkElement templatedParent) 377throw new ArgumentException(SR.Format(SR.VisualTreeRootIsFrameworkElement, nameof(FrameworkElement), templateRoot.Type.Name)); 468FrameworkElement container) 612internal virtual bool BuildVisualTree(FrameworkElement container) 905FrameworkElement feContainer = container as FrameworkElement; 1078FrameworkElement feContainer, 1085(createdObject is FrameworkElement || createdObject is FrameworkContentElement)) 1097FrameworkElement feContainer, 1100if (createdObject is FrameworkElement || createdObject is FrameworkContentElement) 1113private static DependencyObject WireRootObjectToParent(object createdObject, DependencyObject rootObject, DependencyObject container, FrameworkElement feContainer, INameScope nameScope) 1129Debug.Assert(!(rootElement is FrameworkElement) || 1130((FrameworkElement)rootElement).TemplateChildIndex != -1); 1135FrameworkElement feResult;
System\Windows\Generated\FrameworkContentElement.cs (14)
64INameScope nameScope = FrameworkElement.FindScope(this); 82INameScope nameScope = FrameworkElement.FindScope(this); 108INameScope nameScope = FrameworkElement.FindScope(this, out scopeOwner); 318IsParentAnFE = newParent is FrameworkElement; 436RaiseClrEvent(FrameworkElement.ResourcesChangedKey, EventArgs.Empty); 475FrameworkElement.GetTemplatedParentChildRecord(templatedParent, childIndex, out childRecord, out isChildRecordValid); 477FrameworkElement parentFE; 479bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE); 765&& FrameworkElement.GetFrameworkParent(this) == null 1002Delegate handler = store.Get(FrameworkElement.InheritedPropertyChangedKey); 1185EventHandlersStoreAdd(FrameworkElement.ResourcesChangedKey, value); 1187remove { EventHandlersStoreRemove(FrameworkElement.ResourcesChangedKey, value); } 1205EventHandlersStoreAdd(FrameworkElement.InheritedPropertyChangedKey, value); 1207remove { EventHandlersStoreRemove(FrameworkElement.InheritedPropertyChangedKey, value); }
System\Windows\Generated\FrameworkElement.cs (14)
64INameScope nameScope = FrameworkElement.FindScope(this); 82INameScope nameScope = FrameworkElement.FindScope(this); 108INameScope nameScope = FrameworkElement.FindScope(this, out scopeOwner); 318IsParentAnFE = newParent is FrameworkElement; 428RaiseClrEvent(FrameworkElement.ResourcesChangedKey, EventArgs.Empty); 490FrameworkElement.GetTemplatedParentChildRecord(templatedParent, childIndex, out childRecord, out isChildRecordValid); 492FrameworkElement parentFE; 494bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE); 795&& FrameworkElement.GetFrameworkParent(this) == null 1032Delegate handler = store.Get(FrameworkElement.InheritedPropertyChangedKey); 1227EventHandlersStoreAdd(FrameworkElement.ResourcesChangedKey, value); 1229remove { EventHandlersStoreRemove(FrameworkElement.ResourcesChangedKey, value); } 1252EventHandlersStoreAdd(FrameworkElement.InheritedPropertyChangedKey, value); 1254remove { EventHandlersStoreRemove(FrameworkElement.InheritedPropertyChangedKey, value); }
System\Windows\Input\KeyboardNavigation.cs (13)
846FrameworkElement fe = element as FrameworkElement; 857if (fvs == FrameworkElement.DefaultFocusVisualStyle) 859fvs = FrameworkElement.FindResourceInternal(fe, fce: null, SystemParameters.FocusVisualStyleKey) as Style; 884if (fvs == FrameworkElement.DefaultFocusVisualStyle) 886fvs = FrameworkElement.FindResourceInternal(fe: null, fce, SystemParameters.FocusVisualStyleKey) as Style; 1154return FrameworkElement.KeyboardNavigation; 1303FrameworkElement viewportBoundsElement, 1327FrameworkElement viewportBoundsElement, 1902FrameworkElement fe = e as FrameworkElement; 2469FrameworkElement header = tvi.TryGetHeaderElement(); 2979FrameworkElement viewportBoundsElement,
System\Windows\Interop\ActiveXHost.cs (1)
64invalidatorMap[FrameworkElement.IsEnabledProperty] = new PropertyInvalidator(OnIsEnabledInvalidated);
System\Windows\LogicalTreeHelper.cs (15)
117FrameworkElement fe = current as FrameworkElement; 141FrameworkElement fe = current as FrameworkElement; 159public static IEnumerable GetChildren(FrameworkElement current) 183FrameworkElement fe = current as FrameworkElement; 356FrameworkElement parentFE = parent as FrameworkElement; 369internal static void AddLogicalChild(FrameworkElement parentFE, FrameworkContentElement parentFCE, object child) 388FrameworkElement parentFE = parent as FrameworkElement; 401internal static void RemoveLogicalChild(FrameworkElement parentFE, FrameworkContentElement parentFCE, object child) 419FrameworkElement fe = current as FrameworkElement;
System\Windows\LostFocusEventManager.cs (2)
101FrameworkElement fe; 117FrameworkElement fe;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (2)
80case 4: assembly = typeof(System.Windows.FrameworkElement).Assembly; break; 319case 226: t = () => typeof(FrameworkElement); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (43)
2538Type type = typeof(System.Windows.FrameworkElement); 2539DependencyProperty dp = System.Windows.FrameworkElement.FlowDirectionProperty; 2541this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2557Type type = typeof(System.Windows.FrameworkElement); 2558DependencyProperty dp = System.Windows.FrameworkElement.HeightProperty; 2560this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2576Type type = typeof(System.Windows.FrameworkElement); 2577DependencyProperty dp = System.Windows.FrameworkElement.HorizontalAlignmentProperty; 2579this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2595Type type = typeof(System.Windows.FrameworkElement); 2596DependencyProperty dp = System.Windows.FrameworkElement.MarginProperty; 2598this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2614Type type = typeof(System.Windows.FrameworkElement); 2615DependencyProperty dp = System.Windows.FrameworkElement.MaxHeightProperty; 2617this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2633Type type = typeof(System.Windows.FrameworkElement); 2634DependencyProperty dp = System.Windows.FrameworkElement.MaxWidthProperty; 2636this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2652Type type = typeof(System.Windows.FrameworkElement); 2653DependencyProperty dp = System.Windows.FrameworkElement.MinHeightProperty; 2655this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2671Type type = typeof(System.Windows.FrameworkElement); 2672DependencyProperty dp = System.Windows.FrameworkElement.MinWidthProperty; 2674this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2690Type type = typeof(System.Windows.FrameworkElement); 2691DependencyProperty dp = System.Windows.FrameworkElement.NameProperty; 2693this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2709Type type = typeof(System.Windows.FrameworkElement); 2710DependencyProperty dp = System.Windows.FrameworkElement.StyleProperty; 2712this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2725Type type = typeof(System.Windows.FrameworkElement); 2726DependencyProperty dp = System.Windows.FrameworkElement.VerticalAlignmentProperty; 2728this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2744Type type = typeof(System.Windows.FrameworkElement); 2745DependencyProperty dp = System.Windows.FrameworkElement.WidthProperty; 2747this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 6823Type type = typeof(System.Windows.FrameworkElement); 6825this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 6833SetDelegate = delegate (object target, object value) { ((System.Windows.FrameworkElement)target).Resources = (System.Windows.ResourceDictionary)value; }, 6834GetDelegate = delegate (object target) { return ((System.Windows.FrameworkElement)target).Resources; } 8928Type type = typeof(System.Windows.FrameworkElement); 8930this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 8937GetDelegate = delegate (object target) { return ((System.Windows.FrameworkElement)target).Triggers; },
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4926typeof(System.Windows.FrameworkElement),
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (1)
106case 4: assembly = new Baml6Assembly(typeof(System.Windows.FrameworkElement).Assembly); break;
System\Windows\Markup\BamlRecordReader.cs (2)
4082FrameworkElement feParent; 4163result = FrameworkElement.FindResourceFromAppOrSystem(resourceNameObject, out source, false /*throwOnError*/, allowDeferredResourceReference, mustReturnDeferredResourceReference);
System\Windows\Markup\KnownTypes.cs (13)
1765return System.Windows.FrameworkElement.FlowDirectionProperty; 1767return System.Windows.FrameworkElement.HeightProperty; 1769return System.Windows.FrameworkElement.HorizontalAlignmentProperty; 1771return System.Windows.FrameworkElement.MarginProperty; 1773return System.Windows.FrameworkElement.MaxHeightProperty; 1775return System.Windows.FrameworkElement.MaxWidthProperty; 1777return System.Windows.FrameworkElement.MinHeightProperty; 1779return System.Windows.FrameworkElement.MinWidthProperty; 1781return System.Windows.FrameworkElement.NameProperty; 1783return System.Windows.FrameworkElement.StyleProperty; 1785return System.Windows.FrameworkElement.VerticalAlignmentProperty; 1787return System.Windows.FrameworkElement.WidthProperty; 5773case KnownElements.FrameworkElement: t = typeof(System.Windows.FrameworkElement); break;
System\Windows\Markup\RoutedEventConverter.cs (1)
101type = typeof(FrameworkElement);
System\Windows\Media\Animation\BeginStoryboard.cs (2)
174internal sealed override void Invoke( FrameworkElement fe, FrameworkContentElement fce, Style targetStyle, FrameworkTemplate frameworkTemplate, Int64 layer ) 193internal sealed override void Invoke( FrameworkElement fe )
System\Windows\Media\Animation\ControllableStoryboardAction.cs (4)
57internal sealed override void Invoke( FrameworkElement fe, FrameworkContentElement fce, Style targetStyle, FrameworkTemplate frameworkTemplate, Int64 layer ) 77internal sealed override void Invoke( FrameworkElement fe ) 84internal virtual void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard ) 91private Storyboard GetStoryboard( FrameworkElement fe, FrameworkContentElement fce, INameScope nameScope )
System\Windows\Media\Animation\PauseStoryboard.cs (1)
23internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
System\Windows\Media\Animation\RemoveStoryboard.cs (1)
23internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
System\Windows\Media\Animation\ResumeStoryboard.cs (1)
23internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
System\Windows\Media\Animation\SeekStoryboard.cs (1)
89internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
System\Windows\Media\Animation\SetStoryboardSpeedRatio.cs (1)
47internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
System\Windows\Media\Animation\SkipStoryboardToFill.cs (1)
23internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
System\Windows\Media\Animation\StopStoryboard.cs (1)
23internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
System\Windows\Media\Animation\Storyboard.cs (27)
246FrameworkElement fe = element as FrameworkElement; 307FrameworkElement fe, 436targetObject = containingObject as FrameworkElement; 930if(targetObject is FrameworkElement) 1065public void Begin( FrameworkElement containingObject ) 1073public void Begin( FrameworkElement containingObject, HandoffBehavior handoffBehavior ) 1081public void Begin( FrameworkElement containingObject, bool isControllable ) 1089public void Begin( FrameworkElement containingObject, HandoffBehavior handoffBehavior, bool isControllable ) 1097public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate ) 1105public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate, HandoffBehavior handoffBehavior ) 1113public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate, bool isControllable ) 1121public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate, HandoffBehavior handoffBehavior, bool isControllable ) 1287public Nullable<Double> GetCurrentGlobalSpeed( FrameworkElement containingObject ) 1336public Nullable<Int32> GetCurrentIteration( FrameworkElement containingObject ) 1385public Nullable<Double> GetCurrentProgress( FrameworkElement containingObject ) 1433public ClockState GetCurrentState( FrameworkElement containingObject ) 1472public Nullable<TimeSpan> GetCurrentTime( FrameworkElement containingObject ) 1521public bool GetIsPaused( FrameworkElement containingObject ) 1562public void Pause( FrameworkElement containingObject ) 1604public void Remove(FrameworkElement containingObject) 1650public void Resume( FrameworkElement containingObject ) 1694public void Seek( FrameworkElement containingObject, TimeSpan offset, TimeSeekOrigin origin ) 1742public void SeekAlignedToLastTick( FrameworkElement containingObject, TimeSpan offset, TimeSeekOrigin origin ) 1790public void SetSpeedRatio( FrameworkElement containingObject, double speedRatio ) 1829public void SkipToFill( FrameworkElement containingObject ) 1863public void Stop( FrameworkElement containingObject )
System\Windows\Navigation\NavigationService.cs (9)
352FrameworkElement fe = _bp as FrameworkElement; 386FrameworkElement fe = elem as FrameworkElement; 669FrameworkElement fe = INavigatorHost as FrameworkElement; 2254FrameworkElement fe = _bp as FrameworkElement; 2546((FrameworkElement)_bp).Loaded -= OnContentLoaded;
System\Windows\Navigation\NavigationWindow.cs (4)
419FrameworkElement root = (this.GetVisualChild(0)) as FrameworkElement; 1054FrameworkElement journalEntryUIElem = e.Parameter as FrameworkElement;
System\Windows\ResourceDictionary.cs (12)
1436FrameworkElement fe = owner as FrameworkElement; 1519FrameworkElement fe = owner as FrameworkElement; 1577FrameworkElement fe = owner as FrameworkElement; 1631FrameworkElement fe = o as FrameworkElement; 1980FrameworkElement fe = o as FrameworkElement; 2034FrameworkElement fe = o as FrameworkElement;
System\Windows\ResourceReferenceExpression.cs (6)
105FrameworkElement mentorFE; 123FrameworkElement fe; 128resource = FrameworkElement.FindResourceInternal(fe, 142resource = FrameworkElement.FindResourceFromAppOrSystem(_resourceKey, 230if (!(_targetObject is FrameworkElement) && !(_targetObject is FrameworkContentElement)) 314FrameworkElement mentorFE;
System\Windows\Setter.cs (3)
70if( property == FrameworkElement.NameProperty) 72throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInStyle, FrameworkElement.NameProperty.Name)); 96if (dp == FrameworkElement.StyleProperty)
System\Windows\Shell\WindowChromeWorker.cs (4)
301FrameworkElement rootElement = (FrameworkElement)VisualTreeHelper.GetChild(_window, 0); 1130FrameworkElement rootElement = (FrameworkElement)VisualTreeHelper.GetChild(_window, 0);
System\Windows\StaticResourceExtension.cs (2)
212XamlType feXType = schemaContext.GetXamlType(typeof(FrameworkElement)); 298val = FrameworkElement.FindResourceFromAppOrSystem(ResourceKey,
System\Windows\Style.cs (3)
163if (!typeof(FrameworkElement).IsAssignableFrom(value) && 672if (eventSetter.Event == FrameworkElement.LoadedEvent || eventSetter.Event == FrameworkElement.UnloadedEvent)
System\Windows\StyleHelper.cs (79)
48FrameworkElement fe, 87FrameworkElement fe, 107if (StyleHelper.IsSetOnContainer(FrameworkElement.OverridesDefaultStyleProperty, ref newThemeStyle.ContainerDependents, true)) 125if(ShouldGetValueFromStyle ( FrameworkElement.DefaultStyleKeyProperty ) ) 155internal static Style GetThemeStyle(FrameworkElement fe, FrameworkContentElement fce) 241FrameworkElement.StyleProperty.GetMetadata(themeStyleTypeKey); 258FrameworkElement.OnThemeStyleChanged(fe, oldThemeStyle, newThemeStyle); 276FrameworkElement fe, 439if (StyleHelper.IsSetOnContainer(FrameworkElement.StyleProperty, ref containerDependents, true)) 441throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.StyleProperty.Name)); 446if (StyleHelper.IsSetOnContainer(FrameworkElement.DefaultStyleKeyProperty, ref containerDependents, true)) 448throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.DefaultStyleKeyProperty.Name)); 453if (StyleHelper.IsSetOnContainer(FrameworkElement.OverridesDefaultStyleProperty, ref containerDependents, true)) 455throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.OverridesDefaultStyleProperty.Name)); 460if (StyleHelper.IsSetOnContainer(FrameworkElement.NameProperty, ref containerDependents, true)) 462throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.NameProperty.Name)); 1153if ( (eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent) 1154||(eventTrigger.RoutedEvent == FrameworkElement.UnloadedEvent)) 1188if (eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent 1190eventTrigger.RoutedEvent == FrameworkElement.UnloadedEvent ) 1201if( eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent ) 1328FrameworkElement fe, 1363FrameworkElement fe, 1426FrameworkElement fe, 1493Debug.Assert((container is FrameworkElement) || (container is FrameworkContentElement), "Caller has queried with non-framework element. Bad caller, bad!"); 1536FrameworkElement feChild; 1772FrameworkElement feContainer = container as FrameworkElement; 1809Debug.Assert(treeRoot is FrameworkElement || treeRoot is FrameworkContentElement, 1857Debug.Assert(treeRoot == null || treeRoot is FrameworkElement || treeRoot is FrameworkContentElement, 1931internal static void AddCustomTemplateRoot( FrameworkElement container, UIElement child ) 1939FrameworkElement container, 1959FrameworkElement parent = VisualTreeHelper.GetParent(child) as FrameworkElement; 2047FrameworkElement feWalkNode; 2125FrameworkElement feContainer, 2174FrameworkElement feContainer, 2207FrameworkElement feContainer, 2229FrameworkElement fe; 2321out FrameworkElement fe, out FrameworkContentElement fce, 2324if (d is FrameworkElement frameworkElement) 2389Debug.Assert(sender is FrameworkElement || sender is FrameworkContentElement, 2392FrameworkElement fe; 2444Debug.Assert(sender is FrameworkElement || sender is FrameworkContentElement, 2447FrameworkElement fe; 2469FrameworkElement feTemplatedParent; 2492FrameworkElement fe, 2687sourceNodeType = (container as FrameworkElement).TemplateInternal.ChildTypeFromChildIndex[sourceChildIndex]; 2718value = FrameworkElement.FindResourceInternal(child.FE, 2773value = FrameworkElement.FindResourceInternal( 2898FrameworkElement feChild, 2908FrameworkElement feContainer; 3090return (dp != FrameworkElement.StyleProperty); 3102return (dp != FrameworkElement.StyleProperty && 3103dp != FrameworkElement.DefaultStyleKeyProperty && 3104dp != FrameworkElement.OverridesDefaultStyleProperty); 3117return (dp != FrameworkElement.StyleProperty && 3118dp != FrameworkElement.DefaultStyleKeyProperty && 3119dp != FrameworkElement.OverridesDefaultStyleProperty && 3139FrameworkElement fe, 3220FrameworkElement fe, 3295FrameworkElement feContainer, 3437FrameworkElement fe, 3478FrameworkElement fe, 4231if (dp != FrameworkElement.StyleProperty) 4497private static void ExecuteOnApplyEnterExitActions( FrameworkElement fe, 4526private static void ExecuteOnApplyEnterExitActions( FrameworkElement fe, FrameworkContentElement fce, 4705FrameworkElement fe = (FrameworkElement)container; 4824action.Invoke(triggerContainer as FrameworkElement, triggerContainer as FrameworkContentElement, 5127FrameworkElement fe; 5164FrameworkElement fe; 5207FrameworkElement fe; 5439child is FrameworkElement && ((FrameworkElement)child).TemplateChildIndex == childIndex || 5474FrameworkElement fe; 5499FrameworkElement fe; 5589if (dp == ItemsControl.ItemsPanelProperty || dp == FrameworkElement.ContextMenuProperty || dp == FrameworkElement.ToolTipProperty)
System\Windows\SystemResources.cs (3)
501_presentationFramework = typeof(FrameworkElement).Assembly; 1233FrameworkElement fe = source.RootVisual as FrameworkElement;
System\Windows\SystemThemeKey.cs (1)
39_presentationFrameworkAssembly = typeof(FrameworkElement).Assembly;
System\Windows\TemplateContent.cs (7)
23[XamlDeferLoad(typeof(TemplateContentLoader), typeof(FrameworkElement))] 431if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 459if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 484if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 660if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 726if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 817if (!typeof(FrameworkElement).IsAssignableFrom(parentType.UnderlyingType) &&
System\Windows\TemplateNameScope.cs (3)
50Debug.Assert(templatedParent == null || (templatedParent is FrameworkElement || templatedParent is FrameworkContentElement), 77if (!(scopedElement is FrameworkContentElement || scopedElement is FrameworkElement)) 84FrameworkElement fe;
System\Windows\ThemeManager.cs (2)
293window.SetResourceReference(FrameworkElement.StyleProperty, typeof(NavigationWindow)); 297window.SetResourceReference(FrameworkElement.StyleProperty, typeof(Window));
System\Windows\TreeWalkHelper.cs (20)
34FrameworkElement fe, 180FrameworkElement fe, 231FrameworkElement fe, 449FrameworkElement fe, 546FrameworkElement fe = fo.FE; 576(fe.HasImplicitStyleFromResources || fe.Style == FrameworkElement.StyleProperty.GetMetadata(fe.DependencyObjectType).DefaultValue)) 604fe.RaiseClrEvent(FrameworkElement.ResourcesChangedKey, new ResourcesChangedEventArgs(info)); 660fce.RaiseClrEvent(FrameworkElement.ResourcesChangedKey, new ResourcesChangedEventArgs(info)); 753FrameworkElement fe = fo.FE; 757(fe.HasImplicitStyleFromResources || fe.Style == FrameworkElement.StyleProperty.GetMetadata(fe.DependencyObjectType).DefaultValue)) 795FrameworkElement templatedParent = (FrameworkElement)fe.TemplatedParent; 863FrameworkElement templatedParent = (FrameworkElement)fce.TemplatedParent; 902FrameworkElement fe, 963DependencyObject parent = FrameworkElement.GetFrameworkParent(d); 1006if (visitedViaVisualTree && d is FrameworkElement) 1170FrameworkElement fe, 1265internal static bool HasChildren(FrameworkElement fe, FrameworkContentElement fce) 1288return (dp == FrameworkElement.FlowDirectionProperty);
System\Windows\TriggerAction.cs (2)
41internal abstract void Invoke( FrameworkElement fe, 56internal abstract void Invoke( FrameworkElement fe );
System\Windows\TriggerBase.cs (1)
175if (dp == FrameworkElement.StyleProperty)
System\Windows\TriggerCollection.cs (3)
29internal TriggerCollection(FrameworkElement owner) : base() 116internal FrameworkElement Owner 203private FrameworkElement _owner;
System\Windows\VisualStateChangedEventArgs.cs (6)
14internal VisualStateChangedEventArgs(VisualState oldState, VisualState newState, FrameworkElement control, FrameworkElement stateGroupsRoot) 47public FrameworkElement Control 58public FrameworkElement StateGroupsRoot 68private FrameworkElement _control; 69private FrameworkElement _stateGroupsRoot;
System\Windows\VisualStateGroup.cs (5)
96internal void StartNewThenStopOld(FrameworkElement element, params ReadOnlySpan<Storyboard> newStoryboards) 132internal void RaiseCurrentStateChanging(FrameworkElement stateGroupsRoot, VisualState oldState, VisualState newState, FrameworkElement control) 140internal void RaiseCurrentStateChanged(FrameworkElement stateGroupsRoot, VisualState oldState, VisualState newState, FrameworkElement control)
System\Windows\VisualStateManager.cs (24)
26private static bool GoToStateCommon(FrameworkElement control, FrameworkElement stateGroupsRoot, string stateName, bool useTransitions) 68public static bool GoToState(FrameworkElement control, string stateName, bool useTransitions) 72FrameworkElement stateGroupsRoot = control.StateGroupsRoot; 84public static bool GoToElementState(FrameworkElement stateGroupsRoot, string stateName, bool useTransitions) 94protected virtual bool GoToStateCore(FrameworkElement control, FrameworkElement stateGroupsRoot, string stateName, VisualStateGroup group, VisualState state, bool useTransitions) 108public static VisualStateManager GetCustomVisualStateManager(FrameworkElement obj) 115public static void SetCustomVisualStateManager(FrameworkElement obj, VisualStateManager value) 139internal static Collection<VisualStateGroup> GetVisualStateGroupsInternal(FrameworkElement obj) 155public static IList GetVisualStateGroups(FrameworkElement obj) 185private static bool GoToStateInternal(FrameworkElement control, FrameworkElement stateGroupsRoot, VisualStateGroup group, VisualState state, bool useTransitions) 297private static bool ShouldRunStateStoryboard(FrameworkElement control, FrameworkElement stateGroupsRoot, VisualState state, VisualStateGroup group) 326protected void RaiseCurrentStateChanging(VisualStateGroup stateGroup, VisualState oldState, VisualState newState, FrameworkElement control, FrameworkElement stateGroupsRoot) 339protected void RaiseCurrentStateChanged(VisualStateGroup stateGroup, VisualState oldState, VisualState newState, FrameworkElement control, FrameworkElement stateGroupsRoot) 356private static Storyboard GenerateDynamicTransitionAnimations(FrameworkElement root, VisualStateGroup group, VisualState newState, VisualTransition transition) 420private static Timeline GenerateFromAnimation(FrameworkElement root, Timeline timeline, IEasingFunction easingFunction) 447private static Timeline GenerateToAnimation(FrameworkElement root, Timeline timeline, IEasingFunction easingFunction, bool isEntering) 486private static void CopyStoryboardTargetProperties(FrameworkElement root, Timeline source, Timeline destination) 527internal static VisualTransition GetTransition(FrameworkElement element, VisualStateGroup group, VisualState from, VisualState to)
System\Windows\Window.cs (2)
4645SetValue(FrameworkElement.WidthProperty, ptLogicalUnits.X); 4646SetValue(FrameworkElement.HeightProperty, ptLogicalUnits.Y);
PresentationUI (5)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (3)
933private FrameworkElement InfoBar 940_infoBar = GetTemplateChild(_infoBarName) as FrameworkElement; 2222private FrameworkElement _infoBar;
MS\Internal\Documents\RightsManagementResourceHelper.cs (1)
155private static FrameworkElement _frameworkElement; // Used to search resources.
MS\Internal\Documents\SignatureResourceHelper.cs (1)
338private static FrameworkElement _frameworkElement;
ReachFramework (8)
Serialization\Manager\ReachSerializationUtils.cs (4)
801else if (element is FrameworkElement) 849else if (element is FrameworkElement) 874else if (element is FrameworkElement) 885if (element is FrameworkElement fe)
Serialization\VisualTreeFlattener.cs (4)
487FrameworkElement fe = visual as FrameworkElement; 765FrameworkElement el = visual as FrameworkElement;
Roslyn.VisualStudio.DiagnosticsWindow (2)
VenusMargin\ProjectionBufferMargin.xaml.cs (1)
43var buffer = (ITextBuffer)((FrameworkElement)sender).Tag;
VenusMargin\VenusMargin.cs (1)
89public System.Windows.FrameworkElement VisualElement
System.Windows.Controls.Ribbon (144)
Microsoft\Windows\Automation\Peers\RibbonAutomationPeer.cs (4)
100FrameworkElement titleHost = OwningRibbon.TitleHost as FrameworkElement; 205FrameworkElement helpPaneHostFE = helpPaneHost as FrameworkElement;
Microsoft\Windows\Automation\Peers\RibbonControlAutomationPeer.cs (1)
25public RibbonControlAutomationPeer(FrameworkElement owner)
Microsoft\Windows\Automation\Peers\RibbonGroupHeaderAutomationPeer.cs (1)
26public RibbonGroupHeaderAutomationPeer(FrameworkElement owner)
Microsoft\Windows\Automation\Peers\RibbonTitleAutomationPeer.cs (1)
21public RibbonTitleAutomationPeer(FrameworkElement owner)
Microsoft\Windows\Controls\Generated\TreeHelper.cs (3)
53public static T FindTemplatedAncestor<T>(FrameworkElement element) where T : FrameworkElement 57element = element.TemplatedParent as FrameworkElement;
Microsoft\Windows\Controls\KeyTipService.cs (8)
171FrameworkElement fe = element as FrameworkElement; 190FrameworkElement fe = element as FrameworkElement; 372FrameworkElement fe = element as FrameworkElement; 903if (DependencyPropertyHelper.GetValueSource(element, FrameworkElement.LanguageProperty).BaseValueSource != BaseValueSource.Default) 905XmlLanguage language = (XmlLanguage)element.GetValue(FrameworkElement.LanguageProperty);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (5)
126private static double GetStarChildMinWidth(FrameworkElement child, ref double maxStarColumnWidth) 231columnWidth = GetStarChildMinWidth(child as FrameworkElement, ref maxStarColumnWidth); 247columnWidth = Math.Max(columnWidth, GetStarChildMinWidth(child as FrameworkElement, ref maxStarColumnWidth)); 434FrameworkElement itemsPresenter = TemplatedParent as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (2)
285FrameworkElement itemsPresenter = TemplatedParent as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (2)
305FrameworkElement itemsPresenter = TemplatedParent as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (4)
91FrameworkElement qat = Ribbon.QatTopHost as FrameworkElement; 92FrameworkElement titleHost = Ribbon.TitleHost as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (4)
118EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpeningThunk), true); 119EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuClosingEvent, new ContextMenuEventHandler(OnContextMenuClosingThunk), true); 1575FrameworkElement popupPlacementTarget = _itemsPresenterPopup.Parent as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (5)
30[TemplatePart(Name = RibbonApplicationMenu.SubmenuTemplateName, Type = typeof(FrameworkElement))] 300SubmenuPlaceholder = this.GetTemplateChild(SubmenuTemplateName) as FrameworkElement; 317typeof(FrameworkElement), 326internal FrameworkElement SubmenuPlaceholder 328get { return (FrameworkElement)GetValue(SubmenuPlaceholderProperty); }
Microsoft\Windows\Controls\Ribbon\RibbonContentPresenter.cs (2)
27private FrameworkElement _templateRoot; 111_templateRoot = VisualTreeHelper.GetChild(this, 0) as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (2)
207private FrameworkElement VisualChild 211return VisualChildrenCount == 0 ? null : (GetVisualChild(0) as FrameworkElement);
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (1)
169private bool HasTabs(FrameworkElement container)
Microsoft\Windows\Controls\Ribbon\RibbonDropDownHelper.cs (9)
25public static void OnPopupResizeStarted(FrameworkElement itemsPresenter) 36public static bool ResizePopup(FrameworkElement itemsPresenter, 128private static bool ResizePopupActual(FrameworkElement itemsPresenter, Size minDropDownSize, bool canUserResizeHorizontally, bool canUserResizeVertically, double newWidth, double newHeight) 157public static Rect GetScreenBounds(FrameworkElement targetElement, Popup popup) 194public static void ClearLocalValues(FrameworkElement itemsPresenter, Popup popup) 198itemsPresenter.ClearValue(FrameworkElement.HeightProperty); 199itemsPresenter.ClearValue(FrameworkElement.WidthProperty); 217FrameworkElement popupChild = popup.Child as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (7)
77EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpeningThunk), true); 78EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuClosingEvent, new ContextMenuEventHandler(OnContextMenuClosingThunk), true); 122_collapsedDropDownButton = this.GetTemplateChild(CollapsedDropDownButtonTemplatePartName) as FrameworkElement; 473private FrameworkElement VisualChild 477return VisualChildrenCount == 0 ? null : (GetVisualChild(0) as FrameworkElement); 684internal FrameworkElement CollapsedDropDownButton 1361private FrameworkElement _collapsedDropDownButton; // The SplitButton that replaces RibbonGroup's normal appearance when Collapsed
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (44)
90d.CoerceValue(FrameworkElement.ToolTipProperty); 99public static bool GetIsContentTooltip(FrameworkElement visualChild, object content) 122public static void SetContentAsToolTip(FrameworkElement element, FrameworkElement visualChild, object content, bool value) 541internal static bool NavigateToFirstItem(ItemsControl itemsControl, Action<int> bringIntoViewCallback, Func<FrameworkElement, bool> additionalCheck) 543FrameworkElement firstItem = FindContainer(itemsControl, 0, 1, bringIntoViewCallback, additionalCheck); 552internal static bool NavigateToLastItem(ItemsControl itemsControl, Action<int> bringIntoViewCallback, Func<FrameworkElement, bool> additionalCheck) 554FrameworkElement lastItem = FindContainer(itemsControl, itemsControl.Items.Count - 1, -1, bringIntoViewCallback, additionalCheck); 563internal static FrameworkElement FindContainer(ItemsControl itemsControl, int startIndex, int direction, Action<int> bringIntoViewCallback, Func<FrameworkElement, bool> additionalCheck) 570FrameworkElement container = itemsControl.ItemContainerGenerator.ContainerFromIndex(startIndex) as FrameworkElement; 576container = itemsControl.ItemContainerGenerator.ContainerFromIndex(startIndex) as FrameworkElement; 593FrameworkElement nextElement = RibbonHelper.FindContainer(parent, itemIndex, 1, bringIntoViewCallback, null); 610FrameworkElement nextElement = RibbonHelper.FindContainer(parent, startIndex + 1, 1, bringIntoViewCallback, IsMenuItemFocusable); 639FrameworkElement previousElement = RibbonHelper.FindContainer(parent, startIndex - 1, -1, bringIntoViewCallback, IsMenuItemFocusable); 677FrameworkElement focusObject = null; 709private static bool IsContainerFocusable(FrameworkElement container) 714private static bool IsContainerVisible(FrameworkElement container) 719private static bool IsMenuItemFocusable(FrameworkElement container) 1476FrameworkElement fe = d as FrameworkElement; 1628new PropertyAndTransferMode () { Property = FrameworkElement.DataContextProperty, Mode = TransferMode.AlwaysTransfer }, 1629new PropertyAndTransferMode () { Property = FrameworkElement.BindingGroupProperty, Mode = TransferMode.AlwaysTransfer }, 1850FrameworkElement feOriginal = original as FrameworkElement; 1853FrameworkElement feClone = CreateInstance(feOriginal, allowTransformations); 1862TransferProperties(feOriginal.TemplatedParent as FrameworkElement, feClone, /*cloningForTemplatePart*/ true); 1865FrameworkElement feWrapper = WrapClone(feClone, allowTransformations); 1892private static FrameworkElement CreateInstance(FrameworkElement original, bool allowTransformations) 1946return (FrameworkElement)Activator.CreateInstance(original.GetType()); 1954private static FrameworkElement WrapClone(FrameworkElement clone, bool allowTransformations) 2000private static void TransferProperties(FrameworkElement original, FrameworkElement clone, bool cloningForTemplatePart) 2025TransferProperty(original, clone, FrameworkElement.StyleProperty, TransferMode.AlwaysTransfer); 2213private static void TransferProperties(FrameworkElement original, FrameworkElement clone, PropertyAndTransferMode[] properties) 2530XmlLanguage language = (XmlLanguage)element.GetValue(FrameworkElement.LanguageProperty); 2806public static void OpenParentRibbonGroupDropDownSync(FrameworkElement fe, bool templateApplied) 2838FrameworkElement elementFE = element as FrameworkElement; 2852public static void SetDropDownHeight(FrameworkElement itemsPresenter, bool hasGallery, double dropDownHeight)
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (10)
80EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpeningThunk), true); 81EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuClosingEvent, new ContextMenuEventHandler(OnContextMenuClosingThunk), true); 888FrameworkElement selectionItem = e.OriginalSource as FrameworkElement; 925internal FrameworkElement RibbonCurrentSelection 1323private FrameworkElement _itemsPresenter; 1326private FrameworkElement _ribbonCurrentSelection; // could be a RibbonMenuItem or RibbonGallery 1392FrameworkElement source = e.OriginalSource as FrameworkElement; 1517FrameworkElement ribbonCurrentSelection = RibbonCurrentSelection;
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (14)
71EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpeningThunk), true); 72EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuClosingEvent, new ContextMenuEventHandler(OnContextMenuClosingThunk), true); 983FrameworkElement ribbonCurrentSelection = RibbonCurrentSelection; 1231private static bool IsContainerFocusable(FrameworkElement container) 1273menuItem._itemsPresenter.ClearValue(FrameworkElement.HeightProperty); 1274menuItem._itemsPresenter.ClearValue(FrameworkElement.WidthProperty); 1331FrameworkElement popupChild; 1332if ((popupChild = _popup.Child as FrameworkElement) != null) 1409private FrameworkElement CurrentSibling 1415FrameworkElement sibling = null; 1490FrameworkElement selectionItem = e.OriginalSource as FrameworkElement; 1523private FrameworkElement RibbonCurrentSelection 1580private FrameworkElement _ribbonCurrentSelection; // can be a RibbonMenuItem or RibbonGallery
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (2)
115EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpeningThunk), true); 116EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuClosingEvent, new ContextMenuEventHandler(OnContextMenuClosingThunk), true);
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (1)
229splitButton.PartToggleButton?.CoerceValue(FrameworkElement.ToolTipProperty);
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (1)
147splitMenuItem._partArrowButton?.CoerceValue(FrameworkElement.ToolTipProperty);
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (2)
158private FrameworkElement VisualChild 162return VisualChildrenCount == 0 ? null : (GetVisualChild(0) as FrameworkElement);
Microsoft\Windows\Controls\Ribbon\RibbonTabHeaderItemsControl.cs (2)
155FrameworkElement element = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (4)
365FrameworkElement referenceFE = null; 376referenceFE = rootElement as FrameworkElement; 408FrameworkElement placementTargetAsFE = placementTarget as FrameworkElement;
Microsoft\Windows\Controls\TextSearchInternal.cs (3)
624if (o is FrameworkElement) 774internal static string GetPrimaryText(FrameworkElement element) 853object o = element.GetValue(FrameworkElement.LanguageProperty);
WindowsBase.Tests (4)
System\Windows\DependencyObjectTests.cs (4)
1578DependencyProperty property = FrameworkElement.ActualWidthProperty; 1591DependencyProperty property = FrameworkElement.ActualHeightProperty; 1989DependencyProperty property = FrameworkElement.ActualWidthProperty; 2002DependencyProperty property = FrameworkElement.ActualHeightProperty;
WindowsFormsIntegration (16)
System\Windows\Integration\ElementHost.cs (2)
300FrameworkElement childFrameworkElement = Child as FrameworkElement;
System\Windows\Integration\HostUtils.cs (11)
115FrameworkElement rootElement = ancestor as FrameworkElement; 205private static FrameworkElement GetFrameworkElementAncestor(DependencyObject descendant) 207FrameworkElement ancestor = null; 211FrameworkElement currentElement = current as FrameworkElement; 230FrameworkElement frameworkElementAncestor = GetFrameworkElementAncestor(host); 263internal static RenderTargetBitmap GetBitmapForFrameworkElement(FrameworkElement element) 418public static FrameworkElement GetCursorSource(DependencyObject currentObject, bool forceCursorMapped) 422FrameworkElement currentElement = currentObject as FrameworkElement;
System\Windows\Integration\WindowsFormsHost.cs (3)
392SW.FrameworkElement frameworkElement = dependencyObject as SW.FrameworkElement; 782FrameworkElement cursorSource = HostUtils.GetCursorSource(_host, forceCursorMapped);