43 types derived from FrameworkElement
PresentationFramework (33)
MS\Internal\Documents\DocumentGrid.cs (1)
30internal class DocumentGrid : FrameworkElement, IDocumentScrollInfo
MS\Internal\Documents\DocumentGridPage.cs (1)
23internal class DocumentGridPage : FrameworkElement, IDisposable
MS\Internal\Documents\DocumentPageHost.cs (1)
17internal class DocumentPageHost : FrameworkElement
MS\Internal\Documents\FlowDocumentView.cs (1)
23internal class FlowDocumentView : FrameworkElement, IScrollInfo, IServiceProvider
MS\Internal\Documents\TextBoxView.cs (1)
23internal class TextBoxView : FrameworkElement, ITextView, IScrollInfo, IServiceProvider
System\Windows\Controls\AccessText.cs (1)
23public class AccessText : FrameworkElement, IAddChild
System\Windows\Controls\AdornedElementPlaceholder.cs (1)
27public class AdornedElementPlaceholder : FrameworkElement, IAddChild
System\Windows\Controls\ContentPresenter.cs (1)
30public class ContentPresenter : FrameworkElement
System\Windows\Controls\Control.cs (1)
21public class Control : FrameworkElement
System\Windows\Controls\Decorator.cs (1)
23public class Decorator : FrameworkElement, IAddChild
System\Windows\Controls\Image.cs (1)
28public class Image : FrameworkElement, IUriContext, IProvidePropertyFallback
System\Windows\Controls\InkCanvas.cs (1)
38public class InkCanvas : FrameworkElement, IAddChild
System\Windows\Controls\ItemsPresenter.cs (1)
21public class ItemsPresenter : FrameworkElement
System\Windows\Controls\MediaElement.cs (1)
55public class MediaElement : FrameworkElement, IUriContext
System\Windows\Controls\Page.cs (1)
26public class Page : FrameworkElement, IWindowService, IAddChild
System\Windows\Controls\Panel.cs (1)
23public abstract class Panel : FrameworkElement, IAddChild
System\Windows\Controls\Primitives\DocumentPageView.cs (1)
24public class DocumentPageView : FrameworkElement, IServiceProvider, IDisposable
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
19public abstract class GridViewRowPresenterBase : FrameworkElement, IWeakEventListener
System\Windows\Controls\Primitives\Popup.cs (1)
43public class Popup : FrameworkElement, IAddChild
System\Windows\Controls\Primitives\PopupRoot.cs (1)
17internal sealed class PopupRoot : FrameworkElement
System\Windows\Controls\Primitives\TickBar.cs (1)
49public class TickBar : FrameworkElement
System\Windows\Controls\Primitives\Track.cs (1)
23public class Track : FrameworkElement
System\Windows\Controls\TextBlock.cs (1)
45public class TextBlock : FrameworkElement, IContentHost, IAddChildInternal, IServiceProvider
System\Windows\Controls\ToolBarTray.cs (1)
29public class ToolBarTray : FrameworkElement, IAddChild
System\Windows\Controls\ViewPort3D.cs (1)
28public class Viewport3D : FrameworkElement, IAddChild
System\Windows\Documents\Adorner.cs (1)
29public abstract class Adorner : FrameworkElement
System\Windows\Documents\AdornerLayer.cs (1)
28public class AdornerLayer : FrameworkElement
System\Windows\Documents\DocumentReference.cs (1)
25public sealed class DocumentReference : FrameworkElement, IUriContext
System\Windows\Documents\FixedPage.cs (1)
40public sealed class FixedPage : FrameworkElement, IAddChildInternal, IFixedNavigate, IUriContext
System\Windows\Documents\Glyphs.cs (1)
25public sealed class Glyphs : FrameworkElement, IUriContext
System\Windows\Documents\PageContent.cs (1)
35public sealed class PageContent : FrameworkElement, IAddChildInternal, IUriContext
System\Windows\Interop\HwndHost.cs (1)
23public abstract class HwndHost : FrameworkElement, IDisposable, IWin32Window, IKeyboardInputSink
System\Windows\Shapes\Shape.cs (1)
24public abstract class Shape : FrameworkElement
PresentationFramework.Aero (2)
Microsoft\Windows\Themes\BulletChrome.cs (1)
20public sealed class BulletChrome : FrameworkElement
Microsoft\Windows\Themes\ScrollChrome.cs (1)
18public sealed class ScrollChrome : FrameworkElement
PresentationFramework.Aero2 (2)
Microsoft\Windows\Themes\BulletChrome.cs (1)
20public sealed class BulletChrome : FrameworkElement
Microsoft\Windows\Themes\ScrollChrome.cs (1)
18public sealed class ScrollChrome : FrameworkElement
PresentationFramework.AeroLite (1)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
17public sealed class ScrollChrome : FrameworkElement
PresentationFramework.Luna (2)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
18public sealed class ScrollChrome : FrameworkElement
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
14public sealed class BulletChrome : FrameworkElement
PresentationFramework.Royale (2)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
18public sealed class ScrollChrome : FrameworkElement
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
14public sealed class BulletChrome : FrameworkElement
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\TextSearchInternal.cs (1)
898private 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)
6939target = new FrameworkElement 6977target = new FrameworkElement
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4930DefaultConstructor = delegate () { return new System.Windows.FrameworkElement(); },
System\Windows\Markup\KnownTypes.cs (1)
1280case KnownElements.FrameworkElement: o = new System.Windows.FrameworkElement(); break;
1635 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)
111if (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)
116public FrameworkElement ParentElement 118get { return (FrameworkElement)GetValue(ParentElementProperty); } 123DependencyProperty.Register("ParentElement", typeof(FrameworkElement), typeof(PreviewPane), new PropertyMetadata(null)); 128ParentElement = Parent as FrameworkElement; 135var previewElement = CreatePreviewElement(previewItems); 155private FrameworkElement CreatePreviewElement(IReadOnlyList<object> previewItems) 172var previewElement = GetPreviewElement(previewItem); 217return (FrameworkElement)preview; 223private FrameworkElement GetPreviewElement(object previewItem) 236var previewElement = viewer.VisualElement; 245if (previewItem is FrameworkElement frameworkElement) 266private static FrameworkElement GetPreviewForString(string previewContent) 281private void AdjustWidthAndHeight(FrameworkElement previewElement)
UnusedReferences\Dialog\UnusedReferencesTableProvider.ColumnDefinitions.cs (7)
60internal static FrameworkElement CreateGridElement(ImageMoniker imageMoniker, string text, bool isBold) 122public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content) 159public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content) 203public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content) 257public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content) 299public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content) 348public 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)
90public async Task<FrameworkElement> InitializeAsync(CancellationToken cancellationToken)
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Venus\DocumentService_IntegrationTests.vb (1)
641Public ReadOnly Property Control As FrameworkElement Implements IWpfTableControl.Control
PresentationFramework (1401)
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (4)
112FrameworkElement nodeParent = null; 113FrameworkElement feNode = node as FrameworkElement; 116nodeParent = feNode.Parent as FrameworkElement;
MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
56RegisterSelectionProcessor(nodeProcessor, typeof(FrameworkElement));
MS\Internal\Annotations\Anchoring\PathNode.cs (1)
241or FrameworkElement
MS\Internal\Annotations\Component\AnnotationAdorner.cs (1)
142/// Override for <seealso cref="FrameworkElement.ArrangeOverride" />
MS\Internal\Controls\InkCanvasInnerCanvas.cs (2)
71/// Override of <seealso cref="FrameworkElement.MeasureOverride" /> 196protected override UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent)
MS\Internal\Controls\InnerItemCollectionView.cs (1)
633private FrameworkElement ModelParentFE
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (11)
213snc.SetValue(FrameworkElement.HeightProperty, height); 217snc.ClearValue(FrameworkElement.HeightProperty); 228snc.SetValue(FrameworkElement.WidthProperty, width); 232snc.ClearValue(FrameworkElement.WidthProperty); 806double height = (double)snc.GetValue(FrameworkElement.HeightProperty); 814double width = (double)snc.GetValue(FrameworkElement.WidthProperty); 1369FrameworkElement target = ((IAnnotationComponent)this).AnnotatedElement as FrameworkElement; 1374target = host.PageVisual as FrameworkElement; 1416FrameworkElement target = (FrameworkElement)(args[0]);
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (4)
34protected StickyNoteContentControl(FrameworkElement innerControl) 98public FrameworkElement InnerControl 120protected void SetInnerControl(FrameworkElement innerControl) 135protected FrameworkElement _innerControl;
MS\Internal\Controls\TemplatedAdorner.cs (2)
86public FrameworkElement ReferenceElement 183private FrameworkElement _referenceElement;
MS\Internal\Data\ClrBindingWorker.cs (1)
72else if (targetDP == FrameworkElement.DataContextProperty ||
MS\Internal\Data\ObjectRef.cs (7)
145FrameworkElement fe = d as FrameworkElement; 369o = el.GetValue(FrameworkElement.DataContextProperty); 458for (; d != null; d = FrameworkElement.GetFrameworkParent(d)) 472FrameworkElement parent, child; 478parent = cp.TemplatedParent as FrameworkElement; 486child = d as FrameworkElement;
MS\Internal\Data\PropertyPathWorker.cs (2)
626_arySVS[k - 1].info == FrameworkElement.DataContextProperty) 657_arySVS[_arySVS.Length - 1].info == FrameworkElement.DataContextProperty &&
MS\Internal\Documents\ContentHostHelper.cs (3)
106else if (textView.RenderScope is FrameworkElement) 155FrameworkElement fe; 165fe = child as FrameworkElement;
MS\Internal\Documents\DocumentGrid.cs (1)
1279_rubberBandSelector.AttachRubberbandSelector((FrameworkElement)this); //attach the Rubber band selector.
MS\Internal\Documents\DocumentGridContextMenu.cs (3)
30EventManager.RegisterClassHandler(typeof(DocumentGrid), FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpening)); 31EventManager.RegisterClassHandler(typeof(DocumentApplicationDocumentViewer), FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnDocumentViewerContextMenuOpening)); 85if (documentGrid.ReadLocalValue(FrameworkElement.ContextMenuProperty) == null)
MS\Internal\Documents\DocumentGridPage.cs (1)
228var key = new ComponentResourceKey(typeof(FrameworkElement), "DocumentGridPageContainerWithBorder");
MS\Internal\Documents\DocumentViewerHelper.cs (2)
246XmlLanguage language = (XmlLanguage)textContainer.Parent.GetValue(FrameworkElement.LanguageProperty); 369cm = e.TargetElement.GetValue(FrameworkElement.ContextMenuProperty) as ContextMenu;
MS\Internal\Documents\PageCache.cs (1)
119FlowDirection flowDirection = (FlowDirection)((DependencyObject)_documentPaginator.Source).GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\Documents\TextBoxLine.cs (2)
206var uiScope = _owner?.Host?.TextContainer?.TextSelection?.TextEditor?.UiScope; 460var uiScope = textEditor?.UiScope;
MS\Internal\Documents\TextContainerHelper.cs (2)
600internal static ITextPointer GetTextPointerForEmbeddedObject(FrameworkElement embeddedObject) 703if (embeddedObject is FrameworkElement fe)
MS\Internal\Documents\TextViewBase.cs (4)
153FrameworkElement frameworkParent = FrameworkElement.GetFrameworkParent(textView.RenderScope) as FrameworkElement; 169((FrameworkElement)textView.RenderScope).BringIntoView(rect);
MS\Internal\Documents\UIElementIsland.cs (5)
75if (_child is FrameworkElement && ((FrameworkElement)_child).Parent != null) 77SetValue(FrameworkElement.FlowDirectionProperty, ((FrameworkElement)_child).Parent.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\FrameworkObject.cs (9)
57_fe = d as FrameworkElement; 71internal FrameworkObject(FrameworkElement fe, FrameworkContentElement fce) 86_fe = d as FrameworkElement; 94internal FrameworkElement FE { get { return _fe; } } 228Invariant.Assert(parent is FrameworkElement || parent is FrameworkContentElement); 232return new FrameworkObject((FrameworkElement)parent, null); 265Invariant.Assert(parent is FrameworkElement || parent is FrameworkContentElement); 269return new FrameworkObject((FrameworkElement)parent, null); 1178private FrameworkElement _fe;
MS\Internal\Helper.cs (16)
187FrameworkElement fe; 257if (d is FrameworkElement || d is FrameworkContentElement) 277out FrameworkElement fe, out FrameworkContentElement fce, 280if (d is FrameworkElement frameworkElement) 399FrameworkElement fe = templatedParent as FrameworkElement; 473FrameworkElement fe; 1061FrameworkElement virtualizingElement, 1084FrameworkElement virtualizingElement, 1163FrameworkElement virtualizingElement, 1165FrameworkElement headerElement) 1268internal static T FindTemplatedDescendant<T>(FrameworkElement searchStart, FrameworkElement templatedParent) where T : FrameworkElement 1270FrameworkElement descendant = null; 1276descendant = VisualTreeHelper.GetChild(searchStart, i) as FrameworkElement;
MS\Internal\Ink\InkCanvasSelection.cs (4)
376FrameworkElement frameworkElement = originalElement as FrameworkElement; 406((FrameworkElement)updatedElement).Width = newBounds.Width; 420( (FrameworkElement)updatedElement ).Height = newBounds.Height;
MS\Internal\PrePostDescendentsWalker.cs (1)
72if (startNode is FrameworkElement or FrameworkContentElement)
MS\Internal\PtsHost\BaseParaClient.cs (1)
80_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\CellParaClient.cs (1)
113_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\ContainerParagraph.cs (3)
466uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 632uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 762uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\FigureParaClient.cs (1)
203_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\FigureParagraph.cs (1)
120uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\FloaterParaClient.cs (1)
192_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\FloaterParagraph.cs (2)
167uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 381uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
273DependencyObject frameworkParent = FrameworkElement.GetFrameworkParent(_structuralCache.FormattingOwner);
MS\Internal\PtsHost\Line.cs (4)
395FlowDirection paragraphFlowDirection = (FlowDirection)paragraphElement.GetValue(FrameworkElement.FlowDirectionProperty); 421if (inlineObject.UIElementIsland.Root is FrameworkElement) 423DependencyObject parent = ((FrameworkElement)inlineObject.UIElementIsland.Root).Parent; 424FlowDirection parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\LineBase.cs (2)
191parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 265parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\ListParaClient.cs (1)
56uint fswdir = PTS.FlowDirectionToFswdir((FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\PtsHost\PtsHelper.cs (2)
44visualChild.SetValue(FrameworkElement.FlowDirectionProperty, childFD); 49visualChild.ClearValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\Section.cs (2)
121StructuralCache.PageFlowDirection = (FlowDirection)_structuralCache.PropertyOwner.GetValue(FrameworkElement.FlowDirectionProperty); 222fswdir = PTS.FlowDirectionToFswdir((FlowDirection)_structuralCache.PropertyOwner.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\PtsHost\SubpageParagraph.cs (3)
119uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 326uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 487uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\TableParagraph.cs (1)
157fswdirTable = PTS.FlowDirectionToFswdir((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))
MS\Internal\PtsHost\TextParagraph.cs (1)
140fstxtprops.fswdir = PTS.FlowDirectionToFswdir((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\Text\ComplexLine.cs (5)
181if (inlineObject.Element is FrameworkElement) 186DependencyObject parent = ((FrameworkElement)inlineObject.Element).Parent; 189parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 418parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 490parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\Text\DynamicPropertyReader.cs (1)
302XmlLanguage language = (XmlLanguage) element.GetValue(FrameworkElement.LanguageProperty);
MS\Internal\Text\TextProperties.cs (5)
102internal TextProperties(FrameworkElement target, bool isTypographyDefaultValue) 108_numberSubstitution = FrameworkElement.DefaultNumberSubstitution; 140FrameworkElement fe = target as FrameworkElement; 143_numberSubstitution = FrameworkElement.DefaultNumberSubstitution;
MS\Internal\TraceData.cs (2)
189FrameworkElement fe = o as FrameworkElement;
System\Windows\Annotations\AnnotationHelper.cs (12)
355FrameworkElement viewer = sender as FrameworkElement; 491ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 584ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 812ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 915ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 1038private static ITextSelection GetTextSelection(FrameworkElement viewer) 1044viewer = GetFdrHost(reader) as FrameworkElement; 1118FrameworkElement viewer = sender as FrameworkElement; 1121FrameworkElement parent = viewer.Parent as FrameworkElement;
System\Windows\Annotations\AnnotationService.cs (5)
134if (!(root is FrameworkElement || root is FrameworkContentElement)) 353if (!(element is FrameworkElement || element is FrameworkContentElement)) 388if (!(element is FrameworkElement || element is FrameworkContentElement)) 1541FrameworkElement viewer = this.Root as FrameworkElement;
System\Windows\Application.cs (2)
2183((FrameworkElement)args[0]).ShouldLookupImplicitStyles = true; 2185TreeWalkHelper.InvalidateOnResourcesChange((FrameworkElement)args[0], null, (ResourcesChangeInfo)args[1]);
System\Windows\AttachedPropertyBrowsableForChildrenAttribute.cs (1)
107walk = FrameworkElement.GetFrameworkParent(walk);
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (2)
194FrameworkElement focusedButton = focusedItem.OwningButton; 384object dataContext = (child as FrameworkElement).DataContext;
System\Windows\Automation\Peers\FrameworkContentElementAutomationPeer.cs (2)
62FrameworkElement toolTipElement = toolTip as FrameworkElement;
System\Windows\Automation\Peers\FrameworkElementAutomationPeer.cs (8)
11public FrameworkElementAutomationPeer(FrameworkElement owner) 24FrameworkElement owner = (FrameworkElement)Owner; 48result = ((FrameworkElement)Owner).GetPlainText(); 60object toolTip = ((FrameworkElement)Owner).ToolTip; 66FrameworkElement toolTipElement = toolTip as FrameworkElement; 89owner.GetValue(FrameworkElement.DataContextProperty) ==
System\Windows\Automation\Peers\ItemAutomationPeer.cs (4)
113if(wrapper is FrameworkElement) 114wrapperPeer = new FrameworkElementAutomationPeer((FrameworkElement)wrapper); 532FrameworkElement fe = item as FrameworkElement;
System\Windows\Automation\Peers\TextAutomationPeer.cs (1)
23protected TextAutomationPeer(FrameworkElement owner)
System\Windows\BroadcastEventHelper.cs (32)
20Debug.Assert(d is FrameworkElement || d is FrameworkContentElement); 33d.SetValue(FrameworkElement.LoadedPendingPropertyKey, new object[]{loadedOp, operation, logicalParent}); 41Debug.Assert(d is FrameworkElement || d is FrameworkContentElement); 48d.ClearValue(FrameworkElement.LoadedPendingPropertyKey); 68Debug.Assert(d is FrameworkElement || d is FrameworkContentElement); 81d.SetValue(FrameworkElement.UnloadedPendingPropertyKey, new object[]{unloadedOp, operation, logicalParent}); 89Debug.Assert(d is FrameworkElement || d is FrameworkContentElement); 96d.ClearValue(FrameworkElement.UnloadedPendingPropertyKey); 163object[] loadedPending = (object[])rootDO.GetValue(FrameworkElement.LoadedPendingProperty); 186BroadcastEventHelper.BroadcastEvent(rootDO, FrameworkElement.LoadedEvent); 200object[] unloadedPending = (object[])rootDO.GetValue(FrameworkElement.UnloadedPendingProperty); 223BroadcastEvent(rootDO, FrameworkElement.UnloadedEvent); 272if (routedEvent == FrameworkElement.LoadedEvent) 291if (d is FrameworkElement fe) 293if (fe != root && routedEvent == FrameworkElement.LoadedEvent && fe.UnloadedPending != null) 300else if (fe != root && routedEvent == FrameworkElement.UnloadedEvent && fe.LoadedPending != null) 311if (routedEvent == FrameworkElement.LoadedEvent && fe.LoadedPending != null) 318else if (routedEvent == FrameworkElement.UnloadedEvent && fe.UnloadedPending != null) 340fe.IsLoadedCache = (routedEvent == FrameworkElement.LoadedEvent); 354if (fce != root && routedEvent == FrameworkElement.LoadedEvent && fce.UnloadedPending != null) 361else if (fce != root && routedEvent == FrameworkElement.UnloadedEvent && fce.LoadedPending != null) 372if (routedEvent == FrameworkElement.LoadedEvent && fce.LoadedPending != null) 379else if (routedEvent == FrameworkElement.UnloadedEvent && fce.UnloadedPending != null) 401fce.IsLoadedCache = (routedEvent == FrameworkElement.LoadedEvent); 417if (d is FrameworkElement fe) 430if (d is FrameworkElement fe) 442if (d is FrameworkElement fe) 587FrameworkElement child = VisualTreeHelper.GetChild(v, i) as FrameworkElement; 718FrameworkElement fe, 721if (fe.GetValue(FrameworkElement.LoadedPendingProperty) == null) 753if (fce.GetValue(FrameworkElement.LoadedPendingProperty) == null)
System\Windows\Controls\AdornedElementPlaceholder.cs (2)
221FrameworkElement templateParent = this.TemplatedParent as FrameworkElement;
System\Windows\Controls\ComboBox.cs (2)
241cb._clonedElement.CoerceValue(FrameworkElement.FlowDirectionProperty); 1596return (bool)d.GetValue(FrameworkElement.IsEnabledProperty);
System\Windows\Controls\ContentControl.cs (2)
104FrameworkElement feContent = content as FrameworkElement;
System\Windows\Controls\ContentPresenter.cs (3)
1012internal override bool BuildVisualTree(FrameworkElement container) 1044internal override bool BuildVisualTree(FrameworkElement container) 1171template = (DataTemplate)FrameworkElement.FindTemplateResourceInternal(container, item, typeof(DataTemplate));
System\Windows\Controls\Control.cs (2)
286new ValidateValueCallback(FrameworkElement.ValidateHorizontalAlignmentValue)); 312new ValidateValueCallback(FrameworkElement.ValidateVerticalAlignmentValue));
System\Windows\Controls\DataGrid.cs (10)
42dataGridRowPresenterFactory.SetValue(FrameworkElement.NameProperty, ItemsPanelPartName); 5878FrameworkElement focusContainer; 5879FrameworkElement startingElement = Keyboard.FocusedElement as FrameworkElement; 6177FrameworkElement targetElement; 6180FrameworkElement startingElement = null; 6183startingElement = Keyboard.FocusedElement as FrameworkElement; 6555private static bool CalculateCellDistance(FrameworkElement cell, DataGridRow rowOwner, Panel itemsHost, Rect itemsHostBounds, bool isMouseInCorner, out double distance) 6928FrameworkElement target; 6966FrameworkElement target;
System\Windows\Controls\DataGridBoundColumn.cs (2)
157internal void ApplyStyle(bool isEditing, bool defaultToElementStyle, FrameworkElement element) 206protected internal override void RefreshCellContent(FrameworkElement element, string propertyName)
System\Windows\Controls\DataGridCell.cs (11)
112else if ((Content as FrameworkElement) == null) 391FrameworkElement newContent = column.BuildVisualTree(IsEditing, RowDataItem, this); 396FrameworkElement oldContent = Content as FrameworkElement; 402oldContent.SetValue(FrameworkElement.DataContextProperty, BindingExpressionBase.DisconnectedItem); 585column.BeginEdit(Content as FrameworkElement, e); 599column.CancelEdit(Content as FrameworkElement); 615validationPassed = column.CommitEdit(Content as FrameworkElement); 631FrameworkElement currentEditingElement = EditingElement; 637internal FrameworkElement EditingElement 642return Content as FrameworkElement;
System\Windows\Controls\DataGridCellEditEndingEventArgs.cs (3)
19public DataGridCellEditEndingEventArgs(DataGridColumn column, DataGridRow row, FrameworkElement editingElement, DataGridEditAction editAction) 55public FrameworkElement EditingElement 71private FrameworkElement _editingElement;
System\Windows\Controls\DataGridCellsPanel.cs (2)
2439FrameworkElement itemsPresenter = TemplatedParent as FrameworkElement;
System\Windows\Controls\DataGridCheckBoxColumn.cs (4)
91protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 99protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 120protected internal override void RefreshCellContent(FrameworkElement element, string propertyName) 165protected override object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs)
System\Windows\Controls\DataGridColumn.cs (13)
613public FrameworkElement GetCellContent(object dataItem) 634public FrameworkElement GetCellContent(DataGridRow dataGridRow) 646return cell.Content as FrameworkElement; 660internal FrameworkElement BuildVisualTree(bool isEditing, object dataItem, DataGridCell cell) 675protected abstract FrameworkElement GenerateElement(DataGridCell cell, object dataItem); 680protected abstract FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem); 691protected virtual object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs) 702protected virtual void CancelCellEdit(FrameworkElement editingElement, object uneditedValue) 712protected virtual bool CommitCellEdit(FrameworkElement editingElement) 717internal void BeginEdit(FrameworkElement editingElement, RoutedEventArgs e) 730internal void CancelEdit(FrameworkElement editingElement) 739internal bool CommitEdit(FrameworkElement editingElement) 909protected internal virtual void RefreshCellContent(FrameworkElement element, string propertyName)
System\Windows\Controls\DataGridComboBoxColumn.cs (7)
285private void ApplyStyle(bool isEditing, bool defaultToElementStyle, FrameworkElement element) 407protected internal override void RefreshCellContent(FrameworkElement element, string propertyName) 485protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 500protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 533protected override object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs) 558protected override void CancelCellEdit(FrameworkElement editingElement, object uneditedValue) 575protected override bool CommitCellEdit(FrameworkElement editingElement)
System\Windows\Controls\DataGridHelper.cs (13)
150public static T FindParent<T>(FrameworkElement element) where T : FrameworkElement 152FrameworkElement parent = element.TemplatedParent as FrameworkElement; 162parent = parent.TemplatedParent as FrameworkElement; 512internal static BindingExpression GetBindingExpression(FrameworkElement element, DependencyProperty dp) 522internal static bool ValidateWithoutUpdate(FrameworkElement element) 555internal static bool BindingExpressionBelongsToElement<T>(BindingExpressionBase beb, T element) where T : FrameworkElement 615internal static void CacheFlowDirection(FrameworkElement element, DataGridCell cell) 619object flowDirectionObj = element.ReadLocalValue(FrameworkElement.FlowDirectionProperty); 627internal static void RestoreFlowDirection(FrameworkElement element, DataGridCell cell) 634element.SetValue(FrameworkElement.FlowDirectionProperty, flowDirectionObj); 639internal static void UpdateTarget(FrameworkElement element)
System\Windows\Controls\DataGridHyperlinkColumn.cs (6)
107protected internal override void RefreshCellContent(FrameworkElement element, string propertyName) 163protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 188protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 210protected override object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs) 247protected override void CancelCellEdit(FrameworkElement editingElement, object uneditedValue) 259protected override bool CommitCellEdit(FrameworkElement editingElement)
System\Windows\Controls\DataGridPreparingCellForEditEventArgs.cs (3)
20public DataGridPreparingCellForEditEventArgs(DataGridColumn column, DataGridRow row, RoutedEventArgs editingEventArgs, FrameworkElement editingElement) 55public FrameworkElement EditingElement 63private FrameworkElement _editingElement;
System\Windows\Controls\DataGridRow.cs (2)
825var detailsElement = row.DetailsPresenter != null ? row.DetailsPresenter.DetailsElement : null; 1329public static DataGridRow GetRowContainingElement(FrameworkElement element)
System\Windows\Controls\DataGridRowDetailsEventArgs.cs (2)
9public DataGridRowDetailsEventArgs(DataGridRow row, FrameworkElement detailsElement) 15public FrameworkElement DetailsElement
System\Windows\Controls\DataGridTemplateColumn.cs (4)
160private FrameworkElement LoadTemplateContent(bool isEditing, object dataItem, DataGridCell cell) 180protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 188protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 203protected internal override void RefreshCellContent(FrameworkElement element, string propertyName)
System\Windows\Controls\DataGridTextColumn.cs (9)
79protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 96protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 110private void SyncProperties(FrameworkElement e) 119protected internal override void RefreshCellContent(FrameworkElement element, string propertyName) 125FrameworkElement textElement = cell.Content as FrameworkElement; 163protected override object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs) 217protected override void CancelCellEdit(FrameworkElement editingElement, object uneditedValue) 229protected override bool CommitCellEdit(FrameworkElement editingElement)
System\Windows\Controls\DateTimeHelper.cs (3)
108internal static CultureInfo GetCulture(FrameworkElement element) 112if (element.GetValueSource(FrameworkElement.LanguageProperty, null, out hasModifiers) != BaseValueSourceInternal.Default) 205public static string ToDecadeRangeString(int decade, FrameworkElement fe)
System\Windows\Controls\DocumentViewer.cs (4)
1365FrameworkElement grid = _documentScrollInfo as FrameworkElement; 2067FrameworkElement fe = _documentScrollInfo as FrameworkElement;
System\Windows\Controls\FlowDocumentReader.cs (12)
787((FrameworkElement)CurrentViewer).Focus(); 908FrameworkElement feViewer; 941feViewer = (FrameworkElement)viewer; 991FrameworkElement fe = focusedElement as FrameworkElement; 1079Invariant.Assert(viewer != null && viewer is FrameworkElement); 1080FrameworkElement feViewer = (FrameworkElement)viewer; 1102Invariant.Assert(viewer != null && viewer is FrameworkElement); 1103FrameworkElement feViewer = (FrameworkElement)viewer; 1123private void CreateTwoWayBinding(FrameworkElement fe, DependencyProperty dp, string propertyPath)
System\Windows\Controls\FlowDocumentScrollViewer.cs (3)
812FrameworkElement.AddIntermediateElementsToRoute( 829continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(LogicalTreeHelper.GetParent(document), LogicalTreeHelper.GetParent(branchNode)); 1308private void CreateTwoWayBinding(FrameworkElement fe, DependencyProperty dp, string propertyPath)
System\Windows\Controls\Frame.cs (3)
647FrameworkElement journalEntryUIElem = e.Parameter as FrameworkElement; 1296FrameworkElement fe;
System\Windows\Controls\Grid.cs (1)
90/// <see cref="FrameworkElement.LogicalChildren"/>
System\Windows\Controls\GridSplitter.cs (1)
92FrameworkElement.HorizontalAlignmentProperty.OverrideMetadata(typeof(GridSplitter), new FrameworkPropertyMetadata(HorizontalAlignment.Right));
System\Windows\Controls\GridViewColumn.cs (2)
378FrameworkElement.WidthProperty.AddOwner( 499FrameworkElement fe;
System\Windows\Controls\GridViewColumnHeader.cs (2)
636FrameworkElement gripperContainer = _headerGripper.Parent as FrameworkElement;
System\Windows\Controls\GridViewHeaderRowPresenter.cs (5)
236/// Override of <seealso cref="FrameworkElement.MeasureOverride" />. 1258FrameworkElement fe = presenter.TemplatedParent as FrameworkElement; 1268fe = fe.TemplatedParent as FrameworkElement; 1583private static bool IsMousePositionValid(FrameworkElement floatingHeader, Point currentPos, double arrange)
System\Windows\Controls\GridViewRowPresenter.cs (11)
124/// Override of <seealso cref="FrameworkElement.MeasureOverride" />. 308FrameworkElement cell = InternalChildren[index] as FrameworkElement; 442_viewItem = this.TemplatedParent as FrameworkElement; 458_viewPort = scrollViewer.GetTemplateChild(ScrollViewer.ScrollContentPresenterTemplateName) as FrameworkElement; 573private FrameworkElement CreateCell(GridViewColumn column) 577FrameworkElement cell; 641FrameworkElement cell; 647cell = (FrameworkElement)children[i]; 696private FrameworkElement _viewPort; 697private FrameworkElement _viewItem;
System\Windows\Controls\GroupItem.cs (7)
45_header = this.GetTemplateChild("PART_Header") as FrameworkElement; 284FrameworkElement headerElement = HeaderElement; 425private FrameworkElement ExpanderHeader 431return _expander.GetTemplateChild(ExpanderHeaderPartName) as FrameworkElement; 438private FrameworkElement HeaderElement 442FrameworkElement headerElement = null; 464FrameworkElement _header;
System\Windows\Controls\Image.cs (1)
224/// Override for <seealso cref="FrameworkElement.ArrangeOverride" />.
System\Windows\Controls\InkCanvas.cs (2)
277e.Property == FrameworkElement.LayoutTransformProperty) 316if (e.Property == FrameworkElement.FlowDirectionProperty)
System\Windows\Controls\InkPresenter.cs (2)
144/// Override of <seealso cref="FrameworkElement.MeasureOverride" /> 188/// Override of <seealso cref="FrameworkElement.ArrangeOverride" />.
System\Windows\Controls\ItemCollection.cs (3)
77internal ItemCollection(FrameworkElement modelParent, int capacity) 1489internal FrameworkElement ModelParentFE 1491get { return ModelParent as FrameworkElement; }
System\Windows\Controls\ItemContainerGenerator.cs (5)
109label = (string)d.GetValue(FrameworkElement.NameProperty); 1054string name = (String)peer.GetValue(FrameworkElement.NameProperty); 2276DependencyProperty dp = FrameworkElement.DataContextProperty; 2281container.SetValue(FrameworkElement.DataContextProperty, item); 2336DependencyProperty dp = FrameworkElement.DataContextProperty;
System\Windows\Controls\ItemContainerTemplateSelector.cs (1)
28return FrameworkElement.FindTemplateResourceInternal(parentItemsControl, item, typeof(ItemContainerTemplate)) as DataTemplate;
System\Windows\Controls\ItemsControl.cs (85)
33[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(FrameworkElement))] 1334Invariant.Assert(parent is FrameworkElement, SR.ItemsControl_ParentNotFrameworkElement); 1342((FrameworkElement)parent).TemplateChild = null; 1374Helper.HasUnmodifiedDefaultOrInheritedValue(container, FrameworkElement.BindingGroupProperty)) 1380container.SetValue(FrameworkElement.BindingGroupProperty, containerBindingGroup); 1819FrameworkElement element = info.Container as FrameworkElement; 1866while (startingElement != null && !(startingElement is FrameworkElement)) 1873return NavigateByLine(FocusedInfo, startingElement as FrameworkElement, direction, itemNavigateArgs); 1877FrameworkElement startingElement, 1880out FrameworkElement container) 1918FrameworkElement startingElement, 1941FrameworkElement container; 1952FrameworkElement startingElement, 1955out FrameworkElement container) 1969FrameworkElement nextElement = null; 2010treeViewNavigation) as FrameworkElement; 2015FrameworkElement viewport = GetViewportElement(); 2029TryGetTreeViewItemHeader(nextElement) as FrameworkElement, 2139treeViewNavigation) as FrameworkElement; 2177FrameworkElement startingElement, 2180out FrameworkElement container) 2213return NavigateByPage(FocusedInfo, Keyboard.FocusedElement as FrameworkElement, direction, itemNavigateArgs); 2226FrameworkElement startingElement, 2249FrameworkElement container; 2260FrameworkElement startingElement, 2263out FrameworkElement container) 2280FrameworkElement firstElement; 2358FrameworkElement container; 2362internal bool NavigateToStartInternal(ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container) 2396FrameworkElement firstElement; 2397FrameworkElement hopefulFirstElement = FindEndFocusableLeafContainer(ItemsHost, false /*last*/); 2424FrameworkElement container; 2428internal bool NavigateToEndInternal(ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container) 2462FrameworkElement lastElement; 2463FrameworkElement hopefulLastElement = FindEndFocusableLeafContainer(ItemsHost, true /*last*/); 2488private FrameworkElement FindEndFocusableLeafContainer(Panel itemsHost, bool last) 2502FrameworkElement fe = children[i] as FrameworkElement; 2506FrameworkElement result = null; 2584FrameworkElement container; 2591private object FindFocusable(int startIndex, int direction, out int foundIndex, out FrameworkElement foundContainer) 2600FrameworkElement container = ItemContainerGenerator.ContainerFromIndex(startIndex) as FrameworkElement; 2619private void AdjustOffsetToAlignWithEdge(FrameworkElement element, FocusNavigationDirection direction) 2626FrameworkElement viewportElement = GetViewportElement(); 2627element = TryGetTreeViewItemHeader(element) as FrameworkElement; 2662private void MakeVisible(int index, FocusNavigationDirection direction, bool alwaysAtTopOfViewport, out FrameworkElement container) 2668container = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement; 2678container = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement; 2688private void MakeVisible(ItemInfo info, FocusNavigationDirection direction, out FrameworkElement container) 2704internal void MakeVisible(FrameworkElement container, FocusNavigationDirection direction, bool alwaysAtTopOfViewport) 2711FrameworkElement viewportElement = GetViewportElement(); 2733FrameworkElement firstElement; 2762private bool NavigateToFirstItemOnCurrentPage(object startingItem, FocusNavigationDirection direction, ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container) 2764object firstItem = GetFirstItemOnCurrentPage(ItemContainerGenerator.ContainerFromItem(startingItem) as FrameworkElement, 2778private object GetFirstItemOnCurrentPage(FrameworkElement startingElement, 2780out FrameworkElement firstElement) 2829FrameworkElement currentElement = startingElement; 2844FrameworkElement viewportElement = GetViewportElement(); 2850viewportElement) as FrameworkElement; 2886internal FrameworkElement GetViewportElement() 2893FrameworkElement viewPort = ScrollHost; 2919FrameworkElement container = ItemContainerGenerator.ContainerFromItem(item) as FrameworkElement; 2929private bool IsOnCurrentPage(FrameworkElement element, FocusNavigationDirection axis) 2941private bool IsOnCurrentPage(FrameworkElement viewPort, FrameworkElement element, FocusNavigationDirection axis, bool fullyVisible) 2946internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort, 2955internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort, 2982internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort, 3073internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort, 3358FrameworkElement relativeTo = ScrollHost != null ? (FrameworkElement)ScrollHost : ItemsHost; 3407private bool IsRTL(FrameworkElement element) 3413private static ItemsControl GetEncapsulatingItemsControl(FrameworkElement element) 3422element = VisualTreeHelper.GetParent(element) as FrameworkElement; 3427private static object GetEncapsulatingItem(FrameworkElement element, out FrameworkElement container) 3433private static object GetEncapsulatingItem(FrameworkElement element, out FrameworkElement container, out ItemsControl itemsControl) 3451element = VisualTreeHelper.GetParent(element) as FrameworkElement; 3486container.ReadLocalValue(FrameworkElement.StyleProperty) != DependencyProperty.UnsetValue) 3517container.ClearValue(FrameworkElement.StyleProperty); 3527container.ClearValue(FrameworkElement.StyleProperty);
System\Windows\Controls\ItemsPanelTemplate.cs (1)
148protected override void ValidateTemplatedParent(FrameworkElement templatedParent)
System\Windows\Controls\ItemsPresenter.cs (2)
61/// Override of <seealso cref="FrameworkElement.MeasureOverride" />. 72/// Override of <seealso cref="FrameworkElement.ArrangeOverride" />.
System\Windows\Controls\MediaElement.cs (2)
697/// Override for <seealso cref="FrameworkElement.MeasureOverride" />. 705/// Override for <seealso cref="FrameworkElement.ArrangeOverride" />.
System\Windows\Controls\Menu.cs (2)
273FrameworkElement element = e.OriginalSource as FrameworkElement;
System\Windows\Controls\MenuItem.cs (3)
2445FrameworkElement parent = LogicalParent as FrameworkElement; 2470private static bool IsMouseReallyOver(FrameworkElement elem)
System\Windows\Controls\Page.cs (5)
667FrameworkElement feParent = visualParent as FrameworkElement; 679feParent = parent as FrameworkElement; 760FrameworkElement feParent = this.Parent as FrameworkElement;
System\Windows\Controls\Panel.cs (2)
389protected virtual UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent) 599private void EnsureEmptyChildren(FrameworkElement logicalParent)
System\Windows\Controls\PasswordBox.cs (7)
25[TemplatePart(Name = "PART_ContentHost", Type = typeof(FrameworkElement))] 466/// <see cref="FrameworkElement.OnPropertyChanged"/> 775internal FrameworkElement RenderScope 931_passwordBoxContentHost = GetTemplateChild(ContentHostTemplateName) as FrameworkElement; 981FrameworkElement element = _renderScope; 988element = element.Parent as FrameworkElement; 1280private FrameworkElement _passwordBoxContentHost;
System\Windows\Controls\PopupControlService.cs (1)
1181return FrameworkElement.PopupControlService;
System\Windows\Controls\Primitives\CalendarItem.cs (9)
12[TemplatePart(Name = CalendarItem.ElementRoot, Type = typeof(FrameworkElement))] 19[TemplatePart(Name = CalendarItem.ElementDisabledVisual, Type = typeof(FrameworkElement))] 46private FrameworkElement _disabledVisual; 171_disabledVisual = GetTemplateChild(ElementDisabledVisual) as FrameworkElement; 444FrameworkElement focusTarget = null; 954FrameworkElement titleCell = (this._dayTitleTemplate != null) ? (FrameworkElement)this._dayTitleTemplate.LoadContent() : new ContentControl(); 1022FrameworkElement daytitle = _monthView.Children[childIndex] as FrameworkElement;
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (1)
204/// Override for <see cref="System.Windows.FrameworkElement.OnApplyTemplate">FrameworkElement.OnApplyTemplate</see>
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (2)
138internal FrameworkElement DetailsElement 145return VisualTreeHelper.GetChild(this, 0) as FrameworkElement;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (9)
433this.TextEditorRenderScope = (adornerDecorator != null) ? (adornerDecorator.Child as FrameworkElement) : null; 731internal FrameworkElement TextEditorRenderScope 904FrameworkElement fe; 914fe = child as FrameworkElement; 950FrameworkElement fe; 963fe = child as FrameworkElement; 1142FrameworkElement fe = child as FrameworkElement; 1648private FrameworkElement _textEditorRenderScope; // RenderScope associated with the TextEditor.
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (2)
303private FrameworkElement GetStableAncester() 307return ic ?? (FrameworkElement)this;
System\Windows\Controls\Primitives\LayoutInformation.cs (3)
19private static void CheckArgument(FrameworkElement element) 28public static Rect GetLayoutSlot(FrameworkElement element) 41public static Geometry GetLayoutClip(FrameworkElement element)
System\Windows\Controls\Primitives\PopupRoot.cs (2)
364FrameworkElement child = Child as FrameworkElement;
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (2)
732FrameworkElement templatedParent = scrollContainer.TemplatedParent as FrameworkElement;
System\Windows\Controls\Primitives\Selector.cs (8)
104FrameworkElement.AddHandler(element, SelectedEvent, handler); 115FrameworkElement.RemoveHandler(element, SelectedEvent, handler); 133FrameworkElement.AddHandler(element, UnselectedEvent, handler); 144FrameworkElement.RemoveHandler(element, UnselectedEvent, handler); 1422private void SetSelectedHelper(object item, FrameworkElement UI, bool selected) 1887((Selector)sender).NotifyIsSelectedChanged(e.OriginalSource as FrameworkElement, true, e); 1892((Selector)sender).NotifyIsSelectedChanged(e.OriginalSource as FrameworkElement, false, e); 1903internal void NotifyIsSelectedChanged(FrameworkElement container, bool selected, RoutedEventArgs e)
System\Windows\Controls\Primitives\TextBoxBase.cs (7)
34[TemplatePart(Name = "PART_ContentHost", Type = typeof(FrameworkElement))] 1391internal abstract FrameworkElement CreateRenderScope(); 1801internal FrameworkElement RenderScope 1962FrameworkElement renderScope = CreateRenderScope(); 1968_textBoxContentHost = GetTemplateChild(ContentHostTemplateName) as FrameworkElement; 2233private FrameworkElement _textBoxContentHost; 2236private FrameworkElement _renderScope;
System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (1)
190protected override UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent)
System\Windows\Controls\Primitives\Track.cs (3)
414/// <seealso cref="FrameworkElement.MeasureOverride" /> 462/// <seealso cref="FrameworkElement.ArrangeOverride" /> 696private void BindChildToTemplatedParent(FrameworkElement element, DependencyProperty target, DependencyProperty source)
System\Windows\Controls\ProgressBar.cs (11)
27[TemplatePart(Name = "PART_Track", Type = typeof(FrameworkElement))] 28[TemplatePart(Name = "PART_Indicator", Type = typeof(FrameworkElement))] 29[TemplatePart(Name = "PART_GlowRect", Type = typeof(FrameworkElement))] 263_glow.BeginAnimation(FrameworkElement.MarginProperty, animation); 267_glow.BeginAnimation(FrameworkElement.MarginProperty, null); 347_track = GetTemplateChild(TrackTemplateName) as FrameworkElement; 348_indicator = GetTemplateChild(IndicatorTemplateName) as FrameworkElement; 349_glow = GetTemplateChild(GlowingRectTemplateName) as FrameworkElement; 373private FrameworkElement _track; 374private FrameworkElement _indicator; 375private FrameworkElement _glow;
System\Windows\Controls\RichTextBox.cs (2)
315internal override FrameworkElement CreateRenderScope() 782this.RenderScope.ClearValue(FrameworkElement.HorizontalAlignmentProperty);
System\Windows\Controls\ScrollViewer.cs (8)
376/// <see cref="System.Windows.FrameworkElement.Width" /> on the content element. 388/// <see cref="System.Windows.FrameworkElement.Height" /> on the content element. 417/// <see cref="System.Windows.FrameworkElement.Width" /> on this element. 429/// <see cref="System.Windows.FrameworkElement.Height" /> on this element. 1031FrameworkElement fe = elementRoot as FrameworkElement; 2725hsb.SetValue(FrameworkElement.CursorProperty, Cursors.Arrow); 2735vsb.SetValue(FrameworkElement.CursorProperty, Cursors.Arrow);
System\Windows\Controls\SinglePageViewer.cs (2)
790FrameworkElement.AddIntermediateElementsToRoute( 807continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(LogicalTreeHelper.GetParent(document), LogicalTreeHelper.GetParent(branchNode));
System\Windows\Controls\Slider.cs (11)
32[TemplatePart(Name = "PART_SelectionRange", Type = typeof(FrameworkElement))] 993FrameworkElement rangeElement = this.SelectionRangeElement as FrameworkElement; 1053FrameworkElement rangeElement = this.SelectedRangeElement as FrameworkElement; 1135internal FrameworkElement SelectionRangeElement 1147internal FrameworkElement SelectedRangeElement 1350SelectionRangeElement = GetTemplateChild(SelectionRangeElementName) as FrameworkElement; 1351SelectedRangeElement = GetTemplateChild(SelectedRangeElementName) as FrameworkElement; 1453private FrameworkElement _selectionRangeElement; 1454private FrameworkElement _selectedRangeElement;
System\Windows\Controls\SoundPlayerAction.cs (2)
116internal sealed override void Invoke(FrameworkElement el, 128internal sealed override void Invoke(FrameworkElement el)
System\Windows\Controls\StickyNote.cs (8)
785FrameworkElement innerControl = stickyNoteControl.Content.InnerControl; 802FrameworkElement innerControl = stickyNoteControl.Content.InnerControl; 966FrameworkElement parent = VisualTreeHelper.GetParent(Content.InnerControl) as FrameworkElement; 1367parent = FrameworkElement.GetFrameworkParent(parent); 1444FrameworkElement innerControl = Content.InnerControl; 1494FrameworkElement innerControl = (FrameworkElement)Content.InnerControl;
System\Windows\Controls\TabControl.cs (2)
555FrameworkElement visualParent = VisualTreeHelper.GetParent(tabItem) as FrameworkElement;
System\Windows\Controls\TextAdaptor.cs (2)
265FrameworkElement fe = renderScope as FrameworkElement;
System\Windows\Controls\TextBox.cs (2)
1011/// <see cref="FrameworkElement.OnPropertyChanged"/> 1117internal override FrameworkElement CreateRenderScope()
System\Windows\Controls\TextRangeAdaptor.cs (7)
150object val = tp.GetValue(FrameworkElement.LanguageProperty); 318Thickness margin = (Thickness)tp.GetValue(FrameworkElement.MarginProperty); 329Thickness margin = (Thickness)tp.GetValue(FrameworkElement.MarginProperty); 340Thickness margin = (Thickness)tp.GetValue(FrameworkElement.MarginProperty); 351Thickness margin = (Thickness)tp.GetValue(FrameworkElement.MarginProperty); 413FlowDirection flowWCP = (FlowDirection)tp.GetValue(FrameworkElement.FlowDirectionProperty); 1277(XmlLanguage)context.GetValue(FrameworkElement.LanguageProperty) :
System\Windows\Controls\TextSearch.cs (4)
604FrameworkElement fe = o as FrameworkElement; 744internal static string GetPrimaryText(FrameworkElement element) 804object o = element.GetValue(FrameworkElement.LanguageProperty);
System\Windows\Controls\ToolBar.cs (2)
464FrameworkElement fe = element as FrameworkElement;
System\Windows\Controls\TreeView.cs (3)
614FrameworkElement container; 621FrameworkElement container; 708FrameworkElement startingContainer = _selectedContainer.HeaderElement;
System\Windows\Controls\TreeViewItem.cs (13)
22[TemplatePart(Name = HeaderPartName, Type = typeof(FrameworkElement))] 43EventManager.RegisterClassHandler(typeof(TreeViewItem), FrameworkElement.RequestBringIntoViewEvent, new RequestBringIntoViewEventHandler(OnRequestBringIntoView)); 371FrameworkElement headerElement = HeaderElement; 683FrameworkElement startingContainer = this.HeaderElement; 774FrameworkElement header = HeaderElement; 790FrameworkElement header = HeaderElement; 798internal FrameworkElement HeaderElement 802return GetTemplateChild(HeaderPartName) as FrameworkElement; 808internal FrameworkElement TryGetHeaderElement() 811FrameworkElement header = HeaderElement; 835FrameworkElement parent = VisualTreeHelper.GetParent(toggleButton) as FrameworkElement; 843header = VisualTreeHelper.GetChild(parent, index+1) as FrameworkElement;
System\Windows\Controls\UIElementCollection.cs (3)
33public UIElementCollection(UIElement visualParent, FrameworkElement logicalParent) 535internal FrameworkElement LogicalParent 542private readonly FrameworkElement _logicalParent;
System\Windows\Controls\UserControl.cs (2)
55internal override FrameworkElement StateGroupsRoot 59return Content as FrameworkElement;
System\Windows\Controls\Validation.cs (4)
45FrameworkElement.AddHandler(element, ErrorEvent, handler); 55FrameworkElement.RemoveHandler(element, ErrorEvent, handler); 336if (!HasValidationGroup(targetElement as FrameworkElement)) 349private static bool HasValidationGroup(FrameworkElement fe)
System\Windows\Controls\VirtualizingStackPanel.cs (33)
419FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport( 543FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport( 671FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport( 875FrameworkElement prevFirstContainerInViewport = _scrollData._firstContainerInViewport; 880FrameworkElement currFirstContainerInViewport = ComputeFirstContainerInViewport( 903FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport( 1119private FrameworkElement ComputeFirstContainerInViewport( 1120FrameworkElement viewportElement, 1133private FrameworkElement ComputeFirstContainerInViewport( 1134FrameworkElement viewportElement, 1171FrameworkElement result = null; 1180FrameworkElement fe = children[i] as FrameworkElement; 1713FrameworkElement childFE = child as FrameworkElement; 1977FrameworkElement.AddHandler(element, CleanUpVirtualizedItemEvent, handler); 1987FrameworkElement.RemoveHandler(element, CleanUpVirtualizedItemEvent, handler); 5283FrameworkElement container = virtualizationInfoProvider as FrameworkElement; 6402FrameworkElement container = virtualizationInfoProvider as FrameworkElement; 6461FrameworkElement fe = virtualizingChild as FrameworkElement; 6598private bool IsHeaderBeforeItems(bool isHorizontal, FrameworkElement container, ref Thickness inset) 7110bool isHeaderBeforeItems = IsHeaderBeforeItems(isHorizontal, virtualizingChild as FrameworkElement, ref inset); 11090bool isHeaderBeforeItems = IsHeaderBeforeItems(isHorizontal, virtualizingElement as FrameworkElement, ref inset); 11623private FrameworkElement FirstContainerInViewport 11810internal FrameworkElement _firstContainerInViewport; 12173sti = new ScrollTracingInfo(tracer, _nullInfo.Generation, 0, itemsOwner as FrameworkElement, null, null, 0); 12195sti = new ScrollTracingInfo(tracer, _nullInfo.Generation, parentInfo.Depth + 1, itemsOwner as FrameworkElement, parent, parentItem, itemIndex); 12672internal FrameworkElement Owner { get; private set; } 12677internal ScrollTracingInfo(ScrollTracer tracer, int generation, int depth, FrameworkElement owner, VirtualizingStackPanel parent, object parentItem, int itemIndex) 12874internal FrameworkElement _firstContainerInViewport;
System\Windows\Controls\WrapPanel.cs (2)
209/// <see cref="FrameworkElement.MeasureOverride"/> 270/// <see cref="FrameworkElement.ArrangeOverride"/>
System\Windows\ControlTemplate.cs (1)
59protected override void ValidateTemplatedParent(FrameworkElement templatedParent)
System\Windows\Data\Binding.cs (4)
107FrameworkElement.AddHandler(element, SourceUpdatedEvent, handler); 117FrameworkElement.RemoveHandler(element, SourceUpdatedEvent, handler); 137FrameworkElement.AddHandler(element, TargetUpdatedEvent, handler); 147FrameworkElement.RemoveHandler(element, TargetUpdatedEvent, handler);
System\Windows\Data\BindingExpression.cs (16)
221if (dp == FrameworkElement.DataContextProperty && d == ContextElement) 229else if (dp == FrameworkElement.LanguageProperty && UsesLanguage && d == TargetElement) 457BaseValueSourceInternal valueSource = d.GetValueSource(FrameworkElement.DataContextProperty, null, out hasModifiers); 704if (TargetProperty == FrameworkElement.DataContextProperty || 709cvs.PropertyForInheritanceContext == FrameworkElement.DataContextProperty) 712contextElement = FrameworkElement.GetFrameworkParent(contextElement); 758source = contextElement.GetValue(FrameworkElement.DataContextProperty); 925object item = contextElement.GetValue(FrameworkElement.DataContextProperty); 1219newSources[offset++] = new WeakDependencySource(_ctxElement, FrameworkElement.DataContextProperty); 1232newSources[offset++] = new WeakDependencySource(TargetElementReference, FrameworkElement.LanguageProperty); 2249item = contextElement.GetValue(FrameworkElement.DataContextProperty); 2397object newItem = contextElement.GetValue(FrameworkElement.DataContextProperty); 2630if (dp == FrameworkElement.DataContextProperty) 2649if (dp == FrameworkElement.LanguageProperty && UsesLanguage && d == TargetElement) 2694ancestor = FrameworkElement.GetFrameworkParent(ancestor)) 2698b = BindingOperations.GetBindingExpression(ancestor, FrameworkElement.DataContextProperty) as BindingExpression;
System\Windows\Data\BindingExpressionBase.cs (5)
1267if (IsInTransfer && (TargetProperty == FrameworkElement.LanguageProperty)) 1285_culture = ((XmlLanguage) target.GetValue(FrameworkElement.LanguageProperty)).GetSpecificCulture(); 1722bg = (BindingGroup)contextElement.GetValue(FrameworkElement.BindingGroupProperty); 1730DependencyProperty dataContextDP = FrameworkElement.DataContextProperty; 1748DependencyProperty bindingGroupDP = FrameworkElement.BindingGroupProperty;
System\Windows\Data\BindingGroup.cs (5)
593if (property == FrameworkElement.BindingGroupProperty && 818object dataContextItem = mentor.GetValue(FrameworkElement.DataContextProperty); 924FrameworkElement fe; 1022mentor.GetValue(FrameworkElement.DataContextProperty) == CollectionView.NewItemPlaceholder) 1301_culture = ((System.Windows.Markup.XmlLanguage) mentor.GetValue(FrameworkElement.LanguageProperty)).GetSpecificCulture();
System\Windows\Data\CollectionViewSource.cs (1)
829XmlLanguage language = (d != null) ? (XmlLanguage)d.GetValue(FrameworkElement.LanguageProperty) : null;
System\Windows\Data\MultiBindingExpression.cs (3)
225WeakDependencySource[] commonSources = new WeakDependencySource[] { new WeakDependencySource(TargetElement, FrameworkElement.LanguageProperty) }; 443commonSources = new WeakDependencySource[] { new WeakDependencySource(TargetElement, FrameworkElement.LanguageProperty) }; 1026if (UsesLanguage && d == TargetElement && dp == FrameworkElement.LanguageProperty)
System\Windows\DataTemplate.cs (1)
185protected override void ValidateTemplatedParent(FrameworkElement templatedParent)
System\Windows\DescendentsWalker.cs (10)
54if (_startNode is FrameworkElement 77if (d is FrameworkElement fe) 182FrameworkElement feParent, 225FrameworkElement feParent, bool hasLogicalChildren ) 257FrameworkElement fe = current as FrameworkElement; 298FrameworkElement feParent, bool hasLogicalChildren) 315if (child != null && child is FrameworkElement fe) 349private void VisitNode(FrameworkElement fe, bool visitedViaVisualTree) 395if (d is FrameworkElement fe)
System\Windows\DescendentsWalkerBase.cs (1)
37if (ancestor is FrameworkElement fe)
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (4)
278public static IEnumerable<FrameworkElement> GetFrameworkElementOwners(ResourceDictionary dictionary) 280return GetOwners<FrameworkElement>(dictionary.FrameworkElementOwners, EmptyFrameworkElementList); 314private static IReadOnlyCollection<FrameworkElement> EmptyFrameworkElementList 315=> Array.Empty<FrameworkElement>();
System\Windows\Documents\AdornerDecorator.cs (1)
132/// Override for <seealso cref="FrameworkElement.ArrangeOverride" />
System\Windows\Documents\Block.cs (1)
255FrameworkElement.FlowDirectionProperty.AddOwner(typeof(Block));
System\windows\Documents\CaretElement.cs (7)
125FrameworkElement owner = GetOwnerElement(); 778private static FrameworkElement Debug_RenderScope 782return ((ITextSelection)TextEditor._ThreadLocalStore.FocusedTextSelection).TextView.RenderScope as FrameworkElement; // TextBlock / TextFlow 828private FrameworkElement GetOwnerElement() 833internal static FrameworkElement GetOwnerElement(FrameworkElement uiScope) 845return (FrameworkElement)node;
System\Windows\Documents\FixedDSBuilder.cs (1)
158XmlLanguage language = (XmlLanguage) _fixedPage.GetValue(FrameworkElement.LanguageProperty);
System\Windows\Documents\FixedElement.cs (2)
56FrameworkElement.LanguageProperty.AddOwner( 85FrameworkElement.FlowDirectionProperty.AddOwner(
System\Windows\Documents\FixedHyperlink.cs (2)
91FrameworkElement targetElement = null; 93targetElement = ((IFixedNavigate)ElementHost).FindElementByID(elementID, out rootFixedPage) as FrameworkElement;
System\Windows\Documents\FixedPage.cs (5)
445/// <seealso cref="FrameworkElement.Margin" /> 462/// <seealso cref="FrameworkElement.Margin" /> 479/// <seealso cref="FrameworkElement.Margin" /> 497/// <seealso cref="FrameworkElement.Margin" /> 718private UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent)
System\Windows\Documents\FixedSOMFixedBlock.cs (1)
208element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft);
System\Windows\Documents\FixedSOMTextRun.cs (3)
231element.SetValue(FrameworkElement.LanguageProperty, XmlLanguage.GetLanguage(_cultureInfo.IetfLanguageTag)); 239element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 243element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight);
System\Windows\Documents\FixedTextBuilder.cs (1)
1392public void FindHyperlinkPaths(FrameworkElement elem)
System\Windows\Documents\Floater.cs (1)
81FrameworkElement.HorizontalAlignmentProperty.AddOwner(
System\Windows\Documents\FlowDocument.cs (4)
903else if (element is FrameworkElement) 906while (element is FrameworkElement) 913if (!(parentOfEmbeddedElement is FrameworkElement)) 921textPointer = TextContainerHelper.GetTextPointerForEmbeddedObject((FrameworkElement)element);
System\Windows\Documents\Hyperlink.cs (2)
890FrameworkElement fe = d as FrameworkElement;
System\Windows\Documents\ImmComposition.cs (2)
63internal static ImmComposition GetImmComposition(FrameworkElement scope) 1852private FrameworkElement UiScope
System\Windows\Documents\Inline.cs (1)
134FrameworkElement.FlowDirectionProperty.AddOwner(typeof(Inline));
System\Windows\Documents\RangeContentEnumerator.cs (2)
322FrameworkElement fe = node as FrameworkElement;
System\Windows\Documents\RubberbandSelector.cs (2)
44internal void AttachRubberbandSelector(FrameworkElement scope) 612private FrameworkElement _uiScope; // parent of _scope, if _scope is a DocumentGrid.
System\Windows\Documents\Speller.cs (3)
305return property == FrameworkElement.LanguageProperty || 1502_textEditor.UiScope.GetValueSource(FrameworkElement.LanguageProperty, null, out hasModifiers) == BaseValueSourceInternal.Default) 1509language = (XmlLanguage)position.GetValue(FrameworkElement.LanguageProperty);
System\Windows\Documents\TextContainer.cs (2)
174internal void EnableUndo(FrameworkElement uiScope) 182internal void DisableUndo(FrameworkElement uiScope)
System\windows\Documents\TextEditor.cs (25)
47internal TextEditor(ITextContainer textContainer, FrameworkElement uiScope, bool isUndoEnabled) 301internal static ITextSelection GetTextSelection(FrameworkElement frameworkElement) 471XmlLanguage language = (XmlLanguage)((ITextPointer)range.Start).GetValue(FrameworkElement.LanguageProperty); 479range.ApplyPropertyValue(FrameworkElement.LanguageProperty, XmlLanguage.GetLanguage(inputCultureInfo.IetfLanguageTag)); 494FlowDirection currentFlowDirection = (FlowDirection)((ITextPointer)range.Start).GetValue(FrameworkElement.FlowDirectionProperty); 500range.ApplyPropertyValue(FrameworkElement.FlowDirectionProperty, inputFlowDirection); 836internal FrameworkElement UiScope 1268if ((source is FrameworkElement) && ((FrameworkElement)source).TemplatedParent == this.UiScope) 1326internal FrameworkElement _Scroller 1330FrameworkElement scroller = this.TextView == null ? null : (this.TextView.RenderScope as FrameworkElement); 1334scroller = FrameworkElement.GetFrameworkParent(scroller) as FrameworkElement; 1632TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1649FrameworkElement frameworkElement = sender as FrameworkElement; 1686TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1741TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1781TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1824TextEditor This = TextEditor._GetTextEditor((FrameworkElement)target); 1850TextEditor This = TextEditor._GetTextEditor((FrameworkElement)target); 1876TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1896TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1981private FrameworkElement _uiScope;
System\windows\Documents\TextEditorContextMenu.cs (8)
37EventManager.RegisterClassHandler(controlType, FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpening)); 75contextMenu = (ContextMenu)e.TargetElement.GetValue(FrameworkElement.ContextMenuProperty); 88contextMenu = (ContextMenu)element.GetValue(FrameworkElement.ContextMenuProperty); 130if (This.UiScope.ReadLocalValue(FrameworkElement.ContextMenuProperty) == null) 270FrameworkElement element = This.TextView.RenderScope as FrameworkElement; 286element = visual as FrameworkElement; 333private static void ClipToElement(FrameworkElement element, GeneralTransform transform,
System\windows\Documents\TextEditorCopyPaste.cs (3)
712else if (element is FrameworkElement) 714((TextSelection)This.Selection).InsertEmbeddedUIElement((FrameworkElement)element); 1004private static bool ConfirmDataFormatSetting(FrameworkElement uiScope, IDataObject dataObject, string format)
System\windows\Documents\TextEditorDragDrop.cs (1)
347FrameworkElement scroller = _textEditor._Scroller;
System\windows\Documents\TextEditorMouse.cs (3)
510FrameworkElement scroller = This._Scroller; 789if (hitElement is FrameworkElement && ((FrameworkElement)hitElement).TemplatedParent == textEditor.UiScope)
System\windows\Documents\TextEditorParagraphs.cs (2)
141TextEditorCharacters._OnApplyProperty(This, FrameworkElement.FlowDirectionProperty, 151TextEditorCharacters._OnApplyProperty(This, FrameworkElement.FlowDirectionProperty,
System\windows\Documents\TextEditorSelection.cs (1)
2432return (FlowDirection)navigator.GetValue(FrameworkElement.FlowDirectionProperty);
System\windows\Documents\TextEditorSpelling.cs (1)
163XmlLanguage language = (XmlLanguage)spellingError.Start.GetValue(FrameworkElement.LanguageProperty);
System\windows\Documents\TextEditorTyping.cs (4)
1230UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1231This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1246UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 1247This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft);
System\Windows\Documents\TextPointer.cs (2)
3789internal FrameworkElement ContainingFrameworkElement 3793return ((FrameworkElement)_tree.Parent);
System\Windows\Documents\TextPointerBase.cs (2)
890if (templatedParent == null && ((FlowDocumentView)textView.RenderScope).Parent is FrameworkElement) 892templatedParent = ((FrameworkElement)((FlowDocumentView)textView.RenderScope).Parent).TemplatedParent as Visual;
System\Windows\Documents\TextRange.cs (4)
1012internal void InsertEmbeddedUIElement(FrameworkElement embeddedElement) 1301internal FrameworkElement ContainingFrameworkElement 1563internal virtual void InsertEmbeddedUIElementVirtual(FrameworkElement embeddedElement) 1624if (formattingProperty == FrameworkElement.FlowDirectionProperty)
System\Windows\Documents\TextRangeEdit.cs (10)
841parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 845parentFlowDirection = (FlowDirection)FrameworkElement.FlowDirectionProperty.GetDefaultValue(typeof(FrameworkElement)); 884UIElementPropertyUndoUnit.Add(block.TextContainer, embeddedElement, FrameworkElement.HorizontalAlignmentProperty, horizontalAlignment); 885embeddedElement.SetValue(FrameworkElement.HorizontalAlignmentProperty, horizontalAlignment); 1320FlowDirection midpointFlowDirection = (FlowDirection)commonAncestor.GetValue(FrameworkElement.FlowDirectionProperty); 1321FlowDirection previousFlowDirection = (FlowDirection)previousRun.GetValue(FrameworkElement.FlowDirectionProperty); 1322FlowDirection nextFlowDirection = (FlowDirection)nextRun.GetValue(FrameworkElement.FlowDirectionProperty); 1334SetStructuralInlineProperty(scopingPreviousInline.ElementStart, scopingNextInline.ElementEnd, FrameworkElement.FlowDirectionProperty, previousFlowDirection); 1859while ((FlowDirection)inline.Parent.GetValue(FrameworkElement.FlowDirectionProperty) == flowDirection)
System\Windows\Documents\TextRangeSerialization.cs (3)
1227FrameworkElement embeddedElement = null; 1230embeddedElement = ((BlockUIContainer)uiContainer).Child as FrameworkElement; 1238embeddedElement = ((InlineUIContainer)uiContainer).Child as FrameworkElement;
System\Windows\Documents\TextSchema.cs (18)
42FrameworkElement.LanguageProperty, 43FrameworkElement.FlowDirectionProperty, 1160FrameworkElement.LanguageProperty, 1164FrameworkElement.LayoutTransformProperty, 1165FrameworkElement.WidthProperty, 1166FrameworkElement.MinWidthProperty, 1167FrameworkElement.MaxWidthProperty, 1168FrameworkElement.HeightProperty, 1169FrameworkElement.MinHeightProperty, 1170FrameworkElement.MaxHeightProperty, 1172FrameworkElement.MarginProperty, 1173FrameworkElement.HorizontalAlignmentProperty, 1174FrameworkElement.VerticalAlignmentProperty, 1176FrameworkElement.CursorProperty, 1177FrameworkElement.ForceCursorProperty, 1179FrameworkElement.ToolTipProperty, 1218FrameworkElement.FlowDirectionProperty, 1219FrameworkElement.LanguageProperty,
System\windows\Documents\TextSelection.cs (14)
325FrameworkElement uiScope = UiScope; 326FrameworkElement owner = CaretElement.GetOwnerElement(uiScope); 507FlowDirection initialFlowDirection = (FlowDirection)caretPosition.GetValue(FrameworkElement.FlowDirectionProperty); 512initialFlowDirection == (FlowDirection)caretPosition.GetValue(FrameworkElement.FlowDirectionProperty) && 1251internal override void InsertEmbeddedUIElementVirtual(FrameworkElement embeddedElement) 1280formattingProperty != FrameworkElement.FlowDirectionProperty) // We dont want to apply flowdirection property to inlines when selection is empty. 1492inheritableProperties[i] != FrameworkElement.LanguageProperty && 1493inheritableProperties[i] != FrameworkElement.FlowDirectionProperty && 2264FlowDirection flowDirection = (FlowDirection)focusedTextSelection.Start.GetValue(FrameworkElement.FlowDirectionProperty); 2390FlowDirection uiScopeflowDirection = (FlowDirection)textEditor.UiScope.GetValue(FrameworkElement.FlowDirectionProperty); 2577if (element is FrameworkElement || element is FrameworkContentElement) 2580if (parent == null && element is FrameworkElement) 2582parent = ((FrameworkElement)element).TemplatedParent; 2662private FrameworkElement UiScope
System\Windows\Documents\TextStore.cs (15)
2087internal FrameworkElement UiScope 4723FrameworkElement target = o as FrameworkElement; 4775FrameworkElement uiScope = textStore.UiScope; 4920FrameworkElement uiScope = textStore.UiScope; 4964private static List<Tuple<WeakReference<FrameworkElement>,TraceList>> s_TargetToTraceListMap 4965= new List<Tuple<WeakReference<FrameworkElement>,TraceList>>(); 4968static TraceList TraceListForUiScope(FrameworkElement target) 4977WeakReference<FrameworkElement> wr = s_TargetToTraceListMap[i].Item1; 4978FrameworkElement fe; 4996private static TraceList AddToMap(FrameworkElement target) 5023new Tuple<WeakReference<FrameworkElement>,TraceList>( 5024new WeakReference<FrameworkElement>(target), 5048WeakReference<FrameworkElement> wr = s_TargetToTraceListMap[i].Item1; 5049FrameworkElement unused;
System\Windows\Documents\TextTreeNode.cs (1)
334if (objectNode.EmbeddedElement is FrameworkElement)
System\Windows\EventTrigger.cs (8)
259FrameworkElement _source; 271internal static void ProcessTriggerCollection( FrameworkElement triggersHost ) 293internal static void ProcessOneTrigger( FrameworkElement triggersHost, TriggerBase triggerBase ) 309eventTrigger._source = FrameworkElement.FindNamedFrameworkElement( triggersHost, eventTrigger.SourceName ); 332internal static void DisconnectAllTriggers( FrameworkElement triggersHost ) 353internal static void DisconnectOneTrigger( FrameworkElement triggersHost, TriggerBase triggerBase ) 372internal EventTriggerSourceListener( EventTrigger trigger, FrameworkElement host ) 389private FrameworkElement _owningTriggerHost;
System\Windows\FrameworkContentElement.cs (43)
111FrameworkElement.StyleProperty.AddOwner( 157= FrameworkElement.OverridesDefaultStyleProperty.AddOwner(typeof(FrameworkContentElement), 176FrameworkElement.DefaultStyleKeyProperty.AddOwner( 345object resource = FrameworkElement.FindResourceInternal(null /* fe */, this, resourceKey); 372object resource = FrameworkElement.FindResourceInternal(null /* fe */, this, resourceKey); 513object implicitValue = FrameworkElement.FindImplicitStyleResource(this, this.GetType(), out source); 553FrameworkElement parentFE; 554bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE); 617hasParent = FrameworkElement.GetFrameworkParent(parentFE, out parentFE, out parentFCE); 621hasParent = FrameworkElement.GetFrameworkParent(parentFCE, out parentFE, out parentFCE); 641FrameworkElement feTemplatedParent = (FrameworkElement)_templatedParent; 700if (dp == FrameworkElement.NameProperty && 717FrameworkElement feTemplatedParent = TemplatedParent as FrameworkElement; 816FrameworkElement.NameProperty.AddOwner( 835FrameworkElement.TagProperty.AddOwner( 856FrameworkElement.LanguageProperty.AddOwner( 880FrameworkElement.FocusVisualStyleProperty.AddOwner(typeof(FrameworkContentElement), 881new FrameworkPropertyMetadata(FrameworkElement.DefaultFocusVisualStyle)); 896FrameworkElement.CursorProperty.AddOwner( 928FrameworkElement.ForceCursorProperty.AddOwner( 1057RoutedEvent = FrameworkElement.RequestBringIntoViewEvent 1112FrameworkElement.DataContextProperty.AddOwner( 1131add { EventHandlersStoreAdd(FrameworkElement.DataContextChangedKey, value); } 1132remove { EventHandlersStoreRemove(FrameworkElement.DataContextChangedKey, value); } 1151((FrameworkContentElement) d).RaiseDependencyPropertyChanged(FrameworkElement.DataContextChangedKey, e); 1189FrameworkElement.BindingGroupProperty.AddOwner( 1334FrameworkElement.AddIntermediateElementsToRoute(this, route, args, LogicalTreeHelper.GetParent(branchNode)); 1368FrameworkElement.AddStyleHandlersToEventRoute(null, this, route, args); 1399continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(this, LogicalTreeHelper.GetParent(branchNode)); 1579add { EventHandlersStoreAdd(FrameworkElement.InitializedKey, value); } 1580remove { EventHandlersStoreRemove(FrameworkElement.InitializedKey, value); } 1602RaiseInitialized(FrameworkElement.InitializedKey, e); 1644= FrameworkElement.LoadedPendingProperty.AddOwner(typeof(FrameworkContentElement)); 1651= FrameworkElement.UnloadedPendingProperty.AddOwner(typeof(FrameworkContentElement)); 1699public static readonly RoutedEvent LoadedEvent = FrameworkElement.LoadedEvent.AddOwner( typeof(FrameworkContentElement)); 1709AddHandler(FrameworkElement.LoadedEvent, value, false); 1713RemoveHandler(FrameworkElement.LoadedEvent, value); 1730public static readonly RoutedEvent UnloadedEvent = FrameworkElement.UnloadedEvent.AddOwner( typeof(FrameworkContentElement)); 1739AddHandler(FrameworkElement.UnloadedEvent, value, false); 1743RemoveHandler(FrameworkElement.UnloadedEvent, value); 2172private static readonly UncommonField<ResourceDictionary> ResourcesField = FrameworkElement.ResourcesField;
System\Windows\FrameworkElement.cs (96)
96static private readonly Type _typeofThis = typeof(FrameworkElement); 128FrameworkElement.EnsureFrameworkServices(); 166FrameworkElement fe = (FrameworkElement) d; 198typeof(FrameworkElement), 217FrameworkElement fe = (FrameworkElement)d; 247((FrameworkElement)d).UpdateThemeStyleProperty(); 267FrameworkElement fe = (FrameworkElement) d; 462internal static FrameworkElement FindNamedFrameworkElement( FrameworkElement startElement, string targetName ) 464FrameworkElement targetFE = null; 602internal virtual FrameworkElement StateGroupsRoot 606return _templateChild as FrameworkElement; 825object resource = FrameworkElement.FindResourceInternal(this, null /* fce */, resourceKey); 853object resource = FrameworkElement.FindResourceInternal(this, null /* fce */, resourceKey); 867internal static object FindImplicitStyleResource(FrameworkElement fe, object resourceKey, out object source) 891FrameworkElement.StyleProperty, // dp 975internal static object FindResourceInternal(FrameworkElement fe, FrameworkContentElement fce, object resourceKey) 1004return FrameworkElement.FindResourceInternal(null, // fe 1018FrameworkElement fe, 1147FrameworkElement feStart, 1194FrameworkElement fe = fo.FE; 1616private static ResourceDictionary GetInstanceResourceDictionary(FrameworkElement fe, FrameworkContentElement fce) 1640private static ResourceDictionary GetStyleResourceDictionary(FrameworkElement fe, FrameworkContentElement fce) 1680private static ResourceDictionary GetThemeStyleResourceDictionary(FrameworkElement fe, FrameworkContentElement fce) 1720private static ResourceDictionary GetTemplateResourceDictionary(FrameworkElement fe, FrameworkContentElement fce) 1871object implicitValue = FrameworkElement.FindImplicitStyleResource(this, this.GetType(), out source); 1928FrameworkElement feTemplatedParent = (FrameworkElement)_templatedParent; 1960FrameworkElement parentFE; 2072if (dp == FrameworkElement.NameProperty && 2089FrameworkElement feTemplatedParent = TemplatedParent as FrameworkElement; 2218if(layoutParent is FrameworkElement fe) 2279internal static bool GetFrameworkParent(FrameworkElement current, out FrameworkElement feParent, out FrameworkContentElement fceParent) 2292internal static bool GetFrameworkParent(FrameworkContentElement current, out FrameworkElement feParent, out FrameworkContentElement fceParent) 2304internal static bool GetContainingFrameworkElement(DependencyObject current, out FrameworkElement fe, out FrameworkContentElement fce) 2372EventManager.RegisterClassHandler(_typeofThis, Mouse.QueryCursorEvent, new QueryCursorEventHandler(FrameworkElement.OnQueryCursorOverride), true); 2403typeof(FrameworkElement), 2411FrameworkElement fe = (FrameworkElement) d; 2466if (newParent != null && (newParent is FrameworkElement) == false) 2480else if (oldParent != null && (oldParent is FrameworkElement) == false) 2528FrameworkElement feParent = null; 2532FrameworkElement.GetContainingFrameworkElement(VisualTreeHelper.GetParent(this), out feParent, out fceParent); 2563FrameworkElement.GetContainingFrameworkElement(e.OldParent, out feParent, out fceParent); 2732((FrameworkElement) d).RaiseDependencyPropertyChanged(DataContextChangedKey, e); 2917FrameworkElement.AddIntermediateElementsToRoute(this, route, args, LogicalTreeHelper.GetParent(branchNode)); 2972FrameworkElement fe, 3018FrameworkElement feTemplatedParent = templatedParent as FrameworkElement; 3111continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(this, LogicalTreeHelper.GetParent(branchNode)); 3337FrameworkElement fe = (FrameworkElement) d; 3382FrameworkElement fe = (FrameworkElement) d; 3440FrameworkElement fe = (FrameworkElement)d; 3465FrameworkElement fe = (FrameworkElement)d; 3651FrameworkElement fe = d as FrameworkElement; 3665FrameworkElement fe = d as FrameworkElement; 3873FrameworkElement fe = ((FrameworkElement)d); 3908FrameworkElement fe = ((FrameworkElement)d); 3918FrameworkElement fe = (FrameworkElement) sender; 3957internal static bool ShouldApplyMirrorTransform(FrameworkElement fe) 3974FrameworkElement parentFE; 4004FrameworkElement fe = v as FrameworkElement; 4045internal MinMax(FrameworkElement e) 5142FrameworkElement fe = element as FrameworkElement; 5335FrameworkElement fe = (FrameworkElement)sender; 5361FrameworkElement fe = (FrameworkElement)sender; 5529((FrameworkElement) o).HasNumberSubstitutionChanged = true; 5533private static bool ShouldUseSystemFont(FrameworkElement fe, DependencyProperty dp) 5548if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontFamilyProperty)) 5559if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontSizeProperty)) 5570if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontStyleProperty)) 5581if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontWeightProperty)) 5952((FrameworkElement)sender).OnToolTipOpening(e); 5984((FrameworkElement)sender).OnToolTipClosing(e); 6017((FrameworkElement)sender).OnContextMenuOpening(e); 6044((FrameworkElement)sender).OnContextMenuClosing(e); 6089FrameworkElement fe = uiElement as FrameworkElement;
System\Windows\FrameworkElementFactory.cs (14)
84if (!typeof(FrameworkElement).IsAssignableFrom(value) && 325if ( (routedEvent == FrameworkElement.LoadedEvent) 326||(routedEvent == FrameworkElement.UnloadedEvent)) 356if ( (routedEvent == FrameworkElement.LoadedEvent) 357||(routedEvent == FrameworkElement.UnloadedEvent)) 359if ( !_eventHandlersStore.Contains(FrameworkElement.LoadedEvent) 360&&!_eventHandlersStore.Contains(FrameworkElement.UnloadedEvent)) 637FrameworkElement containerAsFE = container as FrameworkElement; 999bool treeNodeIsFE, FrameworkElement treeNodeFE, FrameworkContentElement treeNodeFCE, 1038FrameworkElement treeNodeFE, FrameworkContentElement treeNodeFCE ) 1057FrameworkElement treeNodeFE, FrameworkContentElement treeNodeFCE ) 1078bool treeNodeIsFE, FrameworkElement treeNodeFE, FrameworkContentElement treeNodeFCE) 1101bool treeNodeIsFE, FrameworkElement treeNodeFE, FrameworkContentElement treeNodeFCE)
System\Windows\FrameworkTemplate.cs (15)
56protected virtual void ValidateTemplatedParent(FrameworkElement templatedParent) 299public Object FindName(string name, FrameworkElement templatedParent) 379typeof(FrameworkElement).Name, templateRoot.Type.Name)); 473FrameworkElement container) 617internal virtual bool BuildVisualTree(FrameworkElement container) 910FrameworkElement feContainer = container as FrameworkElement; 1089FrameworkElement feContainer, 1096(createdObject is FrameworkElement || createdObject is FrameworkContentElement)) 1108FrameworkElement feContainer, 1111if (createdObject is FrameworkElement || createdObject is FrameworkContentElement) 1124private static DependencyObject WireRootObjectToParent(object createdObject, DependencyObject rootObject, DependencyObject container, FrameworkElement feContainer, INameScope nameScope) 1140Debug.Assert(!(rootElement is FrameworkElement) || 1141((FrameworkElement)rootElement).TemplateChildIndex != -1); 1146FrameworkElement feResult;
System\Windows\Generated\FrameworkContentElement.cs (14)
64INameScope nameScope = FrameworkElement.FindScope(this); 82INameScope nameScope = FrameworkElement.FindScope(this); 108INameScope nameScope = FrameworkElement.FindScope(this, out scopeOwner); 321IsParentAnFE = newParent is FrameworkElement; 438RaiseClrEvent(FrameworkElement.ResourcesChangedKey, EventArgs.Empty); 477FrameworkElement.GetTemplatedParentChildRecord(templatedParent, childIndex, out childRecord, out isChildRecordValid); 479FrameworkElement parentFE; 481bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE); 766&& FrameworkElement.GetFrameworkParent(this) == null 1003Delegate handler = store.Get(FrameworkElement.InheritedPropertyChangedKey); 1186EventHandlersStoreAdd(FrameworkElement.ResourcesChangedKey, value); 1188remove { EventHandlersStoreRemove(FrameworkElement.ResourcesChangedKey, value); } 1206EventHandlersStoreAdd(FrameworkElement.InheritedPropertyChangedKey, value); 1208remove { 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); 321IsParentAnFE = newParent is FrameworkElement; 431RaiseClrEvent(FrameworkElement.ResourcesChangedKey, EventArgs.Empty); 493FrameworkElement.GetTemplatedParentChildRecord(templatedParent, childIndex, out childRecord, out isChildRecordValid); 495FrameworkElement parentFE; 497bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE); 798&& FrameworkElement.GetFrameworkParent(this) == null 1035Delegate handler = store.Get(FrameworkElement.InheritedPropertyChangedKey); 1230EventHandlersStoreAdd(FrameworkElement.ResourcesChangedKey, value); 1232remove { EventHandlersStoreRemove(FrameworkElement.ResourcesChangedKey, value); } 1255EventHandlersStoreAdd(FrameworkElement.InheritedPropertyChangedKey, value); 1257remove { EventHandlersStoreRemove(FrameworkElement.InheritedPropertyChangedKey, value); }
System\Windows\Input\KeyboardNavigation.cs (13)
851FrameworkElement fe = element as FrameworkElement; 862if (fvs == FrameworkElement.DefaultFocusVisualStyle) 864fvs = FrameworkElement.FindResourceInternal(fe, fce: null, SystemParameters.FocusVisualStyleKey) as Style; 889if (fvs == FrameworkElement.DefaultFocusVisualStyle) 891fvs = FrameworkElement.FindResourceInternal(fe: null, fce, SystemParameters.FocusVisualStyleKey) as Style; 1159return FrameworkElement.KeyboardNavigation; 1311FrameworkElement viewportBoundsElement, 1335FrameworkElement viewportBoundsElement, 1910FrameworkElement fe = e as FrameworkElement; 2477FrameworkElement header = tvi.TryGetHeaderElement(); 2991FrameworkElement viewportBoundsElement,
System\Windows\Interop\ActiveXHost.cs (1)
65invalidatorMap[FrameworkElement.IsEnabledProperty] = new PropertyInvalidator(OnIsEnabledInvalidated);
System\Windows\LogicalTreeHelper.cs (15)
118FrameworkElement fe = current as FrameworkElement; 142FrameworkElement fe = current as FrameworkElement; 160public static IEnumerable GetChildren(FrameworkElement current) 184FrameworkElement fe = current as FrameworkElement; 363FrameworkElement parentFE = parent as FrameworkElement; 379internal static void AddLogicalChild(FrameworkElement parentFE, FrameworkContentElement parentFCE, object child) 398FrameworkElement parentFE = parent as FrameworkElement; 414internal static void RemoveLogicalChild(FrameworkElement parentFE, FrameworkContentElement parentFCE, object child) 432FrameworkElement fe = current as FrameworkElement;
System\Windows\LostFocusEventManager.cs (2)
102FrameworkElement fe; 118FrameworkElement fe;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (2)
81case 4: assembly = typeof(System.Windows.FrameworkElement).Assembly; break; 320case 226: t = () => typeof(FrameworkElement); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (43)
2539Type type = typeof(System.Windows.FrameworkElement); 2540DependencyProperty dp = System.Windows.FrameworkElement.FlowDirectionProperty; 2542this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2558Type type = typeof(System.Windows.FrameworkElement); 2559DependencyProperty dp = System.Windows.FrameworkElement.HeightProperty; 2561this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2577Type type = typeof(System.Windows.FrameworkElement); 2578DependencyProperty dp = System.Windows.FrameworkElement.HorizontalAlignmentProperty; 2580this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2596Type type = typeof(System.Windows.FrameworkElement); 2597DependencyProperty dp = System.Windows.FrameworkElement.MarginProperty; 2599this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2615Type type = typeof(System.Windows.FrameworkElement); 2616DependencyProperty dp = System.Windows.FrameworkElement.MaxHeightProperty; 2618this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2634Type type = typeof(System.Windows.FrameworkElement); 2635DependencyProperty dp = System.Windows.FrameworkElement.MaxWidthProperty; 2637this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2653Type type = typeof(System.Windows.FrameworkElement); 2654DependencyProperty dp = System.Windows.FrameworkElement.MinHeightProperty; 2656this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2672Type type = typeof(System.Windows.FrameworkElement); 2673DependencyProperty dp = System.Windows.FrameworkElement.MinWidthProperty; 2675this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2691Type type = typeof(System.Windows.FrameworkElement); 2692DependencyProperty dp = System.Windows.FrameworkElement.NameProperty; 2694this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2710Type type = typeof(System.Windows.FrameworkElement); 2711DependencyProperty dp = System.Windows.FrameworkElement.StyleProperty; 2713this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2726Type type = typeof(System.Windows.FrameworkElement); 2727DependencyProperty dp = System.Windows.FrameworkElement.VerticalAlignmentProperty; 2729this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2745Type type = typeof(System.Windows.FrameworkElement); 2746DependencyProperty dp = System.Windows.FrameworkElement.WidthProperty; 2748this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 6824Type type = typeof(System.Windows.FrameworkElement); 6826this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 6834SetDelegate = delegate (object target, object value) { ((System.Windows.FrameworkElement)target).Resources = (System.Windows.ResourceDictionary)value; }, 6835GetDelegate = delegate (object target) { return ((System.Windows.FrameworkElement)target).Resources; } 8929Type type = typeof(System.Windows.FrameworkElement); 8931this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 8938GetDelegate = delegate (object target) { return ((System.Windows.FrameworkElement)target).Triggers; },
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4927typeof(System.Windows.FrameworkElement),
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (1)
107case 4: assembly = new Baml6Assembly(typeof(System.Windows.FrameworkElement).Assembly); break;
System\Windows\Markup\BamlRecordReader.cs (2)
4089FrameworkElement feParent; 4170result = FrameworkElement.FindResourceFromAppOrSystem(resourceNameObject, out source, false /*throwOnError*/, allowDeferredResourceReference, mustReturnDeferredResourceReference);
System\Windows\Markup\KnownTypes.cs (13)
1766return System.Windows.FrameworkElement.FlowDirectionProperty; 1768return System.Windows.FrameworkElement.HeightProperty; 1770return System.Windows.FrameworkElement.HorizontalAlignmentProperty; 1772return System.Windows.FrameworkElement.MarginProperty; 1774return System.Windows.FrameworkElement.MaxHeightProperty; 1776return System.Windows.FrameworkElement.MaxWidthProperty; 1778return System.Windows.FrameworkElement.MinHeightProperty; 1780return System.Windows.FrameworkElement.MinWidthProperty; 1782return System.Windows.FrameworkElement.NameProperty; 1784return System.Windows.FrameworkElement.StyleProperty; 1786return System.Windows.FrameworkElement.VerticalAlignmentProperty; 1788return System.Windows.FrameworkElement.WidthProperty; 5774case KnownElements.FrameworkElement: t = typeof(System.Windows.FrameworkElement); break;
System\Windows\Markup\RoutedEventConverter.cs (1)
102type = typeof(FrameworkElement);
System\Windows\Media\Animation\BeginStoryboard.cs (2)
175internal sealed override void Invoke( FrameworkElement fe, FrameworkContentElement fce, Style targetStyle, FrameworkTemplate frameworkTemplate, Int64 layer ) 194internal sealed override void Invoke( FrameworkElement fe )
System\Windows\Media\Animation\ControllableStoryboardAction.cs (4)
58internal sealed override void Invoke( FrameworkElement fe, FrameworkContentElement fce, Style targetStyle, FrameworkTemplate frameworkTemplate, Int64 layer ) 78internal sealed override void Invoke( FrameworkElement fe ) 85internal virtual void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard ) 92private Storyboard GetStoryboard( FrameworkElement fe, FrameworkContentElement fce, INameScope nameScope )
System\Windows\Media\Animation\PauseStoryboard.cs (1)
24internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
System\Windows\Media\Animation\RemoveStoryboard.cs (1)
24internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
System\Windows\Media\Animation\ResumeStoryboard.cs (1)
24internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
System\Windows\Media\Animation\SeekStoryboard.cs (1)
90internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
System\Windows\Media\Animation\SetStoryboardSpeedRatio.cs (1)
48internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
System\Windows\Media\Animation\SkipStoryboardToFill.cs (1)
24internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
System\Windows\Media\Animation\StopStoryboard.cs (1)
24internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
System\Windows\Media\Animation\Storyboard.cs (27)
247FrameworkElement fe = element as FrameworkElement; 308FrameworkElement fe, 437targetObject = containingObject as FrameworkElement; 931if(targetObject is FrameworkElement) 1066public void Begin( FrameworkElement containingObject ) 1074public void Begin( FrameworkElement containingObject, HandoffBehavior handoffBehavior ) 1082public void Begin( FrameworkElement containingObject, bool isControllable ) 1090public void Begin( FrameworkElement containingObject, HandoffBehavior handoffBehavior, bool isControllable ) 1098public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate ) 1106public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate, HandoffBehavior handoffBehavior ) 1114public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate, bool isControllable ) 1122public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate, HandoffBehavior handoffBehavior, bool isControllable ) 1288public Nullable<Double> GetCurrentGlobalSpeed( FrameworkElement containingObject ) 1337public Nullable<Int32> GetCurrentIteration( FrameworkElement containingObject ) 1386public Nullable<Double> GetCurrentProgress( FrameworkElement containingObject ) 1434public ClockState GetCurrentState( FrameworkElement containingObject ) 1473public Nullable<TimeSpan> GetCurrentTime( FrameworkElement containingObject ) 1522public bool GetIsPaused( FrameworkElement containingObject ) 1563public void Pause( FrameworkElement containingObject ) 1608public void Remove(FrameworkElement containingObject) 1657public void Resume( FrameworkElement containingObject ) 1704public void Seek( FrameworkElement containingObject, TimeSpan offset, TimeSeekOrigin origin ) 1755public void SeekAlignedToLastTick( FrameworkElement containingObject, TimeSpan offset, TimeSeekOrigin origin ) 1806public void SetSpeedRatio( FrameworkElement containingObject, double speedRatio ) 1845public void SkipToFill( FrameworkElement containingObject ) 1882public void Stop( FrameworkElement containingObject )
System\Windows\Navigation\NavigationService.cs (9)
353FrameworkElement fe = _bp as FrameworkElement; 387FrameworkElement fe = elem as FrameworkElement; 685FrameworkElement fe = INavigatorHost as FrameworkElement; 2291FrameworkElement fe = _bp as FrameworkElement; 2583((FrameworkElement)_bp).Loaded -= OnContentLoaded;
System\Windows\Navigation\NavigationWindow.cs (4)
420FrameworkElement root = (this.GetVisualChild(0)) as FrameworkElement; 1059FrameworkElement journalEntryUIElem = e.Parameter as FrameworkElement;
System\Windows\ResourceDictionary.cs (12)
1437FrameworkElement fe = owner as FrameworkElement; 1520FrameworkElement fe = owner as FrameworkElement; 1578FrameworkElement fe = owner as FrameworkElement; 1632FrameworkElement fe = o as FrameworkElement; 1984FrameworkElement fe = o as FrameworkElement; 2038FrameworkElement fe = o as FrameworkElement;
System\Windows\ResourceReferenceExpression.cs (6)
106FrameworkElement mentorFE; 124FrameworkElement fe; 129resource = FrameworkElement.FindResourceInternal(fe, 143resource = FrameworkElement.FindResourceFromAppOrSystem(_resourceKey, 231if (!(_targetObject is FrameworkElement) && !(_targetObject is FrameworkContentElement)) 315FrameworkElement mentorFE;
System\Windows\Setter.cs (3)
71if( property == FrameworkElement.NameProperty) 73throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInStyle, FrameworkElement.NameProperty.Name)); 97if (dp == FrameworkElement.StyleProperty)
System\Windows\Shell\WindowChromeWorker.cs (4)
302FrameworkElement rootElement = (FrameworkElement)VisualTreeHelper.GetChild(_window, 0); 1131FrameworkElement rootElement = (FrameworkElement)VisualTreeHelper.GetChild(_window, 0);
System\Windows\StaticResourceExtension.cs (2)
213XamlType feXType = schemaContext.GetXamlType(typeof(FrameworkElement)); 299val = FrameworkElement.FindResourceFromAppOrSystem(ResourceKey,
System\Windows\Style.cs (3)
164if (!typeof(FrameworkElement).IsAssignableFrom(value) && 682if (eventSetter.Event == FrameworkElement.LoadedEvent || eventSetter.Event == FrameworkElement.UnloadedEvent)
System\Windows\StyleHelper.cs (79)
49FrameworkElement fe, 88FrameworkElement fe, 108if (StyleHelper.IsSetOnContainer(FrameworkElement.OverridesDefaultStyleProperty, ref newThemeStyle.ContainerDependents, true)) 126if(ShouldGetValueFromStyle ( FrameworkElement.DefaultStyleKeyProperty ) ) 156internal static Style GetThemeStyle(FrameworkElement fe, FrameworkContentElement fce) 242FrameworkElement.StyleProperty.GetMetadata(themeStyleTypeKey); 259FrameworkElement.OnThemeStyleChanged(fe, oldThemeStyle, newThemeStyle); 277FrameworkElement fe, 444if (StyleHelper.IsSetOnContainer(FrameworkElement.StyleProperty, ref containerDependents, true)) 446throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.StyleProperty.Name)); 451if (StyleHelper.IsSetOnContainer(FrameworkElement.DefaultStyleKeyProperty, ref containerDependents, true)) 453throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.DefaultStyleKeyProperty.Name)); 458if (StyleHelper.IsSetOnContainer(FrameworkElement.OverridesDefaultStyleProperty, ref containerDependents, true)) 460throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.OverridesDefaultStyleProperty.Name)); 465if (StyleHelper.IsSetOnContainer(FrameworkElement.NameProperty, ref containerDependents, true)) 467throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.NameProperty.Name)); 1158if ( (eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent) 1159||(eventTrigger.RoutedEvent == FrameworkElement.UnloadedEvent)) 1193if (eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent 1195eventTrigger.RoutedEvent == FrameworkElement.UnloadedEvent ) 1206if( eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent ) 1333FrameworkElement fe, 1368FrameworkElement fe, 1431FrameworkElement fe, 1498Debug.Assert((container is FrameworkElement) || (container is FrameworkContentElement), "Caller has queried with non-framework element. Bad caller, bad!"); 1541FrameworkElement feChild; 1777FrameworkElement feContainer = container as FrameworkElement; 1814Debug.Assert(treeRoot is FrameworkElement || treeRoot is FrameworkContentElement, 1862Debug.Assert(treeRoot == null || treeRoot is FrameworkElement || treeRoot is FrameworkContentElement, 1936internal static void AddCustomTemplateRoot( FrameworkElement container, UIElement child ) 1944FrameworkElement container, 1964FrameworkElement parent = VisualTreeHelper.GetParent(child) as FrameworkElement; 2052FrameworkElement feWalkNode; 2130FrameworkElement feContainer, 2182FrameworkElement feContainer, 2215FrameworkElement feContainer, 2237FrameworkElement fe; 2329out FrameworkElement fe, out FrameworkContentElement fce, 2332if (d is FrameworkElement frameworkElement) 2397Debug.Assert(sender is FrameworkElement || sender is FrameworkContentElement, 2400FrameworkElement fe; 2452Debug.Assert(sender is FrameworkElement || sender is FrameworkContentElement, 2455FrameworkElement fe; 2477FrameworkElement feTemplatedParent; 2500FrameworkElement fe, 2695sourceNodeType = (container as FrameworkElement).TemplateInternal.ChildTypeFromChildIndex[sourceChildIndex]; 2726value = FrameworkElement.FindResourceInternal(child.FE, 2781value = FrameworkElement.FindResourceInternal( 2906FrameworkElement feChild, 2916FrameworkElement feContainer; 3101return (dp != FrameworkElement.StyleProperty); 3113return (dp != FrameworkElement.StyleProperty && 3114dp != FrameworkElement.DefaultStyleKeyProperty && 3115dp != FrameworkElement.OverridesDefaultStyleProperty); 3128return (dp != FrameworkElement.StyleProperty && 3129dp != FrameworkElement.DefaultStyleKeyProperty && 3130dp != FrameworkElement.OverridesDefaultStyleProperty && 3150FrameworkElement fe, 3231FrameworkElement fe, 3306FrameworkElement feContainer, 3448FrameworkElement fe, 3489FrameworkElement fe, 4242if (dp != FrameworkElement.StyleProperty) 4508private static void ExecuteOnApplyEnterExitActions( FrameworkElement fe, 4537private static void ExecuteOnApplyEnterExitActions( FrameworkElement fe, FrameworkContentElement fce, 4716FrameworkElement fe = (FrameworkElement)container; 4835action.Invoke(triggerContainer as FrameworkElement, triggerContainer as FrameworkContentElement, 5138FrameworkElement fe; 5175FrameworkElement fe; 5218FrameworkElement fe; 5450child is FrameworkElement && ((FrameworkElement)child).TemplateChildIndex == childIndex || 5485FrameworkElement fe; 5510FrameworkElement fe; 5600if (dp == ItemsControl.ItemsPanelProperty || dp == FrameworkElement.ContextMenuProperty || dp == FrameworkElement.ToolTipProperty)
System\Windows\SystemResources.cs (3)
505_presentationFramework = typeof(FrameworkElement).Assembly; 1237FrameworkElement fe = source.RootVisual as FrameworkElement;
System\Windows\SystemThemeKey.cs (1)
40_presentationFrameworkAssembly = typeof(FrameworkElement).Assembly;
System\Windows\TemplateContent.cs (7)
24[XamlDeferLoad(typeof(TemplateContentLoader), typeof(FrameworkElement))] 435if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 463if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 488if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 666if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 732if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 823if (!typeof(FrameworkElement).IsAssignableFrom(parentType.UnderlyingType) &&
System\Windows\TemplateNameScope.cs (3)
51Debug.Assert(templatedParent == null || (templatedParent is FrameworkElement || templatedParent is FrameworkContentElement), 78if (!(scopedElement is FrameworkContentElement || scopedElement is FrameworkElement)) 85FrameworkElement fe;
System\Windows\ThemeManager.cs (1)
288window.SetResourceReference(FrameworkElement.StyleProperty, typeof(Window));
System\Windows\TreeWalkHelper.cs (20)
35FrameworkElement fe, 181FrameworkElement fe, 232FrameworkElement fe, 450FrameworkElement fe, 547FrameworkElement fe = fo.FE; 580(fe.HasImplicitStyleFromResources || fe.Style == FrameworkElement.StyleProperty.GetMetadata(fe.DependencyObjectType).DefaultValue)) 608fe.RaiseClrEvent(FrameworkElement.ResourcesChangedKey, new ResourcesChangedEventArgs(info)); 664fce.RaiseClrEvent(FrameworkElement.ResourcesChangedKey, new ResourcesChangedEventArgs(info)); 757FrameworkElement fe = fo.FE; 761(fe.HasImplicitStyleFromResources || fe.Style == FrameworkElement.StyleProperty.GetMetadata(fe.DependencyObjectType).DefaultValue)) 799FrameworkElement templatedParent = (FrameworkElement)fe.TemplatedParent; 867FrameworkElement templatedParent = (FrameworkElement)fce.TemplatedParent; 906FrameworkElement fe, 967DependencyObject parent = FrameworkElement.GetFrameworkParent(d); 1010if (visitedViaVisualTree && d is FrameworkElement) 1174FrameworkElement fe, 1269internal static bool HasChildren(FrameworkElement fe, FrameworkContentElement fce) 1292return (dp == FrameworkElement.FlowDirectionProperty);
System\Windows\TriggerAction.cs (2)
42internal abstract void Invoke( FrameworkElement fe, 57internal abstract void Invoke( FrameworkElement fe );
System\Windows\TriggerBase.cs (1)
176if (dp == FrameworkElement.StyleProperty)
System\Windows\TriggerCollection.cs (3)
30internal TriggerCollection(FrameworkElement owner) : base() 117internal FrameworkElement Owner 204private FrameworkElement _owner;
System\Windows\VisualStateChangedEventArgs.cs (6)
15internal VisualStateChangedEventArgs(VisualState oldState, VisualState newState, FrameworkElement control, FrameworkElement stateGroupsRoot) 48public FrameworkElement Control 59public FrameworkElement StateGroupsRoot 69private FrameworkElement _control; 70private FrameworkElement _stateGroupsRoot;
System\Windows\VisualStateGroup.cs (5)
97internal void StartNewThenStopOld(FrameworkElement element, params ReadOnlySpan<Storyboard> newStoryboards) 133internal void RaiseCurrentStateChanging(FrameworkElement stateGroupsRoot, VisualState oldState, VisualState newState, FrameworkElement control) 141internal void RaiseCurrentStateChanged(FrameworkElement stateGroupsRoot, VisualState oldState, VisualState newState, FrameworkElement control)
System\Windows\VisualStateManager.cs (24)
27private static bool GoToStateCommon(FrameworkElement control, FrameworkElement stateGroupsRoot, string stateName, bool useTransitions) 69public static bool GoToState(FrameworkElement control, string stateName, bool useTransitions) 73FrameworkElement stateGroupsRoot = control.StateGroupsRoot; 85public static bool GoToElementState(FrameworkElement stateGroupsRoot, string stateName, bool useTransitions) 95protected virtual bool GoToStateCore(FrameworkElement control, FrameworkElement stateGroupsRoot, string stateName, VisualStateGroup group, VisualState state, bool useTransitions) 109public static VisualStateManager GetCustomVisualStateManager(FrameworkElement obj) 116public static void SetCustomVisualStateManager(FrameworkElement obj, VisualStateManager value) 140internal static Collection<VisualStateGroup> GetVisualStateGroupsInternal(FrameworkElement obj) 156public static IList GetVisualStateGroups(FrameworkElement obj) 186private static bool GoToStateInternal(FrameworkElement control, FrameworkElement stateGroupsRoot, VisualStateGroup group, VisualState state, bool useTransitions) 298private static bool ShouldRunStateStoryboard(FrameworkElement control, FrameworkElement stateGroupsRoot, VisualState state, VisualStateGroup group) 327protected void RaiseCurrentStateChanging(VisualStateGroup stateGroup, VisualState oldState, VisualState newState, FrameworkElement control, FrameworkElement stateGroupsRoot) 340protected void RaiseCurrentStateChanged(VisualStateGroup stateGroup, VisualState oldState, VisualState newState, FrameworkElement control, FrameworkElement stateGroupsRoot) 357private static Storyboard GenerateDynamicTransitionAnimations(FrameworkElement root, VisualStateGroup group, VisualState newState, VisualTransition transition) 421private static Timeline GenerateFromAnimation(FrameworkElement root, Timeline timeline, IEasingFunction easingFunction) 448private static Timeline GenerateToAnimation(FrameworkElement root, Timeline timeline, IEasingFunction easingFunction, bool isEntering) 487private static void CopyStoryboardTargetProperties(FrameworkElement root, Timeline source, Timeline destination) 528internal static VisualTransition GetTransition(FrameworkElement element, VisualStateGroup group, VisualState from, VisualState to)
System\Windows\Window.cs (2)
4659SetValue(FrameworkElement.WidthProperty, ptLogicalUnits.X); 4660SetValue(FrameworkElement.HeightProperty, ptLogicalUnits.Y);
PresentationUI (5)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (3)
937private FrameworkElement InfoBar 944_infoBar = GetTemplateChild(_infoBarName) as FrameworkElement; 2226private FrameworkElement _infoBar;
MS\Internal\Documents\RightsManagementResourceHelper.cs (1)
155private static FrameworkElement _frameworkElement; // Used to search resources.
MS\Internal\Documents\SignatureResourceHelper.cs (1)
339private static FrameworkElement _frameworkElement;
ReachFramework (8)
Serialization\Manager\ReachSerializationUtils.cs (4)
803else if (element is FrameworkElement) 851else if (element is FrameworkElement) 876else if (element is FrameworkElement) 887if (element is FrameworkElement fe)
Serialization\VisualTreeFlattener.cs (4)
488FrameworkElement fe = visual as FrameworkElement; 766FrameworkElement 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)
101FrameworkElement titleHost = OwningRibbon.TitleHost as FrameworkElement; 209FrameworkElement helpPaneHostFE = helpPaneHost as FrameworkElement;
Microsoft\Windows\Automation\Peers\RibbonControlAutomationPeer.cs (1)
26public RibbonControlAutomationPeer(FrameworkElement owner)
Microsoft\Windows\Automation\Peers\RibbonGroupHeaderAutomationPeer.cs (1)
27public RibbonGroupHeaderAutomationPeer(FrameworkElement owner)
Microsoft\Windows\Automation\Peers\RibbonTitleAutomationPeer.cs (1)
22public RibbonTitleAutomationPeer(FrameworkElement owner)
Microsoft\Windows\Controls\Generated\TreeHelper.cs (3)
54public static T FindTemplatedAncestor<T>(FrameworkElement element) where T : FrameworkElement 58element = element.TemplatedParent as FrameworkElement;
Microsoft\Windows\Controls\KeyTipService.cs (8)
175FrameworkElement fe = element as FrameworkElement; 194FrameworkElement fe = element as FrameworkElement; 376FrameworkElement fe = element as FrameworkElement; 907if (DependencyPropertyHelper.GetValueSource(element, FrameworkElement.LanguageProperty).BaseValueSource != BaseValueSource.Default) 909XmlLanguage language = (XmlLanguage)element.GetValue(FrameworkElement.LanguageProperty);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (5)
127private static double GetStarChildMinWidth(FrameworkElement child, ref double maxStarColumnWidth) 232columnWidth = GetStarChildMinWidth(child as FrameworkElement, ref maxStarColumnWidth); 248columnWidth = Math.Max(columnWidth, GetStarChildMinWidth(child as FrameworkElement, ref maxStarColumnWidth)); 435FrameworkElement itemsPresenter = TemplatedParent as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (2)
286FrameworkElement itemsPresenter = TemplatedParent as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (2)
306FrameworkElement itemsPresenter = TemplatedParent as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (4)
92FrameworkElement qat = Ribbon.QatTopHost as FrameworkElement; 93FrameworkElement titleHost = Ribbon.TitleHost as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (4)
119EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpeningThunk), true); 120EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuClosingEvent, new ContextMenuEventHandler(OnContextMenuClosingThunk), true); 1597FrameworkElement popupPlacementTarget = _itemsPresenterPopup.Parent as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (5)
31[TemplatePart(Name = RibbonApplicationMenu.SubmenuTemplateName, Type = typeof(FrameworkElement))] 301SubmenuPlaceholder = this.GetTemplateChild(SubmenuTemplateName) as FrameworkElement; 318typeof(FrameworkElement), 327internal FrameworkElement SubmenuPlaceholder 329get { return (FrameworkElement)GetValue(SubmenuPlaceholderProperty); }
Microsoft\Windows\Controls\Ribbon\RibbonContentPresenter.cs (2)
28private FrameworkElement _templateRoot; 112_templateRoot = VisualTreeHelper.GetChild(this, 0) as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (2)
208private FrameworkElement VisualChild 212return VisualChildrenCount == 0 ? null : (GetVisualChild(0) as FrameworkElement);
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (1)
176private bool HasTabs(FrameworkElement container)
Microsoft\Windows\Controls\Ribbon\RibbonDropDownHelper.cs (9)
26public static void OnPopupResizeStarted(FrameworkElement itemsPresenter) 37public static bool ResizePopup(FrameworkElement itemsPresenter, 129private static bool ResizePopupActual(FrameworkElement itemsPresenter, Size minDropDownSize, bool canUserResizeHorizontally, bool canUserResizeVertically, double newWidth, double newHeight) 158public static Rect GetScreenBounds(FrameworkElement targetElement, Popup popup) 195public static void ClearLocalValues(FrameworkElement itemsPresenter, Popup popup) 199itemsPresenter.ClearValue(FrameworkElement.HeightProperty); 200itemsPresenter.ClearValue(FrameworkElement.WidthProperty); 218FrameworkElement popupChild = popup.Child as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (7)
78EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpeningThunk), true); 79EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuClosingEvent, new ContextMenuEventHandler(OnContextMenuClosingThunk), true); 123_collapsedDropDownButton = this.GetTemplateChild(CollapsedDropDownButtonTemplatePartName) as FrameworkElement; 477private FrameworkElement VisualChild 481return VisualChildrenCount == 0 ? null : (GetVisualChild(0) as FrameworkElement); 691internal FrameworkElement CollapsedDropDownButton 1371private FrameworkElement _collapsedDropDownButton; // The SplitButton that replaces RibbonGroup's normal appearance when Collapsed
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (44)
91d.CoerceValue(FrameworkElement.ToolTipProperty); 100public static bool GetIsContentTooltip(FrameworkElement visualChild, object content) 123public static void SetContentAsToolTip(FrameworkElement element, FrameworkElement visualChild, object content, bool value) 542internal static bool NavigateToFirstItem(ItemsControl itemsControl, Action<int> bringIntoViewCallback, Func<FrameworkElement, bool> additionalCheck) 544FrameworkElement firstItem = FindContainer(itemsControl, 0, 1, bringIntoViewCallback, additionalCheck); 553internal static bool NavigateToLastItem(ItemsControl itemsControl, Action<int> bringIntoViewCallback, Func<FrameworkElement, bool> additionalCheck) 555FrameworkElement lastItem = FindContainer(itemsControl, itemsControl.Items.Count - 1, -1, bringIntoViewCallback, additionalCheck); 564internal static FrameworkElement FindContainer(ItemsControl itemsControl, int startIndex, int direction, Action<int> bringIntoViewCallback, Func<FrameworkElement, bool> additionalCheck) 571FrameworkElement container = itemsControl.ItemContainerGenerator.ContainerFromIndex(startIndex) as FrameworkElement; 577container = itemsControl.ItemContainerGenerator.ContainerFromIndex(startIndex) as FrameworkElement; 594FrameworkElement nextElement = RibbonHelper.FindContainer(parent, itemIndex, 1, bringIntoViewCallback, null); 611FrameworkElement nextElement = RibbonHelper.FindContainer(parent, startIndex + 1, 1, bringIntoViewCallback, IsMenuItemFocusable); 640FrameworkElement previousElement = RibbonHelper.FindContainer(parent, startIndex - 1, -1, bringIntoViewCallback, IsMenuItemFocusable); 678FrameworkElement focusObject = null; 710private static bool IsContainerFocusable(FrameworkElement container) 715private static bool IsContainerVisible(FrameworkElement container) 720private static bool IsMenuItemFocusable(FrameworkElement container) 1501FrameworkElement fe = d as FrameworkElement; 1653new PropertyAndTransferMode () { Property = FrameworkElement.DataContextProperty, Mode = TransferMode.AlwaysTransfer }, 1654new PropertyAndTransferMode () { Property = FrameworkElement.BindingGroupProperty, Mode = TransferMode.AlwaysTransfer }, 1875FrameworkElement feOriginal = original as FrameworkElement; 1878FrameworkElement feClone = CreateInstance(feOriginal, allowTransformations); 1887TransferProperties(feOriginal.TemplatedParent as FrameworkElement, feClone, /*cloningForTemplatePart*/ true); 1890FrameworkElement feWrapper = WrapClone(feClone, allowTransformations); 1917private static FrameworkElement CreateInstance(FrameworkElement original, bool allowTransformations) 1971return (FrameworkElement)Activator.CreateInstance(original.GetType()); 1979private static FrameworkElement WrapClone(FrameworkElement clone, bool allowTransformations) 2025private static void TransferProperties(FrameworkElement original, FrameworkElement clone, bool cloningForTemplatePart) 2050TransferProperty(original, clone, FrameworkElement.StyleProperty, TransferMode.AlwaysTransfer); 2238private static void TransferProperties(FrameworkElement original, FrameworkElement clone, PropertyAndTransferMode[] properties) 2555XmlLanguage language = (XmlLanguage)element.GetValue(FrameworkElement.LanguageProperty); 2831public static void OpenParentRibbonGroupDropDownSync(FrameworkElement fe, bool templateApplied) 2863FrameworkElement elementFE = element as FrameworkElement; 2877public static void SetDropDownHeight(FrameworkElement itemsPresenter, bool hasGallery, double dropDownHeight)
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (10)
81EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpeningThunk), true); 82EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuClosingEvent, new ContextMenuEventHandler(OnContextMenuClosingThunk), true); 889FrameworkElement selectionItem = e.OriginalSource as FrameworkElement; 926internal FrameworkElement RibbonCurrentSelection 1330private FrameworkElement _itemsPresenter; 1333private FrameworkElement _ribbonCurrentSelection; // could be a RibbonMenuItem or RibbonGallery 1399FrameworkElement source = e.OriginalSource as FrameworkElement; 1527FrameworkElement ribbonCurrentSelection = RibbonCurrentSelection;
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (14)
72EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpeningThunk), true); 73EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuClosingEvent, new ContextMenuEventHandler(OnContextMenuClosingThunk), true); 987FrameworkElement ribbonCurrentSelection = RibbonCurrentSelection; 1238private static bool IsContainerFocusable(FrameworkElement container) 1283menuItem._itemsPresenter.ClearValue(FrameworkElement.HeightProperty); 1284menuItem._itemsPresenter.ClearValue(FrameworkElement.WidthProperty); 1344FrameworkElement popupChild; 1345if ((popupChild = _popup.Child as FrameworkElement) != null) 1422private FrameworkElement CurrentSibling 1428FrameworkElement sibling = null; 1503FrameworkElement selectionItem = e.OriginalSource as FrameworkElement; 1536private FrameworkElement RibbonCurrentSelection 1594private FrameworkElement _ribbonCurrentSelection; // can be a RibbonMenuItem or RibbonGallery
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (2)
116EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpeningThunk), true); 117EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuClosingEvent, new ContextMenuEventHandler(OnContextMenuClosingThunk), true);
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (1)
232splitButton.PartToggleButton.CoerceValue(FrameworkElement.ToolTipProperty);
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (1)
150splitMenuItem._partArrowButton.CoerceValue(FrameworkElement.ToolTipProperty);
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (2)
159private FrameworkElement VisualChild 163return VisualChildrenCount == 0 ? null : (GetVisualChild(0) as FrameworkElement);
Microsoft\Windows\Controls\Ribbon\RibbonTabHeaderItemsControl.cs (2)
159FrameworkElement element = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (4)
366FrameworkElement referenceFE = null; 377referenceFE = rootElement as FrameworkElement; 409FrameworkElement placementTargetAsFE = placementTarget as FrameworkElement;
Microsoft\Windows\Controls\TextSearchInternal.cs (3)
625if (o is FrameworkElement) 778internal static string GetPrimaryText(FrameworkElement element) 859object 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)
301FrameworkElement childFrameworkElement = Child as FrameworkElement;
System\Windows\Integration\HostUtils.cs (11)
116FrameworkElement rootElement = ancestor as FrameworkElement; 206private static FrameworkElement GetFrameworkElementAncestor(DependencyObject descendant) 208FrameworkElement ancestor = null; 212FrameworkElement currentElement = current as FrameworkElement; 231FrameworkElement frameworkElementAncestor = GetFrameworkElementAncestor(host); 264internal static RenderTargetBitmap GetBitmapForFrameworkElement(FrameworkElement element) 419public static FrameworkElement GetCursorSource(DependencyObject currentObject, bool forceCursorMapped) 423FrameworkElement currentElement = currentObject as FrameworkElement;
System\Windows\Integration\WindowsFormsHost.cs (3)
396SW.FrameworkElement frameworkElement = dependencyObject as SW.FrameworkElement; 801FrameworkElement cursorSource = HostUtils.GetCursorSource(_host, forceCursorMapped);