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)
895private 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)
6891target = new FrameworkElement 6929target = 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)
117public FrameworkElement ParentElement 119get { return (FrameworkElement)GetValue(ParentElementProperty); } 124DependencyProperty.Register("ParentElement", typeof(FrameworkElement), typeof(PreviewPane), new PropertyMetadata(null)); 129ParentElement = Parent as FrameworkElement; 136var previewElement = CreatePreviewElement(previewItems); 156private FrameworkElement CreatePreviewElement(IReadOnlyList<object> previewItems) 173var previewElement = GetPreviewElement(previewItem); 218return (FrameworkElement)preview; 224private FrameworkElement GetPreviewElement(object previewItem) 237var previewElement = viewer.VisualElement; 246if (previewItem is FrameworkElement frameworkElement) 267private static FrameworkElement GetPreviewForString(string previewContent) 282private void AdjustWidthAndHeight(FrameworkElement previewElement)
UnusedReferences\Dialog\UnusedReferencesTableProvider.ColumnDefinitions.cs (7)
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)
638Public 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)
240or 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 180private 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; 1055FrameworkElement virtualizingElement, 1078FrameworkElement virtualizingElement, 1157FrameworkElement virtualizingElement, 1159FrameworkElement headerElement) 1262internal static T FindTemplatedDescendant<T>(FrameworkElement searchStart, FrameworkElement templatedParent) where T : FrameworkElement 1264FrameworkElement descendant = null; 1270descendant = 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)
463uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 629uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 759uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\FigureParaClient.cs (1)
200_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)
189_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)
392FlowDirection paragraphFlowDirection = (FlowDirection)paragraphElement.GetValue(FrameworkElement.FlowDirectionProperty); 418if (inlineObject.UIElementIsland.Root is FrameworkElement) 420DependencyObject parent = ((FrameworkElement)inlineObject.UIElementIsland.Root).Parent; 421FlowDirection 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)
2174((FrameworkElement)args[0]).ShouldLookupImplicitStyles = true; 2176TreeWalkHelper.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; 374object 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); 529FrameworkElement 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)
219FrameworkElement templateParent = this.TemplatedParent as FrameworkElement;
System\Windows\Controls\ComboBox.cs (2)
236cb._clonedElement?.CoerceValue(FrameworkElement.FlowDirectionProperty); 1588return (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); 5836FrameworkElement focusContainer; 5837FrameworkElement startingElement = Keyboard.FocusedElement as FrameworkElement; 6132FrameworkElement targetElement; 6135FrameworkElement startingElement = null; 6138startingElement = Keyboard.FocusedElement as FrameworkElement; 6510private static bool CalculateCellDistance(FrameworkElement cell, DataGridRow rowOwner, Panel itemsHost, Rect itemsHostBounds, bool isMouseInCorner, out double distance) 6880FrameworkElement target; 6918FrameworkElement 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) 388FrameworkElement newContent = column.BuildVisualTree(IsEditing, RowDataItem, this); 393FrameworkElement oldContent = Content as FrameworkElement; 399oldContent.SetValue(FrameworkElement.DataContextProperty, BindingExpressionBase.DisconnectedItem); 580column?.BeginEdit(Content as FrameworkElement, e); 591column?.CancelEdit(Content as FrameworkElement); 606validationPassed = column.CommitEdit(Content as FrameworkElement); 622FrameworkElement currentEditingElement = EditingElement; 628internal FrameworkElement EditingElement 633return 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)
2432FrameworkElement 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) 903protected 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)
816var detailsElement = row.DetailsPresenter?.DetailsElement; 1299public 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)
1311FrameworkElement grid = _documentScrollInfo as FrameworkElement; 2013FrameworkElement fe = _documentScrollInfo as FrameworkElement;
System\Windows\Controls\FlowDocumentReader.cs (12)
781((FrameworkElement)CurrentViewer).Focus(); 902FrameworkElement feViewer; 935feViewer = (FrameworkElement)viewer; 985FrameworkElement fe = focusedElement as FrameworkElement; 1067Invariant.Assert(viewer != null && viewer is FrameworkElement); 1068FrameworkElement feViewer = (FrameworkElement)viewer; 1090Invariant.Assert(viewer != null && viewer is FrameworkElement); 1091FrameworkElement feViewer = (FrameworkElement)viewer; 1111private void CreateTwoWayBinding(FrameworkElement fe, DependencyProperty dp, string propertyPath)
System\Windows\Controls\FlowDocumentScrollViewer.cs (3)
806FrameworkElement.AddIntermediateElementsToRoute( 823continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(LogicalTreeHelper.GetParent(document), LogicalTreeHelper.GetParent(branchNode)); 1293private void CreateTwoWayBinding(FrameworkElement fe, DependencyProperty dp, string propertyPath)
System\Windows\Controls\Frame.cs (3)
643FrameworkElement journalEntryUIElem = e.Parameter as FrameworkElement; 1283FrameworkElement 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)
630FrameworkElement gripperContainer = _headerGripper.Parent as FrameworkElement;
System\Windows\Controls\GridViewHeaderRowPresenter.cs (5)
236/// Override of <seealso cref="FrameworkElement.MeasureOverride" />. 1255FrameworkElement fe = presenter.TemplatedParent as FrameworkElement; 1265fe = fe.TemplatedParent as FrameworkElement; 1574private 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; 281FrameworkElement headerElement = HeaderElement; 422private FrameworkElement ExpanderHeader 428return _expander.GetTemplateChild(ExpanderHeaderPartName) as FrameworkElement; 435private FrameworkElement HeaderElement 439FrameworkElement headerElement = null; 461FrameworkElement _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) 1486internal FrameworkElement ModelParentFE 1488get { return ModelParent as FrameworkElement; }
System\Windows\Controls\ItemContainerGenerator.cs (5)
109label = (string)d.GetValue(FrameworkElement.NameProperty); 1054string name = (String)peer.GetValue(FrameworkElement.NameProperty); 2272DependencyProperty dp = FrameworkElement.DataContextProperty; 2277container.SetValue(FrameworkElement.DataContextProperty, item); 2332DependencyProperty 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))] 1322Invariant.Assert(parent is FrameworkElement, SR.ItemsControl_ParentNotFrameworkElement); 1330((FrameworkElement)parent).TemplateChild = null; 1362Helper.HasUnmodifiedDefaultOrInheritedValue(container, FrameworkElement.BindingGroupProperty)) 1368container.SetValue(FrameworkElement.BindingGroupProperty, containerBindingGroup); 1792FrameworkElement element = info.Container as FrameworkElement; 1836while (startingElement != null && !(startingElement is FrameworkElement)) 1843return NavigateByLine(FocusedInfo, startingElement as FrameworkElement, direction, itemNavigateArgs); 1847FrameworkElement startingElement, 1850out FrameworkElement container) 1888FrameworkElement startingElement, 1911FrameworkElement container; 1922FrameworkElement startingElement, 1925out FrameworkElement container) 1939FrameworkElement nextElement = null; 1980treeViewNavigation) as FrameworkElement; 1985FrameworkElement viewport = GetViewportElement(); 1999TryGetTreeViewItemHeader(nextElement) as FrameworkElement, 2109treeViewNavigation) as FrameworkElement; 2147FrameworkElement startingElement, 2150out FrameworkElement container) 2183return NavigateByPage(FocusedInfo, Keyboard.FocusedElement as FrameworkElement, direction, itemNavigateArgs); 2196FrameworkElement startingElement, 2219FrameworkElement container; 2230FrameworkElement startingElement, 2233out FrameworkElement container) 2250FrameworkElement firstElement; 2328FrameworkElement container; 2332internal bool NavigateToStartInternal(ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container) 2366FrameworkElement firstElement; 2367FrameworkElement hopefulFirstElement = FindEndFocusableLeafContainer(ItemsHost, false /*last*/); 2394FrameworkElement container; 2398internal bool NavigateToEndInternal(ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container) 2432FrameworkElement lastElement; 2433FrameworkElement hopefulLastElement = FindEndFocusableLeafContainer(ItemsHost, true /*last*/); 2458private FrameworkElement FindEndFocusableLeafContainer(Panel itemsHost, bool last) 2472FrameworkElement fe = children[i] as FrameworkElement; 2476FrameworkElement result = null; 2554FrameworkElement container; 2561private object FindFocusable(int startIndex, int direction, out int foundIndex, out FrameworkElement foundContainer) 2570FrameworkElement container = ItemContainerGenerator.ContainerFromIndex(startIndex) as FrameworkElement; 2589private void AdjustOffsetToAlignWithEdge(FrameworkElement element, FocusNavigationDirection direction) 2596FrameworkElement viewportElement = GetViewportElement(); 2597element = TryGetTreeViewItemHeader(element) as FrameworkElement; 2632private void MakeVisible(int index, FocusNavigationDirection direction, bool alwaysAtTopOfViewport, out FrameworkElement container) 2638container = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement; 2648container = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement; 2658private void MakeVisible(ItemInfo info, FocusNavigationDirection direction, out FrameworkElement container) 2674internal void MakeVisible(FrameworkElement container, FocusNavigationDirection direction, bool alwaysAtTopOfViewport) 2681FrameworkElement viewportElement = GetViewportElement(); 2703FrameworkElement firstElement; 2732private bool NavigateToFirstItemOnCurrentPage(object startingItem, FocusNavigationDirection direction, ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container) 2734object firstItem = GetFirstItemOnCurrentPage(ItemContainerGenerator.ContainerFromItem(startingItem) as FrameworkElement, 2748private object GetFirstItemOnCurrentPage(FrameworkElement startingElement, 2750out FrameworkElement firstElement) 2799FrameworkElement currentElement = startingElement; 2814FrameworkElement viewportElement = GetViewportElement(); 2820viewportElement) as FrameworkElement; 2856internal FrameworkElement GetViewportElement() 2863FrameworkElement viewPort = ScrollHost; 2889FrameworkElement container = ItemContainerGenerator.ContainerFromItem(item) as FrameworkElement; 2899private bool IsOnCurrentPage(FrameworkElement element, FocusNavigationDirection axis) 2911private bool IsOnCurrentPage(FrameworkElement viewPort, FrameworkElement element, FocusNavigationDirection axis, bool fullyVisible) 2916internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort, 2925internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort, 2952internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort, 3043internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort, 3328FrameworkElement relativeTo = ScrollHost != null ? (FrameworkElement)ScrollHost : ItemsHost; 3377private bool IsRTL(FrameworkElement element) 3383private static ItemsControl GetEncapsulatingItemsControl(FrameworkElement element) 3392element = VisualTreeHelper.GetParent(element) as FrameworkElement; 3397private static object GetEncapsulatingItem(FrameworkElement element, out FrameworkElement container) 3403private static object GetEncapsulatingItem(FrameworkElement element, out FrameworkElement container, out ItemsControl itemsControl) 3421element = VisualTreeHelper.GetParent(element) as FrameworkElement; 3456container.ReadLocalValue(FrameworkElement.StyleProperty) != DependencyProperty.UnsetValue) 3487container.ClearValue(FrameworkElement.StyleProperty); 3497container.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)
2438FrameworkElement parent = LogicalParent as FrameworkElement; 2463private static bool IsMouseReallyOver(FrameworkElement elem)
System\Windows\Controls\Page.cs (5)
664FrameworkElement feParent = visualParent as FrameworkElement; 676feParent = parent as FrameworkElement; 757FrameworkElement 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 928_passwordBoxContentHost = GetTemplateChild(ContentHostTemplateName) as FrameworkElement; 978FrameworkElement element = _renderScope; 985element = element.Parent as FrameworkElement; 1271private FrameworkElement _passwordBoxContentHost;
System\Windows\Controls\PopupControlService.cs (1)
1178return 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; 945FrameworkElement titleCell = (this._dayTitleTemplate != null) ? (FrameworkElement)this._dayTitleTemplate.LoadContent() : new ContentControl(); 1013FrameworkElement daytitle = _monthView.Children[childIndex] as FrameworkElement;
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (1)
201/// 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; 728internal FrameworkElement TextEditorRenderScope 898FrameworkElement fe; 908fe = child as FrameworkElement; 944FrameworkElement fe; 957fe = child as FrameworkElement; 1130FrameworkElement fe = child as FrameworkElement; 1630private 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); 1421private void SetSelectedHelper(object item, FrameworkElement UI, bool selected) 1886((Selector)sender).NotifyIsSelectedChanged(e.OriginalSource as FrameworkElement, true, e); 1891((Selector)sender).NotifyIsSelectedChanged(e.OriginalSource as FrameworkElement, false, e); 1902internal void NotifyIsSelectedChanged(FrameworkElement container, bool selected, RoutedEventArgs e)
System\Windows\Controls\Primitives\TextBoxBase.cs (7)
34[TemplatePart(Name = "PART_ContentHost", Type = typeof(FrameworkElement))] 1337internal abstract FrameworkElement CreateRenderScope(); 1735internal FrameworkElement RenderScope 1893FrameworkElement renderScope = CreateRenderScope(); 1899_textBoxContentHost = GetTemplateChild(ContentHostTemplateName) as FrameworkElement; 2164private FrameworkElement _textBoxContentHost; 2167private 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" /> 690private 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))] 260_glow.BeginAnimation(FrameworkElement.MarginProperty, animation); 264_glow.BeginAnimation(FrameworkElement.MarginProperty, null); 344_track = GetTemplateChild(TrackTemplateName) as FrameworkElement; 345_indicator = GetTemplateChild(IndicatorTemplateName) as FrameworkElement; 346_glow = GetTemplateChild(GlowingRectTemplateName) as FrameworkElement; 370private FrameworkElement _track; 371private FrameworkElement _indicator; 372private 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; 2719hsb.SetValue(FrameworkElement.CursorProperty, Cursors.Arrow); 2729vsb.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))] 975FrameworkElement rangeElement = this.SelectionRangeElement as FrameworkElement; 1035FrameworkElement rangeElement = this.SelectedRangeElement as FrameworkElement; 1117internal FrameworkElement SelectionRangeElement 1129internal FrameworkElement SelectedRangeElement 1332SelectionRangeElement = GetTemplateChild(SelectionRangeElementName) as FrameworkElement; 1333SelectedRangeElement = GetTemplateChild(SelectedRangeElementName) as FrameworkElement; 1435private FrameworkElement _selectionRangeElement; 1436private FrameworkElement _selectedRangeElement;
System\Windows\Controls\SoundPlayerAction.cs (2)
113internal sealed override void Invoke(FrameworkElement el, 125internal sealed override void Invoke(FrameworkElement el)
System\Windows\Controls\StickyNote.cs (8)
779FrameworkElement innerControl = stickyNoteControl.Content.InnerControl; 795FrameworkElement innerControl = stickyNoteControl.Content.InnerControl; 958FrameworkElement parent = VisualTreeHelper.GetParent(Content.InnerControl) as FrameworkElement; 1350parent = FrameworkElement.GetFrameworkParent(parent); 1418FrameworkElement innerControl = Content.InnerControl; 1468FrameworkElement innerControl = (FrameworkElement)Content.InnerControl;
System\Windows\Controls\TabControl.cs (2)
546FrameworkElement 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; 741internal static string GetPrimaryText(FrameworkElement element) 801object o = element.GetValue(FrameworkElement.LanguageProperty);
System\Windows\Controls\ToolBar.cs (2)
458FrameworkElement fe = element as FrameworkElement;
System\Windows\Controls\TreeView.cs (3)
612FrameworkElement container; 619FrameworkElement container; 704FrameworkElement 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)); 365FrameworkElement headerElement = HeaderElement; 677FrameworkElement startingContainer = this.HeaderElement; 763FrameworkElement header = HeaderElement; 779FrameworkElement header = HeaderElement; 784internal FrameworkElement HeaderElement 788return GetTemplateChild(HeaderPartName) as FrameworkElement; 794internal FrameworkElement TryGetHeaderElement() 797FrameworkElement header = HeaderElement; 821FrameworkElement parent = VisualTreeHelper.GetParent(toggleButton) as FrameworkElement; 829header = VisualTreeHelper.GetChild(parent, index+1) as FrameworkElement;
System\Windows\Controls\UIElementCollection.cs (3)
33public UIElementCollection(UIElement visualParent, FrameworkElement logicalParent) 529internal FrameworkElement LogicalParent 536private 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); 330if (!HasValidationGroup(targetElement as FrameworkElement)) 343private 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; 1707FrameworkElement childFE = child as FrameworkElement; 1971FrameworkElement.AddHandler(element, CleanUpVirtualizedItemEvent, handler); 1981FrameworkElement.RemoveHandler(element, CleanUpVirtualizedItemEvent, handler); 5262FrameworkElement container = virtualizationInfoProvider as FrameworkElement; 6381FrameworkElement container = virtualizationInfoProvider as FrameworkElement; 6440FrameworkElement fe = virtualizingChild as FrameworkElement; 6577private bool IsHeaderBeforeItems(bool isHorizontal, FrameworkElement container, ref Thickness inset) 7089bool isHeaderBeforeItems = IsHeaderBeforeItems(isHorizontal, virtualizingChild as FrameworkElement, ref inset); 11066bool isHeaderBeforeItems = IsHeaderBeforeItems(isHorizontal, virtualizingElement as FrameworkElement, ref inset); 11599private FrameworkElement FirstContainerInViewport 11786internal FrameworkElement _firstContainerInViewport; 12149sti = new ScrollTracingInfo(tracer, _nullInfo.Generation, 0, itemsOwner as FrameworkElement, null, null, 0); 12171sti = new ScrollTracingInfo(tracer, _nullInfo.Generation, parentInfo.Depth + 1, itemsOwner as FrameworkElement, parent, parentItem, itemIndex); 12648internal FrameworkElement Owner { get; private set; } 12653internal ScrollTracingInfo(ScrollTracer tracer, int generation, int depth, FrameworkElement owner, VirtualizingStackPanel parent, object parentItem, int itemIndex) 12850internal 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)
218if (dp == FrameworkElement.DataContextProperty && d == ContextElement) 226else if (dp == FrameworkElement.LanguageProperty && UsesLanguage && d == TargetElement) 454BaseValueSourceInternal valueSource = d.GetValueSource(FrameworkElement.DataContextProperty, null, out hasModifiers); 701if (TargetProperty == FrameworkElement.DataContextProperty || 706cvs.PropertyForInheritanceContext == FrameworkElement.DataContextProperty) 709contextElement = FrameworkElement.GetFrameworkParent(contextElement); 755source = contextElement.GetValue(FrameworkElement.DataContextProperty); 922object item = contextElement.GetValue(FrameworkElement.DataContextProperty); 1215newSources[offset++] = new WeakDependencySource(_ctxElement, FrameworkElement.DataContextProperty); 1228newSources[offset++] = new WeakDependencySource(TargetElementReference, FrameworkElement.LanguageProperty); 2245item = contextElement.GetValue(FrameworkElement.DataContextProperty); 2393object newItem = contextElement.GetValue(FrameworkElement.DataContextProperty); 2626if (dp == FrameworkElement.DataContextProperty) 2645if (dp == FrameworkElement.LanguageProperty && UsesLanguage && d == TargetElement) 2687ancestor = FrameworkElement.GetFrameworkParent(ancestor)) 2691b = 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(); 1721bg = (BindingGroup)contextElement.GetValue(FrameworkElement.BindingGroupProperty); 1729DependencyProperty dataContextDP = FrameworkElement.DataContextProperty; 1747DependencyProperty bindingGroupDP = FrameworkElement.BindingGroupProperty;
System\Windows\Data\BindingGroup.cs (5)
587if (property == FrameworkElement.BindingGroupProperty && 809object dataContextItem = mentor.GetValue(FrameworkElement.DataContextProperty); 912FrameworkElement fe; 1010mentor.GetValue(FrameworkElement.DataContextProperty) == CollectionView.NewItemPlaceholder) 1289_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)
1389public void FindHyperlinkPaths(FrameworkElement elem)
System\Windows\Documents\Floater.cs (1)
81FrameworkElement.HorizontalAlignmentProperty.AddOwner(
System\Windows\Documents\FlowDocument.cs (4)
900else if (element is FrameworkElement) 903while (element is FrameworkElement) 910if (!(parentOfEmbeddedElement is FrameworkElement)) 918textPointer = TextContainerHelper.GetTextPointerForEmbeddedObject((FrameworkElement)element);
System\Windows\Documents\Hyperlink.cs (2)
889FrameworkElement 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) 609private FrameworkElement _uiScope; // parent of _scope, if _scope is a DocumentGrid.
System\Windows\Documents\Speller.cs (3)
305return property == FrameworkElement.LanguageProperty || 1499_textEditor.UiScope.GetValueSource(FrameworkElement.LanguageProperty, null, out hasModifiers) == BaseValueSourceInternal.Default) 1506language = (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) 298internal static ITextSelection GetTextSelection(FrameworkElement frameworkElement) 468XmlLanguage language = (XmlLanguage)((ITextPointer)range.Start).GetValue(FrameworkElement.LanguageProperty); 476range.ApplyPropertyValue(FrameworkElement.LanguageProperty, XmlLanguage.GetLanguage(inputCultureInfo.IetfLanguageTag)); 491FlowDirection currentFlowDirection = (FlowDirection)((ITextPointer)range.Start).GetValue(FrameworkElement.FlowDirectionProperty); 497range.ApplyPropertyValue(FrameworkElement.FlowDirectionProperty, inputFlowDirection); 833internal FrameworkElement UiScope 1265if ((source is FrameworkElement) && ((FrameworkElement)source).TemplatedParent == this.UiScope) 1317internal FrameworkElement _Scroller 1321FrameworkElement scroller = this.TextView == null ? null : (this.TextView.RenderScope as FrameworkElement); 1325scroller = FrameworkElement.GetFrameworkParent(scroller) as FrameworkElement; 1617TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1634FrameworkElement frameworkElement = sender as FrameworkElement; 1671TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1723TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1760TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1803TextEditor This = TextEditor._GetTextEditor((FrameworkElement)target); 1829TextEditor This = TextEditor._GetTextEditor((FrameworkElement)target); 1855TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1875TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1960private 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)
507FrameworkElement scroller = This._Scroller; 786if (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)
1221UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1222This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1237UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 1238This.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)
313FrameworkElement uiScope = UiScope; 314FrameworkElement owner = CaretElement.GetOwnerElement(uiScope); 495FlowDirection initialFlowDirection = (FlowDirection)caretPosition.GetValue(FrameworkElement.FlowDirectionProperty); 500initialFlowDirection == (FlowDirection)caretPosition.GetValue(FrameworkElement.FlowDirectionProperty) && 1236internal override void InsertEmbeddedUIElementVirtual(FrameworkElement embeddedElement) 1265formattingProperty != FrameworkElement.FlowDirectionProperty) // We dont want to apply flowdirection property to inlines when selection is empty. 1477inheritableProperties[i] != FrameworkElement.LanguageProperty && 1478inheritableProperties[i] != FrameworkElement.FlowDirectionProperty && 2249FlowDirection flowDirection = (FlowDirection)focusedTextSelection.Start.GetValue(FrameworkElement.FlowDirectionProperty); 2375FlowDirection uiScopeflowDirection = (FlowDirection)textEditor.UiScope.GetValue(FrameworkElement.FlowDirectionProperty); 2562if (element is FrameworkElement || element is FrameworkContentElement) 2565if (parent == null && element is FrameworkElement) 2567parent = ((FrameworkElement)element).TemplatedParent; 2647private FrameworkElement UiScope
System\Windows\Documents\TextStore.cs (15)
2081internal FrameworkElement UiScope 4714FrameworkElement target = o as FrameworkElement; 4766FrameworkElement uiScope = textStore.UiScope; 4911FrameworkElement uiScope = textStore.UiScope; 4955private static List<Tuple<WeakReference<FrameworkElement>,TraceList>> s_TargetToTraceListMap 4956= new List<Tuple<WeakReference<FrameworkElement>,TraceList>>(); 4959static TraceList TraceListForUiScope(FrameworkElement target) 4968WeakReference<FrameworkElement> wr = s_TargetToTraceListMap[i].Item1; 4969FrameworkElement fe; 4987private static TraceList AddToMap(FrameworkElement target) 5014new Tuple<WeakReference<FrameworkElement>,TraceList>( 5015new WeakReference<FrameworkElement>(target), 5039WeakReference<FrameworkElement> wr = s_TargetToTraceListMap[i].Item1; 5040FrameworkElement 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( 342object resource = FrameworkElement.FindResourceInternal(null /* fe */, this, resourceKey); 369object resource = FrameworkElement.FindResourceInternal(null /* fe */, this, resourceKey); 510object implicitValue = FrameworkElement.FindImplicitStyleResource(this, this.GetType(), out source); 550FrameworkElement parentFE; 551bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE); 614hasParent = FrameworkElement.GetFrameworkParent(parentFE, out parentFE, out parentFCE); 618hasParent = FrameworkElement.GetFrameworkParent(parentFCE, out parentFE, out parentFCE); 638FrameworkElement feTemplatedParent = (FrameworkElement)_templatedParent; 697if (dp == FrameworkElement.NameProperty && 714FrameworkElement feTemplatedParent = TemplatedParent as FrameworkElement; 813FrameworkElement.NameProperty.AddOwner( 832FrameworkElement.TagProperty.AddOwner( 853FrameworkElement.LanguageProperty.AddOwner( 877FrameworkElement.FocusVisualStyleProperty.AddOwner(typeof(FrameworkContentElement), 878new FrameworkPropertyMetadata(FrameworkElement.DefaultFocusVisualStyle)); 893FrameworkElement.CursorProperty.AddOwner( 925FrameworkElement.ForceCursorProperty.AddOwner( 1054RoutedEvent = FrameworkElement.RequestBringIntoViewEvent 1109FrameworkElement.DataContextProperty.AddOwner( 1128add { EventHandlersStoreAdd(FrameworkElement.DataContextChangedKey, value); } 1129remove { EventHandlersStoreRemove(FrameworkElement.DataContextChangedKey, value); } 1148((FrameworkContentElement) d).RaiseDependencyPropertyChanged(FrameworkElement.DataContextChangedKey, e); 1186FrameworkElement.BindingGroupProperty.AddOwner( 1331FrameworkElement.AddIntermediateElementsToRoute(this, route, args, LogicalTreeHelper.GetParent(branchNode)); 1365FrameworkElement.AddStyleHandlersToEventRoute(null, this, route, args); 1396continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(this, LogicalTreeHelper.GetParent(branchNode)); 1576add { EventHandlersStoreAdd(FrameworkElement.InitializedKey, value); } 1577remove { EventHandlersStoreRemove(FrameworkElement.InitializedKey, value); } 1599RaiseInitialized(FrameworkElement.InitializedKey, e); 1641= FrameworkElement.LoadedPendingProperty.AddOwner(typeof(FrameworkContentElement)); 1648= FrameworkElement.UnloadedPendingProperty.AddOwner(typeof(FrameworkContentElement)); 1696public static readonly RoutedEvent LoadedEvent = FrameworkElement.LoadedEvent.AddOwner( typeof(FrameworkContentElement)); 1706AddHandler(FrameworkElement.LoadedEvent, value, false); 1710RemoveHandler(FrameworkElement.LoadedEvent, value); 1727public static readonly RoutedEvent UnloadedEvent = FrameworkElement.UnloadedEvent.AddOwner( typeof(FrameworkContentElement)); 1736AddHandler(FrameworkElement.UnloadedEvent, value, false); 1740RemoveHandler(FrameworkElement.UnloadedEvent, value); 2163private 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; 822object resource = FrameworkElement.FindResourceInternal(this, null /* fce */, resourceKey); 850object resource = FrameworkElement.FindResourceInternal(this, null /* fce */, resourceKey); 864internal static object FindImplicitStyleResource(FrameworkElement fe, object resourceKey, out object source) 888FrameworkElement.StyleProperty, // dp 972internal static object FindResourceInternal(FrameworkElement fe, FrameworkContentElement fce, object resourceKey) 1001return FrameworkElement.FindResourceInternal(null, // fe 1015FrameworkElement fe, 1144FrameworkElement feStart, 1191FrameworkElement fe = fo.FE; 1613private static ResourceDictionary GetInstanceResourceDictionary(FrameworkElement fe, FrameworkContentElement fce) 1637private static ResourceDictionary GetStyleResourceDictionary(FrameworkElement fe, FrameworkContentElement fce) 1677private static ResourceDictionary GetThemeStyleResourceDictionary(FrameworkElement fe, FrameworkContentElement fce) 1717private static ResourceDictionary GetTemplateResourceDictionary(FrameworkElement fe, FrameworkContentElement fce) 1868object implicitValue = FrameworkElement.FindImplicitStyleResource(this, this.GetType(), out source); 1925FrameworkElement feTemplatedParent = (FrameworkElement)_templatedParent; 1957FrameworkElement parentFE; 2069if (dp == FrameworkElement.NameProperty && 2086FrameworkElement feTemplatedParent = TemplatedParent as FrameworkElement; 2215if(layoutParent is FrameworkElement fe) 2276internal static bool GetFrameworkParent(FrameworkElement current, out FrameworkElement feParent, out FrameworkContentElement fceParent) 2289internal static bool GetFrameworkParent(FrameworkContentElement current, out FrameworkElement feParent, out FrameworkContentElement fceParent) 2301internal static bool GetContainingFrameworkElement(DependencyObject current, out FrameworkElement fe, out FrameworkContentElement fce) 2369EventManager.RegisterClassHandler(_typeofThis, Mouse.QueryCursorEvent, new QueryCursorEventHandler(FrameworkElement.OnQueryCursorOverride), true); 2400typeof(FrameworkElement), 2408FrameworkElement fe = (FrameworkElement) d; 2463if (newParent != null && (newParent is FrameworkElement) == false) 2477else if (oldParent != null && (oldParent is FrameworkElement) == false) 2525FrameworkElement feParent = null; 2529FrameworkElement.GetContainingFrameworkElement(VisualTreeHelper.GetParent(this), out feParent, out fceParent); 2560FrameworkElement.GetContainingFrameworkElement(e.OldParent, out feParent, out fceParent); 2729((FrameworkElement) d).RaiseDependencyPropertyChanged(DataContextChangedKey, e); 2914FrameworkElement.AddIntermediateElementsToRoute(this, route, args, LogicalTreeHelper.GetParent(branchNode)); 2969FrameworkElement fe, 3015FrameworkElement feTemplatedParent = templatedParent as FrameworkElement; 3105continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(this, LogicalTreeHelper.GetParent(branchNode)); 3331FrameworkElement fe = (FrameworkElement) d; 3376FrameworkElement fe = (FrameworkElement) d; 3434FrameworkElement fe = (FrameworkElement)d; 3459FrameworkElement fe = (FrameworkElement)d; 3645FrameworkElement fe = d as FrameworkElement; 3659FrameworkElement fe = d as FrameworkElement; 3867FrameworkElement fe = ((FrameworkElement)d); 3902FrameworkElement fe = ((FrameworkElement)d); 3912FrameworkElement fe = (FrameworkElement) sender; 3951internal static bool ShouldApplyMirrorTransform(FrameworkElement fe) 3968FrameworkElement parentFE; 3998FrameworkElement fe = v as FrameworkElement; 4039internal MinMax(FrameworkElement e) 5136FrameworkElement fe = element as FrameworkElement; 5329FrameworkElement fe = (FrameworkElement)sender; 5355FrameworkElement fe = (FrameworkElement)sender; 5523((FrameworkElement) o).HasNumberSubstitutionChanged = true; 5527private static bool ShouldUseSystemFont(FrameworkElement fe, DependencyProperty dp) 5542if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontFamilyProperty)) 5553if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontSizeProperty)) 5564if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontStyleProperty)) 5575if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontWeightProperty)) 5943((FrameworkElement)sender).OnToolTipOpening(e); 5975((FrameworkElement)sender).OnToolTipClosing(e); 6008((FrameworkElement)sender).OnContextMenuOpening(e); 6035((FrameworkElement)sender).OnContextMenuClosing(e); 6080FrameworkElement 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)); 470FrameworkElement container) 614internal virtual bool BuildVisualTree(FrameworkElement container) 907FrameworkElement feContainer = container as FrameworkElement; 1080FrameworkElement feContainer, 1087(createdObject is FrameworkElement || createdObject is FrameworkContentElement)) 1099FrameworkElement feContainer, 1102if (createdObject is FrameworkElement || createdObject is FrameworkContentElement) 1115private static DependencyObject WireRootObjectToParent(object createdObject, DependencyObject rootObject, DependencyObject container, FrameworkElement feContainer, INameScope nameScope) 1131Debug.Assert(!(rootElement is FrameworkElement) || 1132((FrameworkElement)rootElement).TemplateChildIndex != -1); 1137FrameworkElement feResult;
System\Windows\Generated\FrameworkContentElement.cs (14)
65INameScope nameScope = FrameworkElement.FindScope(this); 83INameScope nameScope = FrameworkElement.FindScope(this); 109INameScope nameScope = FrameworkElement.FindScope(this, out scopeOwner); 319IsParentAnFE = newParent is FrameworkElement; 437RaiseClrEvent(FrameworkElement.ResourcesChangedKey, EventArgs.Empty); 476FrameworkElement.GetTemplatedParentChildRecord(templatedParent, childIndex, out childRecord, out isChildRecordValid); 478FrameworkElement parentFE; 480bool 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)
65INameScope nameScope = FrameworkElement.FindScope(this); 83INameScope nameScope = FrameworkElement.FindScope(this); 109INameScope nameScope = FrameworkElement.FindScope(this, out scopeOwner); 319IsParentAnFE = newParent is FrameworkElement; 429RaiseClrEvent(FrameworkElement.ResourcesChangedKey, EventArgs.Empty); 491FrameworkElement.GetTemplatedParentChildRecord(templatedParent, childIndex, out childRecord, out isChildRecordValid); 493FrameworkElement parentFE; 495bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE); 796&& FrameworkElement.GetFrameworkParent(this) == null 1033Delegate handler = store.Get(FrameworkElement.InheritedPropertyChangedKey); 1228EventHandlersStoreAdd(FrameworkElement.ResourcesChangedKey, value); 1230remove { EventHandlersStoreRemove(FrameworkElement.ResourcesChangedKey, value); } 1253EventHandlersStoreAdd(FrameworkElement.InheritedPropertyChangedKey, value); 1255remove { EventHandlersStoreRemove(FrameworkElement.InheritedPropertyChangedKey, value); }
System\Windows\Input\KeyboardNavigation.cs (13)
848FrameworkElement fe = element as FrameworkElement; 859if (fvs == FrameworkElement.DefaultFocusVisualStyle) 861fvs = FrameworkElement.FindResourceInternal(fe, fce: null, SystemParameters.FocusVisualStyleKey) as Style; 886if (fvs == FrameworkElement.DefaultFocusVisualStyle) 888fvs = FrameworkElement.FindResourceInternal(fe: null, fce, SystemParameters.FocusVisualStyleKey) as Style; 1156return FrameworkElement.KeyboardNavigation; 1305FrameworkElement viewportBoundsElement, 1329FrameworkElement viewportBoundsElement, 1904FrameworkElement fe = e as FrameworkElement; 2471FrameworkElement header = tvi.TryGetHeaderElement(); 2981FrameworkElement 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; 357FrameworkElement parentFE = parent as FrameworkElement; 370internal static void AddLogicalChild(FrameworkElement parentFE, FrameworkContentElement parentFCE, object child) 389FrameworkElement parentFE = parent as FrameworkElement; 402internal static void RemoveLogicalChild(FrameworkElement parentFE, FrameworkContentElement parentFCE, object child) 420FrameworkElement 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)
4083FrameworkElement feParent; 4164result = 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 ) 1605public void Remove(FrameworkElement containingObject) 1651public void Resume( FrameworkElement containingObject ) 1695public void Seek( FrameworkElement containingObject, TimeSpan offset, TimeSeekOrigin origin ) 1743public void SeekAlignedToLastTick( FrameworkElement containingObject, TimeSpan offset, TimeSeekOrigin origin ) 1791public void SetSpeedRatio( FrameworkElement containingObject, double speedRatio ) 1830public void SkipToFill( FrameworkElement containingObject ) 1864public void Stop( FrameworkElement containingObject )
System\Windows\Navigation\NavigationService.cs (9)
353FrameworkElement fe = _bp as FrameworkElement; 387FrameworkElement fe = elem as FrameworkElement; 670FrameworkElement fe = INavigatorHost as FrameworkElement; 2255FrameworkElement fe = _bp as FrameworkElement; 2547((FrameworkElement)_bp).Loaded -= OnContentLoaded;
System\Windows\Navigation\NavigationWindow.cs (4)
420FrameworkElement root = (this.GetVisualChild(0)) as FrameworkElement; 1055FrameworkElement 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; 1981FrameworkElement fe = o as FrameworkElement; 2035FrameworkElement 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) && 673if (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, 440if (StyleHelper.IsSetOnContainer(FrameworkElement.StyleProperty, ref containerDependents, true)) 442throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.StyleProperty.Name)); 447if (StyleHelper.IsSetOnContainer(FrameworkElement.DefaultStyleKeyProperty, ref containerDependents, true)) 449throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.DefaultStyleKeyProperty.Name)); 454if (StyleHelper.IsSetOnContainer(FrameworkElement.OverridesDefaultStyleProperty, ref containerDependents, true)) 456throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.OverridesDefaultStyleProperty.Name)); 461if (StyleHelper.IsSetOnContainer(FrameworkElement.NameProperty, ref containerDependents, true)) 463throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.NameProperty.Name)); 1154if ( (eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent) 1155||(eventTrigger.RoutedEvent == FrameworkElement.UnloadedEvent)) 1189if (eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent 1191eventTrigger.RoutedEvent == FrameworkElement.UnloadedEvent ) 1202if( eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent ) 1329FrameworkElement fe, 1364FrameworkElement fe, 1427FrameworkElement fe, 1494Debug.Assert((container is FrameworkElement) || (container is FrameworkContentElement), "Caller has queried with non-framework element. Bad caller, bad!"); 1537FrameworkElement feChild; 1773FrameworkElement feContainer = container as FrameworkElement; 1810Debug.Assert(treeRoot is FrameworkElement || treeRoot is FrameworkContentElement, 1858Debug.Assert(treeRoot == null || treeRoot is FrameworkElement || treeRoot is FrameworkContentElement, 1932internal static void AddCustomTemplateRoot( FrameworkElement container, UIElement child ) 1940FrameworkElement container, 1960FrameworkElement parent = VisualTreeHelper.GetParent(child) as FrameworkElement; 2048FrameworkElement feWalkNode; 2126FrameworkElement feContainer, 2175FrameworkElement feContainer, 2208FrameworkElement feContainer, 2230FrameworkElement fe; 2322out FrameworkElement fe, out FrameworkContentElement fce, 2325if (d is FrameworkElement frameworkElement) 2390Debug.Assert(sender is FrameworkElement || sender is FrameworkContentElement, 2393FrameworkElement fe; 2445Debug.Assert(sender is FrameworkElement || sender is FrameworkContentElement, 2448FrameworkElement fe; 2470FrameworkElement feTemplatedParent; 2493FrameworkElement fe, 2688sourceNodeType = (container as FrameworkElement).TemplateInternal.ChildTypeFromChildIndex[sourceChildIndex]; 2719value = FrameworkElement.FindResourceInternal(child.FE, 2774value = FrameworkElement.FindResourceInternal( 2899FrameworkElement feChild, 2909FrameworkElement feContainer; 3091return (dp != FrameworkElement.StyleProperty); 3103return (dp != FrameworkElement.StyleProperty && 3104dp != FrameworkElement.DefaultStyleKeyProperty && 3105dp != FrameworkElement.OverridesDefaultStyleProperty); 3118return (dp != FrameworkElement.StyleProperty && 3119dp != FrameworkElement.DefaultStyleKeyProperty && 3120dp != FrameworkElement.OverridesDefaultStyleProperty && 3140FrameworkElement fe, 3221FrameworkElement fe, 3296FrameworkElement feContainer, 3438FrameworkElement fe, 3479FrameworkElement fe, 4232if (dp != FrameworkElement.StyleProperty) 4498private static void ExecuteOnApplyEnterExitActions( FrameworkElement fe, 4527private static void ExecuteOnApplyEnterExitActions( FrameworkElement fe, FrameworkContentElement fce, 4706FrameworkElement fe = (FrameworkElement)container; 4825action.Invoke(triggerContainer as FrameworkElement, triggerContainer as FrameworkContentElement, 5128FrameworkElement fe; 5165FrameworkElement fe; 5208FrameworkElement fe; 5440child is FrameworkElement && ((FrameworkElement)child).TemplateChildIndex == childIndex || 5475FrameworkElement fe; 5500FrameworkElement fe; 5590if (dp == ItemsControl.ItemsPanelProperty || dp == FrameworkElement.ContextMenuProperty || dp == FrameworkElement.ToolTipProperty)
System\Windows\SystemResources.cs (3)
502_presentationFramework = typeof(FrameworkElement).Assembly; 1234FrameworkElement 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))] 432if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 460if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 485if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 663if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 729if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 820if (!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; 577(fe.HasImplicitStyleFromResources || fe.Style == FrameworkElement.StyleProperty.GetMetadata(fe.DependencyObjectType).DefaultValue)) 605fe.RaiseClrEvent(FrameworkElement.ResourcesChangedKey, new ResourcesChangedEventArgs(info)); 661fce.RaiseClrEvent(FrameworkElement.ResourcesChangedKey, new ResourcesChangedEventArgs(info)); 754FrameworkElement fe = fo.FE; 758(fe.HasImplicitStyleFromResources || fe.Style == FrameworkElement.StyleProperty.GetMetadata(fe.DependencyObjectType).DefaultValue)) 796FrameworkElement templatedParent = (FrameworkElement)fe.TemplatedParent; 864FrameworkElement templatedParent = (FrameworkElement)fce.TemplatedParent; 903FrameworkElement fe, 964DependencyObject parent = FrameworkElement.GetFrameworkParent(d); 1007if (visitedViaVisualTree && d is FrameworkElement) 1171FrameworkElement fe, 1266internal static bool HasChildren(FrameworkElement fe, FrameworkContentElement fce) 1289return (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)
4646SetValue(FrameworkElement.WidthProperty, ptLogicalUnits.X); 4647SetValue(FrameworkElement.HeightProperty, ptLogicalUnits.Y);
PresentationUI (5)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (3)
934private FrameworkElement InfoBar 941_infoBar = GetTemplateChild(_infoBarName) as FrameworkElement; 2223private 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; 206FrameworkElement 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)
172FrameworkElement fe = element as FrameworkElement; 191FrameworkElement fe = element as FrameworkElement; 373FrameworkElement fe = element as FrameworkElement; 904if (DependencyPropertyHelper.GetValueSource(element, FrameworkElement.LanguageProperty).BaseValueSource != BaseValueSource.Default) 906XmlLanguage 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); 1576FrameworkElement 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)
170private 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; 474private FrameworkElement VisualChild 478return VisualChildrenCount == 0 ? null : (GetVisualChild(0) as FrameworkElement); 685internal FrameworkElement CollapsedDropDownButton 1362private 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) 1477FrameworkElement fe = d as FrameworkElement; 1629new PropertyAndTransferMode () { Property = FrameworkElement.DataContextProperty, Mode = TransferMode.AlwaysTransfer }, 1630new PropertyAndTransferMode () { Property = FrameworkElement.BindingGroupProperty, Mode = TransferMode.AlwaysTransfer }, 1851FrameworkElement feOriginal = original as FrameworkElement; 1854FrameworkElement feClone = CreateInstance(feOriginal, allowTransformations); 1863TransferProperties(feOriginal.TemplatedParent as FrameworkElement, feClone, /*cloningForTemplatePart*/ true); 1866FrameworkElement feWrapper = WrapClone(feClone, allowTransformations); 1893private static FrameworkElement CreateInstance(FrameworkElement original, bool allowTransformations) 1947return (FrameworkElement)Activator.CreateInstance(original.GetType()); 1955private static FrameworkElement WrapClone(FrameworkElement clone, bool allowTransformations) 2001private static void TransferProperties(FrameworkElement original, FrameworkElement clone, bool cloningForTemplatePart) 2026TransferProperty(original, clone, FrameworkElement.StyleProperty, TransferMode.AlwaysTransfer); 2214private static void TransferProperties(FrameworkElement original, FrameworkElement clone, PropertyAndTransferMode[] properties) 2531XmlLanguage language = (XmlLanguage)element.GetValue(FrameworkElement.LanguageProperty); 2807public static void OpenParentRibbonGroupDropDownSync(FrameworkElement fe, bool templateApplied) 2839FrameworkElement elementFE = element as FrameworkElement; 2853public 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 1324private FrameworkElement _itemsPresenter; 1327private FrameworkElement _ribbonCurrentSelection; // could be a RibbonMenuItem or RibbonGallery 1393FrameworkElement source = e.OriginalSource as FrameworkElement; 1518FrameworkElement 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); 984FrameworkElement ribbonCurrentSelection = RibbonCurrentSelection; 1232private static bool IsContainerFocusable(FrameworkElement container) 1274menuItem._itemsPresenter.ClearValue(FrameworkElement.HeightProperty); 1275menuItem._itemsPresenter.ClearValue(FrameworkElement.WidthProperty); 1332FrameworkElement popupChild; 1333if ((popupChild = _popup.Child as FrameworkElement) != null) 1410private FrameworkElement CurrentSibling 1416FrameworkElement sibling = null; 1491FrameworkElement selectionItem = e.OriginalSource as FrameworkElement; 1524private FrameworkElement RibbonCurrentSelection 1582private 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)
230splitButton.PartToggleButton?.CoerceValue(FrameworkElement.ToolTipProperty);
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (1)
148splitMenuItem._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)
156FrameworkElement 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) 775internal static string GetPrimaryText(FrameworkElement element) 856object 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)
393SW.FrameworkElement frameworkElement = dependencyObject as SW.FrameworkElement; 783FrameworkElement cursorSource = HostUtils.GetCursorSource(_host, forceCursorMapped);