43 types derived from FrameworkElement
PresentationFramework (33)
MS\Internal\Documents\DocumentGrid.cs (1)
37internal class DocumentGrid : FrameworkElement, IDocumentScrollInfo
MS\Internal\Documents\DocumentGridPage.cs (1)
36internal class DocumentGridPage : FrameworkElement, IDisposable
MS\Internal\Documents\DocumentPageHost.cs (1)
18internal class DocumentPageHost : FrameworkElement
MS\Internal\Documents\FlowDocumentView.cs (1)
25internal class FlowDocumentView : FrameworkElement, IScrollInfo, IServiceProvider
MS\Internal\Documents\TextBoxView.cs (1)
25internal class TextBoxView : FrameworkElement, ITextView, IScrollInfo, IServiceProvider
System\Windows\Controls\AccessText.cs (1)
25public class AccessText : FrameworkElement, IAddChild
System\Windows\Controls\AdornedElementPlaceholder.cs (1)
34public class AdornedElementPlaceholder : FrameworkElement, IAddChild
System\Windows\Controls\ContentPresenter.cs (1)
39public class ContentPresenter : FrameworkElement
System\Windows\Controls\Control.cs (1)
30public class Control : FrameworkElement
System\Windows\Controls\Decorator.cs (1)
28public class Decorator : FrameworkElement, IAddChild
System\Windows\Controls\Image.cs (1)
36public class Image : FrameworkElement, IUriContext, IProvidePropertyFallback
System\Windows\Controls\InkCanvas.cs (1)
50public class InkCanvas : FrameworkElement, IAddChild
System\Windows\Controls\ItemsPresenter.cs (1)
25public class ItemsPresenter : FrameworkElement
System\Windows\Controls\MediaElement.cs (1)
62public class MediaElement : FrameworkElement, IUriContext
System\Windows\Controls\Page.cs (1)
38public class Page : FrameworkElement, IWindowService, IAddChild
System\Windows\Controls\Panel.cs (1)
30public abstract class Panel : FrameworkElement, IAddChild
System\Windows\Controls\Primitives\DocumentPageView.cs (1)
28public class DocumentPageView : FrameworkElement, IServiceProvider, IDisposable
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
23public abstract class GridViewRowPresenterBase : FrameworkElement, IWeakEventListener
System\Windows\Controls\Primitives\Popup.cs (1)
54public class Popup : FrameworkElement, IAddChild
System\Windows\Controls\Primitives\PopupRoot.cs (1)
26internal sealed class PopupRoot : FrameworkElement
System\Windows\Controls\Primitives\TickBar.cs (1)
63public class TickBar : FrameworkElement
System\Windows\Controls\Primitives\Track.cs (1)
34public class Track : FrameworkElement
System\Windows\Controls\TextBlock.cs (1)
57public class TextBlock : FrameworkElement, IContentHost, IAddChildInternal, IServiceProvider
System\Windows\Controls\ToolBarTray.cs (1)
37public class ToolBarTray : FrameworkElement, IAddChild
System\Windows\Controls\ViewPort3D.cs (1)
33public class Viewport3D : FrameworkElement, IAddChild
System\Windows\Documents\Adorner.cs (1)
32public abstract class Adorner : FrameworkElement
System\Windows\Documents\AdornerLayer.cs (1)
32public class AdornerLayer : FrameworkElement
System\Windows\Documents\DocumentReference.cs (1)
38public sealed class DocumentReference : FrameworkElement, IUriContext
System\Windows\Documents\FixedPage.cs (1)
48public sealed class FixedPage : FrameworkElement, IAddChildInternal, IFixedNavigate, IUriContext
System\Windows\Documents\Glyphs.cs (1)
38public sealed class Glyphs : FrameworkElement, IUriContext
System\Windows\Documents\PageContent.cs (1)
49public sealed class PageContent : FrameworkElement, IAddChildInternal, IUriContext
System\Windows\Interop\HwndHost.cs (1)
32public abstract class HwndHost : FrameworkElement, IDisposable, IWin32Window, IKeyboardInputSink
System\Windows\Shapes\Shape.cs (1)
29public abstract class Shape : FrameworkElement
PresentationFramework.Aero (2)
Microsoft\Windows\Themes\BulletChrome.cs (1)
26public sealed class BulletChrome : FrameworkElement
Microsoft\Windows\Themes\ScrollChrome.cs (1)
23public sealed class ScrollChrome : FrameworkElement
PresentationFramework.Aero2 (2)
Microsoft\Windows\Themes\BulletChrome.cs (1)
26public sealed class BulletChrome : FrameworkElement
Microsoft\Windows\Themes\ScrollChrome.cs (1)
23public sealed class ScrollChrome : FrameworkElement
PresentationFramework.AeroLite (1)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
23public sealed class ScrollChrome : FrameworkElement
PresentationFramework.Luna (2)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
22public sealed class ScrollChrome : FrameworkElement
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
18public sealed class BulletChrome : FrameworkElement
PresentationFramework.Royale (2)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
22public sealed class ScrollChrome : FrameworkElement
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
18public sealed class BulletChrome : FrameworkElement
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\TextSearchInternal.cs (1)
901private 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)
6938target = new FrameworkElement(); 6974target = new FrameworkElement();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4547bamlType.DefaultConstructor = delegate() { return new System.Windows.FrameworkElement(); };
System\Windows\Markup\KnownTypes.cs (1)
1286case KnownElements.FrameworkElement: o = new System.Windows.FrameworkElement(); break;
1633 references to FrameworkElement
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)
97if (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)
54public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content)
EditorConfigSettings\CodeStyle\View\ColumnDefinitions\CodeStyleSeverityColumnDefinition.cs (1)
35public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content)
EditorConfigSettings\CodeStyle\View\ColumnDefinitions\CodeStyleValueColumnDefinition.cs (1)
34public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content)
EditorConfigSettings\NamingStyle\View\ColumnDefinitions\NamingStylesLocationColumnDefinition.cs (1)
59out FrameworkElement? content)
EditorConfigSettings\NamingStyle\View\ColumnDefinitions\NamingStylesSeverityColumnDefinition.cs (1)
59public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content)
EditorConfigSettings\NamingStyle\View\ColumnDefinitions\NamingStylesStyleColumnDefinition.cs (1)
47public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content)
EditorConfigSettings\NamingStyle\View\ColumnDefinitions\NamingStylesTypeColumnDefinition.cs (1)
50out FrameworkElement? content)
EditorConfigSettings\Whitespace\View\ColumnDefnitions\WhitespaceValueColumnDefinition.cs (1)
41public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content)
FindReferences\Entries\AbstractItemEntry.cs (1)
26public override bool TryCreateColumnContent(string columnName, [NotNullWhen(true)] out FrameworkElement? content)
FindReferences\Entries\DocumentSpanEntry.cs (1)
145public override bool TryCreateColumnContent(string columnName, [NotNullWhen(true)] out FrameworkElement? content)
FindReferences\Entries\Entry.cs (1)
47public virtual bool TryCreateColumnContent(string columnName, [NotNullWhen(true)] out FrameworkElement? content)
FindReferences\TableEntriesSnapshot.cs (1)
48int index, string columnName, bool singleColumnView, [NotNullWhen(true)] out FrameworkElement? content)
InheritanceMargin\InheritanceMarginViewMargin.cs (1)
205FrameworkElement IWpfTextViewMargin.VisualElement
InheritanceMargin\MarginGlyph\InheritanceMarginGlyph.cs (1)
217var visualElement = _textView.VisualElement;
PreviewPane\PreviewPane.xaml.cs (13)
116public FrameworkElement ParentElement 118get { return (FrameworkElement)GetValue(ParentElementProperty); } 123DependencyProperty.Register("ParentElement", typeof(FrameworkElement), typeof(PreviewPane), new PropertyMetadata(null)); 128ParentElement = Parent as FrameworkElement; 135var previewElement = CreatePreviewElement(previewItems); 155private FrameworkElement CreatePreviewElement(IReadOnlyList<object> previewItems) 172var previewElement = GetPreviewElement(previewItem); 217return (FrameworkElement)preview; 223private FrameworkElement GetPreviewElement(object previewItem) 236var previewElement = viewer.VisualElement; 245if (previewItem is FrameworkElement frameworkElement) 266private static FrameworkElement GetPreviewForString(string previewContent) 281private void AdjustWidthAndHeight(FrameworkElement previewElement)
UnusedReferences\Dialog\UnusedReferencesTableProvider.ColumnDefinitions.cs (7)
60internal static FrameworkElement CreateGridElement(ImageMoniker imageMoniker, string text, bool isBold) 122public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content) 159public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content) 203public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content) 257public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content) 299public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content) 348public override bool TryCreateColumnContent(out FrameworkElement content)
ValueTracking\ValueTrackingRoot.xaml.cs (1)
22public void SetChild(FrameworkElement? child)
VSWpfThemeService.cs (1)
28public void ApplyThemeToElement(FrameworkElement frameworkElement)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
SemanticSearch\SemanticSearchToolWindowImpl.cs (1)
90public async Task<FrameworkElement> InitializeAsync(CancellationToken cancellationToken)
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Venus\DocumentService_IntegrationTests.vb (1)
641Public ReadOnly Property Control As FrameworkElement Implements IWpfTableControl.Control
PresentationFramework (1403)
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (4)
132FrameworkElement nodeParent = null; 133FrameworkElement feNode = node as FrameworkElement; 136nodeParent = feNode.Parent as FrameworkElement;
MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
78RegisterSelectionProcessor(nodeProcessor, typeof(FrameworkElement));
MS\Internal\Annotations\Anchoring\PathNode.cs (1)
257or FrameworkElement
MS\Internal\Annotations\Component\AnnotationAdorner.cs (1)
145/// Override for <seealso cref="FrameworkElement.ArrangeOverride" />
MS\Internal\Controls\InkCanvasInnerCanvas.cs (2)
74/// Override of <seealso cref="FrameworkElement.MeasureOverride" /> 199protected override UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent)
MS\Internal\Controls\InnerItemCollectionView.cs (1)
634private FrameworkElement ModelParentFE
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (11)
223snc.SetValue(FrameworkElement.HeightProperty, height); 227snc.ClearValue(FrameworkElement.HeightProperty); 238snc.SetValue(FrameworkElement.WidthProperty, width); 242snc.ClearValue(FrameworkElement.WidthProperty); 816double height = (double)snc.GetValue(FrameworkElement.HeightProperty); 824double width = (double)snc.GetValue(FrameworkElement.WidthProperty); 1379FrameworkElement target = ((IAnnotationComponent)this).AnnotatedElement as FrameworkElement; 1384target = host.PageVisual as FrameworkElement; 1426FrameworkElement target = (FrameworkElement)(args[0]);
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (4)
39protected StickyNoteContentControl(FrameworkElement innerControl) 103public FrameworkElement InnerControl 125protected void SetInnerControl(FrameworkElement innerControl) 140protected FrameworkElement _innerControl;
MS\Internal\Controls\TemplatedAdorner.cs (2)
92public FrameworkElement ReferenceElement 189private FrameworkElement _referenceElement;
MS\Internal\Data\ClrBindingWorker.cs (1)
81else if (targetDP == FrameworkElement.DataContextProperty ||
MS\Internal\Data\ObjectRef.cs (7)
151FrameworkElement fe = d as FrameworkElement; 375o = el.GetValue(FrameworkElement.DataContextProperty); 464for (; d != null; d = FrameworkElement.GetFrameworkParent(d)) 478FrameworkElement parent, child; 484parent = cp.TemplatedParent as FrameworkElement; 492child = d as FrameworkElement;
MS\Internal\Data\PropertyPathWorker.cs (2)
642_arySVS[k - 1].info == FrameworkElement.DataContextProperty) 673_arySVS[_arySVS.Length - 1].info == FrameworkElement.DataContextProperty &&
MS\Internal\Documents\ContentHostHelper.cs (3)
109else if (textView.RenderScope is FrameworkElement) 158FrameworkElement fe; 168fe = child as FrameworkElement;
MS\Internal\Documents\DocumentGrid.cs (1)
1286_rubberBandSelector.AttachRubberbandSelector((FrameworkElement)this); //attach the Rubber band selector.
MS\Internal\Documents\DocumentGridContextMenu.cs (3)
38EventManager.RegisterClassHandler(typeof(DocumentGrid), FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpening)); 39EventManager.RegisterClassHandler(typeof(DocumentApplicationDocumentViewer), FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnDocumentViewerContextMenuOpening)); 93if (documentGrid.ReadLocalValue(FrameworkElement.ContextMenuProperty) == null)
MS\Internal\Documents\DocumentGridPage.cs (1)
241var key = new ComponentResourceKey(typeof(FrameworkElement), "DocumentGridPageContainerWithBorder");
MS\Internal\Documents\DocumentViewerHelper.cs (2)
248XmlLanguage language = (XmlLanguage)textContainer.Parent.GetValue(FrameworkElement.LanguageProperty); 371cm = e.TargetElement.GetValue(FrameworkElement.ContextMenuProperty) as ContextMenu;
MS\Internal\Documents\PageCache.cs (1)
123FlowDirection flowDirection = (FlowDirection)((DependencyObject)_documentPaginator.Source).GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\Documents\TextBoxLine.cs (2)
213var uiScope = _owner?.Host?.TextContainer?.TextSelection?.TextEditor?.UiScope; 467var uiScope = textEditor?.UiScope;
MS\Internal\Documents\TextContainerHelper.cs (4)
603internal static ITextPointer GetTextPointerForEmbeddedObject(FrameworkElement embeddedObject) 706if (embeddedObject is FrameworkElement) 708FrameworkElement fe = (FrameworkElement)embeddedObject;
MS\Internal\Documents\TextViewBase.cs (4)
155FrameworkElement frameworkParent = FrameworkElement.GetFrameworkParent(textView.RenderScope) as FrameworkElement; 171((FrameworkElement)textView.RenderScope).BringIntoView(rect);
MS\Internal\Documents\UIElementIsland.cs (5)
77if (_child is FrameworkElement && ((FrameworkElement)_child).Parent != null) 79SetValue(FrameworkElement.FlowDirectionProperty, ((FrameworkElement)_child).Parent.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\FrameworkObject.cs (9)
60_fe = d as FrameworkElement; 74internal FrameworkObject(FrameworkElement fe, FrameworkContentElement fce) 89_fe = d as FrameworkElement; 97internal FrameworkElement FE { get { return _fe; } } 231Invariant.Assert(parent is FrameworkElement || parent is FrameworkContentElement); 235return new FrameworkObject((FrameworkElement)parent, null); 268Invariant.Assert(parent is FrameworkElement || parent is FrameworkContentElement); 272return new FrameworkObject((FrameworkElement)parent, null); 1181private FrameworkElement _fe;
MS\Internal\Helper.cs (16)
196FrameworkElement fe; 266if (d is FrameworkElement || d is FrameworkContentElement) 286out FrameworkElement fe, out FrameworkContentElement fce, 289if (d is FrameworkElement frameworkElement) 408FrameworkElement fe = templatedParent as FrameworkElement; 482FrameworkElement fe; 1070FrameworkElement virtualizingElement, 1093FrameworkElement virtualizingElement, 1172FrameworkElement virtualizingElement, 1174FrameworkElement headerElement) 1277internal static T FindTemplatedDescendant<T>(FrameworkElement searchStart, FrameworkElement templatedParent) where T : FrameworkElement 1279FrameworkElement descendant = null; 1285descendant = VisualTreeHelper.GetChild(searchStart, i) as FrameworkElement;
MS\Internal\Ink\InkCanvasSelection.cs (4)
388FrameworkElement frameworkElement = originalElement as FrameworkElement; 418((FrameworkElement)updatedElement).Width = newBounds.Width; 432( (FrameworkElement)updatedElement ).Height = newBounds.Height;
MS\Internal\PrePostDescendentsWalker.cs (1)
75if (startNode is FrameworkElement or FrameworkContentElement)
MS\Internal\PtsHost\BaseParaClient.cs (1)
88_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\CellParaClient.cs (1)
118_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\ContainerParagraph.cs (3)
486uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 652uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 782uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\FigureParaClient.cs (1)
208_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\FigureParagraph.cs (1)
131uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\FloaterParaClient.cs (1)
196_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\FloaterParagraph.cs (2)
178uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 386uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
281DependencyObject frameworkParent = FrameworkElement.GetFrameworkParent(_structuralCache.FormattingOwner);
MS\Internal\PtsHost\Line.cs (4)
409FlowDirection paragraphFlowDirection = (FlowDirection)paragraphElement.GetValue(FrameworkElement.FlowDirectionProperty); 436if (inlineObject.UIElementIsland.Root is FrameworkElement) 438DependencyObject parent = ((FrameworkElement)inlineObject.UIElementIsland.Root).Parent; 439FlowDirection parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\LineBase.cs (2)
201parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 275parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\ListParaClient.cs (1)
60uint fswdir = PTS.FlowDirectionToFswdir((FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\PtsHost\PtsHelper.cs (2)
49visualChild.SetValue(FrameworkElement.FlowDirectionProperty, childFD); 54visualChild.ClearValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\Section.cs (2)
123StructuralCache.PageFlowDirection = (FlowDirection)_structuralCache.PropertyOwner.GetValue(FrameworkElement.FlowDirectionProperty); 224fswdir = PTS.FlowDirectionToFswdir((FlowDirection)_structuralCache.PropertyOwner.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\PtsHost\SubpageParagraph.cs (3)
134uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 341uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 502uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\TableParagraph.cs (1)
171fstableobjprops.fswdirTable = PTS.FlowDirectionToFswdir((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\PtsHost\TextParagraph.cs (1)
158fstxtprops.fswdir = PTS.FlowDirectionToFswdir((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\Text\ComplexLine.cs (5)
186if (inlineObject.Element is FrameworkElement) 191DependencyObject parent = ((FrameworkElement)inlineObject.Element).Parent; 194parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 423parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 495parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\Text\DynamicPropertyReader.cs (1)
308XmlLanguage language = (XmlLanguage) element.GetValue(FrameworkElement.LanguageProperty);
MS\Internal\Text\TextProperties.cs (5)
104internal TextProperties(FrameworkElement target, bool isTypographyDefaultValue) 110_numberSubstitution = FrameworkElement.DefaultNumberSubstitution; 142FrameworkElement fe = target as FrameworkElement; 145_numberSubstitution = FrameworkElement.DefaultNumberSubstitution;
MS\Internal\TraceData.cs (2)
194FrameworkElement fe = o as FrameworkElement;
System\Windows\Annotations\AnnotationHelper.cs (12)
369FrameworkElement viewer = sender as FrameworkElement; 505ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 598ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 826ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 929ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 1052private static ITextSelection GetTextSelection(FrameworkElement viewer) 1058viewer = GetFdrHost(reader) as FrameworkElement; 1132FrameworkElement viewer = sender as FrameworkElement; 1135FrameworkElement parent = viewer.Parent as FrameworkElement;
System\Windows\Annotations\AnnotationService.cs (5)
147if (!(root is FrameworkElement || root is FrameworkContentElement)) 366if (!(element is FrameworkElement || element is FrameworkContentElement)) 401if (!(element is FrameworkElement || element is FrameworkContentElement)) 1558FrameworkElement viewer = this.Root as FrameworkElement;
System\Windows\Application.cs (2)
2259((FrameworkElement)args[0]).ShouldLookupImplicitStyles = true; 2261TreeWalkHelper.InvalidateOnResourcesChange((FrameworkElement)args[0], null, (ResourcesChangeInfo)args[1]);
System\Windows\AttachedPropertyBrowsableForChildrenAttribute.cs (1)
110walk = FrameworkElement.GetFrameworkParent(walk);
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (2)
200FrameworkElement focusedButton = focusedItem.OwningButton; 390object dataContext = (child as FrameworkElement).DataContext;
System\Windows\Automation\Peers\FrameworkContentElementAutomationPeer.cs (2)
63FrameworkElement toolTipElement = toolTip as FrameworkElement;
System\Windows\Automation\Peers\FrameworkElementAutomationPeer.cs (8)
25public FrameworkElementAutomationPeer(FrameworkElement owner) 38FrameworkElement owner = (FrameworkElement)Owner; 62result = ((FrameworkElement)Owner).GetPlainText(); 74object toolTip = ((FrameworkElement)Owner).ToolTip; 80FrameworkElement toolTipElement = toolTip as FrameworkElement; 103owner.GetValue(FrameworkElement.DataContextProperty) ==
System\Windows\Automation\Peers\ItemAutomationPeer.cs (4)
123if(wrapper is FrameworkElement) 124wrapperPeer = new FrameworkElementAutomationPeer((FrameworkElement)wrapper); 542FrameworkElement fe = item as FrameworkElement;
System\Windows\Automation\Peers\TextAutomationPeer.cs (1)
24protected TextAutomationPeer(FrameworkElement owner)
System\Windows\BroadcastEventHelper.cs (32)
26Debug.Assert(d is FrameworkElement || d is FrameworkContentElement); 39d.SetValue(FrameworkElement.LoadedPendingPropertyKey, new object[]{loadedOp, operation, logicalParent}); 47Debug.Assert(d is FrameworkElement || d is FrameworkContentElement); 54d.ClearValue(FrameworkElement.LoadedPendingPropertyKey); 74Debug.Assert(d is FrameworkElement || d is FrameworkContentElement); 87d.SetValue(FrameworkElement.UnloadedPendingPropertyKey, new object[]{unloadedOp, operation, logicalParent}); 95Debug.Assert(d is FrameworkElement || d is FrameworkContentElement); 102d.ClearValue(FrameworkElement.UnloadedPendingPropertyKey); 169object[] loadedPending = (object[])rootDO.GetValue(FrameworkElement.LoadedPendingProperty); 192BroadcastEventHelper.BroadcastEvent(rootDO, FrameworkElement.LoadedEvent); 206object[] unloadedPending = (object[])rootDO.GetValue(FrameworkElement.UnloadedPendingProperty); 229BroadcastEvent(rootDO, FrameworkElement.UnloadedEvent); 278if (routedEvent == FrameworkElement.LoadedEvent) 297if (d is FrameworkElement fe) 299if (fe != root && routedEvent == FrameworkElement.LoadedEvent && fe.UnloadedPending != null) 306else if (fe != root && routedEvent == FrameworkElement.UnloadedEvent && fe.LoadedPending != null) 317if (routedEvent == FrameworkElement.LoadedEvent && fe.LoadedPending != null) 324else if (routedEvent == FrameworkElement.UnloadedEvent && fe.UnloadedPending != null) 346fe.IsLoadedCache = (routedEvent == FrameworkElement.LoadedEvent); 360if (fce != root && routedEvent == FrameworkElement.LoadedEvent && fce.UnloadedPending != null) 367else if (fce != root && routedEvent == FrameworkElement.UnloadedEvent && fce.LoadedPending != null) 378if (routedEvent == FrameworkElement.LoadedEvent && fce.LoadedPending != null) 385else if (routedEvent == FrameworkElement.UnloadedEvent && fce.UnloadedPending != null) 407fce.IsLoadedCache = (routedEvent == FrameworkElement.LoadedEvent); 423if (d is FrameworkElement fe) 436if (d is FrameworkElement fe) 448if (d is FrameworkElement fe) 593FrameworkElement child = VisualTreeHelper.GetChild(v, i) as FrameworkElement; 724FrameworkElement fe, 727if (fe.GetValue(FrameworkElement.LoadedPendingProperty) == null) 759if (fce.GetValue(FrameworkElement.LoadedPendingProperty) == null)
System\Windows\Controls\AdornedElementPlaceholder.cs (2)
228FrameworkElement templateParent = this.TemplatedParent as FrameworkElement;
System\Windows\Controls\ComboBox.cs (2)
251cb._clonedElement.CoerceValue(FrameworkElement.FlowDirectionProperty); 1600return (bool)d.GetValue(FrameworkElement.IsEnabledProperty);
System\Windows\Controls\ContentControl.cs (2)
113FrameworkElement feContent = content as FrameworkElement;
System\Windows\Controls\ContentPresenter.cs (3)
1007internal override bool BuildVisualTree(FrameworkElement container) 1039internal override bool BuildVisualTree(FrameworkElement container) 1166template = (DataTemplate)FrameworkElement.FindTemplateResourceInternal(container, item, typeof(DataTemplate));
System\Windows\Controls\Control.cs (2)
295new ValidateValueCallback(FrameworkElement.ValidateHorizontalAlignmentValue)); 321new ValidateValueCallback(FrameworkElement.ValidateVerticalAlignmentValue));
System\Windows\Controls\DataGrid.cs (10)
45dataGridRowPresenterFactory.SetValue(FrameworkElement.NameProperty, ItemsPanelPartName); 5877FrameworkElement focusContainer; 5878FrameworkElement startingElement = Keyboard.FocusedElement as FrameworkElement; 6176FrameworkElement targetElement; 6179FrameworkElement startingElement = null; 6182startingElement = Keyboard.FocusedElement as FrameworkElement; 6554private static bool CalculateCellDistance(FrameworkElement cell, DataGridRow rowOwner, Panel itemsHost, Rect itemsHostBounds, bool isMouseInCorner, out double distance) 6927FrameworkElement target; 6963FrameworkElement target;
System\Windows\Controls\DataGridBoundColumn.cs (2)
163internal void ApplyStyle(bool isEditing, bool defaultToElementStyle, FrameworkElement element) 212protected internal override void RefreshCellContent(FrameworkElement element, string propertyName)
System\Windows\Controls\DataGridCell.cs (11)
119else if ((Content as FrameworkElement) == null) 398FrameworkElement newContent = column.BuildVisualTree(IsEditing, RowDataItem, this); 403FrameworkElement oldContent = Content as FrameworkElement; 409oldContent.SetValue(FrameworkElement.DataContextProperty, BindingExpressionBase.DisconnectedItem); 592column.BeginEdit(Content as FrameworkElement, e); 606column.CancelEdit(Content as FrameworkElement); 622validationPassed = column.CommitEdit(Content as FrameworkElement); 638FrameworkElement currentEditingElement = EditingElement; 644internal FrameworkElement EditingElement 649return Content as FrameworkElement;
System\Windows\Controls\DataGridCellEditEndingEventArgs.cs (3)
24public DataGridCellEditEndingEventArgs(DataGridColumn column, DataGridRow row, FrameworkElement editingElement, DataGridEditAction editAction) 60public FrameworkElement EditingElement 76private FrameworkElement _editingElement;
System\Windows\Controls\DataGridCellsPanel.cs (2)
2441FrameworkElement itemsPresenter = TemplatedParent as FrameworkElement;
System\Windows\Controls\DataGridCheckBoxColumn.cs (4)
95protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 103protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 124protected internal override void RefreshCellContent(FrameworkElement element, string propertyName) 172protected override object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs)
System\Windows\Controls\DataGridColumn.cs (13)
616public FrameworkElement GetCellContent(object dataItem) 637public FrameworkElement GetCellContent(DataGridRow dataGridRow) 649return cell.Content as FrameworkElement; 663internal FrameworkElement BuildVisualTree(bool isEditing, object dataItem, DataGridCell cell) 678protected abstract FrameworkElement GenerateElement(DataGridCell cell, object dataItem); 683protected abstract FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem); 694protected virtual object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs) 705protected virtual void CancelCellEdit(FrameworkElement editingElement, object uneditedValue) 715protected virtual bool CommitCellEdit(FrameworkElement editingElement) 720internal void BeginEdit(FrameworkElement editingElement, RoutedEventArgs e) 733internal void CancelEdit(FrameworkElement editingElement) 742internal bool CommitEdit(FrameworkElement editingElement) 912protected internal virtual void RefreshCellContent(FrameworkElement element, string propertyName)
System\Windows\Controls\DataGridComboBoxColumn.cs (7)
289private void ApplyStyle(bool isEditing, bool defaultToElementStyle, FrameworkElement element) 411protected internal override void RefreshCellContent(FrameworkElement element, string propertyName) 490protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 505protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 538protected override object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs) 563protected override void CancelCellEdit(FrameworkElement editingElement, object uneditedValue) 580protected override bool CommitCellEdit(FrameworkElement editingElement)
System\Windows\Controls\DataGridHelper.cs (13)
156public static T FindParent<T>(FrameworkElement element) where T : FrameworkElement 158FrameworkElement parent = element.TemplatedParent as FrameworkElement; 168parent = parent.TemplatedParent as FrameworkElement; 518internal static BindingExpression GetBindingExpression(FrameworkElement element, DependencyProperty dp) 528internal static bool ValidateWithoutUpdate(FrameworkElement element) 561internal static bool BindingExpressionBelongsToElement<T>(BindingExpressionBase beb, T element) where T : FrameworkElement 621internal static void CacheFlowDirection(FrameworkElement element, DataGridCell cell) 625object flowDirectionObj = element.ReadLocalValue(FrameworkElement.FlowDirectionProperty); 633internal static void RestoreFlowDirection(FrameworkElement element, DataGridCell cell) 640element.SetValue(FrameworkElement.FlowDirectionProperty, flowDirectionObj); 645internal static void UpdateTarget(FrameworkElement element)
System\Windows\Controls\DataGridHyperlinkColumn.cs (6)
113protected internal override void RefreshCellContent(FrameworkElement element, string propertyName) 170protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 195protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 217protected override object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs) 254protected override void CancelCellEdit(FrameworkElement editingElement, object uneditedValue) 266protected override bool CommitCellEdit(FrameworkElement editingElement)
System\Windows\Controls\DataGridPreparingCellForEditEventArgs.cs (3)
25public DataGridPreparingCellForEditEventArgs(DataGridColumn column, DataGridRow row, RoutedEventArgs editingEventArgs, FrameworkElement editingElement) 60public FrameworkElement EditingElement 68private FrameworkElement _editingElement;
System\Windows\Controls\DataGridRow.cs (2)
830var detailsElement = row.DetailsPresenter != null ? row.DetailsPresenter.DetailsElement : null; 1334public static DataGridRow GetRowContainingElement(FrameworkElement element)
System\Windows\Controls\DataGridRowDetailsEventArgs.cs (2)
13public DataGridRowDetailsEventArgs(DataGridRow row, FrameworkElement detailsElement) 19public FrameworkElement DetailsElement
System\Windows\Controls\DataGridTemplateColumn.cs (4)
164private FrameworkElement LoadTemplateContent(bool isEditing, object dataItem, DataGridCell cell) 184protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 192protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 207protected internal override void RefreshCellContent(FrameworkElement element, string propertyName)
System\Windows\Controls\DataGridTextColumn.cs (9)
82protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 99protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 113private void SyncProperties(FrameworkElement e) 122protected internal override void RefreshCellContent(FrameworkElement element, string propertyName) 128FrameworkElement textElement = cell.Content as FrameworkElement; 166protected override object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs) 220protected override void CancelCellEdit(FrameworkElement editingElement, object uneditedValue) 232protected override bool CommitCellEdit(FrameworkElement editingElement)
System\Windows\Controls\DateTimeHelper.cs (3)
110internal static CultureInfo GetCulture(FrameworkElement element) 114if (element.GetValueSource(FrameworkElement.LanguageProperty, null, out hasModifiers) != BaseValueSourceInternal.Default) 207public static string ToDecadeRangeString(int decade, FrameworkElement fe)
System\Windows\Controls\DocumentViewer.cs (4)
1377FrameworkElement grid = _documentScrollInfo as FrameworkElement; 2071FrameworkElement fe = _documentScrollInfo as FrameworkElement;
System\Windows\Controls\FlowDocumentReader.cs (12)
792((FrameworkElement)CurrentViewer).Focus(); 913FrameworkElement feViewer; 946feViewer = (FrameworkElement)viewer; 996FrameworkElement fe = focusedElement as FrameworkElement; 1084Invariant.Assert(viewer != null && viewer is FrameworkElement); 1085FrameworkElement feViewer = (FrameworkElement)viewer; 1107Invariant.Assert(viewer != null && viewer is FrameworkElement); 1108FrameworkElement feViewer = (FrameworkElement)viewer; 1128private void CreateTwoWayBinding(FrameworkElement fe, DependencyProperty dp, string propertyPath)
System\Windows\Controls\FlowDocumentScrollViewer.cs (3)
813FrameworkElement.AddIntermediateElementsToRoute( 830continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(LogicalTreeHelper.GetParent(document), LogicalTreeHelper.GetParent(branchNode)); 1307private void CreateTwoWayBinding(FrameworkElement fe, DependencyProperty dp, string propertyPath)
System\Windows\Controls\Frame.cs (3)
659FrameworkElement journalEntryUIElem = e.Parameter as FrameworkElement; 1307FrameworkElement fe;
System\Windows\Controls\Grid.cs (1)
101/// <see cref="FrameworkElement.LogicalChildren"/>
System\Windows\Controls\GridSplitter.cs (1)
98FrameworkElement.HorizontalAlignmentProperty.OverrideMetadata(typeof(GridSplitter), new FrameworkPropertyMetadata(HorizontalAlignment.Right));
System\Windows\Controls\GridViewColumn.cs (2)
379FrameworkElement.WidthProperty.AddOwner( 500FrameworkElement fe;
System\Windows\Controls\GridViewColumnHeader.cs (2)
640FrameworkElement gripperContainer = _headerGripper.Parent as FrameworkElement;
System\Windows\Controls\GridViewHeaderRowPresenter.cs (5)
239/// Override of <seealso cref="FrameworkElement.MeasureOverride" />. 1253FrameworkElement fe = presenter.TemplatedParent as FrameworkElement; 1263fe = fe.TemplatedParent as FrameworkElement; 1578private static bool IsMousePositionValid(FrameworkElement floatingHeader, Point currentPos, double arrange)
System\Windows\Controls\GridViewRowPresenter.cs (11)
128/// Override of <seealso cref="FrameworkElement.MeasureOverride" />. 312FrameworkElement cell = InternalChildren[index] as FrameworkElement; 446_viewItem = this.TemplatedParent as FrameworkElement; 462_viewPort = scrollViewer.GetTemplateChild(ScrollViewer.ScrollContentPresenterTemplateName) as FrameworkElement; 577private FrameworkElement CreateCell(GridViewColumn column) 581FrameworkElement cell; 642FrameworkElement cell; 648cell = (FrameworkElement)children[i]; 697private FrameworkElement _viewPort; 698private FrameworkElement _viewItem;
System\Windows\Controls\GroupItem.cs (7)
53_header = this.GetTemplateChild("PART_Header") as FrameworkElement; 292FrameworkElement headerElement = HeaderElement; 433private FrameworkElement ExpanderHeader 439return _expander.GetTemplateChild(ExpanderHeaderPartName) as FrameworkElement; 446private FrameworkElement HeaderElement 450FrameworkElement headerElement = null; 472FrameworkElement _header;
System\Windows\Controls\Image.cs (1)
232/// Override for <seealso cref="FrameworkElement.ArrangeOverride" />.
System\Windows\Controls\InkCanvas.cs (2)
279e.Property == FrameworkElement.LayoutTransformProperty) 318if (e.Property == FrameworkElement.FlowDirectionProperty)
System\Windows\Controls\InkPresenter.cs (2)
151/// Override of <seealso cref="FrameworkElement.MeasureOverride" /> 195/// Override of <seealso cref="FrameworkElement.ArrangeOverride" />.
System\Windows\Controls\ItemCollection.cs (3)
86internal ItemCollection(FrameworkElement modelParent, int capacity) 1501internal FrameworkElement ModelParentFE 1503get { return ModelParent as FrameworkElement; }
System\Windows\Controls\ItemContainerGenerator.cs (5)
115label = (string)d.GetValue(FrameworkElement.NameProperty); 1060string name = (String)peer.GetValue(FrameworkElement.NameProperty); 2281DependencyProperty dp = FrameworkElement.DataContextProperty; 2286container.SetValue(FrameworkElement.DataContextProperty, item); 2341DependencyProperty dp = FrameworkElement.DataContextProperty;
System\Windows\Controls\ItemContainerTemplateSelector.cs (1)
34return FrameworkElement.FindTemplateResourceInternal(parentItemsControl, item, typeof(ItemContainerTemplate)) as DataTemplate;
System\Windows\Controls\ItemsControl.cs (85)
42[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(FrameworkElement))] 1343Invariant.Assert(parent is FrameworkElement, SR.ItemsControl_ParentNotFrameworkElement); 1351((FrameworkElement)parent).TemplateChild = null; 1383Helper.HasUnmodifiedDefaultOrInheritedValue(container, FrameworkElement.BindingGroupProperty)) 1389container.SetValue(FrameworkElement.BindingGroupProperty, containerBindingGroup); 1828FrameworkElement element = info.Container as FrameworkElement; 1875while (startingElement != null && !(startingElement is FrameworkElement)) 1882return NavigateByLine(FocusedInfo, startingElement as FrameworkElement, direction, itemNavigateArgs); 1886FrameworkElement startingElement, 1889out FrameworkElement container) 1927FrameworkElement startingElement, 1950FrameworkElement container; 1961FrameworkElement startingElement, 1964out FrameworkElement container) 1978FrameworkElement nextElement = null; 2019treeViewNavigation) as FrameworkElement; 2024FrameworkElement viewport = GetViewportElement(); 2038TryGetTreeViewItemHeader(nextElement) as FrameworkElement, 2148treeViewNavigation) as FrameworkElement; 2186FrameworkElement startingElement, 2189out FrameworkElement container) 2222return NavigateByPage(FocusedInfo, Keyboard.FocusedElement as FrameworkElement, direction, itemNavigateArgs); 2235FrameworkElement startingElement, 2258FrameworkElement container; 2269FrameworkElement startingElement, 2272out FrameworkElement container) 2289FrameworkElement firstElement; 2367FrameworkElement container; 2371internal bool NavigateToStartInternal(ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container) 2405FrameworkElement firstElement; 2406FrameworkElement hopefulFirstElement = FindEndFocusableLeafContainer(ItemsHost, false /*last*/); 2433FrameworkElement container; 2437internal bool NavigateToEndInternal(ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container) 2471FrameworkElement lastElement; 2472FrameworkElement hopefulLastElement = FindEndFocusableLeafContainer(ItemsHost, true /*last*/); 2497private FrameworkElement FindEndFocusableLeafContainer(Panel itemsHost, bool last) 2511FrameworkElement fe = children[i] as FrameworkElement; 2515FrameworkElement result = null; 2593FrameworkElement container; 2600private object FindFocusable(int startIndex, int direction, out int foundIndex, out FrameworkElement foundContainer) 2609FrameworkElement container = ItemContainerGenerator.ContainerFromIndex(startIndex) as FrameworkElement; 2628private void AdjustOffsetToAlignWithEdge(FrameworkElement element, FocusNavigationDirection direction) 2635FrameworkElement viewportElement = GetViewportElement(); 2636element = TryGetTreeViewItemHeader(element) as FrameworkElement; 2671private void MakeVisible(int index, FocusNavigationDirection direction, bool alwaysAtTopOfViewport, out FrameworkElement container) 2677container = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement; 2687container = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement; 2697private void MakeVisible(ItemInfo info, FocusNavigationDirection direction, out FrameworkElement container) 2713internal void MakeVisible(FrameworkElement container, FocusNavigationDirection direction, bool alwaysAtTopOfViewport) 2720FrameworkElement viewportElement = GetViewportElement(); 2742FrameworkElement firstElement; 2771private bool NavigateToFirstItemOnCurrentPage(object startingItem, FocusNavigationDirection direction, ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container) 2773object firstItem = GetFirstItemOnCurrentPage(ItemContainerGenerator.ContainerFromItem(startingItem) as FrameworkElement, 2787private object GetFirstItemOnCurrentPage(FrameworkElement startingElement, 2789out FrameworkElement firstElement) 2838FrameworkElement currentElement = startingElement; 2853FrameworkElement viewportElement = GetViewportElement(); 2859viewportElement) as FrameworkElement; 2895internal FrameworkElement GetViewportElement() 2902FrameworkElement viewPort = ScrollHost; 2928FrameworkElement container = ItemContainerGenerator.ContainerFromItem(item) as FrameworkElement; 2938private bool IsOnCurrentPage(FrameworkElement element, FocusNavigationDirection axis) 2950private bool IsOnCurrentPage(FrameworkElement viewPort, FrameworkElement element, FocusNavigationDirection axis, bool fullyVisible) 2955internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort, 2964internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort, 2991internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort, 3082internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort, 3367FrameworkElement relativeTo = ScrollHost != null ? (FrameworkElement)ScrollHost : ItemsHost; 3416private bool IsRTL(FrameworkElement element) 3422private static ItemsControl GetEncapsulatingItemsControl(FrameworkElement element) 3431element = VisualTreeHelper.GetParent(element) as FrameworkElement; 3436private static object GetEncapsulatingItem(FrameworkElement element, out FrameworkElement container) 3442private static object GetEncapsulatingItem(FrameworkElement element, out FrameworkElement container, out ItemsControl itemsControl) 3460element = VisualTreeHelper.GetParent(element) as FrameworkElement; 3495container.ReadLocalValue(FrameworkElement.StyleProperty) != DependencyProperty.UnsetValue) 3526container.ClearValue(FrameworkElement.StyleProperty); 3536container.ClearValue(FrameworkElement.StyleProperty);
System\Windows\Controls\ItemsPanelTemplate.cs (1)
153protected override void ValidateTemplatedParent(FrameworkElement templatedParent)
System\Windows\Controls\ItemsPresenter.cs (2)
65/// Override of <seealso cref="FrameworkElement.MeasureOverride" />. 76/// Override of <seealso cref="FrameworkElement.ArrangeOverride" />.
System\Windows\Controls\MediaElement.cs (2)
704/// Override for <seealso cref="FrameworkElement.MeasureOverride" />. 712/// Override for <seealso cref="FrameworkElement.ArrangeOverride" />.
System\Windows\Controls\Menu.cs (2)
283FrameworkElement element = e.OriginalSource as FrameworkElement;
System\Windows\Controls\MenuItem.cs (3)
2453FrameworkElement parent = LogicalParent as FrameworkElement; 2478private static bool IsMouseReallyOver(FrameworkElement elem)
System\Windows\Controls\Page.cs (5)
687FrameworkElement feParent = visualParent as FrameworkElement; 699feParent = parent as FrameworkElement; 780FrameworkElement feParent = this.Parent as FrameworkElement;
System\Windows\Controls\Panel.cs (2)
396protected virtual UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent) 606private void EnsureEmptyChildren(FrameworkElement logicalParent)
System\Windows\Controls\PasswordBox.cs (7)
39[TemplatePart(Name = "PART_ContentHost", Type = typeof(FrameworkElement))] 481/// <see cref="FrameworkElement.OnPropertyChanged"/> 790internal FrameworkElement RenderScope 946_passwordBoxContentHost = GetTemplateChild(ContentHostTemplateName) as FrameworkElement; 998FrameworkElement element = _renderScope; 1005element = element.Parent as FrameworkElement; 1297private FrameworkElement _passwordBoxContentHost;
System\Windows\Controls\PopupControlService.cs (1)
1181return FrameworkElement.PopupControlService;
System\Windows\Controls\Primitives\CalendarItem.cs (9)
17[TemplatePart(Name = CalendarItem.ElementRoot, Type = typeof(FrameworkElement))] 24[TemplatePart(Name = CalendarItem.ElementDisabledVisual, Type = typeof(FrameworkElement))] 51private FrameworkElement _disabledVisual; 176_disabledVisual = GetTemplateChild(ElementDisabledVisual) as FrameworkElement; 449FrameworkElement focusTarget = null; 959FrameworkElement titleCell = (this._dayTitleTemplate != null) ? (FrameworkElement)this._dayTitleTemplate.LoadContent() : new ContentControl(); 1025FrameworkElement daytitle = _monthView.Children[childIndex] as FrameworkElement;
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (1)
209/// Override for <see cref="System.Windows.FrameworkElement.OnApplyTemplate">FrameworkElement.OnApplyTemplate</see>
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (2)
142internal FrameworkElement DetailsElement 149return VisualTreeHelper.GetChild(this, 0) as FrameworkElement;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (9)
449this.TextEditorRenderScope = (adornerDecorator != null) ? (adornerDecorator.Child as FrameworkElement) : null; 747internal FrameworkElement TextEditorRenderScope 920FrameworkElement fe; 930fe = child as FrameworkElement; 966FrameworkElement fe; 979fe = child as FrameworkElement; 1156FrameworkElement fe = child as FrameworkElement; 1665private FrameworkElement _textEditorRenderScope; // RenderScope associated with the TextEditor.
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (2)
307private FrameworkElement GetStableAncester() 311return (ic != null) ? ic : (FrameworkElement)this;
System\Windows\Controls\Primitives\LayoutInformation.cs (3)
20private static void CheckArgument(FrameworkElement element) 29public static Rect GetLayoutSlot(FrameworkElement element) 42public static Geometry GetLayoutClip(FrameworkElement element)
System\Windows\Controls\Primitives\PopupRoot.cs (2)
361FrameworkElement child = Child as FrameworkElement;
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (2)
747FrameworkElement templatedParent = scrollContainer.TemplatedParent as FrameworkElement;
System\Windows\Controls\Primitives\Selector.cs (8)
116FrameworkElement.AddHandler(element, SelectedEvent, handler); 127FrameworkElement.RemoveHandler(element, SelectedEvent, handler); 145FrameworkElement.AddHandler(element, UnselectedEvent, handler); 156FrameworkElement.RemoveHandler(element, UnselectedEvent, handler); 1433private void SetSelectedHelper(object item, FrameworkElement UI, bool selected) 1897((Selector)sender).NotifyIsSelectedChanged(e.OriginalSource as FrameworkElement, true, e); 1902((Selector)sender).NotifyIsSelectedChanged(e.OriginalSource as FrameworkElement, false, e); 1913internal void NotifyIsSelectedChanged(FrameworkElement container, bool selected, RoutedEventArgs e)
System\Windows\Controls\Primitives\TextBoxBase.cs (7)
43[TemplatePart(Name = "PART_ContentHost", Type = typeof(FrameworkElement))] 1398internal abstract FrameworkElement CreateRenderScope(); 1808internal FrameworkElement RenderScope 1969FrameworkElement renderScope = CreateRenderScope(); 1975_textBoxContentHost = GetTemplateChild(ContentHostTemplateName) as FrameworkElement; 2243private FrameworkElement _textBoxContentHost; 2246private FrameworkElement _renderScope;
System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (1)
200protected override UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent)
System\Windows\Controls\Primitives\Track.cs (3)
425/// <seealso cref="FrameworkElement.MeasureOverride" /> 473/// <seealso cref="FrameworkElement.ArrangeOverride" /> 705private void BindChildToTemplatedParent(FrameworkElement element, DependencyProperty target, DependencyProperty source)
System\Windows\Controls\ProgressBar.cs (11)
34[TemplatePart(Name = "PART_Track", Type = typeof(FrameworkElement))] 35[TemplatePart(Name = "PART_Indicator", Type = typeof(FrameworkElement))] 36[TemplatePart(Name = "PART_GlowRect", Type = typeof(FrameworkElement))] 266_glow.BeginAnimation(FrameworkElement.MarginProperty, animation); 270_glow.BeginAnimation(FrameworkElement.MarginProperty, null); 350_track = GetTemplateChild(TrackTemplateName) as FrameworkElement; 351_indicator = GetTemplateChild(IndicatorTemplateName) as FrameworkElement; 352_glow = GetTemplateChild(GlowingRectTemplateName) as FrameworkElement; 376private FrameworkElement _track; 377private FrameworkElement _indicator; 378private FrameworkElement _glow;
System\Windows\Controls\RichTextBox.cs (2)
319internal override FrameworkElement CreateRenderScope() 784this.RenderScope.ClearValue(FrameworkElement.HorizontalAlignmentProperty);
System\Windows\Controls\ScrollViewer.cs (8)
384/// <see cref="System.Windows.FrameworkElement.Width" /> on the content element. 396/// <see cref="System.Windows.FrameworkElement.Height" /> on the content element. 425/// <see cref="System.Windows.FrameworkElement.Width" /> on this element. 437/// <see cref="System.Windows.FrameworkElement.Height" /> on this element. 1039FrameworkElement fe = elementRoot as FrameworkElement; 2725hsb.SetValue(FrameworkElement.CursorProperty, Cursors.Arrow); 2735vsb.SetValue(FrameworkElement.CursorProperty, Cursors.Arrow);
System\Windows\Controls\SinglePageViewer.cs (2)
791FrameworkElement.AddIntermediateElementsToRoute( 808continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(LogicalTreeHelper.GetParent(document), LogicalTreeHelper.GetParent(branchNode));
System\Windows\Controls\Slider.cs (11)
43[TemplatePart(Name = "PART_SelectionRange", Type = typeof(FrameworkElement))] 1002FrameworkElement rangeElement = this.SelectionRangeElement as FrameworkElement; 1062FrameworkElement rangeElement = this.SelectedRangeElement as FrameworkElement; 1144internal FrameworkElement SelectionRangeElement 1156internal FrameworkElement SelectedRangeElement 1359SelectionRangeElement = GetTemplateChild(SelectionRangeElementName) as FrameworkElement; 1360SelectedRangeElement = GetTemplateChild(SelectedRangeElementName) as FrameworkElement; 1462private FrameworkElement _selectionRangeElement; 1463private FrameworkElement _selectedRangeElement;
System\Windows\Controls\SoundPlayerAction.cs (2)
129internal sealed override void Invoke(FrameworkElement el, 141internal sealed override void Invoke(FrameworkElement el)
System\Windows\Controls\StickyNote.cs (8)
812FrameworkElement innerControl = stickyNoteControl.Content.InnerControl; 829FrameworkElement innerControl = stickyNoteControl.Content.InnerControl; 993FrameworkElement parent = VisualTreeHelper.GetParent(Content.InnerControl) as FrameworkElement; 1394parent = FrameworkElement.GetFrameworkParent(parent); 1471FrameworkElement innerControl = Content.InnerControl; 1515FrameworkElement innerControl = (FrameworkElement)Content.InnerControl;
System\Windows\Controls\TabControl.cs (2)
565FrameworkElement visualParent = VisualTreeHelper.GetParent(tabItem) as FrameworkElement;
System\Windows\Controls\TextAdaptor.cs (2)
268FrameworkElement fe = renderScope as FrameworkElement;
System\Windows\Controls\TextBox.cs (2)
1016/// <see cref="FrameworkElement.OnPropertyChanged"/> 1122internal override FrameworkElement CreateRenderScope()
System\Windows\Controls\TextRangeAdaptor.cs (7)
152object val = tp.GetValue(FrameworkElement.LanguageProperty); 320Thickness margin = (Thickness)tp.GetValue(FrameworkElement.MarginProperty); 331Thickness margin = (Thickness)tp.GetValue(FrameworkElement.MarginProperty); 342Thickness margin = (Thickness)tp.GetValue(FrameworkElement.MarginProperty); 353Thickness margin = (Thickness)tp.GetValue(FrameworkElement.MarginProperty); 415FlowDirection flowWCP = (FlowDirection)tp.GetValue(FrameworkElement.FlowDirectionProperty); 1279(XmlLanguage)context.GetValue(FrameworkElement.LanguageProperty) :
System\Windows\Controls\TextSearch.cs (4)
616FrameworkElement fe = o as FrameworkElement; 756internal static string GetPrimaryText(FrameworkElement element) 816object o = element.GetValue(FrameworkElement.LanguageProperty);
System\Windows\Controls\ToolBar.cs (2)
473FrameworkElement fe = element as FrameworkElement;
System\Windows\Controls\TreeView.cs (3)
617FrameworkElement container; 624FrameworkElement container; 711FrameworkElement startingContainer = _selectedContainer.HeaderElement;
System\Windows\Controls\TreeViewItem.cs (13)
26[TemplatePart(Name = HeaderPartName, Type = typeof(FrameworkElement))] 47EventManager.RegisterClassHandler(typeof(TreeViewItem), FrameworkElement.RequestBringIntoViewEvent, new RequestBringIntoViewEventHandler(OnRequestBringIntoView)); 375FrameworkElement headerElement = HeaderElement; 687FrameworkElement startingContainer = this.HeaderElement; 778FrameworkElement header = HeaderElement; 794FrameworkElement header = HeaderElement; 802internal FrameworkElement HeaderElement 806return GetTemplateChild(HeaderPartName) as FrameworkElement; 812internal FrameworkElement TryGetHeaderElement() 815FrameworkElement header = HeaderElement; 839FrameworkElement parent = VisualTreeHelper.GetParent(toggleButton) as FrameworkElement; 847header = VisualTreeHelper.GetChild(parent, index+1) as FrameworkElement;
System\Windows\Controls\UIElementCollection.cs (3)
37public UIElementCollection(UIElement visualParent, FrameworkElement logicalParent) 539internal FrameworkElement LogicalParent 546private readonly FrameworkElement _logicalParent;
System\Windows\Controls\UserControl.cs (2)
61internal override FrameworkElement StateGroupsRoot 65return Content as FrameworkElement;
System\Windows\Controls\Validation.cs (4)
53FrameworkElement.AddHandler(element, ErrorEvent, handler); 63FrameworkElement.RemoveHandler(element, ErrorEvent, handler); 344if (!HasValidationGroup(targetElement as FrameworkElement)) 357private static bool HasValidationGroup(FrameworkElement fe)
System\Windows\Controls\VirtualizingStackPanel.cs (33)
424FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport( 548FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport( 676FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport( 880FrameworkElement prevFirstContainerInViewport = _scrollData._firstContainerInViewport; 885FrameworkElement currFirstContainerInViewport = ComputeFirstContainerInViewport( 908FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport( 1124private FrameworkElement ComputeFirstContainerInViewport( 1125FrameworkElement viewportElement, 1138private FrameworkElement ComputeFirstContainerInViewport( 1139FrameworkElement viewportElement, 1176FrameworkElement result = null; 1185FrameworkElement fe = children[i] as FrameworkElement; 1722FrameworkElement childFE = child as FrameworkElement; 1986FrameworkElement.AddHandler(element, CleanUpVirtualizedItemEvent, handler); 1996FrameworkElement.RemoveHandler(element, CleanUpVirtualizedItemEvent, handler); 5290FrameworkElement container = virtualizationInfoProvider as FrameworkElement; 6409FrameworkElement container = virtualizationInfoProvider as FrameworkElement; 6468FrameworkElement fe = virtualizingChild as FrameworkElement; 6605private bool IsHeaderBeforeItems(bool isHorizontal, FrameworkElement container, ref Thickness inset) 7115bool isHeaderBeforeItems = IsHeaderBeforeItems(isHorizontal, virtualizingChild as FrameworkElement, ref inset); 11093bool isHeaderBeforeItems = IsHeaderBeforeItems(isHorizontal, virtualizingElement as FrameworkElement, ref inset); 11626private FrameworkElement FirstContainerInViewport 11813internal FrameworkElement _firstContainerInViewport; 12175sti = new ScrollTracingInfo(tracer, _nullInfo.Generation, 0, itemsOwner as FrameworkElement, null, null, 0); 12197sti = new ScrollTracingInfo(tracer, _nullInfo.Generation, parentInfo.Depth + 1, itemsOwner as FrameworkElement, parent, parentItem, itemIndex); 12682internal FrameworkElement Owner { get; private set; } 12687internal ScrollTracingInfo(ScrollTracer tracer, int generation, int depth, FrameworkElement owner, VirtualizingStackPanel parent, object parentItem, int itemIndex) 12884internal FrameworkElement _firstContainerInViewport;
System\Windows\Controls\WrapPanel.cs (2)
219/// <see cref="FrameworkElement.MeasureOverride"/> 280/// <see cref="FrameworkElement.ArrangeOverride"/>
System\Windows\ControlTemplate.cs (1)
62protected override void ValidateTemplatedParent(FrameworkElement templatedParent)
System\Windows\Data\Binding.cs (4)
115FrameworkElement.AddHandler(element, SourceUpdatedEvent, handler); 125FrameworkElement.RemoveHandler(element, SourceUpdatedEvent, handler); 145FrameworkElement.AddHandler(element, TargetUpdatedEvent, handler); 155FrameworkElement.RemoveHandler(element, TargetUpdatedEvent, handler);
System\Windows\Data\BindingExpression.cs (16)
230if (dp == FrameworkElement.DataContextProperty && d == ContextElement) 238else if (dp == FrameworkElement.LanguageProperty && UsesLanguage && d == TargetElement) 466BaseValueSourceInternal valueSource = d.GetValueSource(FrameworkElement.DataContextProperty, null, out hasModifiers); 713if (TargetProperty == FrameworkElement.DataContextProperty || 718cvs.PropertyForInheritanceContext == FrameworkElement.DataContextProperty) 721contextElement = FrameworkElement.GetFrameworkParent(contextElement); 767source = contextElement.GetValue(FrameworkElement.DataContextProperty); 934object item = contextElement.GetValue(FrameworkElement.DataContextProperty); 1228newSources[offset++] = new WeakDependencySource(_ctxElement, FrameworkElement.DataContextProperty); 1241newSources[offset++] = new WeakDependencySource(TargetElementReference, FrameworkElement.LanguageProperty); 2292item = contextElement.GetValue(FrameworkElement.DataContextProperty); 2440object newItem = contextElement.GetValue(FrameworkElement.DataContextProperty); 2669if (dp == FrameworkElement.DataContextProperty) 2688if (dp == FrameworkElement.LanguageProperty && UsesLanguage && d == TargetElement) 2733ancestor = FrameworkElement.GetFrameworkParent(ancestor)) 2737b = BindingOperations.GetBindingExpression(ancestor, FrameworkElement.DataContextProperty) as BindingExpression;
System\Windows\Data\BindingExpressionBase.cs (5)
1275if (IsInTransfer && (TargetProperty == FrameworkElement.LanguageProperty)) 1293_culture = ((XmlLanguage) target.GetValue(FrameworkElement.LanguageProperty)).GetSpecificCulture(); 1730bg = (BindingGroup)contextElement.GetValue(FrameworkElement.BindingGroupProperty); 1738DependencyProperty dataContextDP = FrameworkElement.DataContextProperty; 1756DependencyProperty bindingGroupDP = FrameworkElement.BindingGroupProperty;
System\Windows\Data\BindingGroup.cs (5)
598if (property == FrameworkElement.BindingGroupProperty && 823object dataContextItem = mentor.GetValue(FrameworkElement.DataContextProperty); 929FrameworkElement fe; 1027mentor.GetValue(FrameworkElement.DataContextProperty) == CollectionView.NewItemPlaceholder) 1317_culture = ((System.Windows.Markup.XmlLanguage) mentor.GetValue(FrameworkElement.LanguageProperty)).GetSpecificCulture();
System\Windows\Data\CollectionViewSource.cs (1)
830XmlLanguage language = (d != null) ? (XmlLanguage)d.GetValue(FrameworkElement.LanguageProperty) : null;
System\Windows\Data\MultiBindingExpression.cs (3)
236WeakDependencySource[] commonSources = new WeakDependencySource[] { new WeakDependencySource(TargetElement, FrameworkElement.LanguageProperty) }; 454commonSources = new WeakDependencySource[] { new WeakDependencySource(TargetElement, FrameworkElement.LanguageProperty) }; 1037if (UsesLanguage && d == TargetElement && dp == FrameworkElement.LanguageProperty)
System\Windows\DataTemplate.cs (1)
185protected override void ValidateTemplatedParent(FrameworkElement templatedParent)
System\Windows\DescendentsWalker.cs (10)
59if (_startNode is FrameworkElement 82if (d is FrameworkElement fe) 187FrameworkElement feParent, 230FrameworkElement feParent, bool hasLogicalChildren ) 262FrameworkElement fe = current as FrameworkElement; 303FrameworkElement feParent, bool hasLogicalChildren) 320if (child != null && child is FrameworkElement fe) 354private void VisitNode(FrameworkElement fe, bool visitedViaVisualTree) 400if (d is FrameworkElement fe)
System\Windows\DescendentsWalkerBase.cs (1)
41if (ancestor is FrameworkElement fe)
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (4)
284public static IEnumerable<FrameworkElement> GetFrameworkElementOwners(ResourceDictionary dictionary) 286return GetOwners<FrameworkElement>(dictionary.FrameworkElementOwners, EmptyFrameworkElementList); 320private static IReadOnlyCollection<FrameworkElement> EmptyFrameworkElementList 321=> Array.Empty<FrameworkElement>();
System\Windows\Documents\AdornerDecorator.cs (1)
136/// Override for <seealso cref="FrameworkElement.ArrangeOverride" />
System\Windows\Documents\Block.cs (1)
257FrameworkElement.FlowDirectionProperty.AddOwner(typeof(Block));
System\windows\Documents\CaretElement.cs (7)
129FrameworkElement owner = GetOwnerElement(); 780private static FrameworkElement Debug_RenderScope 784return ((ITextSelection)TextEditor._ThreadLocalStore.FocusedTextSelection).TextView.RenderScope as FrameworkElement; // TextBlock / TextFlow 830private FrameworkElement GetOwnerElement() 835internal static FrameworkElement GetOwnerElement(FrameworkElement uiScope) 847return (FrameworkElement)node;
System\Windows\Documents\FixedDSBuilder.cs (1)
166XmlLanguage language = (XmlLanguage) _fixedPage.GetValue(FrameworkElement.LanguageProperty);
System\Windows\Documents\FixedElement.cs (2)
64FrameworkElement.LanguageProperty.AddOwner( 93FrameworkElement.FlowDirectionProperty.AddOwner(
System\Windows\Documents\FixedHyperlink.cs (2)
100FrameworkElement targetElement = null; 102targetElement = ((IFixedNavigate)ElementHost).FindElementByID(elementID, out rootFixedPage) as FrameworkElement;
System\Windows\Documents\FixedPage.cs (5)
451/// <seealso cref="FrameworkElement.Margin" /> 468/// <seealso cref="FrameworkElement.Margin" /> 485/// <seealso cref="FrameworkElement.Margin" /> 503/// <seealso cref="FrameworkElement.Margin" /> 724private UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent)
System\Windows\Documents\FixedSOMFixedBlock.cs (1)
212element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft);
System\Windows\Documents\FixedSOMTextRun.cs (3)
233element.SetValue(FrameworkElement.LanguageProperty, XmlLanguage.GetLanguage(_cultureInfo.IetfLanguageTag)); 241element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 245element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight);
System\Windows\Documents\FixedTextBuilder.cs (1)
1398public void FindHyperlinkPaths(FrameworkElement elem)
System\Windows\Documents\Floater.cs (1)
82FrameworkElement.HorizontalAlignmentProperty.AddOwner(
System\Windows\Documents\FlowDocument.cs (4)
903else if (element is FrameworkElement) 906while (element is FrameworkElement) 913if (!(parentOfEmbeddedElement is FrameworkElement)) 921textPointer = TextContainerHelper.GetTextPointerForEmbeddedObject((FrameworkElement)element);
System\Windows\Documents\Hyperlink.cs (2)
894FrameworkElement fe = d as FrameworkElement;
System\Windows\Documents\ImmComposition.cs (2)
79internal static ImmComposition GetImmComposition(FrameworkElement scope) 1873private FrameworkElement UiScope
System\Windows\Documents\Inline.cs (1)
134FrameworkElement.FlowDirectionProperty.AddOwner(typeof(Inline));
System\Windows\Documents\RangeContentEnumerator.cs (2)
332FrameworkElement fe = node as FrameworkElement;
System\Windows\Documents\RubberbandSelector.cs (2)
54internal void AttachRubberbandSelector(FrameworkElement scope) 620private FrameworkElement _uiScope; // parent of _scope, if _scope is a DocumentGrid.
System\Windows\Documents\Speller.cs (3)
309return property == FrameworkElement.LanguageProperty || 1506_textEditor.UiScope.GetValueSource(FrameworkElement.LanguageProperty, null, out hasModifiers) == BaseValueSourceInternal.Default) 1513language = (XmlLanguage)position.GetValue(FrameworkElement.LanguageProperty);
System\Windows\Documents\TextContainer.cs (2)
179internal void EnableUndo(FrameworkElement uiScope) 187internal void DisableUndo(FrameworkElement uiScope)
System\windows\Documents\TextEditor.cs (25)
58internal TextEditor(ITextContainer textContainer, FrameworkElement uiScope, bool isUndoEnabled) 312internal static ITextSelection GetTextSelection(FrameworkElement frameworkElement) 482XmlLanguage language = (XmlLanguage)((ITextPointer)range.Start).GetValue(FrameworkElement.LanguageProperty); 490range.ApplyPropertyValue(FrameworkElement.LanguageProperty, XmlLanguage.GetLanguage(inputCultureInfo.IetfLanguageTag)); 505FlowDirection currentFlowDirection = (FlowDirection)((ITextPointer)range.Start).GetValue(FrameworkElement.FlowDirectionProperty); 511range.ApplyPropertyValue(FrameworkElement.FlowDirectionProperty, inputFlowDirection); 845internal FrameworkElement UiScope 1277if ((source is FrameworkElement) && ((FrameworkElement)source).TemplatedParent == this.UiScope) 1335internal FrameworkElement _Scroller 1339FrameworkElement scroller = this.TextView == null ? null : (this.TextView.RenderScope as FrameworkElement); 1343scroller = FrameworkElement.GetFrameworkParent(scroller) as FrameworkElement; 1641TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1658FrameworkElement frameworkElement = sender as FrameworkElement; 1695TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1750TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1790TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1833TextEditor This = TextEditor._GetTextEditor((FrameworkElement)target); 1859TextEditor This = TextEditor._GetTextEditor((FrameworkElement)target); 1885TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1905TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1990private FrameworkElement _uiScope;
System\windows\Documents\TextEditorContextMenu.cs (8)
39EventManager.RegisterClassHandler(controlType, FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpening)); 77contextMenu = (ContextMenu)e.TargetElement.GetValue(FrameworkElement.ContextMenuProperty); 90contextMenu = (ContextMenu)element.GetValue(FrameworkElement.ContextMenuProperty); 132if (This.UiScope.ReadLocalValue(FrameworkElement.ContextMenuProperty) == null) 272FrameworkElement element = This.TextView.RenderScope as FrameworkElement; 288element = visual as FrameworkElement; 335private static void ClipToElement(FrameworkElement element, GeneralTransform transform,
System\windows\Documents\TextEditorCopyPaste.cs (3)
723else if (element is FrameworkElement) 725((TextSelection)This.Selection).InsertEmbeddedUIElement((FrameworkElement)element); 1015private static bool ConfirmDataFormatSetting(FrameworkElement uiScope, IDataObject dataObject, string format)
System\windows\Documents\TextEditorDragDrop.cs (1)
364FrameworkElement scroller = _textEditor._Scroller;
System\windows\Documents\TextEditorMouse.cs (3)
524FrameworkElement scroller = This._Scroller; 803if (hitElement is FrameworkElement && ((FrameworkElement)hitElement).TemplatedParent == textEditor.UiScope)
System\windows\Documents\TextEditorParagraphs.cs (2)
158TextEditorCharacters._OnApplyProperty(This, FrameworkElement.FlowDirectionProperty, 168TextEditorCharacters._OnApplyProperty(This, FrameworkElement.FlowDirectionProperty,
System\windows\Documents\TextEditorSelection.cs (1)
2447return (FlowDirection)navigator.GetValue(FrameworkElement.FlowDirectionProperty);
System\windows\Documents\TextEditorSpelling.cs (1)
164XmlLanguage language = (XmlLanguage)spellingError.Start.GetValue(FrameworkElement.LanguageProperty);
System\windows\Documents\TextEditorTyping.cs (4)
1239UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1240This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1255UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 1256This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft);
System\Windows\Documents\TextPointer.cs (2)
3794internal FrameworkElement ContainingFrameworkElement 3798return ((FrameworkElement)_tree.Parent);
System\Windows\Documents\TextPointerBase.cs (2)
892if (templatedParent == null && ((FlowDocumentView)textView.RenderScope).Parent is FrameworkElement) 894templatedParent = ((FrameworkElement)((FlowDocumentView)textView.RenderScope).Parent).TemplatedParent as Visual;
System\Windows\Documents\TextRange.cs (4)
1023internal void InsertEmbeddedUIElement(FrameworkElement embeddedElement) 1312internal FrameworkElement ContainingFrameworkElement 1574internal virtual void InsertEmbeddedUIElementVirtual(FrameworkElement embeddedElement) 1634if (formattingProperty == FrameworkElement.FlowDirectionProperty)
System\Windows\Documents\TextRangeEdit.cs (10)
843parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 847parentFlowDirection = (FlowDirection)FrameworkElement.FlowDirectionProperty.GetDefaultValue(typeof(FrameworkElement)); 886UIElementPropertyUndoUnit.Add(block.TextContainer, embeddedElement, FrameworkElement.HorizontalAlignmentProperty, horizontalAlignment); 887embeddedElement.SetValue(FrameworkElement.HorizontalAlignmentProperty, horizontalAlignment); 1322FlowDirection midpointFlowDirection = (FlowDirection)commonAncestor.GetValue(FrameworkElement.FlowDirectionProperty); 1323FlowDirection previousFlowDirection = (FlowDirection)previousRun.GetValue(FrameworkElement.FlowDirectionProperty); 1324FlowDirection nextFlowDirection = (FlowDirection)nextRun.GetValue(FrameworkElement.FlowDirectionProperty); 1336SetStructuralInlineProperty(scopingPreviousInline.ElementStart, scopingNextInline.ElementEnd, FrameworkElement.FlowDirectionProperty, previousFlowDirection); 1861while ((FlowDirection)inline.Parent.GetValue(FrameworkElement.FlowDirectionProperty) == flowDirection)
System\Windows\Documents\TextRangeSerialization.cs (3)
1233FrameworkElement embeddedElement = null; 1236embeddedElement = ((BlockUIContainer)uiContainer).Child as FrameworkElement; 1244embeddedElement = ((InlineUIContainer)uiContainer).Child as FrameworkElement;
System\Windows\Documents\TextSchema.cs (18)
43FrameworkElement.LanguageProperty, 44FrameworkElement.FlowDirectionProperty, 1166FrameworkElement.LanguageProperty, 1170FrameworkElement.LayoutTransformProperty, 1171FrameworkElement.WidthProperty, 1172FrameworkElement.MinWidthProperty, 1173FrameworkElement.MaxWidthProperty, 1174FrameworkElement.HeightProperty, 1175FrameworkElement.MinHeightProperty, 1176FrameworkElement.MaxHeightProperty, 1178FrameworkElement.MarginProperty, 1179FrameworkElement.HorizontalAlignmentProperty, 1180FrameworkElement.VerticalAlignmentProperty, 1182FrameworkElement.CursorProperty, 1183FrameworkElement.ForceCursorProperty, 1185FrameworkElement.ToolTipProperty, 1224FrameworkElement.FlowDirectionProperty, 1225FrameworkElement.LanguageProperty,
System\windows\Documents\TextSelection.cs (14)
328FrameworkElement uiScope = UiScope; 329FrameworkElement owner = CaretElement.GetOwnerElement(uiScope); 510FlowDirection initialFlowDirection = (FlowDirection)caretPosition.GetValue(FrameworkElement.FlowDirectionProperty); 515initialFlowDirection == (FlowDirection)caretPosition.GetValue(FrameworkElement.FlowDirectionProperty) && 1254internal override void InsertEmbeddedUIElementVirtual(FrameworkElement embeddedElement) 1283formattingProperty != FrameworkElement.FlowDirectionProperty) // We dont want to apply flowdirection property to inlines when selection is empty. 1495inheritableProperties[i] != FrameworkElement.LanguageProperty && 1496inheritableProperties[i] != FrameworkElement.FlowDirectionProperty && 2267FlowDirection flowDirection = (FlowDirection)focusedTextSelection.Start.GetValue(FrameworkElement.FlowDirectionProperty); 2393FlowDirection uiScopeflowDirection = (FlowDirection)textEditor.UiScope.GetValue(FrameworkElement.FlowDirectionProperty); 2578if (element is FrameworkElement || element is FrameworkContentElement) 2581if (parent == null && element is FrameworkElement) 2583parent = ((FrameworkElement)element).TemplatedParent; 2663private FrameworkElement UiScope
System\Windows\Documents\TextStore.cs (15)
2098internal FrameworkElement UiScope 4730FrameworkElement target = o as FrameworkElement; 4782FrameworkElement uiScope = textStore.UiScope; 4931FrameworkElement uiScope = textStore.UiScope; 4975private static List<Tuple<WeakReference<FrameworkElement>,TraceList>> s_TargetToTraceListMap 4976= new List<Tuple<WeakReference<FrameworkElement>,TraceList>>(); 4979static TraceList TraceListForUiScope(FrameworkElement target) 4988WeakReference<FrameworkElement> wr = s_TargetToTraceListMap[i].Item1; 4989FrameworkElement fe; 5007private static TraceList AddToMap(FrameworkElement target) 5034new Tuple<WeakReference<FrameworkElement>,TraceList>( 5035new WeakReference<FrameworkElement>(target), 5059WeakReference<FrameworkElement> wr = s_TargetToTraceListMap[i].Item1; 5060FrameworkElement unused;
System\Windows\Documents\TextTreeNode.cs (1)
335if (objectNode.EmbeddedElement is FrameworkElement)
System\Windows\EventTrigger.cs (8)
261FrameworkElement _source; 273internal static void ProcessTriggerCollection( FrameworkElement triggersHost ) 295internal static void ProcessOneTrigger( FrameworkElement triggersHost, TriggerBase triggerBase ) 311eventTrigger._source = FrameworkElement.FindNamedFrameworkElement( triggersHost, eventTrigger.SourceName ); 334internal static void DisconnectAllTriggers( FrameworkElement triggersHost ) 355internal static void DisconnectOneTrigger( FrameworkElement triggersHost, TriggerBase triggerBase ) 374internal EventTriggerSourceListener( EventTrigger trigger, FrameworkElement host ) 391private FrameworkElement _owningTriggerHost;
System\Windows\FrameworkContentElement.cs (43)
132FrameworkElement.StyleProperty.AddOwner( 178= FrameworkElement.OverridesDefaultStyleProperty.AddOwner(typeof(FrameworkContentElement), 197FrameworkElement.DefaultStyleKeyProperty.AddOwner( 366object resource = FrameworkElement.FindResourceInternal(null /* fe */, this, resourceKey); 393object resource = FrameworkElement.FindResourceInternal(null /* fe */, this, resourceKey); 534object implicitValue = FrameworkElement.FindImplicitStyleResource(this, this.GetType(), out source); 574FrameworkElement parentFE; 575bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE); 638hasParent = FrameworkElement.GetFrameworkParent(parentFE, out parentFE, out parentFCE); 642hasParent = FrameworkElement.GetFrameworkParent(parentFCE, out parentFE, out parentFCE); 662FrameworkElement feTemplatedParent = (FrameworkElement)_templatedParent; 719if (dp == FrameworkElement.NameProperty && 736FrameworkElement feTemplatedParent = TemplatedParent as FrameworkElement; 835FrameworkElement.NameProperty.AddOwner( 854FrameworkElement.TagProperty.AddOwner( 875FrameworkElement.LanguageProperty.AddOwner( 899FrameworkElement.FocusVisualStyleProperty.AddOwner(typeof(FrameworkContentElement), 900new FrameworkPropertyMetadata(FrameworkElement.DefaultFocusVisualStyle)); 915FrameworkElement.CursorProperty.AddOwner( 947FrameworkElement.ForceCursorProperty.AddOwner( 1075args.RoutedEvent=FrameworkElement.RequestBringIntoViewEvent; 1129FrameworkElement.DataContextProperty.AddOwner( 1148add { EventHandlersStoreAdd(FrameworkElement.DataContextChangedKey, value); } 1149remove { EventHandlersStoreRemove(FrameworkElement.DataContextChangedKey, value); } 1168((FrameworkContentElement) d).RaiseDependencyPropertyChanged(FrameworkElement.DataContextChangedKey, e); 1206FrameworkElement.BindingGroupProperty.AddOwner( 1351FrameworkElement.AddIntermediateElementsToRoute(this, route, args, LogicalTreeHelper.GetParent(branchNode)); 1385FrameworkElement.AddStyleHandlersToEventRoute(null, this, route, args); 1416continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(this, LogicalTreeHelper.GetParent(branchNode)); 1596add { EventHandlersStoreAdd(FrameworkElement.InitializedKey, value); } 1597remove { EventHandlersStoreRemove(FrameworkElement.InitializedKey, value); } 1619RaiseInitialized(FrameworkElement.InitializedKey, e); 1661= FrameworkElement.LoadedPendingProperty.AddOwner(typeof(FrameworkContentElement)); 1668= FrameworkElement.UnloadedPendingProperty.AddOwner(typeof(FrameworkContentElement)); 1716public static readonly RoutedEvent LoadedEvent = FrameworkElement.LoadedEvent.AddOwner( typeof(FrameworkContentElement)); 1726AddHandler(FrameworkElement.LoadedEvent, value, false); 1730RemoveHandler(FrameworkElement.LoadedEvent, value); 1747public static readonly RoutedEvent UnloadedEvent = FrameworkElement.UnloadedEvent.AddOwner( typeof(FrameworkContentElement)); 1756AddHandler(FrameworkElement.UnloadedEvent, value, false); 1760RemoveHandler(FrameworkElement.UnloadedEvent, value); 2189private static readonly UncommonField<ResourceDictionary> ResourcesField = FrameworkElement.ResourcesField;
System\Windows\FrameworkElement.cs (96)
114static private readonly Type _typeofThis = typeof(FrameworkElement); 146FrameworkElement.EnsureFrameworkServices(); 184FrameworkElement fe = (FrameworkElement) d; 216typeof(FrameworkElement), 235FrameworkElement fe = (FrameworkElement)d; 265((FrameworkElement)d).UpdateThemeStyleProperty(); 285FrameworkElement fe = (FrameworkElement) d; 480internal static FrameworkElement FindNamedFrameworkElement( FrameworkElement startElement, string targetName ) 482FrameworkElement targetFE = null; 620internal virtual FrameworkElement StateGroupsRoot 624return _templateChild as FrameworkElement; 843object resource = FrameworkElement.FindResourceInternal(this, null /* fce */, resourceKey); 871object resource = FrameworkElement.FindResourceInternal(this, null /* fce */, resourceKey); 885internal static object FindImplicitStyleResource(FrameworkElement fe, object resourceKey, out object source) 909FrameworkElement.StyleProperty, // dp 993internal static object FindResourceInternal(FrameworkElement fe, FrameworkContentElement fce, object resourceKey) 1022return FrameworkElement.FindResourceInternal(null, // fe 1036FrameworkElement fe, 1165FrameworkElement feStart, 1212FrameworkElement fe = fo.FE; 1634private static ResourceDictionary GetInstanceResourceDictionary(FrameworkElement fe, FrameworkContentElement fce) 1658private static ResourceDictionary GetStyleResourceDictionary(FrameworkElement fe, FrameworkContentElement fce) 1698private static ResourceDictionary GetThemeStyleResourceDictionary(FrameworkElement fe, FrameworkContentElement fce) 1738private static ResourceDictionary GetTemplateResourceDictionary(FrameworkElement fe, FrameworkContentElement fce) 1889object implicitValue = FrameworkElement.FindImplicitStyleResource(this, this.GetType(), out source); 1946FrameworkElement feTemplatedParent = (FrameworkElement)_templatedParent; 1978FrameworkElement parentFE; 2088if (dp == FrameworkElement.NameProperty && 2105FrameworkElement feTemplatedParent = TemplatedParent as FrameworkElement; 2234if(layoutParent is FrameworkElement fe) 2295internal static bool GetFrameworkParent(FrameworkElement current, out FrameworkElement feParent, out FrameworkContentElement fceParent) 2308internal static bool GetFrameworkParent(FrameworkContentElement current, out FrameworkElement feParent, out FrameworkContentElement fceParent) 2320internal static bool GetContainingFrameworkElement(DependencyObject current, out FrameworkElement fe, out FrameworkContentElement fce) 2388EventManager.RegisterClassHandler(_typeofThis, Mouse.QueryCursorEvent, new QueryCursorEventHandler(FrameworkElement.OnQueryCursorOverride), true); 2419typeof(FrameworkElement), 2427FrameworkElement fe = (FrameworkElement) d; 2482if (newParent != null && (newParent is FrameworkElement) == false) 2496else if (oldParent != null && (oldParent is FrameworkElement) == false) 2544FrameworkElement feParent = null; 2548FrameworkElement.GetContainingFrameworkElement(VisualTreeHelper.GetParent(this), out feParent, out fceParent); 2579FrameworkElement.GetContainingFrameworkElement(e.OldParent, out feParent, out fceParent); 2748((FrameworkElement) d).RaiseDependencyPropertyChanged(DataContextChangedKey, e); 2933FrameworkElement.AddIntermediateElementsToRoute(this, route, args, LogicalTreeHelper.GetParent(branchNode)); 2988FrameworkElement fe, 3034FrameworkElement feTemplatedParent = templatedParent as FrameworkElement; 3127continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(this, LogicalTreeHelper.GetParent(branchNode)); 3351FrameworkElement fe = (FrameworkElement) d; 3396FrameworkElement fe = (FrameworkElement) d; 3454FrameworkElement fe = (FrameworkElement)d; 3479FrameworkElement fe = (FrameworkElement)d; 3665FrameworkElement fe = d as FrameworkElement; 3679FrameworkElement fe = d as FrameworkElement; 3887FrameworkElement fe = ((FrameworkElement)d); 3922FrameworkElement fe = ((FrameworkElement)d); 3932FrameworkElement fe = (FrameworkElement) sender; 3971internal static bool ShouldApplyMirrorTransform(FrameworkElement fe) 3988FrameworkElement parentFE; 4018FrameworkElement fe = v as FrameworkElement; 4059internal MinMax(FrameworkElement e) 5154FrameworkElement fe = element as FrameworkElement; 5341FrameworkElement fe = (FrameworkElement)sender; 5367FrameworkElement fe = (FrameworkElement)sender; 5535((FrameworkElement) o).HasNumberSubstitutionChanged = true; 5539private static bool ShouldUseSystemFont(FrameworkElement fe, DependencyProperty dp) 5554if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontFamilyProperty)) 5565if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontSizeProperty)) 5576if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontStyleProperty)) 5587if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontWeightProperty)) 5958((FrameworkElement)sender).OnToolTipOpening(e); 5990((FrameworkElement)sender).OnToolTipClosing(e); 6023((FrameworkElement)sender).OnContextMenuOpening(e); 6050((FrameworkElement)sender).OnContextMenuClosing(e); 6095FrameworkElement fe = uiElement as FrameworkElement;
System\Windows\FrameworkElementFactory.cs (14)
94if (!typeof(FrameworkElement).IsAssignableFrom(value) && 337if ( (routedEvent == FrameworkElement.LoadedEvent) 338||(routedEvent == FrameworkElement.UnloadedEvent)) 368if ( (routedEvent == FrameworkElement.LoadedEvent) 369||(routedEvent == FrameworkElement.UnloadedEvent)) 371if ( !_eventHandlersStore.Contains(FrameworkElement.LoadedEvent) 372&&!_eventHandlersStore.Contains(FrameworkElement.UnloadedEvent)) 647FrameworkElement containerAsFE = container as FrameworkElement; 1009bool treeNodeIsFE, FrameworkElement treeNodeFE, FrameworkContentElement treeNodeFCE, 1048FrameworkElement treeNodeFE, FrameworkContentElement treeNodeFCE ) 1067FrameworkElement treeNodeFE, FrameworkContentElement treeNodeFCE ) 1088bool treeNodeIsFE, FrameworkElement treeNodeFE, FrameworkContentElement treeNodeFCE) 1111bool treeNodeIsFE, FrameworkElement treeNodeFE, FrameworkContentElement treeNodeFCE)
System\Windows\FrameworkTemplate.cs (15)
65protected virtual void ValidateTemplatedParent(FrameworkElement templatedParent) 307public Object FindName(string name, FrameworkElement templatedParent) 387typeof(FrameworkElement).Name, templateRoot.Type.Name)); 481FrameworkElement container) 625internal virtual bool BuildVisualTree(FrameworkElement container) 914FrameworkElement feContainer = container as FrameworkElement; 1093FrameworkElement feContainer, 1100(createdObject is FrameworkElement || createdObject is FrameworkContentElement)) 1112FrameworkElement feContainer, 1115if (createdObject is FrameworkElement || createdObject is FrameworkContentElement) 1128private static DependencyObject WireRootObjectToParent(object createdObject, DependencyObject rootObject, DependencyObject container, FrameworkElement feContainer, INameScope nameScope) 1144Debug.Assert(!(rootElement is FrameworkElement) || 1145((FrameworkElement)rootElement).TemplateChildIndex != -1); 1150FrameworkElement feResult;
System\Windows\Generated\FrameworkContentElement.cs (14)
70INameScope nameScope = FrameworkElement.FindScope(this); 88INameScope nameScope = FrameworkElement.FindScope(this); 114INameScope nameScope = FrameworkElement.FindScope(this, out scopeOwner); 327IsParentAnFE = newParent is FrameworkElement; 444RaiseClrEvent(FrameworkElement.ResourcesChangedKey, EventArgs.Empty); 483FrameworkElement.GetTemplatedParentChildRecord(templatedParent, childIndex, out childRecord, out isChildRecordValid); 485FrameworkElement parentFE; 487bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE); 772&& FrameworkElement.GetFrameworkParent(this) == null 1009Delegate handler = store.Get(FrameworkElement.InheritedPropertyChangedKey); 1192EventHandlersStoreAdd(FrameworkElement.ResourcesChangedKey, value); 1194remove { EventHandlersStoreRemove(FrameworkElement.ResourcesChangedKey, value); } 1212EventHandlersStoreAdd(FrameworkElement.InheritedPropertyChangedKey, value); 1214remove { EventHandlersStoreRemove(FrameworkElement.InheritedPropertyChangedKey, value); }
System\Windows\Generated\FrameworkElement.cs (14)
70INameScope nameScope = FrameworkElement.FindScope(this); 88INameScope nameScope = FrameworkElement.FindScope(this); 114INameScope nameScope = FrameworkElement.FindScope(this, out scopeOwner); 327IsParentAnFE = newParent is FrameworkElement; 437RaiseClrEvent(FrameworkElement.ResourcesChangedKey, EventArgs.Empty); 499FrameworkElement.GetTemplatedParentChildRecord(templatedParent, childIndex, out childRecord, out isChildRecordValid); 501FrameworkElement parentFE; 503bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE); 804&& FrameworkElement.GetFrameworkParent(this) == null 1041Delegate handler = store.Get(FrameworkElement.InheritedPropertyChangedKey); 1236EventHandlersStoreAdd(FrameworkElement.ResourcesChangedKey, value); 1238remove { EventHandlersStoreRemove(FrameworkElement.ResourcesChangedKey, value); } 1261EventHandlersStoreAdd(FrameworkElement.InheritedPropertyChangedKey, value); 1263remove { EventHandlersStoreRemove(FrameworkElement.InheritedPropertyChangedKey, value); }
System\Windows\Input\KeyboardNavigation.cs (13)
857FrameworkElement fe = element as FrameworkElement; 868if (fvs == FrameworkElement.DefaultFocusVisualStyle) 870fvs = FrameworkElement.FindResourceInternal(fe, fce: null, SystemParameters.FocusVisualStyleKey) as Style; 895if (fvs == FrameworkElement.DefaultFocusVisualStyle) 897fvs = FrameworkElement.FindResourceInternal(fe: null, fce, SystemParameters.FocusVisualStyleKey) as Style; 1163return FrameworkElement.KeyboardNavigation; 1315FrameworkElement viewportBoundsElement, 1339FrameworkElement viewportBoundsElement, 1914FrameworkElement fe = e as FrameworkElement; 2481FrameworkElement header = tvi.TryGetHeaderElement(); 2995FrameworkElement viewportBoundsElement,
System\Windows\Interop\ActiveXHost.cs (1)
79invalidatorMap[FrameworkElement.IsEnabledProperty] = new PropertyInvalidator(OnIsEnabledInvalidated);
System\Windows\LogicalTreeHelper.cs (15)
121FrameworkElement fe = current as FrameworkElement; 145FrameworkElement fe = current as FrameworkElement; 163public static IEnumerable GetChildren(FrameworkElement current) 187FrameworkElement fe = current as FrameworkElement; 366FrameworkElement parentFE = parent as FrameworkElement; 382internal static void AddLogicalChild(FrameworkElement parentFE, FrameworkContentElement parentFCE, object child) 401FrameworkElement parentFE = parent as FrameworkElement; 417internal static void RemoveLogicalChild(FrameworkElement parentFE, FrameworkContentElement parentFCE, object child) 435FrameworkElement fe = current as FrameworkElement;
System\Windows\LostFocusEventManager.cs (2)
104FrameworkElement fe; 120FrameworkElement fe;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (2)
83case 4: assembly = typeof(System.Windows.FrameworkElement).Assembly; break; 322case 226: t = () => typeof(FrameworkElement); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (43)
2477Type type = typeof(System.Windows.FrameworkElement); 2478DependencyProperty dp = System.Windows.FrameworkElement.FlowDirectionProperty; 2480this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2494Type type = typeof(System.Windows.FrameworkElement); 2495DependencyProperty dp = System.Windows.FrameworkElement.HeightProperty; 2497this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2511Type type = typeof(System.Windows.FrameworkElement); 2512DependencyProperty dp = System.Windows.FrameworkElement.HorizontalAlignmentProperty; 2514this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2528Type type = typeof(System.Windows.FrameworkElement); 2529DependencyProperty dp = System.Windows.FrameworkElement.MarginProperty; 2531this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2545Type type = typeof(System.Windows.FrameworkElement); 2546DependencyProperty dp = System.Windows.FrameworkElement.MaxHeightProperty; 2548this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2562Type type = typeof(System.Windows.FrameworkElement); 2563DependencyProperty dp = System.Windows.FrameworkElement.MaxWidthProperty; 2565this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2579Type type = typeof(System.Windows.FrameworkElement); 2580DependencyProperty dp = System.Windows.FrameworkElement.MinHeightProperty; 2582this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2596Type type = typeof(System.Windows.FrameworkElement); 2597DependencyProperty dp = System.Windows.FrameworkElement.MinWidthProperty; 2599this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2613Type type = typeof(System.Windows.FrameworkElement); 2614DependencyProperty dp = System.Windows.FrameworkElement.NameProperty; 2616this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2630Type type = typeof(System.Windows.FrameworkElement); 2631DependencyProperty dp = System.Windows.FrameworkElement.StyleProperty; 2633this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2646Type type = typeof(System.Windows.FrameworkElement); 2647DependencyProperty dp = System.Windows.FrameworkElement.VerticalAlignmentProperty; 2649this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2663Type type = typeof(System.Windows.FrameworkElement); 2664DependencyProperty dp = System.Windows.FrameworkElement.WidthProperty; 2666this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 6360Type type = typeof(System.Windows.FrameworkElement); 6362this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 6369bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.FrameworkElement)target).Resources = (System.Windows.ResourceDictionary)value; }; 6370bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.FrameworkElement)target).Resources; }; 8253Type type = typeof(System.Windows.FrameworkElement); 8255this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 8261bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.FrameworkElement)target).Triggers; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4545typeof(System.Windows.FrameworkElement),
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (1)
112case 4: assembly = new Baml6Assembly(typeof(System.Windows.FrameworkElement).Assembly); break;
System\Windows\Markup\BamlRecordReader.cs (2)
4101FrameworkElement feParent; 4182result = FrameworkElement.FindResourceFromAppOrSystem(resourceNameObject, out source, false /*throwOnError*/, allowDeferredResourceReference, mustReturnDeferredResourceReference);
System\Windows\Markup\KnownTypes.cs (13)
1772return System.Windows.FrameworkElement.FlowDirectionProperty; 1774return System.Windows.FrameworkElement.HeightProperty; 1776return System.Windows.FrameworkElement.HorizontalAlignmentProperty; 1778return System.Windows.FrameworkElement.MarginProperty; 1780return System.Windows.FrameworkElement.MaxHeightProperty; 1782return System.Windows.FrameworkElement.MaxWidthProperty; 1784return System.Windows.FrameworkElement.MinHeightProperty; 1786return System.Windows.FrameworkElement.MinWidthProperty; 1788return System.Windows.FrameworkElement.NameProperty; 1790return System.Windows.FrameworkElement.StyleProperty; 1792return System.Windows.FrameworkElement.VerticalAlignmentProperty; 1794return System.Windows.FrameworkElement.WidthProperty; 5780case KnownElements.FrameworkElement: t = typeof(System.Windows.FrameworkElement); break;
System\Windows\Markup\RoutedEventConverter.cs (1)
103type = typeof(FrameworkElement);
System\Windows\Media\Animation\BeginStoryboard.cs (2)
178internal sealed override void Invoke( FrameworkElement fe, FrameworkContentElement fce, Style targetStyle, FrameworkTemplate frameworkTemplate, Int64 layer ) 197internal sealed override void Invoke( FrameworkElement fe )
System\Windows\Media\Animation\ControllableStoryboardAction.cs (4)
61internal sealed override void Invoke( FrameworkElement fe, FrameworkContentElement fce, Style targetStyle, FrameworkTemplate frameworkTemplate, Int64 layer ) 81internal sealed override void Invoke( FrameworkElement fe ) 88internal virtual void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard ) 95private Storyboard GetStoryboard( FrameworkElement fe, FrameworkContentElement fce, INameScope nameScope )
System\Windows\Media\Animation\PauseStoryboard.cs (1)
26internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
System\Windows\Media\Animation\RemoveStoryboard.cs (1)
26internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
System\Windows\Media\Animation\ResumeStoryboard.cs (1)
26internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
System\Windows\Media\Animation\SeekStoryboard.cs (1)
91internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
System\Windows\Media\Animation\SetStoryboardSpeedRatio.cs (1)
49internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
System\Windows\Media\Animation\SkipStoryboardToFill.cs (1)
26internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
System\Windows\Media\Animation\StopStoryboard.cs (1)
26internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
System\Windows\Media\Animation\Storyboard.cs (27)
248FrameworkElement fe = element as FrameworkElement; 309FrameworkElement fe, 438targetObject = containingObject as FrameworkElement; 932if(targetObject is FrameworkElement) 1067public void Begin( FrameworkElement containingObject ) 1075public void Begin( FrameworkElement containingObject, HandoffBehavior handoffBehavior ) 1083public void Begin( FrameworkElement containingObject, bool isControllable ) 1091public void Begin( FrameworkElement containingObject, HandoffBehavior handoffBehavior, bool isControllable ) 1099public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate ) 1107public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate, HandoffBehavior handoffBehavior ) 1115public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate, bool isControllable ) 1123public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate, HandoffBehavior handoffBehavior, bool isControllable ) 1289public Nullable<Double> GetCurrentGlobalSpeed( FrameworkElement containingObject ) 1338public Nullable<Int32> GetCurrentIteration( FrameworkElement containingObject ) 1387public Nullable<Double> GetCurrentProgress( FrameworkElement containingObject ) 1435public ClockState GetCurrentState( FrameworkElement containingObject ) 1474public Nullable<TimeSpan> GetCurrentTime( FrameworkElement containingObject ) 1523public bool GetIsPaused( FrameworkElement containingObject ) 1564public void Pause( FrameworkElement containingObject ) 1609public void Remove(FrameworkElement containingObject) 1658public void Resume( FrameworkElement containingObject ) 1705public void Seek( FrameworkElement containingObject, TimeSpan offset, TimeSeekOrigin origin ) 1756public void SeekAlignedToLastTick( FrameworkElement containingObject, TimeSpan offset, TimeSeekOrigin origin ) 1807public void SetSpeedRatio( FrameworkElement containingObject, double speedRatio ) 1846public void SkipToFill( FrameworkElement containingObject ) 1883public void Stop( FrameworkElement containingObject )
System\Windows\Navigation\NavigationService.cs (9)
369FrameworkElement fe = _bp as FrameworkElement; 403FrameworkElement fe = elem as FrameworkElement; 701FrameworkElement fe = INavigatorHost as FrameworkElement; 2319FrameworkElement fe = _bp as FrameworkElement; 2611((FrameworkElement)_bp).Loaded -= OnContentLoaded;
System\Windows\Navigation\NavigationWindow.cs (4)
436FrameworkElement root = (this.GetVisualChild(0)) as FrameworkElement; 1075FrameworkElement journalEntryUIElem = e.Parameter as FrameworkElement;
System\Windows\ResourceDictionary.cs (12)
1445FrameworkElement fe = owner as FrameworkElement; 1528FrameworkElement fe = owner as FrameworkElement; 1586FrameworkElement fe = owner as FrameworkElement; 1640FrameworkElement fe = o as FrameworkElement; 1992FrameworkElement fe = o as FrameworkElement; 2046FrameworkElement fe = o as FrameworkElement;
System\Windows\ResourceReferenceExpression.cs (6)
108FrameworkElement mentorFE; 126FrameworkElement fe; 131resource = FrameworkElement.FindResourceInternal(fe, 145resource = FrameworkElement.FindResourceFromAppOrSystem(_resourceKey, 232if (!(_targetObject is FrameworkElement) && !(_targetObject is FrameworkContentElement)) 316FrameworkElement mentorFE;
System\Windows\Setter.cs (3)
81if( property == FrameworkElement.NameProperty) 83throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInStyle, FrameworkElement.NameProperty.Name)); 107if (dp == FrameworkElement.StyleProperty)
System\Windows\Shell\WindowChromeWorker.cs (4)
307FrameworkElement rootElement = (FrameworkElement)VisualTreeHelper.GetChild(_window, 0); 1136FrameworkElement rootElement = (FrameworkElement)VisualTreeHelper.GetChild(_window, 0);
System\Windows\StaticResourceExtension.cs (2)
221XamlType feXType = schemaContext.GetXamlType(typeof(FrameworkElement)); 308val = FrameworkElement.FindResourceFromAppOrSystem(ResourceKey,
System\Windows\Style.cs (3)
183if (!typeof(FrameworkElement).IsAssignableFrom(value) && 699if (eventSetter.Event == FrameworkElement.LoadedEvent || eventSetter.Event == FrameworkElement.UnloadedEvent)
System\Windows\StyleHelper.cs (79)
61FrameworkElement fe, 100FrameworkElement fe, 121if (StyleHelper.IsSetOnContainer(FrameworkElement.OverridesDefaultStyleProperty, ref newThemeStyle.ContainerDependents, true)) 140if(ShouldGetValueFromStyle ( FrameworkElement.DefaultStyleKeyProperty ) ) 170internal static Style GetThemeStyle(FrameworkElement fe, FrameworkContentElement fce) 256FrameworkElement.StyleProperty.GetMetadata(themeStyleTypeKey); 273FrameworkElement.OnThemeStyleChanged(fe, oldThemeStyle, newThemeStyle); 291FrameworkElement fe, 458if (StyleHelper.IsSetOnContainer(FrameworkElement.StyleProperty, ref containerDependents, true)) 460throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.StyleProperty.Name)); 465if (StyleHelper.IsSetOnContainer(FrameworkElement.DefaultStyleKeyProperty, ref containerDependents, true)) 467throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.DefaultStyleKeyProperty.Name)); 472if (StyleHelper.IsSetOnContainer(FrameworkElement.OverridesDefaultStyleProperty, ref containerDependents, true)) 474throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.OverridesDefaultStyleProperty.Name)); 479if (StyleHelper.IsSetOnContainer(FrameworkElement.NameProperty, ref containerDependents, true)) 481throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.NameProperty.Name)); 1162if ( (eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent) 1163||(eventTrigger.RoutedEvent == FrameworkElement.UnloadedEvent)) 1197if (eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent 1199eventTrigger.RoutedEvent == FrameworkElement.UnloadedEvent ) 1210if( eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent ) 1337FrameworkElement fe, 1372FrameworkElement fe, 1435FrameworkElement fe, 1502Debug.Assert((container is FrameworkElement) || (container is FrameworkContentElement), "Caller has queried with non-framework element. Bad caller, bad!"); 1545FrameworkElement feChild; 1781FrameworkElement feContainer = container as FrameworkElement; 1818Debug.Assert(treeRoot is FrameworkElement || treeRoot is FrameworkContentElement, 1866Debug.Assert(treeRoot == null || treeRoot is FrameworkElement || treeRoot is FrameworkContentElement, 1940internal static void AddCustomTemplateRoot( FrameworkElement container, UIElement child ) 1948FrameworkElement container, 1968FrameworkElement parent = VisualTreeHelper.GetParent(child) as FrameworkElement; 2056FrameworkElement feWalkNode; 2134FrameworkElement feContainer, 2186FrameworkElement feContainer, 2219FrameworkElement feContainer, 2241FrameworkElement fe; 2333out FrameworkElement fe, out FrameworkContentElement fce, 2336if (d is FrameworkElement frameworkElement) 2401Debug.Assert(sender is FrameworkElement || sender is FrameworkContentElement, 2404FrameworkElement fe; 2456Debug.Assert(sender is FrameworkElement || sender is FrameworkContentElement, 2459FrameworkElement fe; 2481FrameworkElement feTemplatedParent; 2504FrameworkElement fe, 2699sourceNodeType = (container as FrameworkElement).TemplateInternal.ChildTypeFromChildIndex[sourceChildIndex]; 2730value = FrameworkElement.FindResourceInternal(child.FE, 2785value = FrameworkElement.FindResourceInternal( 2910FrameworkElement feChild, 2920FrameworkElement feContainer; 3105return (dp != FrameworkElement.StyleProperty); 3117return (dp != FrameworkElement.StyleProperty && 3118dp != FrameworkElement.DefaultStyleKeyProperty && 3119dp != FrameworkElement.OverridesDefaultStyleProperty); 3132return (dp != FrameworkElement.StyleProperty && 3133dp != FrameworkElement.DefaultStyleKeyProperty && 3134dp != FrameworkElement.OverridesDefaultStyleProperty && 3154FrameworkElement fe, 3235FrameworkElement fe, 3310FrameworkElement feContainer, 3452FrameworkElement fe, 3493FrameworkElement fe, 4242if (dp != FrameworkElement.StyleProperty) 4508private static void ExecuteOnApplyEnterExitActions( FrameworkElement fe, 4537private static void ExecuteOnApplyEnterExitActions( FrameworkElement fe, FrameworkContentElement fce, 4716FrameworkElement fe = (FrameworkElement)container; 4835action.Invoke(triggerContainer as FrameworkElement, triggerContainer as FrameworkContentElement, 5138FrameworkElement fe; 5175FrameworkElement fe; 5218FrameworkElement fe; 5450child is FrameworkElement && ((FrameworkElement)child).TemplateChildIndex == childIndex || 5485FrameworkElement fe; 5510FrameworkElement fe; 5600if (dp == ItemsControl.ItemsPanelProperty || dp == FrameworkElement.ContextMenuProperty || dp == FrameworkElement.ToolTipProperty)
System\Windows\SystemResources.cs (3)
515_presentationFramework = typeof(FrameworkElement).Assembly; 1257FrameworkElement fe = source.RootVisual as FrameworkElement;
System\Windows\SystemThemeKey.cs (1)
45_presentationFrameworkAssembly = typeof(FrameworkElement).Assembly;
System\Windows\TemplateContent.cs (7)
27[XamlDeferLoad(typeof(TemplateContentLoader), typeof(FrameworkElement))] 436if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 464if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 489if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 667if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 733if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 824if (!typeof(FrameworkElement).IsAssignableFrom(parentType.UnderlyingType) &&
System\Windows\TemplateNameScope.cs (3)
55Debug.Assert(templatedParent == null || (templatedParent is FrameworkElement || templatedParent is FrameworkContentElement), 82if (!(scopedElement is FrameworkContentElement || scopedElement is FrameworkElement)) 89FrameworkElement fe;
System\Windows\ThemeManager.cs (1)
297window.SetResourceReference(FrameworkElement.StyleProperty, typeof(Window));
System\Windows\TreeWalkHelper.cs (20)
39FrameworkElement fe, 185FrameworkElement fe, 236FrameworkElement fe, 454FrameworkElement fe, 551FrameworkElement fe = fo.FE; 584(fe.HasImplicitStyleFromResources || fe.Style == FrameworkElement.StyleProperty.GetMetadata(fe.DependencyObjectType).DefaultValue)) 612fe.RaiseClrEvent(FrameworkElement.ResourcesChangedKey, new ResourcesChangedEventArgs(info)); 668fce.RaiseClrEvent(FrameworkElement.ResourcesChangedKey, new ResourcesChangedEventArgs(info)); 761FrameworkElement fe = fo.FE; 765(fe.HasImplicitStyleFromResources || fe.Style == FrameworkElement.StyleProperty.GetMetadata(fe.DependencyObjectType).DefaultValue)) 803FrameworkElement templatedParent = (FrameworkElement)fe.TemplatedParent; 871FrameworkElement templatedParent = (FrameworkElement)fce.TemplatedParent; 910FrameworkElement fe, 971DependencyObject parent = FrameworkElement.GetFrameworkParent(d); 1014if (visitedViaVisualTree && d is FrameworkElement) 1178FrameworkElement fe, 1273internal static bool HasChildren(FrameworkElement fe, FrameworkContentElement fce) 1296return (dp == FrameworkElement.FlowDirectionProperty);
System\Windows\TriggerAction.cs (2)
43internal abstract void Invoke( FrameworkElement fe, 58internal abstract void Invoke( FrameworkElement fe );
System\Windows\TriggerBase.cs (1)
181if (dp == FrameworkElement.StyleProperty)
System\Windows\TriggerCollection.cs (3)
32internal TriggerCollection(FrameworkElement owner) : base() 119internal FrameworkElement Owner 206private FrameworkElement _owner;
System\Windows\VisualStateChangedEventArgs.cs (6)
18internal VisualStateChangedEventArgs(VisualState oldState, VisualState newState, FrameworkElement control, FrameworkElement stateGroupsRoot) 51public FrameworkElement Control 62public FrameworkElement StateGroupsRoot 72private FrameworkElement _control; 73private FrameworkElement _stateGroupsRoot;
System\Windows\VisualStateGroup.cs (5)
101internal void StartNewThenStopOld(FrameworkElement element, params Storyboard[] newStoryboards) 139internal void RaiseCurrentStateChanging(FrameworkElement stateGroupsRoot, VisualState oldState, VisualState newState, FrameworkElement control) 147internal void RaiseCurrentStateChanged(FrameworkElement stateGroupsRoot, VisualState oldState, VisualState newState, FrameworkElement control)
System\Windows\VisualStateManager.cs (24)
32private static bool GoToStateCommon(FrameworkElement control, FrameworkElement stateGroupsRoot, string stateName, bool useTransitions) 74public static bool GoToState(FrameworkElement control, string stateName, bool useTransitions) 78FrameworkElement stateGroupsRoot = control.StateGroupsRoot; 90public static bool GoToElementState(FrameworkElement stateGroupsRoot, string stateName, bool useTransitions) 100protected virtual bool GoToStateCore(FrameworkElement control, FrameworkElement stateGroupsRoot, string stateName, VisualStateGroup group, VisualState state, bool useTransitions) 114public static VisualStateManager GetCustomVisualStateManager(FrameworkElement obj) 121public static void SetCustomVisualStateManager(FrameworkElement obj, VisualStateManager value) 145internal static Collection<VisualStateGroup> GetVisualStateGroupsInternal(FrameworkElement obj) 161public static IList GetVisualStateGroups(FrameworkElement obj) 191private static bool GoToStateInternal(FrameworkElement control, FrameworkElement stateGroupsRoot, VisualStateGroup group, VisualState state, bool useTransitions) 303private static bool ShouldRunStateStoryboard(FrameworkElement control, FrameworkElement stateGroupsRoot, VisualState state, VisualStateGroup group) 332protected void RaiseCurrentStateChanging(VisualStateGroup stateGroup, VisualState oldState, VisualState newState, FrameworkElement control, FrameworkElement stateGroupsRoot) 345protected void RaiseCurrentStateChanged(VisualStateGroup stateGroup, VisualState oldState, VisualState newState, FrameworkElement control, FrameworkElement stateGroupsRoot) 362private static Storyboard GenerateDynamicTransitionAnimations(FrameworkElement root, VisualStateGroup group, VisualState newState, VisualTransition transition) 426private static Timeline GenerateFromAnimation(FrameworkElement root, Timeline timeline, IEasingFunction easingFunction) 453private static Timeline GenerateToAnimation(FrameworkElement root, Timeline timeline, IEasingFunction easingFunction, bool isEntering) 492private static void CopyStoryboardTargetProperties(FrameworkElement root, Timeline source, Timeline destination) 533internal static VisualTransition GetTransition(FrameworkElement element, VisualStateGroup group, VisualState from, VisualState to)
System\Windows\Window.cs (2)
4678SetValue(FrameworkElement.WidthProperty, ptLogicalUnits.X); 4679SetValue(FrameworkElement.HeightProperty, ptLogicalUnits.Y);
PresentationUI (5)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (3)
940private FrameworkElement InfoBar 947_infoBar = GetTemplateChild(_infoBarName) as FrameworkElement; 2230private FrameworkElement _infoBar;
MS\Internal\Documents\RightsManagementResourceHelper.cs (1)
160private static FrameworkElement _frameworkElement; // Used to search resources.
MS\Internal\Documents\SignatureResourceHelper.cs (1)
344private static FrameworkElement _frameworkElement;
ReachFramework (10)
Serialization\Manager\ReachSerializationUtils.cs (6)
813else if (element is FrameworkElement) 861else if (element is FrameworkElement) 886else if (element is FrameworkElement) 897if (element is FrameworkElement) 899FrameworkElement fe = (FrameworkElement)element;
Serialization\VisualTreeFlattener.cs (4)
495FrameworkElement fe = visual as FrameworkElement; 773FrameworkElement 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)
106FrameworkElement titleHost = OwningRibbon.TitleHost as FrameworkElement; 214FrameworkElement helpPaneHostFE = helpPaneHost as FrameworkElement;
Microsoft\Windows\Automation\Peers\RibbonControlAutomationPeer.cs (1)
31public RibbonControlAutomationPeer(FrameworkElement owner)
Microsoft\Windows\Automation\Peers\RibbonGroupHeaderAutomationPeer.cs (1)
32public RibbonGroupHeaderAutomationPeer(FrameworkElement owner)
Microsoft\Windows\Automation\Peers\RibbonTitleAutomationPeer.cs (1)
27public 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)
177FrameworkElement fe = element as FrameworkElement; 196FrameworkElement fe = element as FrameworkElement; 378FrameworkElement fe = element as FrameworkElement; 909if (DependencyPropertyHelper.GetValueSource(element, FrameworkElement.LanguageProperty).BaseValueSource != BaseValueSource.Default) 911XmlLanguage language = (XmlLanguage)element.GetValue(FrameworkElement.LanguageProperty);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (5)
129private static double GetStarChildMinWidth(FrameworkElement child, ref double maxStarColumnWidth) 234columnWidth = GetStarChildMinWidth(child as FrameworkElement, ref maxStarColumnWidth); 250columnWidth = Math.Max(columnWidth, GetStarChildMinWidth(child as FrameworkElement, ref maxStarColumnWidth)); 437FrameworkElement itemsPresenter = TemplatedParent as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (2)
291FrameworkElement itemsPresenter = TemplatedParent as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (2)
309FrameworkElement itemsPresenter = TemplatedParent as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (4)
96FrameworkElement qat = Ribbon.QatTopHost as FrameworkElement; 97FrameworkElement titleHost = Ribbon.TitleHost as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (4)
122EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpeningThunk), true); 123EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuClosingEvent, new ContextMenuEventHandler(OnContextMenuClosingThunk), true); 1600FrameworkElement popupPlacementTarget = _itemsPresenterPopup.Parent as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (5)
33[TemplatePart(Name = RibbonApplicationMenu.SubmenuTemplateName, Type = typeof(FrameworkElement))] 303SubmenuPlaceholder = this.GetTemplateChild(SubmenuTemplateName) as FrameworkElement; 320typeof(FrameworkElement), 329internal FrameworkElement SubmenuPlaceholder 331get { return (FrameworkElement)GetValue(SubmenuPlaceholderProperty); }
Microsoft\Windows\Controls\Ribbon\RibbonContentPresenter.cs (2)
33private FrameworkElement _templateRoot; 117_templateRoot = VisualTreeHelper.GetChild(this, 0) as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (2)
210private FrameworkElement VisualChild 214return VisualChildrenCount == 0 ? null : (GetVisualChild(0) as FrameworkElement);
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (1)
178private bool HasTabs(FrameworkElement container)
Microsoft\Windows\Controls\Ribbon\RibbonDropDownHelper.cs (9)
32public static void OnPopupResizeStarted(FrameworkElement itemsPresenter) 43public static bool ResizePopup(FrameworkElement itemsPresenter, 135private static bool ResizePopupActual(FrameworkElement itemsPresenter, Size minDropDownSize, bool canUserResizeHorizontally, bool canUserResizeVertically, double newWidth, double newHeight) 164public static Rect GetScreenBounds(FrameworkElement targetElement, Popup popup) 200public static void ClearLocalValues(FrameworkElement itemsPresenter, Popup popup) 204itemsPresenter.ClearValue(FrameworkElement.HeightProperty); 205itemsPresenter.ClearValue(FrameworkElement.WidthProperty); 223FrameworkElement popupChild = popup.Child as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (7)
81EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpeningThunk), true); 82EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuClosingEvent, new ContextMenuEventHandler(OnContextMenuClosingThunk), true); 126_collapsedDropDownButton = this.GetTemplateChild(CollapsedDropDownButtonTemplatePartName) as FrameworkElement; 480private FrameworkElement VisualChild 484return VisualChildrenCount == 0 ? null : (GetVisualChild(0) as FrameworkElement); 694internal FrameworkElement CollapsedDropDownButton 1374private FrameworkElement _collapsedDropDownButton; // The SplitButton that replaces RibbonGroup's normal appearance when Collapsed
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (44)
94d.CoerceValue(FrameworkElement.ToolTipProperty); 103public static bool GetIsContentTooltip(FrameworkElement visualChild, object content) 126public static void SetContentAsToolTip(FrameworkElement element, FrameworkElement visualChild, object content, bool value) 543internal static bool NavigateToFirstItem(ItemsControl itemsControl, Action<int> bringIntoViewCallback, Func<FrameworkElement, bool> additionalCheck) 545FrameworkElement firstItem = FindContainer(itemsControl, 0, 1, bringIntoViewCallback, additionalCheck); 554internal static bool NavigateToLastItem(ItemsControl itemsControl, Action<int> bringIntoViewCallback, Func<FrameworkElement, bool> additionalCheck) 556FrameworkElement lastItem = FindContainer(itemsControl, itemsControl.Items.Count - 1, -1, bringIntoViewCallback, additionalCheck); 565internal static FrameworkElement FindContainer(ItemsControl itemsControl, int startIndex, int direction, Action<int> bringIntoViewCallback, Func<FrameworkElement, bool> additionalCheck) 572FrameworkElement container = itemsControl.ItemContainerGenerator.ContainerFromIndex(startIndex) as FrameworkElement; 578container = itemsControl.ItemContainerGenerator.ContainerFromIndex(startIndex) as FrameworkElement; 595FrameworkElement nextElement = RibbonHelper.FindContainer(parent, itemIndex, 1, bringIntoViewCallback, null); 612FrameworkElement nextElement = RibbonHelper.FindContainer(parent, startIndex + 1, 1, bringIntoViewCallback, IsMenuItemFocusable); 641FrameworkElement previousElement = RibbonHelper.FindContainer(parent, startIndex - 1, -1, bringIntoViewCallback, IsMenuItemFocusable); 679FrameworkElement focusObject = null; 711private static bool IsContainerFocusable(FrameworkElement container) 716private static bool IsContainerVisible(FrameworkElement container) 721private static bool IsMenuItemFocusable(FrameworkElement container) 1502FrameworkElement fe = d as FrameworkElement; 1654new PropertyAndTransferMode () { Property = FrameworkElement.DataContextProperty, Mode = TransferMode.AlwaysTransfer }, 1655new PropertyAndTransferMode () { Property = FrameworkElement.BindingGroupProperty, Mode = TransferMode.AlwaysTransfer }, 1876FrameworkElement feOriginal = original as FrameworkElement; 1879FrameworkElement feClone = CreateInstance(feOriginal, allowTransformations); 1888TransferProperties(feOriginal.TemplatedParent as FrameworkElement, feClone, /*cloningForTemplatePart*/ true); 1891FrameworkElement feWrapper = WrapClone(feClone, allowTransformations); 1918private static FrameworkElement CreateInstance(FrameworkElement original, bool allowTransformations) 1972return (FrameworkElement)Activator.CreateInstance(original.GetType()); 1980private static FrameworkElement WrapClone(FrameworkElement clone, bool allowTransformations) 2026private static void TransferProperties(FrameworkElement original, FrameworkElement clone, bool cloningForTemplatePart) 2051TransferProperty(original, clone, FrameworkElement.StyleProperty, TransferMode.AlwaysTransfer); 2239private static void TransferProperties(FrameworkElement original, FrameworkElement clone, PropertyAndTransferMode[] properties) 2550XmlLanguage language = (XmlLanguage)element.GetValue(FrameworkElement.LanguageProperty); 2826public static void OpenParentRibbonGroupDropDownSync(FrameworkElement fe, bool templateApplied) 2858FrameworkElement elementFE = element as FrameworkElement; 2872public static void SetDropDownHeight(FrameworkElement itemsPresenter, bool hasGallery, double dropDownHeight)
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (10)
84EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpeningThunk), true); 85EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuClosingEvent, new ContextMenuEventHandler(OnContextMenuClosingThunk), true); 892FrameworkElement selectionItem = e.OriginalSource as FrameworkElement; 929internal FrameworkElement RibbonCurrentSelection 1333private FrameworkElement _itemsPresenter; 1336private FrameworkElement _ribbonCurrentSelection; // could be a RibbonMenuItem or RibbonGallery 1402FrameworkElement source = e.OriginalSource as FrameworkElement; 1530FrameworkElement ribbonCurrentSelection = RibbonCurrentSelection;
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (14)
75EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpeningThunk), true); 76EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuClosingEvent, new ContextMenuEventHandler(OnContextMenuClosingThunk), true); 990FrameworkElement ribbonCurrentSelection = RibbonCurrentSelection; 1241private static bool IsContainerFocusable(FrameworkElement container) 1286menuItem._itemsPresenter.ClearValue(FrameworkElement.HeightProperty); 1287menuItem._itemsPresenter.ClearValue(FrameworkElement.WidthProperty); 1347FrameworkElement popupChild; 1348if ((popupChild = _popup.Child as FrameworkElement) != null) 1425private FrameworkElement CurrentSibling 1431FrameworkElement sibling = null; 1506FrameworkElement selectionItem = e.OriginalSource as FrameworkElement; 1539private FrameworkElement RibbonCurrentSelection 1597private FrameworkElement _ribbonCurrentSelection; // can be a RibbonMenuItem or RibbonGallery
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (2)
121EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpeningThunk), true); 122EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuClosingEvent, new ContextMenuEventHandler(OnContextMenuClosingThunk), true);
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (1)
234splitButton.PartToggleButton.CoerceValue(FrameworkElement.ToolTipProperty);
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (1)
153splitMenuItem._partArrowButton.CoerceValue(FrameworkElement.ToolTipProperty);
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (2)
161private FrameworkElement VisualChild 165return VisualChildrenCount == 0 ? null : (GetVisualChild(0) as FrameworkElement);
Microsoft\Windows\Controls\Ribbon\RibbonTabHeaderItemsControl.cs (2)
161FrameworkElement element = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (4)
369FrameworkElement referenceFE = null; 380referenceFE = rootElement as FrameworkElement; 412FrameworkElement placementTargetAsFE = placementTarget as FrameworkElement;
Microsoft\Windows\Controls\TextSearchInternal.cs (3)
630if (o is FrameworkElement) 781internal static string GetPrimaryText(FrameworkElement element) 862object o = element.GetValue(FrameworkElement.LanguageProperty);
WindowsFormsIntegration (16)
System\Windows\Integration\ElementHost.cs (2)
305FrameworkElement childFrameworkElement = Child as FrameworkElement;
System\Windows\Integration\HostUtils.cs (11)
120FrameworkElement rootElement = ancestor as FrameworkElement; 210private static FrameworkElement GetFrameworkElementAncestor(DependencyObject descendant) 212FrameworkElement ancestor = null; 216FrameworkElement currentElement = current as FrameworkElement; 235FrameworkElement frameworkElementAncestor = GetFrameworkElementAncestor(host); 268internal static RenderTargetBitmap GetBitmapForFrameworkElement(FrameworkElement element) 423public static FrameworkElement GetCursorSource(DependencyObject currentObject, bool forceCursorMapped) 427FrameworkElement currentElement = currentObject as FrameworkElement;
System\Windows\Integration\WindowsFormsHost.cs (3)
401SW.FrameworkElement frameworkElement = dependencyObject as SW.FrameworkElement; 806FrameworkElement cursorSource = HostUtils.GetCursorSource(_host, forceCursorMapped);