43 types derived from FrameworkElement
PresentationFramework (33)
MS\Internal\Documents\DocumentGrid.cs (1)
30internal class DocumentGrid : FrameworkElement, IDocumentScrollInfo
MS\Internal\Documents\DocumentGridPage.cs (1)
23internal class DocumentGridPage : FrameworkElement, IDisposable
MS\Internal\Documents\DocumentPageHost.cs (1)
17internal class DocumentPageHost : FrameworkElement
MS\Internal\Documents\FlowDocumentView.cs (1)
23internal class FlowDocumentView : FrameworkElement, IScrollInfo, IServiceProvider
MS\Internal\Documents\TextBoxView.cs (1)
23internal class TextBoxView : FrameworkElement, ITextView, IScrollInfo, IServiceProvider
System\Windows\Controls\AccessText.cs (1)
23public class AccessText : FrameworkElement, IAddChild
System\Windows\Controls\AdornedElementPlaceholder.cs (1)
27public class AdornedElementPlaceholder : FrameworkElement, IAddChild
System\Windows\Controls\ContentPresenter.cs (1)
30public class ContentPresenter : FrameworkElement
System\Windows\Controls\Control.cs (1)
21public class Control : FrameworkElement
System\Windows\Controls\Decorator.cs (1)
23public class Decorator : FrameworkElement, IAddChild
System\Windows\Controls\Image.cs (1)
28public class Image : FrameworkElement, IUriContext, IProvidePropertyFallback
System\Windows\Controls\InkCanvas.cs (1)
38public class InkCanvas : FrameworkElement, IAddChild
System\Windows\Controls\ItemsPresenter.cs (1)
21public class ItemsPresenter : FrameworkElement
System\Windows\Controls\MediaElement.cs (1)
55public class MediaElement : FrameworkElement, IUriContext
System\Windows\Controls\Page.cs (1)
31public class Page : FrameworkElement, IWindowService, IAddChild
System\Windows\Controls\Panel.cs (1)
23public abstract class Panel : FrameworkElement, IAddChild
System\Windows\Controls\Primitives\DocumentPageView.cs (1)
24public class DocumentPageView : FrameworkElement, IServiceProvider, IDisposable
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
19public abstract class GridViewRowPresenterBase : FrameworkElement, IWeakEventListener
System\Windows\Controls\Primitives\Popup.cs (1)
47public class Popup : FrameworkElement, IAddChild
System\Windows\Controls\Primitives\PopupRoot.cs (1)
17internal sealed class PopupRoot : FrameworkElement
System\Windows\Controls\Primitives\TickBar.cs (1)
49public class TickBar : FrameworkElement
System\Windows\Controls\Primitives\Track.cs (1)
23public class Track : FrameworkElement
System\Windows\Controls\TextBlock.cs (1)
47public class TextBlock : FrameworkElement, IContentHost, IAddChildInternal, IServiceProvider
System\Windows\Controls\ToolBarTray.cs (1)
29public class ToolBarTray : FrameworkElement, IAddChild
System\Windows\Controls\ViewPort3D.cs (1)
28public class Viewport3D : FrameworkElement, IAddChild
System\Windows\Documents\Adorner.cs (1)
29public abstract class Adorner : FrameworkElement
System\Windows\Documents\AdornerLayer.cs (1)
28public class AdornerLayer : FrameworkElement
System\Windows\Documents\DocumentReference.cs (1)
25public sealed class DocumentReference : FrameworkElement, IUriContext
System\Windows\Documents\FixedPage.cs (1)
40public sealed class FixedPage : FrameworkElement, IAddChildInternal, IFixedNavigate, IUriContext
System\Windows\Documents\Glyphs.cs (1)
25public sealed class Glyphs : FrameworkElement, IUriContext
System\Windows\Documents\PageContent.cs (1)
35public sealed class PageContent : FrameworkElement, IAddChildInternal, IUriContext
System\Windows\Interop\HwndHost.cs (1)
26public abstract class HwndHost : FrameworkElement, IDisposable, IWin32Window, IKeyboardInputSink
System\Windows\Shapes\Shape.cs (1)
24public abstract class Shape : FrameworkElement
PresentationFramework.Aero (2)
Microsoft\Windows\Themes\BulletChrome.cs (1)
20public sealed class BulletChrome : FrameworkElement
Microsoft\Windows\Themes\ScrollChrome.cs (1)
18public sealed class ScrollChrome : FrameworkElement
PresentationFramework.Aero2 (2)
Microsoft\Windows\Themes\BulletChrome.cs (1)
20public sealed class BulletChrome : FrameworkElement
Microsoft\Windows\Themes\ScrollChrome.cs (1)
18public sealed class ScrollChrome : FrameworkElement
PresentationFramework.AeroLite (1)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
17public sealed class ScrollChrome : FrameworkElement
PresentationFramework.Luna (2)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
18public sealed class ScrollChrome : FrameworkElement
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
14public sealed class BulletChrome : FrameworkElement
PresentationFramework.Royale (2)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
18public sealed class ScrollChrome : FrameworkElement
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
14public sealed class BulletChrome : FrameworkElement
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\TextSearchInternal.cs (1)
896private 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)
6935target = new FrameworkElement(); 6971target = new FrameworkElement();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4545bamlType.DefaultConstructor = delegate() { return new System.Windows.FrameworkElement(); };
System\Windows\Markup\KnownTypes.cs (1)
1286case KnownElements.FrameworkElement: o = new System.Windows.FrameworkElement(); break;
1635 references to FrameworkElement
Microsoft.AspNetCore.Components.WebView.Wpf (2)
BlazorWebView.cs (2)
221 /// <inheritdoc cref="FrameworkElement.OnApplyTemplate" /> 236 /// <inheritdoc cref="FrameworkElement.OnInitialized(EventArgs)" />
Microsoft.CodeAnalysis.EditorFeatures.Wpf (13)
InlineHints\InlineHintsTag.cs (4)
44FrameworkElement adornment, 118private static FrameworkElement CreateElement( 243var hintUIElement = (FrameworkElement)sender;
InlineRename\UI\Adornment\RenameFlyout.xaml.cs (2)
189var lastItem = _viewModel.IsExpanded 191: (FrameworkElement)RenameUserInput;
IWpfThemeService.cs (1)
13void ApplyThemeToElement(FrameworkElement element);
QuickInfo\ContentControlService.cs (1)
50public void AttachToolTipToControl(FrameworkElement element, Func<DisposableToolTip> createToolTip)
QuickInfo\IContentControlService.cs (1)
49void AttachToolTipToControl(FrameworkElement element, Func<DisposableToolTip> createToolTip);
QuickInfo\LazyToolTip.cs (3)
26private readonly FrameworkElement _element; 32FrameworkElement element, 53public static void AttachTo(FrameworkElement element, IThreadingContext threadingContext, Func<DisposableToolTip> createToolTip)
QuickInfo\OnTheFlyDocsView.xaml.cs (1)
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)
55public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content)
EditorConfigSettings\CodeStyle\View\ColumnDefinitions\CodeStyleSeverityColumnDefinition.cs (1)
35public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content)
EditorConfigSettings\CodeStyle\View\ColumnDefinitions\CodeStyleValueColumnDefinition.cs (1)
34public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content)
EditorConfigSettings\NamingStyle\View\ColumnDefinitions\NamingStylesLocationColumnDefinition.cs (1)
59out FrameworkElement? content)
EditorConfigSettings\NamingStyle\View\ColumnDefinitions\NamingStylesSeverityColumnDefinition.cs (1)
59public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content)
EditorConfigSettings\NamingStyle\View\ColumnDefinitions\NamingStylesStyleColumnDefinition.cs (1)
47public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content)
EditorConfigSettings\NamingStyle\View\ColumnDefinitions\NamingStylesTypeColumnDefinition.cs (1)
50out FrameworkElement? content)
EditorConfigSettings\Whitespace\View\ColumnDefnitions\WhitespaceValueColumnDefinition.cs (1)
41public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content)
FindReferences\Entries\AbstractItemEntry.cs (1)
26public override bool TryCreateColumnContent(string columnName, [NotNullWhen(true)] out FrameworkElement? content)
FindReferences\Entries\DocumentSpanEntry.cs (1)
145public override bool TryCreateColumnContent(string columnName, [NotNullWhen(true)] out FrameworkElement? content)
FindReferences\Entries\Entry.cs (1)
47public virtual bool TryCreateColumnContent(string columnName, [NotNullWhen(true)] out FrameworkElement? content)
FindReferences\TableEntriesSnapshot.cs (1)
48int index, string columnName, bool singleColumnView, [NotNullWhen(true)] out FrameworkElement? content)
InheritanceMargin\InheritanceMarginViewMargin.cs (1)
205FrameworkElement IWpfTextViewMargin.VisualElement
InheritanceMargin\MarginGlyph\InheritanceMarginGlyph.cs (1)
217var visualElement = _textView.VisualElement;
PreviewPane\PreviewPane.xaml.cs (13)
116public FrameworkElement ParentElement 118get { return (FrameworkElement)GetValue(ParentElementProperty); } 123DependencyProperty.Register("ParentElement", typeof(FrameworkElement), typeof(PreviewPane), new PropertyMetadata(null)); 128ParentElement = Parent as FrameworkElement; 135var previewElement = CreatePreviewElement(previewItems); 155private FrameworkElement CreatePreviewElement(IReadOnlyList<object> previewItems) 172var previewElement = GetPreviewElement(previewItem); 217return (FrameworkElement)preview; 223private FrameworkElement GetPreviewElement(object previewItem) 236var previewElement = viewer.VisualElement; 245if (previewItem is FrameworkElement frameworkElement) 266private static FrameworkElement GetPreviewForString(string previewContent) 281private void AdjustWidthAndHeight(FrameworkElement previewElement)
UnusedReferences\Dialog\UnusedReferencesTableProvider.ColumnDefinitions.cs (7)
60internal static FrameworkElement CreateGridElement(ImageMoniker imageMoniker, string text, bool isBold) 122public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content) 159public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content) 203public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content) 257public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content) 299public override bool TryCreateColumnContent(ITableEntryHandle entry, bool singleColumnView, out FrameworkElement? content) 348public override bool TryCreateColumnContent(out FrameworkElement content)
ValueTracking\ValueTrackingRoot.xaml.cs (1)
22public void SetChild(FrameworkElement? child)
VSWpfThemeService.cs (1)
28public void ApplyThemeToElement(FrameworkElement frameworkElement)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
SemanticSearch\SemanticSearchToolWindowImpl.cs (1)
90public async Task<FrameworkElement> InitializeAsync(CancellationToken cancellationToken)
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Venus\DocumentService_IntegrationTests.vb (1)
641Public ReadOnly Property Control As FrameworkElement Implements IWpfTableControl.Control
PresentationFramework (1403)
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (4)
123FrameworkElement nodeParent = null; 124FrameworkElement feNode = node as FrameworkElement; 127nodeParent = feNode.Parent as FrameworkElement;
MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
67RegisterSelectionProcessor(nodeProcessor, typeof(FrameworkElement));
MS\Internal\Annotations\Anchoring\PathNode.cs (1)
252or FrameworkElement
MS\Internal\Annotations\Component\AnnotationAdorner.cs (1)
142/// Override for <seealso cref="FrameworkElement.ArrangeOverride" />
MS\Internal\Controls\InkCanvasInnerCanvas.cs (2)
71/// Override of <seealso cref="FrameworkElement.MeasureOverride" /> 196protected override UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent)
MS\Internal\Controls\InnerItemCollectionView.cs (1)
633private FrameworkElement ModelParentFE
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (11)
213snc.SetValue(FrameworkElement.HeightProperty, height); 217snc.ClearValue(FrameworkElement.HeightProperty); 228snc.SetValue(FrameworkElement.WidthProperty, width); 232snc.ClearValue(FrameworkElement.WidthProperty); 806double height = (double)snc.GetValue(FrameworkElement.HeightProperty); 814double width = (double)snc.GetValue(FrameworkElement.WidthProperty); 1369FrameworkElement target = ((IAnnotationComponent)this).AnnotatedElement as FrameworkElement; 1374target = host.PageVisual as FrameworkElement; 1416FrameworkElement target = (FrameworkElement)(args[0]);
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (4)
34protected StickyNoteContentControl(FrameworkElement innerControl) 98public FrameworkElement InnerControl 120protected void SetInnerControl(FrameworkElement innerControl) 135protected FrameworkElement _innerControl;
MS\Internal\Controls\TemplatedAdorner.cs (2)
85public FrameworkElement ReferenceElement 182private FrameworkElement _referenceElement;
MS\Internal\Data\ClrBindingWorker.cs (1)
72else if (targetDP == FrameworkElement.DataContextProperty ||
MS\Internal\Data\ObjectRef.cs (7)
145FrameworkElement fe = d as FrameworkElement; 369o = el.GetValue(FrameworkElement.DataContextProperty); 458for (; d != null; d = FrameworkElement.GetFrameworkParent(d)) 472FrameworkElement parent, child; 478parent = cp.TemplatedParent as FrameworkElement; 486child = d as FrameworkElement;
MS\Internal\Data\PropertyPathWorker.cs (2)
636_arySVS[k - 1].info == FrameworkElement.DataContextProperty) 667_arySVS[_arySVS.Length - 1].info == FrameworkElement.DataContextProperty &&
MS\Internal\Documents\ContentHostHelper.cs (3)
106else if (textView.RenderScope is FrameworkElement) 155FrameworkElement fe; 165fe = child as FrameworkElement;
MS\Internal\Documents\DocumentGrid.cs (1)
1279_rubberBandSelector.AttachRubberbandSelector((FrameworkElement)this); //attach the Rubber band selector.
MS\Internal\Documents\DocumentGridContextMenu.cs (3)
30EventManager.RegisterClassHandler(typeof(DocumentGrid), FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpening)); 31EventManager.RegisterClassHandler(typeof(DocumentApplicationDocumentViewer), FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnDocumentViewerContextMenuOpening)); 85if (documentGrid.ReadLocalValue(FrameworkElement.ContextMenuProperty) == null)
MS\Internal\Documents\DocumentGridPage.cs (1)
228var key = new ComponentResourceKey(typeof(FrameworkElement), "DocumentGridPageContainerWithBorder");
MS\Internal\Documents\DocumentViewerHelper.cs (2)
246XmlLanguage language = (XmlLanguage)textContainer.Parent.GetValue(FrameworkElement.LanguageProperty); 369cm = e.TargetElement.GetValue(FrameworkElement.ContextMenuProperty) as ContextMenu;
MS\Internal\Documents\PageCache.cs (1)
119FlowDirection flowDirection = (FlowDirection)((DependencyObject)_documentPaginator.Source).GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\Documents\TextBoxLine.cs (2)
206var uiScope = _owner?.Host?.TextContainer?.TextSelection?.TextEditor?.UiScope; 460var uiScope = textEditor?.UiScope;
MS\Internal\Documents\TextContainerHelper.cs (4)
600internal static ITextPointer GetTextPointerForEmbeddedObject(FrameworkElement embeddedObject) 703if (embeddedObject is FrameworkElement) 705FrameworkElement fe = (FrameworkElement)embeddedObject;
MS\Internal\Documents\TextViewBase.cs (4)
153FrameworkElement frameworkParent = FrameworkElement.GetFrameworkParent(textView.RenderScope) as FrameworkElement; 169((FrameworkElement)textView.RenderScope).BringIntoView(rect);
MS\Internal\Documents\UIElementIsland.cs (5)
75if (_child is FrameworkElement && ((FrameworkElement)_child).Parent != null) 77SetValue(FrameworkElement.FlowDirectionProperty, ((FrameworkElement)_child).Parent.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\FrameworkObject.cs (9)
57_fe = d as FrameworkElement; 71internal FrameworkObject(FrameworkElement fe, FrameworkContentElement fce) 86_fe = d as FrameworkElement; 94internal FrameworkElement FE { get { return _fe; } } 228Invariant.Assert(parent is FrameworkElement || parent is FrameworkContentElement); 232return new FrameworkObject((FrameworkElement)parent, null); 265Invariant.Assert(parent is FrameworkElement || parent is FrameworkContentElement); 269return new FrameworkObject((FrameworkElement)parent, null); 1178private FrameworkElement _fe;
MS\Internal\Helper.cs (16)
187FrameworkElement fe; 257if (d is FrameworkElement || d is FrameworkContentElement) 277out FrameworkElement fe, out FrameworkContentElement fce, 280if (d is FrameworkElement frameworkElement) 399FrameworkElement fe = templatedParent as FrameworkElement; 473FrameworkElement fe; 1061FrameworkElement virtualizingElement, 1084FrameworkElement virtualizingElement, 1163FrameworkElement virtualizingElement, 1165FrameworkElement headerElement) 1268internal static T FindTemplatedDescendant<T>(FrameworkElement searchStart, FrameworkElement templatedParent) where T : FrameworkElement 1270FrameworkElement descendant = null; 1276descendant = VisualTreeHelper.GetChild(searchStart, i) as FrameworkElement;
MS\Internal\Ink\InkCanvasSelection.cs (4)
376FrameworkElement frameworkElement = originalElement as FrameworkElement; 406((FrameworkElement)updatedElement).Width = newBounds.Width; 420( (FrameworkElement)updatedElement ).Height = newBounds.Height;
MS\Internal\PrePostDescendentsWalker.cs (1)
72if (startNode is FrameworkElement or FrameworkContentElement)
MS\Internal\PtsHost\BaseParaClient.cs (1)
80_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\CellParaClient.cs (1)
113_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\ContainerParagraph.cs (3)
481uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 647uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 777uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\FigureParaClient.cs (1)
202_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\FigureParagraph.cs (1)
125uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\FloaterParaClient.cs (1)
191_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\FloaterParagraph.cs (2)
174uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 382uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
273DependencyObject frameworkParent = FrameworkElement.GetFrameworkParent(_structuralCache.FormattingOwner);
MS\Internal\PtsHost\Line.cs (4)
403FlowDirection paragraphFlowDirection = (FlowDirection)paragraphElement.GetValue(FrameworkElement.FlowDirectionProperty); 430if (inlineObject.UIElementIsland.Root is FrameworkElement) 432DependencyObject parent = ((FrameworkElement)inlineObject.UIElementIsland.Root).Parent; 433FlowDirection parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\LineBase.cs (2)
195parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 269parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\ListParaClient.cs (1)
56uint fswdir = PTS.FlowDirectionToFswdir((FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\PtsHost\PtsHelper.cs (2)
44visualChild.SetValue(FrameworkElement.FlowDirectionProperty, childFD); 49visualChild.ClearValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\Section.cs (2)
121StructuralCache.PageFlowDirection = (FlowDirection)_structuralCache.PropertyOwner.GetValue(FrameworkElement.FlowDirectionProperty); 222fswdir = PTS.FlowDirectionToFswdir((FlowDirection)_structuralCache.PropertyOwner.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\PtsHost\SubpageParagraph.cs (3)
129uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 336uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 497uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\TableParagraph.cs (1)
163fstableobjprops.fswdirTable = PTS.FlowDirectionToFswdir((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\PtsHost\TextParagraph.cs (1)
151fstxtprops.fswdir = PTS.FlowDirectionToFswdir((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\Text\ComplexLine.cs (5)
181if (inlineObject.Element is FrameworkElement) 186DependencyObject parent = ((FrameworkElement)inlineObject.Element).Parent; 189parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 418parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 490parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\Text\DynamicPropertyReader.cs (1)
302XmlLanguage language = (XmlLanguage) element.GetValue(FrameworkElement.LanguageProperty);
MS\Internal\Text\TextProperties.cs (5)
102internal TextProperties(FrameworkElement target, bool isTypographyDefaultValue) 108_numberSubstitution = FrameworkElement.DefaultNumberSubstitution; 140FrameworkElement fe = target as FrameworkElement; 143_numberSubstitution = FrameworkElement.DefaultNumberSubstitution;
MS\Internal\TraceData.cs (2)
189FrameworkElement fe = o as FrameworkElement;
System\Windows\Annotations\AnnotationHelper.cs (12)
357FrameworkElement viewer = sender as FrameworkElement; 493ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 586ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 814ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 917ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 1040private static ITextSelection GetTextSelection(FrameworkElement viewer) 1046viewer = GetFdrHost(reader) as FrameworkElement; 1120FrameworkElement viewer = sender as FrameworkElement; 1123FrameworkElement parent = viewer.Parent as FrameworkElement;
System\Windows\Annotations\AnnotationService.cs (5)
135if (!(root is FrameworkElement || root is FrameworkContentElement)) 354if (!(element is FrameworkElement || element is FrameworkContentElement)) 389if (!(element is FrameworkElement || element is FrameworkContentElement)) 1546FrameworkElement viewer = this.Root as FrameworkElement;
System\Windows\Application.cs (2)
2246((FrameworkElement)args[0]).ShouldLookupImplicitStyles = true; 2248TreeWalkHelper.InvalidateOnResourcesChange((FrameworkElement)args[0], null, (ResourcesChangeInfo)args[1]);
System\Windows\AttachedPropertyBrowsableForChildrenAttribute.cs (1)
107walk = FrameworkElement.GetFrameworkParent(walk);
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (2)
194FrameworkElement focusedButton = focusedItem.OwningButton; 384object dataContext = (child as FrameworkElement).DataContext;
System\Windows\Automation\Peers\FrameworkContentElementAutomationPeer.cs (2)
62FrameworkElement toolTipElement = toolTip as FrameworkElement;
System\Windows\Automation\Peers\FrameworkElementAutomationPeer.cs (8)
11public FrameworkElementAutomationPeer(FrameworkElement owner) 24FrameworkElement owner = (FrameworkElement)Owner; 48result = ((FrameworkElement)Owner).GetPlainText(); 60object toolTip = ((FrameworkElement)Owner).ToolTip; 66FrameworkElement toolTipElement = toolTip as FrameworkElement; 89owner.GetValue(FrameworkElement.DataContextProperty) ==
System\Windows\Automation\Peers\ItemAutomationPeer.cs (4)
113if(wrapper is FrameworkElement) 114wrapperPeer = new FrameworkElementAutomationPeer((FrameworkElement)wrapper); 532FrameworkElement fe = item as FrameworkElement;
System\Windows\Automation\Peers\TextAutomationPeer.cs (1)
23protected TextAutomationPeer(FrameworkElement owner)
System\Windows\BroadcastEventHelper.cs (32)
20Debug.Assert(d is FrameworkElement || d is FrameworkContentElement); 33d.SetValue(FrameworkElement.LoadedPendingPropertyKey, new object[]{loadedOp, operation, logicalParent}); 41Debug.Assert(d is FrameworkElement || d is FrameworkContentElement); 48d.ClearValue(FrameworkElement.LoadedPendingPropertyKey); 68Debug.Assert(d is FrameworkElement || d is FrameworkContentElement); 81d.SetValue(FrameworkElement.UnloadedPendingPropertyKey, new object[]{unloadedOp, operation, logicalParent}); 89Debug.Assert(d is FrameworkElement || d is FrameworkContentElement); 96d.ClearValue(FrameworkElement.UnloadedPendingPropertyKey); 163object[] loadedPending = (object[])rootDO.GetValue(FrameworkElement.LoadedPendingProperty); 186BroadcastEventHelper.BroadcastEvent(rootDO, FrameworkElement.LoadedEvent); 200object[] unloadedPending = (object[])rootDO.GetValue(FrameworkElement.UnloadedPendingProperty); 223BroadcastEvent(rootDO, FrameworkElement.UnloadedEvent); 272if (routedEvent == FrameworkElement.LoadedEvent) 291if (d is FrameworkElement fe) 293if (fe != root && routedEvent == FrameworkElement.LoadedEvent && fe.UnloadedPending != null) 300else if (fe != root && routedEvent == FrameworkElement.UnloadedEvent && fe.LoadedPending != null) 311if (routedEvent == FrameworkElement.LoadedEvent && fe.LoadedPending != null) 318else if (routedEvent == FrameworkElement.UnloadedEvent && fe.UnloadedPending != null) 340fe.IsLoadedCache = (routedEvent == FrameworkElement.LoadedEvent); 354if (fce != root && routedEvent == FrameworkElement.LoadedEvent && fce.UnloadedPending != null) 361else if (fce != root && routedEvent == FrameworkElement.UnloadedEvent && fce.LoadedPending != null) 372if (routedEvent == FrameworkElement.LoadedEvent && fce.LoadedPending != null) 379else if (routedEvent == FrameworkElement.UnloadedEvent && fce.UnloadedPending != null) 401fce.IsLoadedCache = (routedEvent == FrameworkElement.LoadedEvent); 417if (d is FrameworkElement fe) 430if (d is FrameworkElement fe) 442if (d is FrameworkElement fe) 587FrameworkElement child = VisualTreeHelper.GetChild(v, i) as FrameworkElement; 718FrameworkElement fe, 721if (fe.GetValue(FrameworkElement.LoadedPendingProperty) == null) 753if (fce.GetValue(FrameworkElement.LoadedPendingProperty) == null)
System\Windows\Controls\AdornedElementPlaceholder.cs (2)
221FrameworkElement templateParent = this.TemplatedParent as FrameworkElement;
System\Windows\Controls\ComboBox.cs (2)
241cb._clonedElement.CoerceValue(FrameworkElement.FlowDirectionProperty); 1590return (bool)d.GetValue(FrameworkElement.IsEnabledProperty);
System\Windows\Controls\ContentControl.cs (2)
104FrameworkElement feContent = content as FrameworkElement;
System\Windows\Controls\ContentPresenter.cs (3)
998internal override bool BuildVisualTree(FrameworkElement container) 1030internal override bool BuildVisualTree(FrameworkElement container) 1157template = (DataTemplate)FrameworkElement.FindTemplateResourceInternal(container, item, typeof(DataTemplate));
System\Windows\Controls\Control.cs (2)
286new ValidateValueCallback(FrameworkElement.ValidateHorizontalAlignmentValue)); 312new ValidateValueCallback(FrameworkElement.ValidateVerticalAlignmentValue));
System\Windows\Controls\DataGrid.cs (10)
42dataGridRowPresenterFactory.SetValue(FrameworkElement.NameProperty, ItemsPanelPartName); 5874FrameworkElement focusContainer; 5875FrameworkElement startingElement = Keyboard.FocusedElement as FrameworkElement; 6173FrameworkElement targetElement; 6176FrameworkElement startingElement = null; 6179startingElement = Keyboard.FocusedElement as FrameworkElement; 6551private static bool CalculateCellDistance(FrameworkElement cell, DataGridRow rowOwner, Panel itemsHost, Rect itemsHostBounds, bool isMouseInCorner, out double distance) 6924FrameworkElement target; 6960FrameworkElement target;
System\Windows\Controls\DataGridBoundColumn.cs (2)
157internal void ApplyStyle(bool isEditing, bool defaultToElementStyle, FrameworkElement element) 206protected internal override void RefreshCellContent(FrameworkElement element, string propertyName)
System\Windows\Controls\DataGridCell.cs (11)
112else if ((Content as FrameworkElement) == null) 391FrameworkElement newContent = column.BuildVisualTree(IsEditing, RowDataItem, this); 396FrameworkElement oldContent = Content as FrameworkElement; 402oldContent.SetValue(FrameworkElement.DataContextProperty, BindingExpressionBase.DisconnectedItem); 585column.BeginEdit(Content as FrameworkElement, e); 599column.CancelEdit(Content as FrameworkElement); 615validationPassed = column.CommitEdit(Content as FrameworkElement); 631FrameworkElement currentEditingElement = EditingElement; 637internal FrameworkElement EditingElement 642return Content as FrameworkElement;
System\Windows\Controls\DataGridCellEditEndingEventArgs.cs (3)
19public DataGridCellEditEndingEventArgs(DataGridColumn column, DataGridRow row, FrameworkElement editingElement, DataGridEditAction editAction) 55public FrameworkElement EditingElement 71private FrameworkElement _editingElement;
System\Windows\Controls\DataGridCellsPanel.cs (2)
2437FrameworkElement itemsPresenter = TemplatedParent as FrameworkElement;
System\Windows\Controls\DataGridCheckBoxColumn.cs (4)
91protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 99protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 120protected internal override void RefreshCellContent(FrameworkElement element, string propertyName) 165protected override object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs)
System\Windows\Controls\DataGridColumn.cs (13)
613public FrameworkElement GetCellContent(object dataItem) 634public FrameworkElement GetCellContent(DataGridRow dataGridRow) 646return cell.Content as FrameworkElement; 660internal FrameworkElement BuildVisualTree(bool isEditing, object dataItem, DataGridCell cell) 675protected abstract FrameworkElement GenerateElement(DataGridCell cell, object dataItem); 680protected abstract FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem); 691protected virtual object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs) 702protected virtual void CancelCellEdit(FrameworkElement editingElement, object uneditedValue) 712protected virtual bool CommitCellEdit(FrameworkElement editingElement) 717internal void BeginEdit(FrameworkElement editingElement, RoutedEventArgs e) 730internal void CancelEdit(FrameworkElement editingElement) 739internal bool CommitEdit(FrameworkElement editingElement) 909protected internal virtual void RefreshCellContent(FrameworkElement element, string propertyName)
System\Windows\Controls\DataGridComboBoxColumn.cs (7)
285private void ApplyStyle(bool isEditing, bool defaultToElementStyle, FrameworkElement element) 407protected internal override void RefreshCellContent(FrameworkElement element, string propertyName) 485protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 500protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 533protected override object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs) 558protected override void CancelCellEdit(FrameworkElement editingElement, object uneditedValue) 575protected override bool CommitCellEdit(FrameworkElement editingElement)
System\Windows\Controls\DataGridHelper.cs (13)
150public static T FindParent<T>(FrameworkElement element) where T : FrameworkElement 152FrameworkElement parent = element.TemplatedParent as FrameworkElement; 162parent = parent.TemplatedParent as FrameworkElement; 512internal static BindingExpression GetBindingExpression(FrameworkElement element, DependencyProperty dp) 522internal static bool ValidateWithoutUpdate(FrameworkElement element) 555internal static bool BindingExpressionBelongsToElement<T>(BindingExpressionBase beb, T element) where T : FrameworkElement 615internal static void CacheFlowDirection(FrameworkElement element, DataGridCell cell) 619object flowDirectionObj = element.ReadLocalValue(FrameworkElement.FlowDirectionProperty); 627internal static void RestoreFlowDirection(FrameworkElement element, DataGridCell cell) 634element.SetValue(FrameworkElement.FlowDirectionProperty, flowDirectionObj); 639internal static void UpdateTarget(FrameworkElement element)
System\Windows\Controls\DataGridHyperlinkColumn.cs (6)
107protected internal override void RefreshCellContent(FrameworkElement element, string propertyName) 163protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 188protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 210protected override object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs) 247protected override void CancelCellEdit(FrameworkElement editingElement, object uneditedValue) 259protected override bool CommitCellEdit(FrameworkElement editingElement)
System\Windows\Controls\DataGridPreparingCellForEditEventArgs.cs (3)
20public DataGridPreparingCellForEditEventArgs(DataGridColumn column, DataGridRow row, RoutedEventArgs editingEventArgs, FrameworkElement editingElement) 55public FrameworkElement EditingElement 63private FrameworkElement _editingElement;
System\Windows\Controls\DataGridRow.cs (2)
826var detailsElement = row.DetailsPresenter != null ? row.DetailsPresenter.DetailsElement : null; 1330public static DataGridRow GetRowContainingElement(FrameworkElement element)
System\Windows\Controls\DataGridRowDetailsEventArgs.cs (2)
9public DataGridRowDetailsEventArgs(DataGridRow row, FrameworkElement detailsElement) 15public FrameworkElement DetailsElement
System\Windows\Controls\DataGridTemplateColumn.cs (4)
160private FrameworkElement LoadTemplateContent(bool isEditing, object dataItem, DataGridCell cell) 180protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 188protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 203protected internal override void RefreshCellContent(FrameworkElement element, string propertyName)
System\Windows\Controls\DataGridTextColumn.cs (9)
79protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 96protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 110private void SyncProperties(FrameworkElement e) 119protected internal override void RefreshCellContent(FrameworkElement element, string propertyName) 125FrameworkElement textElement = cell.Content as FrameworkElement; 163protected override object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs) 217protected override void CancelCellEdit(FrameworkElement editingElement, object uneditedValue) 229protected override bool CommitCellEdit(FrameworkElement editingElement)
System\Windows\Controls\DateTimeHelper.cs (3)
108internal static CultureInfo GetCulture(FrameworkElement element) 112if (element.GetValueSource(FrameworkElement.LanguageProperty, null, out hasModifiers) != BaseValueSourceInternal.Default) 205public static string ToDecadeRangeString(int decade, FrameworkElement fe)
System\Windows\Controls\DocumentViewer.cs (4)
1365FrameworkElement grid = _documentScrollInfo as FrameworkElement; 2059FrameworkElement fe = _documentScrollInfo as FrameworkElement;
System\Windows\Controls\FlowDocumentReader.cs (12)
787((FrameworkElement)CurrentViewer).Focus(); 908FrameworkElement feViewer; 941feViewer = (FrameworkElement)viewer; 991FrameworkElement fe = focusedElement as FrameworkElement; 1079Invariant.Assert(viewer != null && viewer is FrameworkElement); 1080FrameworkElement feViewer = (FrameworkElement)viewer; 1102Invariant.Assert(viewer != null && viewer is FrameworkElement); 1103FrameworkElement feViewer = (FrameworkElement)viewer; 1123private void CreateTwoWayBinding(FrameworkElement fe, DependencyProperty dp, string propertyPath)
System\Windows\Controls\FlowDocumentScrollViewer.cs (3)
810FrameworkElement.AddIntermediateElementsToRoute( 827continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(LogicalTreeHelper.GetParent(document), LogicalTreeHelper.GetParent(branchNode)); 1304private void CreateTwoWayBinding(FrameworkElement fe, DependencyProperty dp, string propertyPath)
System\Windows\Controls\Frame.cs (3)
647FrameworkElement journalEntryUIElem = e.Parameter as FrameworkElement; 1295FrameworkElement fe;
System\Windows\Controls\Grid.cs (1)
92/// <see cref="FrameworkElement.LogicalChildren"/>
System\Windows\Controls\GridSplitter.cs (1)
92FrameworkElement.HorizontalAlignmentProperty.OverrideMetadata(typeof(GridSplitter), new FrameworkPropertyMetadata(HorizontalAlignment.Right));
System\Windows\Controls\GridViewColumn.cs (2)
378FrameworkElement.WidthProperty.AddOwner( 499FrameworkElement fe;
System\Windows\Controls\GridViewColumnHeader.cs (2)
636FrameworkElement gripperContainer = _headerGripper.Parent as FrameworkElement;
System\Windows\Controls\GridViewHeaderRowPresenter.cs (5)
236/// Override of <seealso cref="FrameworkElement.MeasureOverride" />. 1250FrameworkElement fe = presenter.TemplatedParent as FrameworkElement; 1260fe = fe.TemplatedParent as FrameworkElement; 1575private static bool IsMousePositionValid(FrameworkElement floatingHeader, Point currentPos, double arrange)
System\Windows\Controls\GridViewRowPresenter.cs (11)
124/// Override of <seealso cref="FrameworkElement.MeasureOverride" />. 308FrameworkElement cell = InternalChildren[index] as FrameworkElement; 442_viewItem = this.TemplatedParent as FrameworkElement; 458_viewPort = scrollViewer.GetTemplateChild(ScrollViewer.ScrollContentPresenterTemplateName) as FrameworkElement; 573private FrameworkElement CreateCell(GridViewColumn column) 577FrameworkElement cell; 638FrameworkElement cell; 644cell = (FrameworkElement)children[i]; 693private FrameworkElement _viewPort; 694private FrameworkElement _viewItem;
System\Windows\Controls\GroupItem.cs (7)
45_header = this.GetTemplateChild("PART_Header") as FrameworkElement; 284FrameworkElement headerElement = HeaderElement; 425private FrameworkElement ExpanderHeader 431return _expander.GetTemplateChild(ExpanderHeaderPartName) as FrameworkElement; 438private FrameworkElement HeaderElement 442FrameworkElement headerElement = null; 464FrameworkElement _header;
System\Windows\Controls\Image.cs (1)
224/// Override for <seealso cref="FrameworkElement.ArrangeOverride" />.
System\Windows\Controls\InkCanvas.cs (2)
267e.Property == FrameworkElement.LayoutTransformProperty) 306if (e.Property == FrameworkElement.FlowDirectionProperty)
System\Windows\Controls\InkPresenter.cs (2)
144/// Override of <seealso cref="FrameworkElement.MeasureOverride" /> 188/// Override of <seealso cref="FrameworkElement.ArrangeOverride" />.
System\Windows\Controls\ItemCollection.cs (3)
77internal ItemCollection(FrameworkElement modelParent, int capacity) 1492internal FrameworkElement ModelParentFE 1494get { return ModelParent as FrameworkElement; }
System\Windows\Controls\ItemContainerGenerator.cs (5)
109label = (string)d.GetValue(FrameworkElement.NameProperty); 1054string name = (String)peer.GetValue(FrameworkElement.NameProperty); 2275DependencyProperty dp = FrameworkElement.DataContextProperty; 2280container.SetValue(FrameworkElement.DataContextProperty, item); 2335DependencyProperty dp = FrameworkElement.DataContextProperty;
System\Windows\Controls\ItemContainerTemplateSelector.cs (1)
28return FrameworkElement.FindTemplateResourceInternal(parentItemsControl, item, typeof(ItemContainerTemplate)) as DataTemplate;
System\Windows\Controls\ItemsControl.cs (85)
33[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(FrameworkElement))] 1334Invariant.Assert(parent is FrameworkElement, SR.ItemsControl_ParentNotFrameworkElement); 1342((FrameworkElement)parent).TemplateChild = null; 1374Helper.HasUnmodifiedDefaultOrInheritedValue(container, FrameworkElement.BindingGroupProperty)) 1380container.SetValue(FrameworkElement.BindingGroupProperty, containerBindingGroup); 1819FrameworkElement element = info.Container as FrameworkElement; 1866while (startingElement != null && !(startingElement is FrameworkElement)) 1873return NavigateByLine(FocusedInfo, startingElement as FrameworkElement, direction, itemNavigateArgs); 1877FrameworkElement startingElement, 1880out FrameworkElement container) 1918FrameworkElement startingElement, 1941FrameworkElement container; 1952FrameworkElement startingElement, 1955out FrameworkElement container) 1969FrameworkElement nextElement = null; 2010treeViewNavigation) as FrameworkElement; 2015FrameworkElement viewport = GetViewportElement(); 2029TryGetTreeViewItemHeader(nextElement) as FrameworkElement, 2139treeViewNavigation) as FrameworkElement; 2177FrameworkElement startingElement, 2180out FrameworkElement container) 2213return NavigateByPage(FocusedInfo, Keyboard.FocusedElement as FrameworkElement, direction, itemNavigateArgs); 2226FrameworkElement startingElement, 2249FrameworkElement container; 2260FrameworkElement startingElement, 2263out FrameworkElement container) 2280FrameworkElement firstElement; 2358FrameworkElement container; 2362internal bool NavigateToStartInternal(ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container) 2396FrameworkElement firstElement; 2397FrameworkElement hopefulFirstElement = FindEndFocusableLeafContainer(ItemsHost, false /*last*/); 2424FrameworkElement container; 2428internal bool NavigateToEndInternal(ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container) 2462FrameworkElement lastElement; 2463FrameworkElement hopefulLastElement = FindEndFocusableLeafContainer(ItemsHost, true /*last*/); 2488private FrameworkElement FindEndFocusableLeafContainer(Panel itemsHost, bool last) 2502FrameworkElement fe = children[i] as FrameworkElement; 2506FrameworkElement result = null; 2584FrameworkElement container; 2591private object FindFocusable(int startIndex, int direction, out int foundIndex, out FrameworkElement foundContainer) 2600FrameworkElement container = ItemContainerGenerator.ContainerFromIndex(startIndex) as FrameworkElement; 2619private void AdjustOffsetToAlignWithEdge(FrameworkElement element, FocusNavigationDirection direction) 2626FrameworkElement viewportElement = GetViewportElement(); 2627element = TryGetTreeViewItemHeader(element) as FrameworkElement; 2662private void MakeVisible(int index, FocusNavigationDirection direction, bool alwaysAtTopOfViewport, out FrameworkElement container) 2668container = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement; 2678container = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement; 2688private void MakeVisible(ItemInfo info, FocusNavigationDirection direction, out FrameworkElement container) 2704internal void MakeVisible(FrameworkElement container, FocusNavigationDirection direction, bool alwaysAtTopOfViewport) 2711FrameworkElement viewportElement = GetViewportElement(); 2733FrameworkElement firstElement; 2762private bool NavigateToFirstItemOnCurrentPage(object startingItem, FocusNavigationDirection direction, ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container) 2764object firstItem = GetFirstItemOnCurrentPage(ItemContainerGenerator.ContainerFromItem(startingItem) as FrameworkElement, 2778private object GetFirstItemOnCurrentPage(FrameworkElement startingElement, 2780out FrameworkElement firstElement) 2829FrameworkElement currentElement = startingElement; 2844FrameworkElement viewportElement = GetViewportElement(); 2850viewportElement) as FrameworkElement; 2886internal FrameworkElement GetViewportElement() 2893FrameworkElement viewPort = ScrollHost; 2919FrameworkElement container = ItemContainerGenerator.ContainerFromItem(item) as FrameworkElement; 2929private bool IsOnCurrentPage(FrameworkElement element, FocusNavigationDirection axis) 2941private bool IsOnCurrentPage(FrameworkElement viewPort, FrameworkElement element, FocusNavigationDirection axis, bool fullyVisible) 2946internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort, 2955internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort, 2982internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort, 3073internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort, 3358FrameworkElement relativeTo = ScrollHost != null ? (FrameworkElement)ScrollHost : ItemsHost; 3407private bool IsRTL(FrameworkElement element) 3413private static ItemsControl GetEncapsulatingItemsControl(FrameworkElement element) 3422element = VisualTreeHelper.GetParent(element) as FrameworkElement; 3427private static object GetEncapsulatingItem(FrameworkElement element, out FrameworkElement container) 3433private static object GetEncapsulatingItem(FrameworkElement element, out FrameworkElement container, out ItemsControl itemsControl) 3451element = VisualTreeHelper.GetParent(element) as FrameworkElement; 3486container.ReadLocalValue(FrameworkElement.StyleProperty) != DependencyProperty.UnsetValue) 3517container.ClearValue(FrameworkElement.StyleProperty); 3527container.ClearValue(FrameworkElement.StyleProperty);
System\Windows\Controls\ItemsPanelTemplate.cs (1)
148protected override void ValidateTemplatedParent(FrameworkElement templatedParent)
System\Windows\Controls\ItemsPresenter.cs (2)
61/// Override of <seealso cref="FrameworkElement.MeasureOverride" />. 72/// Override of <seealso cref="FrameworkElement.ArrangeOverride" />.
System\Windows\Controls\MediaElement.cs (2)
697/// Override for <seealso cref="FrameworkElement.MeasureOverride" />. 705/// Override for <seealso cref="FrameworkElement.ArrangeOverride" />.
System\Windows\Controls\Menu.cs (2)
273FrameworkElement element = e.OriginalSource as FrameworkElement;
System\Windows\Controls\MenuItem.cs (3)
2443FrameworkElement parent = LogicalParent as FrameworkElement; 2468private static bool IsMouseReallyOver(FrameworkElement elem)
System\Windows\Controls\Page.cs (5)
680FrameworkElement feParent = visualParent as FrameworkElement; 692feParent = parent as FrameworkElement; 773FrameworkElement feParent = this.Parent as FrameworkElement;
System\Windows\Controls\Panel.cs (2)
389protected virtual UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent) 599private void EnsureEmptyChildren(FrameworkElement logicalParent)
System\Windows\Controls\PasswordBox.cs (7)
31[TemplatePart(Name = "PART_ContentHost", Type = typeof(FrameworkElement))] 473/// <see cref="FrameworkElement.OnPropertyChanged"/> 782internal FrameworkElement RenderScope 938_passwordBoxContentHost = GetTemplateChild(ContentHostTemplateName) as FrameworkElement; 990FrameworkElement element = _renderScope; 997element = element.Parent as FrameworkElement; 1289private FrameworkElement _passwordBoxContentHost;
System\Windows\Controls\PopupControlService.cs (1)
1171return FrameworkElement.PopupControlService;
System\Windows\Controls\Primitives\CalendarItem.cs (9)
12[TemplatePart(Name = CalendarItem.ElementRoot, Type = typeof(FrameworkElement))] 19[TemplatePart(Name = CalendarItem.ElementDisabledVisual, Type = typeof(FrameworkElement))] 46private FrameworkElement _disabledVisual; 171_disabledVisual = GetTemplateChild(ElementDisabledVisual) as FrameworkElement; 444FrameworkElement focusTarget = null; 954FrameworkElement titleCell = (this._dayTitleTemplate != null) ? (FrameworkElement)this._dayTitleTemplate.LoadContent() : new ContentControl(); 1020FrameworkElement daytitle = _monthView.Children[childIndex] as FrameworkElement;
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (1)
204/// Override for <see cref="System.Windows.FrameworkElement.OnApplyTemplate">FrameworkElement.OnApplyTemplate</see>
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (2)
138internal FrameworkElement DetailsElement 145return VisualTreeHelper.GetChild(this, 0) as FrameworkElement;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (9)
444this.TextEditorRenderScope = (adornerDecorator != null) ? (adornerDecorator.Child as FrameworkElement) : null; 742internal FrameworkElement TextEditorRenderScope 915FrameworkElement fe; 925fe = child as FrameworkElement; 961FrameworkElement fe; 974fe = child as FrameworkElement; 1151FrameworkElement fe = child as FrameworkElement; 1660private FrameworkElement _textEditorRenderScope; // RenderScope associated with the TextEditor.
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (2)
303private FrameworkElement GetStableAncester() 307return (ic != null) ? ic : (FrameworkElement)this;
System\Windows\Controls\Primitives\LayoutInformation.cs (3)
19private static void CheckArgument(FrameworkElement element) 28public static Rect GetLayoutSlot(FrameworkElement element) 41public static Geometry GetLayoutClip(FrameworkElement element)
System\Windows\Controls\Primitives\PopupRoot.cs (2)
352FrameworkElement child = Child as FrameworkElement;
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (2)
737FrameworkElement templatedParent = scrollContainer.TemplatedParent as FrameworkElement;
System\Windows\Controls\Primitives\Selector.cs (8)
107FrameworkElement.AddHandler(element, SelectedEvent, handler); 118FrameworkElement.RemoveHandler(element, SelectedEvent, handler); 136FrameworkElement.AddHandler(element, UnselectedEvent, handler); 147FrameworkElement.RemoveHandler(element, UnselectedEvent, handler); 1424private void SetSelectedHelper(object item, FrameworkElement UI, bool selected) 1888((Selector)sender).NotifyIsSelectedChanged(e.OriginalSource as FrameworkElement, true, e); 1893((Selector)sender).NotifyIsSelectedChanged(e.OriginalSource as FrameworkElement, false, e); 1904internal void NotifyIsSelectedChanged(FrameworkElement container, bool selected, RoutedEventArgs e)
System\Windows\Controls\Primitives\TextBoxBase.cs (7)
34[TemplatePart(Name = "PART_ContentHost", Type = typeof(FrameworkElement))] 1389internal abstract FrameworkElement CreateRenderScope(); 1799internal FrameworkElement RenderScope 1960FrameworkElement renderScope = CreateRenderScope(); 1966_textBoxContentHost = GetTemplateChild(ContentHostTemplateName) as FrameworkElement; 2234private FrameworkElement _textBoxContentHost; 2237private FrameworkElement _renderScope;
System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (1)
190protected override UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent)
System\Windows\Controls\Primitives\Track.cs (3)
414/// <seealso cref="FrameworkElement.MeasureOverride" /> 462/// <seealso cref="FrameworkElement.ArrangeOverride" /> 694private void BindChildToTemplatedParent(FrameworkElement element, DependencyProperty target, DependencyProperty source)
System\Windows\Controls\ProgressBar.cs (11)
27[TemplatePart(Name = "PART_Track", Type = typeof(FrameworkElement))] 28[TemplatePart(Name = "PART_Indicator", Type = typeof(FrameworkElement))] 29[TemplatePart(Name = "PART_GlowRect", Type = typeof(FrameworkElement))] 259_glow.BeginAnimation(FrameworkElement.MarginProperty, animation); 263_glow.BeginAnimation(FrameworkElement.MarginProperty, null); 343_track = GetTemplateChild(TrackTemplateName) as FrameworkElement; 344_indicator = GetTemplateChild(IndicatorTemplateName) as FrameworkElement; 345_glow = GetTemplateChild(GlowingRectTemplateName) as FrameworkElement; 369private FrameworkElement _track; 370private FrameworkElement _indicator; 371private FrameworkElement _glow;
System\Windows\Controls\RichTextBox.cs (2)
315internal override FrameworkElement CreateRenderScope() 780this.RenderScope.ClearValue(FrameworkElement.HorizontalAlignmentProperty);
System\Windows\Controls\ScrollViewer.cs (8)
376/// <see cref="System.Windows.FrameworkElement.Width" /> on the content element. 388/// <see cref="System.Windows.FrameworkElement.Height" /> on the content element. 417/// <see cref="System.Windows.FrameworkElement.Width" /> on this element. 429/// <see cref="System.Windows.FrameworkElement.Height" /> on this element. 1031FrameworkElement fe = elementRoot as FrameworkElement; 2717hsb.SetValue(FrameworkElement.CursorProperty, Cursors.Arrow); 2727vsb.SetValue(FrameworkElement.CursorProperty, Cursors.Arrow);
System\Windows\Controls\SinglePageViewer.cs (2)
788FrameworkElement.AddIntermediateElementsToRoute( 805continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(LogicalTreeHelper.GetParent(document), LogicalTreeHelper.GetParent(branchNode));
System\Windows\Controls\Slider.cs (11)
32[TemplatePart(Name = "PART_SelectionRange", Type = typeof(FrameworkElement))] 991FrameworkElement rangeElement = this.SelectionRangeElement as FrameworkElement; 1051FrameworkElement rangeElement = this.SelectedRangeElement as FrameworkElement; 1133internal FrameworkElement SelectionRangeElement 1145internal FrameworkElement SelectedRangeElement 1348SelectionRangeElement = GetTemplateChild(SelectionRangeElementName) as FrameworkElement; 1349SelectedRangeElement = GetTemplateChild(SelectedRangeElementName) as FrameworkElement; 1451private FrameworkElement _selectionRangeElement; 1452private FrameworkElement _selectedRangeElement;
System\Windows\Controls\SoundPlayerAction.cs (2)
116internal sealed override void Invoke(FrameworkElement el, 128internal sealed override void Invoke(FrameworkElement el)
System\Windows\Controls\StickyNote.cs (8)
796FrameworkElement innerControl = stickyNoteControl.Content.InnerControl; 813FrameworkElement innerControl = stickyNoteControl.Content.InnerControl; 977FrameworkElement parent = VisualTreeHelper.GetParent(Content.InnerControl) as FrameworkElement; 1378parent = FrameworkElement.GetFrameworkParent(parent); 1455FrameworkElement innerControl = Content.InnerControl; 1499FrameworkElement innerControl = (FrameworkElement)Content.InnerControl;
System\Windows\Controls\TabControl.cs (2)
555FrameworkElement visualParent = VisualTreeHelper.GetParent(tabItem) as FrameworkElement;
System\Windows\Controls\TextAdaptor.cs (2)
265FrameworkElement fe = renderScope as FrameworkElement;
System\Windows\Controls\TextBox.cs (2)
1009/// <see cref="FrameworkElement.OnPropertyChanged"/> 1115internal override FrameworkElement CreateRenderScope()
System\Windows\Controls\TextRangeAdaptor.cs (7)
150object val = tp.GetValue(FrameworkElement.LanguageProperty); 318Thickness margin = (Thickness)tp.GetValue(FrameworkElement.MarginProperty); 329Thickness margin = (Thickness)tp.GetValue(FrameworkElement.MarginProperty); 340Thickness margin = (Thickness)tp.GetValue(FrameworkElement.MarginProperty); 351Thickness margin = (Thickness)tp.GetValue(FrameworkElement.MarginProperty); 413FlowDirection flowWCP = (FlowDirection)tp.GetValue(FrameworkElement.FlowDirectionProperty); 1277(XmlLanguage)context.GetValue(FrameworkElement.LanguageProperty) :
System\Windows\Controls\TextSearch.cs (4)
604FrameworkElement fe = o as FrameworkElement; 744internal static string GetPrimaryText(FrameworkElement element) 804object o = element.GetValue(FrameworkElement.LanguageProperty);
System\Windows\Controls\ToolBar.cs (2)
464FrameworkElement fe = element as FrameworkElement;
System\Windows\Controls\TreeView.cs (3)
612FrameworkElement container; 619FrameworkElement container; 706FrameworkElement startingContainer = _selectedContainer.HeaderElement;
System\Windows\Controls\TreeViewItem.cs (13)
22[TemplatePart(Name = HeaderPartName, Type = typeof(FrameworkElement))] 43EventManager.RegisterClassHandler(typeof(TreeViewItem), FrameworkElement.RequestBringIntoViewEvent, new RequestBringIntoViewEventHandler(OnRequestBringIntoView)); 371FrameworkElement headerElement = HeaderElement; 683FrameworkElement startingContainer = this.HeaderElement; 774FrameworkElement header = HeaderElement; 790FrameworkElement header = HeaderElement; 798internal FrameworkElement HeaderElement 802return GetTemplateChild(HeaderPartName) as FrameworkElement; 808internal FrameworkElement TryGetHeaderElement() 811FrameworkElement header = HeaderElement; 835FrameworkElement parent = VisualTreeHelper.GetParent(toggleButton) as FrameworkElement; 843header = VisualTreeHelper.GetChild(parent, index+1) as FrameworkElement;
System\Windows\Controls\UIElementCollection.cs (3)
33public UIElementCollection(UIElement visualParent, FrameworkElement logicalParent) 535internal FrameworkElement LogicalParent 542private readonly FrameworkElement _logicalParent;
System\Windows\Controls\UserControl.cs (2)
55internal override FrameworkElement StateGroupsRoot 59return Content as FrameworkElement;
System\Windows\Controls\Validation.cs (4)
45FrameworkElement.AddHandler(element, ErrorEvent, handler); 55FrameworkElement.RemoveHandler(element, ErrorEvent, handler); 336if (!HasValidationGroup(targetElement as FrameworkElement)) 349private static bool HasValidationGroup(FrameworkElement fe)
System\Windows\Controls\VirtualizingStackPanel.cs (33)
419FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport( 543FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport( 671FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport( 875FrameworkElement prevFirstContainerInViewport = _scrollData._firstContainerInViewport; 880FrameworkElement currFirstContainerInViewport = ComputeFirstContainerInViewport( 903FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport( 1119private FrameworkElement ComputeFirstContainerInViewport( 1120FrameworkElement viewportElement, 1133private FrameworkElement ComputeFirstContainerInViewport( 1134FrameworkElement viewportElement, 1171FrameworkElement result = null; 1180FrameworkElement fe = children[i] as FrameworkElement; 1717FrameworkElement childFE = child as FrameworkElement; 1981FrameworkElement.AddHandler(element, CleanUpVirtualizedItemEvent, handler); 1991FrameworkElement.RemoveHandler(element, CleanUpVirtualizedItemEvent, handler); 5285FrameworkElement container = virtualizationInfoProvider as FrameworkElement; 6404FrameworkElement container = virtualizationInfoProvider as FrameworkElement; 6463FrameworkElement fe = virtualizingChild as FrameworkElement; 6600private bool IsHeaderBeforeItems(bool isHorizontal, FrameworkElement container, ref Thickness inset) 7110bool isHeaderBeforeItems = IsHeaderBeforeItems(isHorizontal, virtualizingChild as FrameworkElement, ref inset); 11088bool isHeaderBeforeItems = IsHeaderBeforeItems(isHorizontal, virtualizingElement as FrameworkElement, ref inset); 11621private FrameworkElement FirstContainerInViewport 11808internal FrameworkElement _firstContainerInViewport; 12170sti = new ScrollTracingInfo(tracer, _nullInfo.Generation, 0, itemsOwner as FrameworkElement, null, null, 0); 12192sti = new ScrollTracingInfo(tracer, _nullInfo.Generation, parentInfo.Depth + 1, itemsOwner as FrameworkElement, parent, parentItem, itemIndex); 12677internal FrameworkElement Owner { get; private set; } 12682internal ScrollTracingInfo(ScrollTracer tracer, int generation, int depth, FrameworkElement owner, VirtualizingStackPanel parent, object parentItem, int itemIndex) 12879internal FrameworkElement _firstContainerInViewport;
System\Windows\Controls\WrapPanel.cs (2)
209/// <see cref="FrameworkElement.MeasureOverride"/> 270/// <see cref="FrameworkElement.ArrangeOverride"/>
System\Windows\ControlTemplate.cs (1)
59protected override void ValidateTemplatedParent(FrameworkElement templatedParent)
System\Windows\Data\Binding.cs (4)
107FrameworkElement.AddHandler(element, SourceUpdatedEvent, handler); 117FrameworkElement.RemoveHandler(element, SourceUpdatedEvent, handler); 137FrameworkElement.AddHandler(element, TargetUpdatedEvent, handler); 147FrameworkElement.RemoveHandler(element, TargetUpdatedEvent, handler);
System\Windows\Data\BindingExpression.cs (16)
221if (dp == FrameworkElement.DataContextProperty && d == ContextElement) 229else if (dp == FrameworkElement.LanguageProperty && UsesLanguage && d == TargetElement) 457BaseValueSourceInternal valueSource = d.GetValueSource(FrameworkElement.DataContextProperty, null, out hasModifiers); 704if (TargetProperty == FrameworkElement.DataContextProperty || 709cvs.PropertyForInheritanceContext == FrameworkElement.DataContextProperty) 712contextElement = FrameworkElement.GetFrameworkParent(contextElement); 758source = contextElement.GetValue(FrameworkElement.DataContextProperty); 925object item = contextElement.GetValue(FrameworkElement.DataContextProperty); 1219newSources[offset++] = new WeakDependencySource(_ctxElement, FrameworkElement.DataContextProperty); 1232newSources[offset++] = new WeakDependencySource(TargetElementReference, FrameworkElement.LanguageProperty); 2283item = contextElement.GetValue(FrameworkElement.DataContextProperty); 2431object newItem = contextElement.GetValue(FrameworkElement.DataContextProperty); 2660if (dp == FrameworkElement.DataContextProperty) 2679if (dp == FrameworkElement.LanguageProperty && UsesLanguage && d == TargetElement) 2724ancestor = FrameworkElement.GetFrameworkParent(ancestor)) 2728b = BindingOperations.GetBindingExpression(ancestor, FrameworkElement.DataContextProperty) as BindingExpression;
System\Windows\Data\BindingExpressionBase.cs (5)
1267if (IsInTransfer && (TargetProperty == FrameworkElement.LanguageProperty)) 1285_culture = ((XmlLanguage) target.GetValue(FrameworkElement.LanguageProperty)).GetSpecificCulture(); 1722bg = (BindingGroup)contextElement.GetValue(FrameworkElement.BindingGroupProperty); 1730DependencyProperty dataContextDP = FrameworkElement.DataContextProperty; 1748DependencyProperty bindingGroupDP = FrameworkElement.BindingGroupProperty;
System\Windows\Data\BindingGroup.cs (5)
593if (property == FrameworkElement.BindingGroupProperty && 818object dataContextItem = mentor.GetValue(FrameworkElement.DataContextProperty); 924FrameworkElement fe; 1022mentor.GetValue(FrameworkElement.DataContextProperty) == CollectionView.NewItemPlaceholder) 1312_culture = ((System.Windows.Markup.XmlLanguage) mentor.GetValue(FrameworkElement.LanguageProperty)).GetSpecificCulture();
System\Windows\Data\CollectionViewSource.cs (1)
829XmlLanguage language = (d != null) ? (XmlLanguage)d.GetValue(FrameworkElement.LanguageProperty) : null;
System\Windows\Data\MultiBindingExpression.cs (3)
225WeakDependencySource[] commonSources = new WeakDependencySource[] { new WeakDependencySource(TargetElement, FrameworkElement.LanguageProperty) }; 443commonSources = new WeakDependencySource[] { new WeakDependencySource(TargetElement, FrameworkElement.LanguageProperty) }; 1026if (UsesLanguage && d == TargetElement && dp == FrameworkElement.LanguageProperty)
System\Windows\DataTemplate.cs (1)
185protected override void ValidateTemplatedParent(FrameworkElement templatedParent)
System\Windows\DescendentsWalker.cs (10)
54if (_startNode is FrameworkElement 77if (d is FrameworkElement fe) 182FrameworkElement feParent, 225FrameworkElement feParent, bool hasLogicalChildren ) 257FrameworkElement fe = current as FrameworkElement; 298FrameworkElement feParent, bool hasLogicalChildren) 315if (child != null && child is FrameworkElement fe) 349private void VisitNode(FrameworkElement fe, bool visitedViaVisualTree) 395if (d is FrameworkElement fe)
System\Windows\DescendentsWalkerBase.cs (1)
37if (ancestor is FrameworkElement fe)
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (4)
278public static IEnumerable<FrameworkElement> GetFrameworkElementOwners(ResourceDictionary dictionary) 280return GetOwners<FrameworkElement>(dictionary.FrameworkElementOwners, EmptyFrameworkElementList); 314private static IReadOnlyCollection<FrameworkElement> EmptyFrameworkElementList 315=> Array.Empty<FrameworkElement>();
System\Windows\Documents\AdornerDecorator.cs (1)
132/// Override for <seealso cref="FrameworkElement.ArrangeOverride" />
System\Windows\Documents\Block.cs (1)
255FrameworkElement.FlowDirectionProperty.AddOwner(typeof(Block));
System\windows\Documents\CaretElement.cs (7)
126FrameworkElement owner = GetOwnerElement(); 777private static FrameworkElement Debug_RenderScope 781return ((ITextSelection)TextEditor._ThreadLocalStore.FocusedTextSelection).TextView.RenderScope as FrameworkElement; // TextBlock / TextFlow 827private FrameworkElement GetOwnerElement() 832internal static FrameworkElement GetOwnerElement(FrameworkElement uiScope) 844return (FrameworkElement)node;
System\Windows\Documents\FixedDSBuilder.cs (1)
158XmlLanguage language = (XmlLanguage) _fixedPage.GetValue(FrameworkElement.LanguageProperty);
System\Windows\Documents\FixedElement.cs (2)
56FrameworkElement.LanguageProperty.AddOwner( 85FrameworkElement.FlowDirectionProperty.AddOwner(
System\Windows\Documents\FixedHyperlink.cs (2)
91FrameworkElement targetElement = null; 93targetElement = ((IFixedNavigate)ElementHost).FindElementByID(elementID, out rootFixedPage) as FrameworkElement;
System\Windows\Documents\FixedPage.cs (5)
443/// <seealso cref="FrameworkElement.Margin" /> 460/// <seealso cref="FrameworkElement.Margin" /> 477/// <seealso cref="FrameworkElement.Margin" /> 495/// <seealso cref="FrameworkElement.Margin" /> 716private UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent)
System\Windows\Documents\FixedSOMFixedBlock.cs (1)
208element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft);
System\Windows\Documents\FixedSOMTextRun.cs (3)
229element.SetValue(FrameworkElement.LanguageProperty, XmlLanguage.GetLanguage(_cultureInfo.IetfLanguageTag)); 237element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 241element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight);
System\Windows\Documents\FixedTextBuilder.cs (1)
1392public void FindHyperlinkPaths(FrameworkElement elem)
System\Windows\Documents\Floater.cs (1)
81FrameworkElement.HorizontalAlignmentProperty.AddOwner(
System\Windows\Documents\FlowDocument.cs (4)
903else if (element is FrameworkElement) 906while (element is FrameworkElement) 913if (!(parentOfEmbeddedElement is FrameworkElement)) 921textPointer = TextContainerHelper.GetTextPointerForEmbeddedObject((FrameworkElement)element);
System\Windows\Documents\Hyperlink.cs (2)
888FrameworkElement fe = d as FrameworkElement;
System\Windows\Documents\ImmComposition.cs (2)
71internal static ImmComposition GetImmComposition(FrameworkElement scope) 1865private FrameworkElement UiScope
System\Windows\Documents\Inline.cs (1)
134FrameworkElement.FlowDirectionProperty.AddOwner(typeof(Inline));
System\Windows\Documents\RangeContentEnumerator.cs (2)
328FrameworkElement fe = node as FrameworkElement;
System\Windows\Documents\RubberbandSelector.cs (2)
44internal void AttachRubberbandSelector(FrameworkElement scope) 610private FrameworkElement _uiScope; // parent of _scope, if _scope is a DocumentGrid.
System\Windows\Documents\Speller.cs (3)
305return property == FrameworkElement.LanguageProperty || 1502_textEditor.UiScope.GetValueSource(FrameworkElement.LanguageProperty, null, out hasModifiers) == BaseValueSourceInternal.Default) 1509language = (XmlLanguage)position.GetValue(FrameworkElement.LanguageProperty);
System\Windows\Documents\TextContainer.cs (2)
174internal void EnableUndo(FrameworkElement uiScope) 182internal void DisableUndo(FrameworkElement uiScope)
System\windows\Documents\TextEditor.cs (25)
52internal TextEditor(ITextContainer textContainer, FrameworkElement uiScope, bool isUndoEnabled) 306internal static ITextSelection GetTextSelection(FrameworkElement frameworkElement) 476XmlLanguage language = (XmlLanguage)((ITextPointer)range.Start).GetValue(FrameworkElement.LanguageProperty); 484range.ApplyPropertyValue(FrameworkElement.LanguageProperty, XmlLanguage.GetLanguage(inputCultureInfo.IetfLanguageTag)); 499FlowDirection currentFlowDirection = (FlowDirection)((ITextPointer)range.Start).GetValue(FrameworkElement.FlowDirectionProperty); 505range.ApplyPropertyValue(FrameworkElement.FlowDirectionProperty, inputFlowDirection); 839internal FrameworkElement UiScope 1271if ((source is FrameworkElement) && ((FrameworkElement)source).TemplatedParent == this.UiScope) 1329internal FrameworkElement _Scroller 1333FrameworkElement scroller = this.TextView == null ? null : (this.TextView.RenderScope as FrameworkElement); 1337scroller = FrameworkElement.GetFrameworkParent(scroller) as FrameworkElement; 1635TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1652FrameworkElement frameworkElement = sender as FrameworkElement; 1689TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1744TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1784TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1827TextEditor This = TextEditor._GetTextEditor((FrameworkElement)target); 1853TextEditor This = TextEditor._GetTextEditor((FrameworkElement)target); 1879TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1899TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1984private FrameworkElement _uiScope;
System\windows\Documents\TextEditorContextMenu.cs (8)
37EventManager.RegisterClassHandler(controlType, FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpening)); 75contextMenu = (ContextMenu)e.TargetElement.GetValue(FrameworkElement.ContextMenuProperty); 88contextMenu = (ContextMenu)element.GetValue(FrameworkElement.ContextMenuProperty); 130if (This.UiScope.ReadLocalValue(FrameworkElement.ContextMenuProperty) == null) 270FrameworkElement element = This.TextView.RenderScope as FrameworkElement; 286element = visual as FrameworkElement; 333private static void ClipToElement(FrameworkElement element, GeneralTransform transform,
System\windows\Documents\TextEditorCopyPaste.cs (3)
710else if (element is FrameworkElement) 712((TextSelection)This.Selection).InsertEmbeddedUIElement((FrameworkElement)element); 1002private static bool ConfirmDataFormatSetting(FrameworkElement uiScope, IDataObject dataObject, string format)
System\windows\Documents\TextEditorDragDrop.cs (1)
347FrameworkElement scroller = _textEditor._Scroller;
System\windows\Documents\TextEditorMouse.cs (3)
510FrameworkElement scroller = This._Scroller; 789if (hitElement is FrameworkElement && ((FrameworkElement)hitElement).TemplatedParent == textEditor.UiScope)
System\windows\Documents\TextEditorParagraphs.cs (2)
141TextEditorCharacters._OnApplyProperty(This, FrameworkElement.FlowDirectionProperty, 151TextEditorCharacters._OnApplyProperty(This, FrameworkElement.FlowDirectionProperty,
System\windows\Documents\TextEditorSelection.cs (1)
2432return (FlowDirection)navigator.GetValue(FrameworkElement.FlowDirectionProperty);
System\windows\Documents\TextEditorSpelling.cs (1)
163XmlLanguage language = (XmlLanguage)spellingError.Start.GetValue(FrameworkElement.LanguageProperty);
System\windows\Documents\TextEditorTyping.cs (4)
1230UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1231This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1246UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 1247This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft);
System\Windows\Documents\TextPointer.cs (2)
3789internal FrameworkElement ContainingFrameworkElement 3793return ((FrameworkElement)_tree.Parent);
System\Windows\Documents\TextPointerBase.cs (2)
890if (templatedParent == null && ((FlowDocumentView)textView.RenderScope).Parent is FrameworkElement) 892templatedParent = ((FrameworkElement)((FlowDocumentView)textView.RenderScope).Parent).TemplatedParent as Visual;
System\Windows\Documents\TextRange.cs (4)
1020internal void InsertEmbeddedUIElement(FrameworkElement embeddedElement) 1309internal FrameworkElement ContainingFrameworkElement 1571internal virtual void InsertEmbeddedUIElementVirtual(FrameworkElement embeddedElement) 1631if (formattingProperty == FrameworkElement.FlowDirectionProperty)
System\Windows\Documents\TextRangeEdit.cs (10)
841parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 845parentFlowDirection = (FlowDirection)FrameworkElement.FlowDirectionProperty.GetDefaultValue(typeof(FrameworkElement)); 884UIElementPropertyUndoUnit.Add(block.TextContainer, embeddedElement, FrameworkElement.HorizontalAlignmentProperty, horizontalAlignment); 885embeddedElement.SetValue(FrameworkElement.HorizontalAlignmentProperty, horizontalAlignment); 1320FlowDirection midpointFlowDirection = (FlowDirection)commonAncestor.GetValue(FrameworkElement.FlowDirectionProperty); 1321FlowDirection previousFlowDirection = (FlowDirection)previousRun.GetValue(FrameworkElement.FlowDirectionProperty); 1322FlowDirection nextFlowDirection = (FlowDirection)nextRun.GetValue(FrameworkElement.FlowDirectionProperty); 1334SetStructuralInlineProperty(scopingPreviousInline.ElementStart, scopingNextInline.ElementEnd, FrameworkElement.FlowDirectionProperty, previousFlowDirection); 1859while ((FlowDirection)inline.Parent.GetValue(FrameworkElement.FlowDirectionProperty) == flowDirection)
System\Windows\Documents\TextRangeSerialization.cs (3)
1227FrameworkElement embeddedElement = null; 1230embeddedElement = ((BlockUIContainer)uiContainer).Child as FrameworkElement; 1238embeddedElement = ((InlineUIContainer)uiContainer).Child as FrameworkElement;
System\Windows\Documents\TextSchema.cs (18)
42FrameworkElement.LanguageProperty, 43FrameworkElement.FlowDirectionProperty, 1165FrameworkElement.LanguageProperty, 1169FrameworkElement.LayoutTransformProperty, 1170FrameworkElement.WidthProperty, 1171FrameworkElement.MinWidthProperty, 1172FrameworkElement.MaxWidthProperty, 1173FrameworkElement.HeightProperty, 1174FrameworkElement.MinHeightProperty, 1175FrameworkElement.MaxHeightProperty, 1177FrameworkElement.MarginProperty, 1178FrameworkElement.HorizontalAlignmentProperty, 1179FrameworkElement.VerticalAlignmentProperty, 1181FrameworkElement.CursorProperty, 1182FrameworkElement.ForceCursorProperty, 1184FrameworkElement.ToolTipProperty, 1223FrameworkElement.FlowDirectionProperty, 1224FrameworkElement.LanguageProperty,
System\windows\Documents\TextSelection.cs (14)
325FrameworkElement uiScope = UiScope; 326FrameworkElement owner = CaretElement.GetOwnerElement(uiScope); 507FlowDirection initialFlowDirection = (FlowDirection)caretPosition.GetValue(FrameworkElement.FlowDirectionProperty); 512initialFlowDirection == (FlowDirection)caretPosition.GetValue(FrameworkElement.FlowDirectionProperty) && 1251internal override void InsertEmbeddedUIElementVirtual(FrameworkElement embeddedElement) 1280formattingProperty != FrameworkElement.FlowDirectionProperty) // We dont want to apply flowdirection property to inlines when selection is empty. 1492inheritableProperties[i] != FrameworkElement.LanguageProperty && 1493inheritableProperties[i] != FrameworkElement.FlowDirectionProperty && 2264FlowDirection flowDirection = (FlowDirection)focusedTextSelection.Start.GetValue(FrameworkElement.FlowDirectionProperty); 2390FlowDirection uiScopeflowDirection = (FlowDirection)textEditor.UiScope.GetValue(FrameworkElement.FlowDirectionProperty); 2575if (element is FrameworkElement || element is FrameworkContentElement) 2578if (parent == null && element is FrameworkElement) 2580parent = ((FrameworkElement)element).TemplatedParent; 2660private FrameworkElement UiScope
System\Windows\Documents\TextStore.cs (15)
2087internal FrameworkElement UiScope 4719FrameworkElement target = o as FrameworkElement; 4771FrameworkElement uiScope = textStore.UiScope; 4920FrameworkElement uiScope = textStore.UiScope; 4964private static List<Tuple<WeakReference<FrameworkElement>,TraceList>> s_TargetToTraceListMap 4965= new List<Tuple<WeakReference<FrameworkElement>,TraceList>>(); 4968static TraceList TraceListForUiScope(FrameworkElement target) 4977WeakReference<FrameworkElement> wr = s_TargetToTraceListMap[i].Item1; 4978FrameworkElement fe; 4996private static TraceList AddToMap(FrameworkElement target) 5023new Tuple<WeakReference<FrameworkElement>,TraceList>( 5024new WeakReference<FrameworkElement>(target), 5048WeakReference<FrameworkElement> wr = s_TargetToTraceListMap[i].Item1; 5049FrameworkElement unused;
System\Windows\Documents\TextTreeNode.cs (1)
334if (objectNode.EmbeddedElement is FrameworkElement)
System\Windows\EventTrigger.cs (8)
258FrameworkElement _source; 270internal static void ProcessTriggerCollection( FrameworkElement triggersHost ) 292internal static void ProcessOneTrigger( FrameworkElement triggersHost, TriggerBase triggerBase ) 308eventTrigger._source = FrameworkElement.FindNamedFrameworkElement( triggersHost, eventTrigger.SourceName ); 331internal static void DisconnectAllTriggers( FrameworkElement triggersHost ) 352internal static void DisconnectOneTrigger( FrameworkElement triggersHost, TriggerBase triggerBase ) 371internal EventTriggerSourceListener( EventTrigger trigger, FrameworkElement host ) 388private FrameworkElement _owningTriggerHost;
System\Windows\FrameworkContentElement.cs (43)
120FrameworkElement.StyleProperty.AddOwner( 166= FrameworkElement.OverridesDefaultStyleProperty.AddOwner(typeof(FrameworkContentElement), 185FrameworkElement.DefaultStyleKeyProperty.AddOwner( 354object resource = FrameworkElement.FindResourceInternal(null /* fe */, this, resourceKey); 381object resource = FrameworkElement.FindResourceInternal(null /* fe */, this, resourceKey); 522object implicitValue = FrameworkElement.FindImplicitStyleResource(this, this.GetType(), out source); 562FrameworkElement parentFE; 563bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE); 626hasParent = FrameworkElement.GetFrameworkParent(parentFE, out parentFE, out parentFCE); 630hasParent = FrameworkElement.GetFrameworkParent(parentFCE, out parentFE, out parentFCE); 650FrameworkElement feTemplatedParent = (FrameworkElement)_templatedParent; 707if (dp == FrameworkElement.NameProperty && 724FrameworkElement feTemplatedParent = TemplatedParent as FrameworkElement; 823FrameworkElement.NameProperty.AddOwner( 842FrameworkElement.TagProperty.AddOwner( 863FrameworkElement.LanguageProperty.AddOwner( 887FrameworkElement.FocusVisualStyleProperty.AddOwner(typeof(FrameworkContentElement), 888new FrameworkPropertyMetadata(FrameworkElement.DefaultFocusVisualStyle)); 903FrameworkElement.CursorProperty.AddOwner( 935FrameworkElement.ForceCursorProperty.AddOwner( 1063args.RoutedEvent=FrameworkElement.RequestBringIntoViewEvent; 1117FrameworkElement.DataContextProperty.AddOwner( 1136add { EventHandlersStoreAdd(FrameworkElement.DataContextChangedKey, value); } 1137remove { EventHandlersStoreRemove(FrameworkElement.DataContextChangedKey, value); } 1156((FrameworkContentElement) d).RaiseDependencyPropertyChanged(FrameworkElement.DataContextChangedKey, e); 1194FrameworkElement.BindingGroupProperty.AddOwner( 1339FrameworkElement.AddIntermediateElementsToRoute(this, route, args, LogicalTreeHelper.GetParent(branchNode)); 1373FrameworkElement.AddStyleHandlersToEventRoute(null, this, route, args); 1404continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(this, LogicalTreeHelper.GetParent(branchNode)); 1584add { EventHandlersStoreAdd(FrameworkElement.InitializedKey, value); } 1585remove { EventHandlersStoreRemove(FrameworkElement.InitializedKey, value); } 1607RaiseInitialized(FrameworkElement.InitializedKey, e); 1649= FrameworkElement.LoadedPendingProperty.AddOwner(typeof(FrameworkContentElement)); 1656= FrameworkElement.UnloadedPendingProperty.AddOwner(typeof(FrameworkContentElement)); 1704public static readonly RoutedEvent LoadedEvent = FrameworkElement.LoadedEvent.AddOwner( typeof(FrameworkContentElement)); 1714AddHandler(FrameworkElement.LoadedEvent, value, false); 1718RemoveHandler(FrameworkElement.LoadedEvent, value); 1735public static readonly RoutedEvent UnloadedEvent = FrameworkElement.UnloadedEvent.AddOwner( typeof(FrameworkContentElement)); 1744AddHandler(FrameworkElement.UnloadedEvent, value, false); 1748RemoveHandler(FrameworkElement.UnloadedEvent, value); 2177private static readonly UncommonField<ResourceDictionary> ResourcesField = FrameworkElement.ResourcesField;
System\Windows\FrameworkElement.cs (96)
103static private readonly Type _typeofThis = typeof(FrameworkElement); 135FrameworkElement.EnsureFrameworkServices(); 173FrameworkElement fe = (FrameworkElement) d; 205typeof(FrameworkElement), 224FrameworkElement fe = (FrameworkElement)d; 254((FrameworkElement)d).UpdateThemeStyleProperty(); 274FrameworkElement fe = (FrameworkElement) d; 469internal static FrameworkElement FindNamedFrameworkElement( FrameworkElement startElement, string targetName ) 471FrameworkElement targetFE = null; 609internal virtual FrameworkElement StateGroupsRoot 613return _templateChild as FrameworkElement; 832object resource = FrameworkElement.FindResourceInternal(this, null /* fce */, resourceKey); 860object resource = FrameworkElement.FindResourceInternal(this, null /* fce */, resourceKey); 874internal static object FindImplicitStyleResource(FrameworkElement fe, object resourceKey, out object source) 898FrameworkElement.StyleProperty, // dp 982internal static object FindResourceInternal(FrameworkElement fe, FrameworkContentElement fce, object resourceKey) 1011return FrameworkElement.FindResourceInternal(null, // fe 1025FrameworkElement fe, 1154FrameworkElement feStart, 1201FrameworkElement fe = fo.FE; 1623private static ResourceDictionary GetInstanceResourceDictionary(FrameworkElement fe, FrameworkContentElement fce) 1647private static ResourceDictionary GetStyleResourceDictionary(FrameworkElement fe, FrameworkContentElement fce) 1687private static ResourceDictionary GetThemeStyleResourceDictionary(FrameworkElement fe, FrameworkContentElement fce) 1727private static ResourceDictionary GetTemplateResourceDictionary(FrameworkElement fe, FrameworkContentElement fce) 1878object implicitValue = FrameworkElement.FindImplicitStyleResource(this, this.GetType(), out source); 1935FrameworkElement feTemplatedParent = (FrameworkElement)_templatedParent; 1967FrameworkElement parentFE; 2077if (dp == FrameworkElement.NameProperty && 2094FrameworkElement feTemplatedParent = TemplatedParent as FrameworkElement; 2223if(layoutParent is FrameworkElement fe) 2284internal static bool GetFrameworkParent(FrameworkElement current, out FrameworkElement feParent, out FrameworkContentElement fceParent) 2297internal static bool GetFrameworkParent(FrameworkContentElement current, out FrameworkElement feParent, out FrameworkContentElement fceParent) 2309internal static bool GetContainingFrameworkElement(DependencyObject current, out FrameworkElement fe, out FrameworkContentElement fce) 2377EventManager.RegisterClassHandler(_typeofThis, Mouse.QueryCursorEvent, new QueryCursorEventHandler(FrameworkElement.OnQueryCursorOverride), true); 2408typeof(FrameworkElement), 2416FrameworkElement fe = (FrameworkElement) d; 2471if (newParent != null && (newParent is FrameworkElement) == false) 2485else if (oldParent != null && (oldParent is FrameworkElement) == false) 2533FrameworkElement feParent = null; 2537FrameworkElement.GetContainingFrameworkElement(VisualTreeHelper.GetParent(this), out feParent, out fceParent); 2568FrameworkElement.GetContainingFrameworkElement(e.OldParent, out feParent, out fceParent); 2737((FrameworkElement) d).RaiseDependencyPropertyChanged(DataContextChangedKey, e); 2922FrameworkElement.AddIntermediateElementsToRoute(this, route, args, LogicalTreeHelper.GetParent(branchNode)); 2977FrameworkElement fe, 3023FrameworkElement feTemplatedParent = templatedParent as FrameworkElement; 3116continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(this, LogicalTreeHelper.GetParent(branchNode)); 3340FrameworkElement fe = (FrameworkElement) d; 3385FrameworkElement fe = (FrameworkElement) d; 3443FrameworkElement fe = (FrameworkElement)d; 3468FrameworkElement fe = (FrameworkElement)d; 3654FrameworkElement fe = d as FrameworkElement; 3668FrameworkElement fe = d as FrameworkElement; 3876FrameworkElement fe = ((FrameworkElement)d); 3911FrameworkElement fe = ((FrameworkElement)d); 3921FrameworkElement fe = (FrameworkElement) sender; 3960internal static bool ShouldApplyMirrorTransform(FrameworkElement fe) 3977FrameworkElement parentFE; 4007FrameworkElement fe = v as FrameworkElement; 4048internal MinMax(FrameworkElement e) 5143FrameworkElement fe = element as FrameworkElement; 5330FrameworkElement fe = (FrameworkElement)sender; 5356FrameworkElement fe = (FrameworkElement)sender; 5524((FrameworkElement) o).HasNumberSubstitutionChanged = true; 5528private static bool ShouldUseSystemFont(FrameworkElement fe, DependencyProperty dp) 5543if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontFamilyProperty)) 5554if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontSizeProperty)) 5565if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontStyleProperty)) 5576if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontWeightProperty)) 5947((FrameworkElement)sender).OnToolTipOpening(e); 5979((FrameworkElement)sender).OnToolTipClosing(e); 6012((FrameworkElement)sender).OnContextMenuOpening(e); 6039((FrameworkElement)sender).OnContextMenuClosing(e); 6084FrameworkElement fe = uiElement as FrameworkElement;
System\Windows\FrameworkElementFactory.cs (14)
86if (!typeof(FrameworkElement).IsAssignableFrom(value) && 329if ( (routedEvent == FrameworkElement.LoadedEvent) 330||(routedEvent == FrameworkElement.UnloadedEvent)) 360if ( (routedEvent == FrameworkElement.LoadedEvent) 361||(routedEvent == FrameworkElement.UnloadedEvent)) 363if ( !_eventHandlersStore.Contains(FrameworkElement.LoadedEvent) 364&&!_eventHandlersStore.Contains(FrameworkElement.UnloadedEvent)) 639FrameworkElement containerAsFE = container as FrameworkElement; 1001bool treeNodeIsFE, FrameworkElement treeNodeFE, FrameworkContentElement treeNodeFCE, 1040FrameworkElement treeNodeFE, FrameworkContentElement treeNodeFCE ) 1059FrameworkElement treeNodeFE, FrameworkContentElement treeNodeFCE ) 1080bool treeNodeIsFE, FrameworkElement treeNodeFE, FrameworkContentElement treeNodeFCE) 1103bool treeNodeIsFE, FrameworkElement treeNodeFE, FrameworkContentElement treeNodeFCE)
System\Windows\FrameworkTemplate.cs (15)
56protected virtual void ValidateTemplatedParent(FrameworkElement templatedParent) 298public Object FindName(string name, FrameworkElement templatedParent) 378typeof(FrameworkElement).Name, templateRoot.Type.Name)); 472FrameworkElement container) 616internal virtual bool BuildVisualTree(FrameworkElement container) 905FrameworkElement feContainer = container as FrameworkElement; 1084FrameworkElement feContainer, 1091(createdObject is FrameworkElement || createdObject is FrameworkContentElement)) 1103FrameworkElement feContainer, 1106if (createdObject is FrameworkElement || createdObject is FrameworkContentElement) 1119private static DependencyObject WireRootObjectToParent(object createdObject, DependencyObject rootObject, DependencyObject container, FrameworkElement feContainer, INameScope nameScope) 1135Debug.Assert(!(rootElement is FrameworkElement) || 1136((FrameworkElement)rootElement).TemplateChildIndex != -1); 1141FrameworkElement feResult;
System\Windows\Generated\FrameworkContentElement.cs (14)
64INameScope nameScope = FrameworkElement.FindScope(this); 82INameScope nameScope = FrameworkElement.FindScope(this); 108INameScope nameScope = FrameworkElement.FindScope(this, out scopeOwner); 321IsParentAnFE = newParent is FrameworkElement; 438RaiseClrEvent(FrameworkElement.ResourcesChangedKey, EventArgs.Empty); 477FrameworkElement.GetTemplatedParentChildRecord(templatedParent, childIndex, out childRecord, out isChildRecordValid); 479FrameworkElement parentFE; 481bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE); 766&& FrameworkElement.GetFrameworkParent(this) == null 1003Delegate handler = store.Get(FrameworkElement.InheritedPropertyChangedKey); 1186EventHandlersStoreAdd(FrameworkElement.ResourcesChangedKey, value); 1188remove { EventHandlersStoreRemove(FrameworkElement.ResourcesChangedKey, value); } 1206EventHandlersStoreAdd(FrameworkElement.InheritedPropertyChangedKey, value); 1208remove { EventHandlersStoreRemove(FrameworkElement.InheritedPropertyChangedKey, value); }
System\Windows\Generated\FrameworkElement.cs (14)
64INameScope nameScope = FrameworkElement.FindScope(this); 82INameScope nameScope = FrameworkElement.FindScope(this); 108INameScope nameScope = FrameworkElement.FindScope(this, out scopeOwner); 321IsParentAnFE = newParent is FrameworkElement; 431RaiseClrEvent(FrameworkElement.ResourcesChangedKey, EventArgs.Empty); 493FrameworkElement.GetTemplatedParentChildRecord(templatedParent, childIndex, out childRecord, out isChildRecordValid); 495FrameworkElement parentFE; 497bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE); 798&& FrameworkElement.GetFrameworkParent(this) == null 1035Delegate handler = store.Get(FrameworkElement.InheritedPropertyChangedKey); 1230EventHandlersStoreAdd(FrameworkElement.ResourcesChangedKey, value); 1232remove { EventHandlersStoreRemove(FrameworkElement.ResourcesChangedKey, value); } 1255EventHandlersStoreAdd(FrameworkElement.InheritedPropertyChangedKey, value); 1257remove { EventHandlersStoreRemove(FrameworkElement.InheritedPropertyChangedKey, value); }
System\Windows\Input\KeyboardNavigation.cs (13)
847FrameworkElement fe = element as FrameworkElement; 858if (fvs == FrameworkElement.DefaultFocusVisualStyle) 860fvs = FrameworkElement.FindResourceInternal(fe, fce: null, SystemParameters.FocusVisualStyleKey) as Style; 885if (fvs == FrameworkElement.DefaultFocusVisualStyle) 887fvs = FrameworkElement.FindResourceInternal(fe: null, fce, SystemParameters.FocusVisualStyleKey) as Style; 1153return FrameworkElement.KeyboardNavigation; 1305FrameworkElement viewportBoundsElement, 1329FrameworkElement viewportBoundsElement, 1904FrameworkElement fe = e as FrameworkElement; 2471FrameworkElement header = tvi.TryGetHeaderElement(); 2985FrameworkElement viewportBoundsElement,
System\Windows\Interop\ActiveXHost.cs (1)
69invalidatorMap[FrameworkElement.IsEnabledProperty] = new PropertyInvalidator(OnIsEnabledInvalidated);
System\Windows\LogicalTreeHelper.cs (15)
118FrameworkElement fe = current as FrameworkElement; 142FrameworkElement fe = current as FrameworkElement; 160public static IEnumerable GetChildren(FrameworkElement current) 184FrameworkElement fe = current as FrameworkElement; 363FrameworkElement parentFE = parent as FrameworkElement; 379internal static void AddLogicalChild(FrameworkElement parentFE, FrameworkContentElement parentFCE, object child) 398FrameworkElement parentFE = parent as FrameworkElement; 414internal static void RemoveLogicalChild(FrameworkElement parentFE, FrameworkContentElement parentFCE, object child) 432FrameworkElement fe = current as FrameworkElement;
System\Windows\LostFocusEventManager.cs (2)
102FrameworkElement fe; 118FrameworkElement fe;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (2)
81case 4: assembly = typeof(System.Windows.FrameworkElement).Assembly; break; 320case 226: t = () => typeof(FrameworkElement); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (43)
2475Type type = typeof(System.Windows.FrameworkElement); 2476DependencyProperty dp = System.Windows.FrameworkElement.FlowDirectionProperty; 2478this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2492Type type = typeof(System.Windows.FrameworkElement); 2493DependencyProperty dp = System.Windows.FrameworkElement.HeightProperty; 2495this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2509Type type = typeof(System.Windows.FrameworkElement); 2510DependencyProperty dp = System.Windows.FrameworkElement.HorizontalAlignmentProperty; 2512this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2526Type type = typeof(System.Windows.FrameworkElement); 2527DependencyProperty dp = System.Windows.FrameworkElement.MarginProperty; 2529this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2543Type type = typeof(System.Windows.FrameworkElement); 2544DependencyProperty dp = System.Windows.FrameworkElement.MaxHeightProperty; 2546this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2560Type type = typeof(System.Windows.FrameworkElement); 2561DependencyProperty dp = System.Windows.FrameworkElement.MaxWidthProperty; 2563this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2577Type type = typeof(System.Windows.FrameworkElement); 2578DependencyProperty dp = System.Windows.FrameworkElement.MinHeightProperty; 2580this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2594Type type = typeof(System.Windows.FrameworkElement); 2595DependencyProperty dp = System.Windows.FrameworkElement.MinWidthProperty; 2597this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2611Type type = typeof(System.Windows.FrameworkElement); 2612DependencyProperty dp = System.Windows.FrameworkElement.NameProperty; 2614this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2628Type type = typeof(System.Windows.FrameworkElement); 2629DependencyProperty dp = System.Windows.FrameworkElement.StyleProperty; 2631this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2644Type type = typeof(System.Windows.FrameworkElement); 2645DependencyProperty dp = System.Windows.FrameworkElement.VerticalAlignmentProperty; 2647this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2661Type type = typeof(System.Windows.FrameworkElement); 2662DependencyProperty dp = System.Windows.FrameworkElement.WidthProperty; 2664this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 6358Type type = typeof(System.Windows.FrameworkElement); 6360this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 6367bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.FrameworkElement)target).Resources = (System.Windows.ResourceDictionary)value; }; 6368bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.FrameworkElement)target).Resources; }; 8251Type type = typeof(System.Windows.FrameworkElement); 8253this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 8259bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.FrameworkElement)target).Triggers; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4543typeof(System.Windows.FrameworkElement),
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (1)
107case 4: assembly = new Baml6Assembly(typeof(System.Windows.FrameworkElement).Assembly); break;
System\Windows\Markup\BamlRecordReader.cs (2)
4092FrameworkElement feParent; 4173result = 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)
102type = typeof(FrameworkElement);
System\Windows\Media\Animation\BeginStoryboard.cs (2)
175internal sealed override void Invoke( FrameworkElement fe, FrameworkContentElement fce, Style targetStyle, FrameworkTemplate frameworkTemplate, Int64 layer ) 194internal sealed override void Invoke( FrameworkElement fe )
System\Windows\Media\Animation\ControllableStoryboardAction.cs (4)
58internal sealed override void Invoke( FrameworkElement fe, FrameworkContentElement fce, Style targetStyle, FrameworkTemplate frameworkTemplate, Int64 layer ) 78internal sealed override void Invoke( FrameworkElement fe ) 85internal virtual void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard ) 92private Storyboard GetStoryboard( FrameworkElement fe, FrameworkContentElement fce, INameScope nameScope )
System\Windows\Media\Animation\PauseStoryboard.cs (1)
24internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
System\Windows\Media\Animation\RemoveStoryboard.cs (1)
24internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
System\Windows\Media\Animation\ResumeStoryboard.cs (1)
24internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
System\Windows\Media\Animation\SeekStoryboard.cs (1)
90internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
System\Windows\Media\Animation\SetStoryboardSpeedRatio.cs (1)
48internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
System\Windows\Media\Animation\SkipStoryboardToFill.cs (1)
24internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
System\Windows\Media\Animation\StopStoryboard.cs (1)
24internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
System\Windows\Media\Animation\Storyboard.cs (27)
245FrameworkElement fe = element as FrameworkElement; 306FrameworkElement fe, 435targetObject = containingObject as FrameworkElement; 929if(targetObject is FrameworkElement) 1064public void Begin( FrameworkElement containingObject ) 1072public void Begin( FrameworkElement containingObject, HandoffBehavior handoffBehavior ) 1080public void Begin( FrameworkElement containingObject, bool isControllable ) 1088public void Begin( FrameworkElement containingObject, HandoffBehavior handoffBehavior, bool isControllable ) 1096public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate ) 1104public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate, HandoffBehavior handoffBehavior ) 1112public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate, bool isControllable ) 1120public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate, HandoffBehavior handoffBehavior, bool isControllable ) 1286public Nullable<Double> GetCurrentGlobalSpeed( FrameworkElement containingObject ) 1335public Nullable<Int32> GetCurrentIteration( FrameworkElement containingObject ) 1384public Nullable<Double> GetCurrentProgress( FrameworkElement containingObject ) 1432public ClockState GetCurrentState( FrameworkElement containingObject ) 1471public Nullable<TimeSpan> GetCurrentTime( FrameworkElement containingObject ) 1520public bool GetIsPaused( FrameworkElement containingObject ) 1561public void Pause( FrameworkElement containingObject ) 1606public void Remove(FrameworkElement containingObject) 1655public void Resume( FrameworkElement containingObject ) 1702public void Seek( FrameworkElement containingObject, TimeSpan offset, TimeSeekOrigin origin ) 1753public void SeekAlignedToLastTick( FrameworkElement containingObject, TimeSpan offset, TimeSeekOrigin origin ) 1804public void SetSpeedRatio( FrameworkElement containingObject, double speedRatio ) 1843public void SkipToFill( FrameworkElement containingObject ) 1880public void Stop( FrameworkElement containingObject )
System\Windows\Navigation\NavigationService.cs (9)
358FrameworkElement fe = _bp as FrameworkElement; 392FrameworkElement fe = elem as FrameworkElement; 690FrameworkElement fe = INavigatorHost as FrameworkElement; 2308FrameworkElement fe = _bp as FrameworkElement; 2600((FrameworkElement)_bp).Loaded -= OnContentLoaded;
System\Windows\Navigation\NavigationWindow.cs (4)
420FrameworkElement root = (this.GetVisualChild(0)) as FrameworkElement; 1059FrameworkElement journalEntryUIElem = e.Parameter as FrameworkElement;
System\Windows\ResourceDictionary.cs (12)
1435FrameworkElement fe = owner as FrameworkElement; 1518FrameworkElement fe = owner as FrameworkElement; 1576FrameworkElement fe = owner as FrameworkElement; 1630FrameworkElement fe = o as FrameworkElement; 1982FrameworkElement fe = o as FrameworkElement; 2036FrameworkElement fe = o as FrameworkElement;
System\Windows\ResourceReferenceExpression.cs (6)
106FrameworkElement mentorFE; 124FrameworkElement fe; 129resource = FrameworkElement.FindResourceInternal(fe, 143resource = FrameworkElement.FindResourceFromAppOrSystem(_resourceKey, 230if (!(_targetObject is FrameworkElement) && !(_targetObject is FrameworkContentElement)) 314FrameworkElement mentorFE;
System\Windows\Setter.cs (3)
80if( property == FrameworkElement.NameProperty) 82throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInStyle, FrameworkElement.NameProperty.Name)); 106if (dp == FrameworkElement.StyleProperty)
System\Windows\Shell\WindowChromeWorker.cs (4)
302FrameworkElement rootElement = (FrameworkElement)VisualTreeHelper.GetChild(_window, 0); 1131FrameworkElement rootElement = (FrameworkElement)VisualTreeHelper.GetChild(_window, 0);
System\Windows\StaticResourceExtension.cs (2)
213XamlType feXType = schemaContext.GetXamlType(typeof(FrameworkElement)); 300val = FrameworkElement.FindResourceFromAppOrSystem(ResourceKey,
System\Windows\Style.cs (3)
173if (!typeof(FrameworkElement).IsAssignableFrom(value) && 689if (eventSetter.Event == FrameworkElement.LoadedEvent || eventSetter.Event == FrameworkElement.UnloadedEvent)
System\Windows\StyleHelper.cs (79)
55FrameworkElement fe, 94FrameworkElement fe, 115if (StyleHelper.IsSetOnContainer(FrameworkElement.OverridesDefaultStyleProperty, ref newThemeStyle.ContainerDependents, true)) 134if(ShouldGetValueFromStyle ( FrameworkElement.DefaultStyleKeyProperty ) ) 164internal static Style GetThemeStyle(FrameworkElement fe, FrameworkContentElement fce) 250FrameworkElement.StyleProperty.GetMetadata(themeStyleTypeKey); 267FrameworkElement.OnThemeStyleChanged(fe, oldThemeStyle, newThemeStyle); 285FrameworkElement fe, 452if (StyleHelper.IsSetOnContainer(FrameworkElement.StyleProperty, ref containerDependents, true)) 454throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.StyleProperty.Name)); 459if (StyleHelper.IsSetOnContainer(FrameworkElement.DefaultStyleKeyProperty, ref containerDependents, true)) 461throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.DefaultStyleKeyProperty.Name)); 466if (StyleHelper.IsSetOnContainer(FrameworkElement.OverridesDefaultStyleProperty, ref containerDependents, true)) 468throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.OverridesDefaultStyleProperty.Name)); 473if (StyleHelper.IsSetOnContainer(FrameworkElement.NameProperty, ref containerDependents, true)) 475throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.NameProperty.Name)); 1156if ( (eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent) 1157||(eventTrigger.RoutedEvent == FrameworkElement.UnloadedEvent)) 1191if (eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent 1193eventTrigger.RoutedEvent == FrameworkElement.UnloadedEvent ) 1204if( eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent ) 1331FrameworkElement fe, 1366FrameworkElement fe, 1429FrameworkElement fe, 1496Debug.Assert((container is FrameworkElement) || (container is FrameworkContentElement), "Caller has queried with non-framework element. Bad caller, bad!"); 1539FrameworkElement feChild; 1775FrameworkElement feContainer = container as FrameworkElement; 1812Debug.Assert(treeRoot is FrameworkElement || treeRoot is FrameworkContentElement, 1860Debug.Assert(treeRoot == null || treeRoot is FrameworkElement || treeRoot is FrameworkContentElement, 1934internal static void AddCustomTemplateRoot( FrameworkElement container, UIElement child ) 1942FrameworkElement container, 1962FrameworkElement parent = VisualTreeHelper.GetParent(child) as FrameworkElement; 2050FrameworkElement feWalkNode; 2128FrameworkElement feContainer, 2180FrameworkElement feContainer, 2213FrameworkElement feContainer, 2235FrameworkElement fe; 2327out FrameworkElement fe, out FrameworkContentElement fce, 2330if (d is FrameworkElement frameworkElement) 2395Debug.Assert(sender is FrameworkElement || sender is FrameworkContentElement, 2398FrameworkElement fe; 2450Debug.Assert(sender is FrameworkElement || sender is FrameworkContentElement, 2453FrameworkElement fe; 2475FrameworkElement feTemplatedParent; 2498FrameworkElement fe, 2693sourceNodeType = (container as FrameworkElement).TemplateInternal.ChildTypeFromChildIndex[sourceChildIndex]; 2724value = FrameworkElement.FindResourceInternal(child.FE, 2779value = FrameworkElement.FindResourceInternal( 2904FrameworkElement feChild, 2914FrameworkElement feContainer; 3099return (dp != FrameworkElement.StyleProperty); 3111return (dp != FrameworkElement.StyleProperty && 3112dp != FrameworkElement.DefaultStyleKeyProperty && 3113dp != FrameworkElement.OverridesDefaultStyleProperty); 3126return (dp != FrameworkElement.StyleProperty && 3127dp != FrameworkElement.DefaultStyleKeyProperty && 3128dp != FrameworkElement.OverridesDefaultStyleProperty && 3148FrameworkElement fe, 3229FrameworkElement fe, 3304FrameworkElement feContainer, 3446FrameworkElement fe, 3487FrameworkElement fe, 4236if (dp != FrameworkElement.StyleProperty) 4502private static void ExecuteOnApplyEnterExitActions( FrameworkElement fe, 4531private static void ExecuteOnApplyEnterExitActions( FrameworkElement fe, FrameworkContentElement fce, 4710FrameworkElement fe = (FrameworkElement)container; 4829action.Invoke(triggerContainer as FrameworkElement, triggerContainer as FrameworkContentElement, 5132FrameworkElement fe; 5169FrameworkElement fe; 5212FrameworkElement fe; 5444child is FrameworkElement && ((FrameworkElement)child).TemplateChildIndex == childIndex || 5479FrameworkElement fe; 5504FrameworkElement fe; 5594if (dp == ItemsControl.ItemsPanelProperty || dp == FrameworkElement.ContextMenuProperty || dp == FrameworkElement.ToolTipProperty)
System\Windows\SystemResources.cs (3)
508_presentationFramework = typeof(FrameworkElement).Assembly; 1250FrameworkElement fe = source.RootVisual as FrameworkElement;
System\Windows\SystemThemeKey.cs (1)
40_presentationFrameworkAssembly = typeof(FrameworkElement).Assembly;
System\Windows\TemplateContent.cs (7)
24[XamlDeferLoad(typeof(TemplateContentLoader), typeof(FrameworkElement))] 433if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 461if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 486if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 664if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 730if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 821if (!typeof(FrameworkElement).IsAssignableFrom(parentType.UnderlyingType) &&
System\Windows\TemplateNameScope.cs (3)
51Debug.Assert(templatedParent == null || (templatedParent is FrameworkElement || templatedParent is FrameworkContentElement), 78if (!(scopedElement is FrameworkContentElement || scopedElement is FrameworkElement)) 85FrameworkElement fe;
System\Windows\ThemeManager.cs (1)
288window.SetResourceReference(FrameworkElement.StyleProperty, typeof(Window));
System\Windows\TreeWalkHelper.cs (20)
35FrameworkElement fe, 181FrameworkElement fe, 232FrameworkElement fe, 450FrameworkElement fe, 547FrameworkElement fe = fo.FE; 580(fe.HasImplicitStyleFromResources || fe.Style == FrameworkElement.StyleProperty.GetMetadata(fe.DependencyObjectType).DefaultValue)) 608fe.RaiseClrEvent(FrameworkElement.ResourcesChangedKey, new ResourcesChangedEventArgs(info)); 664fce.RaiseClrEvent(FrameworkElement.ResourcesChangedKey, new ResourcesChangedEventArgs(info)); 757FrameworkElement fe = fo.FE; 761(fe.HasImplicitStyleFromResources || fe.Style == FrameworkElement.StyleProperty.GetMetadata(fe.DependencyObjectType).DefaultValue)) 799FrameworkElement templatedParent = (FrameworkElement)fe.TemplatedParent; 867FrameworkElement templatedParent = (FrameworkElement)fce.TemplatedParent; 906FrameworkElement fe, 967DependencyObject parent = FrameworkElement.GetFrameworkParent(d); 1010if (visitedViaVisualTree && d is FrameworkElement) 1174FrameworkElement fe, 1269internal static bool HasChildren(FrameworkElement fe, FrameworkContentElement fce) 1292return (dp == FrameworkElement.FlowDirectionProperty);
System\Windows\TriggerAction.cs (2)
42internal abstract void Invoke( FrameworkElement fe, 57internal abstract void Invoke( FrameworkElement fe );
System\Windows\TriggerBase.cs (1)
176if (dp == FrameworkElement.StyleProperty)
System\Windows\TriggerCollection.cs (3)
30internal TriggerCollection(FrameworkElement owner) : base() 117internal FrameworkElement Owner 204private FrameworkElement _owner;
System\Windows\VisualStateChangedEventArgs.cs (6)
15internal VisualStateChangedEventArgs(VisualState oldState, VisualState newState, FrameworkElement control, FrameworkElement stateGroupsRoot) 48public FrameworkElement Control 59public FrameworkElement StateGroupsRoot 69private FrameworkElement _control; 70private FrameworkElement _stateGroupsRoot;
System\Windows\VisualStateGroup.cs (5)
97internal void StartNewThenStopOld(FrameworkElement element, params Storyboard[] newStoryboards) 135internal void RaiseCurrentStateChanging(FrameworkElement stateGroupsRoot, VisualState oldState, VisualState newState, FrameworkElement control) 143internal void RaiseCurrentStateChanged(FrameworkElement stateGroupsRoot, VisualState oldState, VisualState newState, FrameworkElement control)
System\Windows\VisualStateManager.cs (24)
27private static bool GoToStateCommon(FrameworkElement control, FrameworkElement stateGroupsRoot, string stateName, bool useTransitions) 69public static bool GoToState(FrameworkElement control, string stateName, bool useTransitions) 73FrameworkElement stateGroupsRoot = control.StateGroupsRoot; 85public static bool GoToElementState(FrameworkElement stateGroupsRoot, string stateName, bool useTransitions) 95protected virtual bool GoToStateCore(FrameworkElement control, FrameworkElement stateGroupsRoot, string stateName, VisualStateGroup group, VisualState state, bool useTransitions) 109public static VisualStateManager GetCustomVisualStateManager(FrameworkElement obj) 116public static void SetCustomVisualStateManager(FrameworkElement obj, VisualStateManager value) 140internal static Collection<VisualStateGroup> GetVisualStateGroupsInternal(FrameworkElement obj) 156public static IList GetVisualStateGroups(FrameworkElement obj) 186private static bool GoToStateInternal(FrameworkElement control, FrameworkElement stateGroupsRoot, VisualStateGroup group, VisualState state, bool useTransitions) 298private static bool ShouldRunStateStoryboard(FrameworkElement control, FrameworkElement stateGroupsRoot, VisualState state, VisualStateGroup group) 327protected void RaiseCurrentStateChanging(VisualStateGroup stateGroup, VisualState oldState, VisualState newState, FrameworkElement control, FrameworkElement stateGroupsRoot) 340protected void RaiseCurrentStateChanged(VisualStateGroup stateGroup, VisualState oldState, VisualState newState, FrameworkElement control, FrameworkElement stateGroupsRoot) 357private static Storyboard GenerateDynamicTransitionAnimations(FrameworkElement root, VisualStateGroup group, VisualState newState, VisualTransition transition) 421private static Timeline GenerateFromAnimation(FrameworkElement root, Timeline timeline, IEasingFunction easingFunction) 448private static Timeline GenerateToAnimation(FrameworkElement root, Timeline timeline, IEasingFunction easingFunction, bool isEntering) 487private static void CopyStoryboardTargetProperties(FrameworkElement root, Timeline source, Timeline destination) 528internal static VisualTransition GetTransition(FrameworkElement element, VisualStateGroup group, VisualState from, VisualState to)
System\Windows\Window.cs (2)
4665SetValue(FrameworkElement.WidthProperty, ptLogicalUnits.X); 4666SetValue(FrameworkElement.HeightProperty, ptLogicalUnits.Y);
PresentationUI (5)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (3)
933private FrameworkElement InfoBar 940_infoBar = GetTemplateChild(_infoBarName) as FrameworkElement; 2223private FrameworkElement _infoBar;
MS\Internal\Documents\RightsManagementResourceHelper.cs (1)
155private static FrameworkElement _frameworkElement; // Used to search resources.
MS\Internal\Documents\SignatureResourceHelper.cs (1)
339private static FrameworkElement _frameworkElement;
ReachFramework (10)
Serialization\Manager\ReachSerializationUtils.cs (6)
803else if (element is FrameworkElement) 851else if (element is FrameworkElement) 876else if (element is FrameworkElement) 887if (element is FrameworkElement) 889FrameworkElement fe = (FrameworkElement)element;
Serialization\VisualTreeFlattener.cs (4)
488FrameworkElement fe = visual as FrameworkElement; 766FrameworkElement el = visual as FrameworkElement;
Roslyn.VisualStudio.DiagnosticsWindow (2)
VenusMargin\ProjectionBufferMargin.xaml.cs (1)
43var buffer = (ITextBuffer)((FrameworkElement)sender).Tag;
VenusMargin\VenusMargin.cs (1)
89public System.Windows.FrameworkElement VisualElement
System.Windows.Controls.Ribbon (144)
Microsoft\Windows\Automation\Peers\RibbonAutomationPeer.cs (4)
101FrameworkElement titleHost = OwningRibbon.TitleHost as FrameworkElement; 209FrameworkElement helpPaneHostFE = helpPaneHost as FrameworkElement;
Microsoft\Windows\Automation\Peers\RibbonControlAutomationPeer.cs (1)
26public RibbonControlAutomationPeer(FrameworkElement owner)
Microsoft\Windows\Automation\Peers\RibbonGroupHeaderAutomationPeer.cs (1)
27public RibbonGroupHeaderAutomationPeer(FrameworkElement owner)
Microsoft\Windows\Automation\Peers\RibbonTitleAutomationPeer.cs (1)
22public RibbonTitleAutomationPeer(FrameworkElement owner)
Microsoft\Windows\Controls\Generated\TreeHelper.cs (3)
54public static T FindTemplatedAncestor<T>(FrameworkElement element) where T : FrameworkElement 58element = element.TemplatedParent as FrameworkElement;
Microsoft\Windows\Controls\KeyTipService.cs (8)
175FrameworkElement fe = element as FrameworkElement; 194FrameworkElement fe = element as FrameworkElement; 376FrameworkElement fe = element as FrameworkElement; 907if (DependencyPropertyHelper.GetValueSource(element, FrameworkElement.LanguageProperty).BaseValueSource != BaseValueSource.Default) 909XmlLanguage language = (XmlLanguage)element.GetValue(FrameworkElement.LanguageProperty);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (5)
127private static double GetStarChildMinWidth(FrameworkElement child, ref double maxStarColumnWidth) 232columnWidth = GetStarChildMinWidth(child as FrameworkElement, ref maxStarColumnWidth); 248columnWidth = Math.Max(columnWidth, GetStarChildMinWidth(child as FrameworkElement, ref maxStarColumnWidth)); 435FrameworkElement itemsPresenter = TemplatedParent as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (2)
286FrameworkElement itemsPresenter = TemplatedParent as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (2)
306FrameworkElement itemsPresenter = TemplatedParent as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (4)
92FrameworkElement qat = Ribbon.QatTopHost as FrameworkElement; 93FrameworkElement titleHost = Ribbon.TitleHost as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (4)
119EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpeningThunk), true); 120EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuClosingEvent, new ContextMenuEventHandler(OnContextMenuClosingThunk), true); 1597FrameworkElement popupPlacementTarget = _itemsPresenterPopup.Parent as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (5)
31[TemplatePart(Name = RibbonApplicationMenu.SubmenuTemplateName, Type = typeof(FrameworkElement))] 301SubmenuPlaceholder = this.GetTemplateChild(SubmenuTemplateName) as FrameworkElement; 318typeof(FrameworkElement), 327internal FrameworkElement SubmenuPlaceholder 329get { return (FrameworkElement)GetValue(SubmenuPlaceholderProperty); }
Microsoft\Windows\Controls\Ribbon\RibbonContentPresenter.cs (2)
28private FrameworkElement _templateRoot; 112_templateRoot = VisualTreeHelper.GetChild(this, 0) as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (2)
208private FrameworkElement VisualChild 212return VisualChildrenCount == 0 ? null : (GetVisualChild(0) as FrameworkElement);
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (1)
176private bool HasTabs(FrameworkElement container)
Microsoft\Windows\Controls\Ribbon\RibbonDropDownHelper.cs (9)
26public static void OnPopupResizeStarted(FrameworkElement itemsPresenter) 37public static bool ResizePopup(FrameworkElement itemsPresenter, 129private static bool ResizePopupActual(FrameworkElement itemsPresenter, Size minDropDownSize, bool canUserResizeHorizontally, bool canUserResizeVertically, double newWidth, double newHeight) 158public static Rect GetScreenBounds(FrameworkElement targetElement, Popup popup) 194public static void ClearLocalValues(FrameworkElement itemsPresenter, Popup popup) 198itemsPresenter.ClearValue(FrameworkElement.HeightProperty); 199itemsPresenter.ClearValue(FrameworkElement.WidthProperty); 217FrameworkElement popupChild = popup.Child as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (7)
78EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpeningThunk), true); 79EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuClosingEvent, new ContextMenuEventHandler(OnContextMenuClosingThunk), true); 123_collapsedDropDownButton = this.GetTemplateChild(CollapsedDropDownButtonTemplatePartName) as FrameworkElement; 477private FrameworkElement VisualChild 481return VisualChildrenCount == 0 ? null : (GetVisualChild(0) as FrameworkElement); 691internal FrameworkElement CollapsedDropDownButton 1371private FrameworkElement _collapsedDropDownButton; // The SplitButton that replaces RibbonGroup's normal appearance when Collapsed
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (44)
89d.CoerceValue(FrameworkElement.ToolTipProperty); 98public static bool GetIsContentTooltip(FrameworkElement visualChild, object content) 121public static void SetContentAsToolTip(FrameworkElement element, FrameworkElement visualChild, object content, bool value) 538internal static bool NavigateToFirstItem(ItemsControl itemsControl, Action<int> bringIntoViewCallback, Func<FrameworkElement, bool> additionalCheck) 540FrameworkElement firstItem = FindContainer(itemsControl, 0, 1, bringIntoViewCallback, additionalCheck); 549internal static bool NavigateToLastItem(ItemsControl itemsControl, Action<int> bringIntoViewCallback, Func<FrameworkElement, bool> additionalCheck) 551FrameworkElement lastItem = FindContainer(itemsControl, itemsControl.Items.Count - 1, -1, bringIntoViewCallback, additionalCheck); 560internal static FrameworkElement FindContainer(ItemsControl itemsControl, int startIndex, int direction, Action<int> bringIntoViewCallback, Func<FrameworkElement, bool> additionalCheck) 567FrameworkElement container = itemsControl.ItemContainerGenerator.ContainerFromIndex(startIndex) as FrameworkElement; 573container = itemsControl.ItemContainerGenerator.ContainerFromIndex(startIndex) as FrameworkElement; 590FrameworkElement nextElement = RibbonHelper.FindContainer(parent, itemIndex, 1, bringIntoViewCallback, null); 607FrameworkElement nextElement = RibbonHelper.FindContainer(parent, startIndex + 1, 1, bringIntoViewCallback, IsMenuItemFocusable); 636FrameworkElement previousElement = RibbonHelper.FindContainer(parent, startIndex - 1, -1, bringIntoViewCallback, IsMenuItemFocusable); 674FrameworkElement focusObject = null; 706private static bool IsContainerFocusable(FrameworkElement container) 711private static bool IsContainerVisible(FrameworkElement container) 716private static bool IsMenuItemFocusable(FrameworkElement container) 1497FrameworkElement fe = d as FrameworkElement; 1649new PropertyAndTransferMode () { Property = FrameworkElement.DataContextProperty, Mode = TransferMode.AlwaysTransfer }, 1650new PropertyAndTransferMode () { Property = FrameworkElement.BindingGroupProperty, Mode = TransferMode.AlwaysTransfer }, 1871FrameworkElement feOriginal = original as FrameworkElement; 1874FrameworkElement feClone = CreateInstance(feOriginal, allowTransformations); 1883TransferProperties(feOriginal.TemplatedParent as FrameworkElement, feClone, /*cloningForTemplatePart*/ true); 1886FrameworkElement feWrapper = WrapClone(feClone, allowTransformations); 1913private static FrameworkElement CreateInstance(FrameworkElement original, bool allowTransformations) 1967return (FrameworkElement)Activator.CreateInstance(original.GetType()); 1975private static FrameworkElement WrapClone(FrameworkElement clone, bool allowTransformations) 2021private static void TransferProperties(FrameworkElement original, FrameworkElement clone, bool cloningForTemplatePart) 2046TransferProperty(original, clone, FrameworkElement.StyleProperty, TransferMode.AlwaysTransfer); 2234private static void TransferProperties(FrameworkElement original, FrameworkElement clone, PropertyAndTransferMode[] properties) 2545XmlLanguage language = (XmlLanguage)element.GetValue(FrameworkElement.LanguageProperty); 2821public static void OpenParentRibbonGroupDropDownSync(FrameworkElement fe, bool templateApplied) 2853FrameworkElement elementFE = element as FrameworkElement; 2867public static void SetDropDownHeight(FrameworkElement itemsPresenter, bool hasGallery, double dropDownHeight)
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (10)
81EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpeningThunk), true); 82EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuClosingEvent, new ContextMenuEventHandler(OnContextMenuClosingThunk), true); 889FrameworkElement selectionItem = e.OriginalSource as FrameworkElement; 926internal FrameworkElement RibbonCurrentSelection 1330private FrameworkElement _itemsPresenter; 1333private FrameworkElement _ribbonCurrentSelection; // could be a RibbonMenuItem or RibbonGallery 1399FrameworkElement source = e.OriginalSource as FrameworkElement; 1527FrameworkElement ribbonCurrentSelection = RibbonCurrentSelection;
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (14)
72EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpeningThunk), true); 73EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuClosingEvent, new ContextMenuEventHandler(OnContextMenuClosingThunk), true); 987FrameworkElement ribbonCurrentSelection = RibbonCurrentSelection; 1238private static bool IsContainerFocusable(FrameworkElement container) 1283menuItem._itemsPresenter.ClearValue(FrameworkElement.HeightProperty); 1284menuItem._itemsPresenter.ClearValue(FrameworkElement.WidthProperty); 1344FrameworkElement popupChild; 1345if ((popupChild = _popup.Child as FrameworkElement) != null) 1422private FrameworkElement CurrentSibling 1428FrameworkElement sibling = null; 1503FrameworkElement selectionItem = e.OriginalSource as FrameworkElement; 1536private FrameworkElement RibbonCurrentSelection 1594private FrameworkElement _ribbonCurrentSelection; // can be a RibbonMenuItem or RibbonGallery
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (2)
116EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpeningThunk), true); 117EventManager.RegisterClassHandler(ownerType, FrameworkElement.ContextMenuClosingEvent, new ContextMenuEventHandler(OnContextMenuClosingThunk), true);
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (1)
232splitButton.PartToggleButton.CoerceValue(FrameworkElement.ToolTipProperty);
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (1)
150splitMenuItem._partArrowButton.CoerceValue(FrameworkElement.ToolTipProperty);
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (2)
159private FrameworkElement VisualChild 163return VisualChildrenCount == 0 ? null : (GetVisualChild(0) as FrameworkElement);
Microsoft\Windows\Controls\Ribbon\RibbonTabHeaderItemsControl.cs (2)
159FrameworkElement element = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement;
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (4)
366FrameworkElement referenceFE = null; 377referenceFE = rootElement as FrameworkElement; 409FrameworkElement placementTargetAsFE = placementTarget as FrameworkElement;
Microsoft\Windows\Controls\TextSearchInternal.cs (3)
625if (o is FrameworkElement) 776internal static string GetPrimaryText(FrameworkElement element) 857object o = element.GetValue(FrameworkElement.LanguageProperty);
WindowsFormsIntegration (16)
System\Windows\Integration\ElementHost.cs (2)
302FrameworkElement childFrameworkElement = Child as FrameworkElement;
System\Windows\Integration\HostUtils.cs (11)
116FrameworkElement rootElement = ancestor as FrameworkElement; 206private static FrameworkElement GetFrameworkElementAncestor(DependencyObject descendant) 208FrameworkElement ancestor = null; 212FrameworkElement currentElement = current as FrameworkElement; 231FrameworkElement frameworkElementAncestor = GetFrameworkElementAncestor(host); 264internal static RenderTargetBitmap GetBitmapForFrameworkElement(FrameworkElement element) 419public static FrameworkElement GetCursorSource(DependencyObject currentObject, bool forceCursorMapped) 423FrameworkElement currentElement = currentObject as FrameworkElement;
System\Windows\Integration\WindowsFormsHost.cs (3)
399SW.FrameworkElement frameworkElement = dependencyObject as SW.FrameworkElement; 804FrameworkElement cursorSource = HostUtils.GetCursorSource(_host, forceCursorMapped);