39 types derived from FrameworkElement
PresentationFramework (33)
src\Framework\MS\Internal\Documents\DocumentGrid.cs (1)
44internal class DocumentGrid : FrameworkElement, IDocumentScrollInfo
src\Framework\MS\Internal\Documents\DocumentGridPage.cs (1)
41internal class DocumentGridPage : FrameworkElement, IDisposable
src\Framework\MS\Internal\Documents\DocumentPageHost.cs (1)
19internal class DocumentPageHost : FrameworkElement
src\Framework\MS\Internal\Documents\FlowDocumentView.cs (1)
30internal class FlowDocumentView : FrameworkElement, IScrollInfo, IServiceProvider
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
27internal class TextBoxView : FrameworkElement, ITextView, IScrollInfo, IServiceProvider
src\Framework\System\Windows\Controls\AccessText.cs (1)
25public class AccessText : FrameworkElement, IAddChild
src\Framework\System\Windows\Controls\AdornedElementPlaceholder.cs (1)
40public class AdornedElementPlaceholder : FrameworkElement, IAddChild
src\Framework\System\Windows\Controls\ContentPresenter.cs (1)
41public class ContentPresenter : FrameworkElement
src\Framework\System\Windows\Controls\Control.cs (1)
31public class Control : FrameworkElement
src\Framework\System\Windows\Controls\Decorator.cs (1)
33public class Decorator : FrameworkElement, IAddChild
src\Framework\System\Windows\Controls\Image.cs (1)
41public class Image : FrameworkElement, IUriContext, IProvidePropertyFallback
src\Framework\System\Windows\Controls\InkCanvas.cs (1)
60public class InkCanvas : FrameworkElement, IAddChild
src\Framework\System\Windows\Controls\ItemsPresenter.cs (1)
27public class ItemsPresenter : FrameworkElement
src\Framework\System\Windows\Controls\MediaElement.cs (1)
67public class MediaElement : FrameworkElement, IUriContext
src\Framework\System\Windows\Controls\Page.cs (1)
45public class Page : FrameworkElement, IWindowService, IAddChild
src\Framework\System\Windows\Controls\Panel.cs (1)
31public abstract class Panel : FrameworkElement, IAddChild
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (1)
30public class DocumentPageView : FrameworkElement, IServiceProvider, IDisposable
src\Framework\System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
24public abstract class GridViewRowPresenterBase : FrameworkElement, IWeakEventListener
src\Framework\System\Windows\Controls\Primitives\Popup.cs (1)
55public class Popup : FrameworkElement, IAddChild
src\Framework\System\Windows\Controls\Primitives\PopupRoot.cs (1)
22internal sealed class PopupRoot : FrameworkElement
src\Framework\System\Windows\Controls\Primitives\TickBar.cs (1)
64public class TickBar : FrameworkElement
src\Framework\System\Windows\Controls\Primitives\Track.cs (1)
36public class Track : FrameworkElement
src\Framework\System\Windows\Controls\TextBlock.cs (1)
63public class TextBlock : FrameworkElement, IContentHost, IAddChildInternal, IServiceProvider
src\Framework\System\Windows\Controls\ToolBarTray.cs (1)
38public class ToolBarTray : FrameworkElement, IAddChild
src\Framework\System\Windows\Controls\ViewPort3D.cs (1)
38public class Viewport3D : FrameworkElement, IAddChild
src\Framework\System\Windows\Documents\Adorner.cs (1)
38public abstract class Adorner : FrameworkElement
src\Framework\System\Windows\Documents\AdornerLayer.cs (1)
40public class AdornerLayer : FrameworkElement
src\Framework\System\Windows\Documents\DocumentReference.cs (1)
42public sealed class DocumentReference : FrameworkElement, IUriContext
src\Framework\System\Windows\Documents\FixedPage.cs (1)
52public sealed class FixedPage : FrameworkElement, IAddChildInternal, IFixedNavigate, IUriContext
src\Framework\System\Windows\Documents\Glyphs.cs (1)
43public sealed class Glyphs : FrameworkElement, IUriContext
src\Framework\System\Windows\Documents\PageContent.cs (1)
53public sealed class PageContent : FrameworkElement, IAddChildInternal, IUriContext
src\Framework\System\Windows\Interop\HwndHost.cs (1)
35public abstract class HwndHost : FrameworkElement, IDisposable, IWin32Window, IKeyboardInputSink
src\Framework\System\Windows\Shapes\Shape.cs (1)
33public abstract class Shape : FrameworkElement
PresentationFramework.Aero (2)
Microsoft\Windows\Themes\BulletChrome.cs (1)
32public sealed class BulletChrome : FrameworkElement
Microsoft\Windows\Themes\ScrollChrome.cs (1)
29public sealed class ScrollChrome : FrameworkElement
PresentationFramework.Luna (2)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
28public sealed class ScrollChrome : FrameworkElement
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
23public sealed class BulletChrome : FrameworkElement
PresentationFramework.Royale (2)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
28public sealed class ScrollChrome : FrameworkElement
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
23public sealed class BulletChrome : FrameworkElement
4 instantiations of FrameworkElement
PresentationFramework (4)
src\Framework\System\Windows\Controls\DataGrid.cs (2)
6940target = new FrameworkElement(); 6976target = new FrameworkElement();
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4543bamlType.DefaultConstructor = delegate() { return new System.Windows.FrameworkElement(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1287case KnownElements.FrameworkElement: o = new System.Windows.FrameworkElement(); break;
1561 references to FrameworkElement
PresentationFramework (1394)
src\Framework\MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (4)
141FrameworkElement nodeParent = null; 142FrameworkElement feNode = node as FrameworkElement; 145nodeParent = feNode.Parent as FrameworkElement;
src\Framework\MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
85RegisterSelectionProcessor(nodeProcessor, typeof(FrameworkElement));
src\Framework\MS\Internal\Annotations\Anchoring\PathNode.cs (1)
265FrameworkElement.DType.IsInstanceOfType(parent) ||
src\Framework\MS\Internal\Annotations\Component\AnnotationAdorner.cs (1)
151/// Override for <seealso cref="FrameworkElement.ArrangeOverride" />
src\Framework\MS\Internal\Controls\InkCanvasInnerCanvas.cs (2)
82/// Override of <seealso cref="FrameworkElement.MeasureOverride" /> 207protected override UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent)
src\Framework\MS\Internal\Controls\InnerItemCollectionView.cs (1)
637private FrameworkElement ModelParentFE
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (11)
229snc.SetValue(FrameworkElement.HeightProperty, height); 233snc.ClearValue(FrameworkElement.HeightProperty); 244snc.SetValue(FrameworkElement.WidthProperty, width); 248snc.ClearValue(FrameworkElement.WidthProperty); 823double height = (double)snc.GetValue(FrameworkElement.HeightProperty); 831double width = (double)snc.GetValue(FrameworkElement.WidthProperty); 1394FrameworkElement target = ((IAnnotationComponent)this).AnnotatedElement as FrameworkElement; 1399target = host.PageVisual as FrameworkElement; 1442FrameworkElement target = (FrameworkElement)(args[0]);
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (4)
45protected StickyNoteContentControl(FrameworkElement innerControl) 109public FrameworkElement InnerControl 131protected void SetInnerControl(FrameworkElement innerControl) 146protected FrameworkElement _innerControl;
src\Framework\MS\Internal\Controls\TemplatedAdorner.cs (2)
95public FrameworkElement ReferenceElement 193private FrameworkElement _referenceElement;
src\Framework\MS\Internal\Data\ClrBindingWorker.cs (1)
83else if (targetDP == FrameworkElement.DataContextProperty ||
src\Framework\MS\Internal\Data\ObjectRef.cs (7)
155FrameworkElement fe = d as FrameworkElement; 385o = el.GetValue(FrameworkElement.DataContextProperty); 474for (; d != null; d = FrameworkElement.GetFrameworkParent(d)) 488FrameworkElement parent, child; 494parent = cp.TemplatedParent as FrameworkElement; 502child = d as FrameworkElement;
src\Framework\MS\Internal\Data\PropertyPathWorker.cs (2)
642_arySVS[k-1].info == FrameworkElement.DataContextProperty) 673_arySVS[_arySVS.Length-1].info == FrameworkElement.DataContextProperty &&
src\Framework\MS\Internal\Documents\ContentHostHelper.cs (3)
111else if (textView.RenderScope is FrameworkElement) 160FrameworkElement fe; 170fe = child as FrameworkElement;
src\Framework\MS\Internal\Documents\DocumentGrid.cs (1)
1311_rubberBandSelector.AttachRubberbandSelector((FrameworkElement)this); //attach the Rubber band selector.
src\Framework\MS\Internal\Documents\DocumentGridContextMenu.cs (3)
46EventManager.RegisterClassHandler(typeof(DocumentGrid), FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpening)); 47EventManager.RegisterClassHandler(typeof(DocumentApplicationDocumentViewer), FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnDocumentViewerContextMenuOpening)); 110if (documentGrid.ReadLocalValue(FrameworkElement.ContextMenuProperty) == null)
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (2)
263XmlLanguage language = (XmlLanguage)textContainer.Parent.GetValue(FrameworkElement.LanguageProperty); 391cm = e.TargetElement.GetValue(FrameworkElement.ContextMenuProperty) as ContextMenu;
src\Framework\MS\Internal\Documents\PageCache.cs (1)
130FlowDirection flowDirection = (FlowDirection)((DependencyObject)_documentPaginator.Source).GetValue(FrameworkElement.FlowDirectionProperty);
src\Framework\MS\Internal\Documents\TextBoxLine.cs (2)
215var uiScope = _owner?.Host?.TextContainer?.TextSelection?.TextEditor?.UiScope; 469var uiScope = textEditor?.UiScope;
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (4)
608internal static ITextPointer GetTextPointerForEmbeddedObject(FrameworkElement embeddedObject) 711if (embeddedObject is FrameworkElement) 713FrameworkElement fe = (FrameworkElement)embeddedObject;
src\Framework\MS\Internal\Documents\TextViewBase.cs (4)
157FrameworkElement frameworkParent = FrameworkElement.GetFrameworkParent(textView.RenderScope) as FrameworkElement; 173((FrameworkElement)textView.RenderScope).BringIntoView(rect);
src\Framework\MS\Internal\Documents\UIElementIsland.cs (5)
79if (_child is FrameworkElement && ((FrameworkElement)_child).Parent != null) 81SetValue(FrameworkElement.FlowDirectionProperty, ((FrameworkElement)_child).Parent.GetValue(FrameworkElement.FlowDirectionProperty));
src\Framework\MS\Internal\FrameworkObject.cs (11)
62if (FrameworkElement.DType.IsInstanceOfType(d)) 64_fe = (FrameworkElement)d; 89internal FrameworkObject(FrameworkElement fe, FrameworkContentElement fce) 104if (FrameworkElement.DType.IsInstanceOfType(d)) 106_fe = (FrameworkElement)d; 125internal FrameworkElement FE { get { return _fe; } } 259Invariant.Assert(parent is FrameworkElement || parent is FrameworkContentElement); 263return new FrameworkObject((FrameworkElement)parent, null); 296Invariant.Assert(parent is FrameworkElement || parent is FrameworkContentElement); 300return new FrameworkObject((FrameworkElement)parent, null); 1209private FrameworkElement _fe;
src\Framework\MS\Internal\Helper.cs (17)
207FrameworkElement fe; 277if (d is FrameworkElement || d is FrameworkContentElement) 297out FrameworkElement fe, out FrameworkContentElement fce, 300if (FrameworkElement.DType.IsInstanceOfType(d)) 302fe = (FrameworkElement)d; 417FrameworkElement fe = templatedParent as FrameworkElement; 491FrameworkElement fe; 1086FrameworkElement virtualizingElement, 1109FrameworkElement virtualizingElement, 1188FrameworkElement virtualizingElement, 1190FrameworkElement headerElement) 1293internal static T FindTemplatedDescendant<T>(FrameworkElement searchStart, FrameworkElement templatedParent) where T : FrameworkElement 1295FrameworkElement descendant = null; 1301descendant = VisualTreeHelper.GetChild(searchStart, i) as FrameworkElement;
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (4)
398FrameworkElement frameworkElement = originalElement as FrameworkElement; 428((FrameworkElement)updatedElement).Width = newBounds.Width; 442( (FrameworkElement)updatedElement ).Height = newBounds.Height;
src\Framework\MS\Internal\PrePostDescendentsWalker.cs (1)
79if (FrameworkElement.DType.IsInstanceOfType(startNode) || FrameworkContentElement.DType.IsInstanceOfType(startNode))
src\Framework\MS\Internal\PtsHost\BaseParaClient.cs (1)
103_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
src\Framework\MS\Internal\PtsHost\CellParaClient.cs (1)
130_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
src\Framework\MS\Internal\PtsHost\ContainerParagraph.cs (3)
498uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 671uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 808uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (1)
235_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
src\Framework\MS\Internal\PtsHost\FigureParagraph.cs (1)
141uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (1)
221_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
src\Framework\MS\Internal\PtsHost\FloaterParagraph.cs (2)
186uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 401uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (1)
283DependencyObject frameworkParent = FrameworkElement.GetFrameworkParent(_structuralCache.FormattingOwner);
src\Framework\MS\Internal\PtsHost\Line.cs (4)
412FlowDirection paragraphFlowDirection = (FlowDirection)paragraphElement.GetValue(FrameworkElement.FlowDirectionProperty); 439if (inlineObject.UIElementIsland.Root is FrameworkElement) 441DependencyObject parent = ((FrameworkElement)inlineObject.UIElementIsland.Root).Parent; 442FlowDirection parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty);
src\Framework\MS\Internal\PtsHost\LineBase.cs (2)
206parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 280parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty);
src\Framework\MS\Internal\PtsHost\ListParaClient.cs (1)
70uint fswdir = PTS.FlowDirectionToFswdir((FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty));
src\Framework\MS\Internal\PtsHost\PtsHelper.cs (2)
53visualChild.SetValue(FrameworkElement.FlowDirectionProperty, childFD); 58visualChild.ClearValue(FrameworkElement.FlowDirectionProperty);
src\Framework\MS\Internal\PtsHost\Section.cs (2)
127StructuralCache.PageFlowDirection = (FlowDirection)_structuralCache.PropertyOwner.GetValue(FrameworkElement.FlowDirectionProperty); 233fswdir = PTS.FlowDirectionToFswdir((FlowDirection)_structuralCache.PropertyOwner.GetValue(FrameworkElement.FlowDirectionProperty));
src\Framework\MS\Internal\PtsHost\SubpageParagraph.cs (3)
147uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 366uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 536uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
src\Framework\MS\Internal\PtsHost\TableParagraph.cs (1)
175fstableobjprops.fswdirTable = PTS.FlowDirectionToFswdir((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty));
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (1)
162fstxtprops.fswdir = PTS.FlowDirectionToFswdir((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty));
src\Framework\MS\Internal\Text\ComplexLine.cs (5)
189if (inlineObject.Element is FrameworkElement) 194DependencyObject parent = ((FrameworkElement)inlineObject.Element).Parent; 197parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 429parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 501parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty);
src\Framework\MS\Internal\Text\DynamicPropertyReader.cs (1)
311XmlLanguage language = (XmlLanguage) element.GetValue(FrameworkElement.LanguageProperty);
src\Framework\MS\Internal\Text\TextProperties.cs (5)
107internal TextProperties(FrameworkElement target, bool isTypographyDefaultValue) 113_numberSubstitution = FrameworkElement.DefaultNumberSubstitution; 145FrameworkElement fe = target as FrameworkElement; 148_numberSubstitution = FrameworkElement.DefaultNumberSubstitution;
src\Framework\MS\Internal\TraceData.cs (2)
195FrameworkElement fe = o as FrameworkElement;
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (12)
375FrameworkElement viewer = sender as FrameworkElement; 512ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 605ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 833ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 937ITextSelection selection = GetTextSelection((FrameworkElement)service.Root); 1060private static ITextSelection GetTextSelection(FrameworkElement viewer) 1066viewer = GetFdrHost(reader) as FrameworkElement; 1143FrameworkElement viewer = sender as FrameworkElement; 1146FrameworkElement parent = viewer.Parent as FrameworkElement;
src\Framework\System\Windows\Annotations\AnnotationService.cs (5)
162if (!(root is FrameworkElement || root is FrameworkContentElement)) 386if (!(element is FrameworkElement || element is FrameworkContentElement)) 423if (!(element is FrameworkElement || element is FrameworkContentElement)) 1598FrameworkElement viewer = this.Root as FrameworkElement;
src\Framework\System\Windows\Application.cs (2)
2452((FrameworkElement)args[0]).ShouldLookupImplicitStyles = true; 2454TreeWalkHelper.InvalidateOnResourcesChange((FrameworkElement)args[0], null, (ResourcesChangeInfo)args[1]);
src\Framework\System\Windows\AttachedPropertyBrowsableForChildrenAttribute.cs (1)
106walk = FrameworkElement.GetFrameworkParent(walk);
src\Framework\System\Windows\Automation\Peers\CalendarAutomationPeer.cs (2)
201FrameworkElement focusedButton = focusedItem.OwningButton; 398object dataContext = (child as FrameworkElement).DataContext;
src\Framework\System\Windows\Automation\Peers\FrameworkContentElementAutomationPeer.cs (2)
65FrameworkElement toolTipElement = toolTip as FrameworkElement;
src\Framework\System\Windows\Automation\Peers\FrameworkElementAutomationPeer.cs (8)
21public FrameworkElementAutomationPeer(FrameworkElement owner) 34FrameworkElement owner = (FrameworkElement)Owner; 58result = ((FrameworkElement)Owner).GetPlainText(); 70object toolTip = ((FrameworkElement)Owner).ToolTip; 76FrameworkElement toolTipElement = toolTip as FrameworkElement; 99owner.GetValue(FrameworkElement.DataContextProperty) ==
src\Framework\System\Windows\Automation\Peers\ItemAutomationPeer.cs (4)
120if(wrapper is FrameworkElement) 121wrapperPeer = new FrameworkElementAutomationPeer((FrameworkElement)wrapper); 492FrameworkElement fe = item as FrameworkElement;
src\Framework\System\Windows\Automation\Peers\TextAutomationPeer.cs (1)
25protected TextAutomationPeer(FrameworkElement owner)
src\Framework\System\Windows\BroadcastEventHelper.cs (37)
22Debug.Assert(d is FrameworkElement || d is FrameworkContentElement); 35d.SetValue(FrameworkElement.LoadedPendingPropertyKey, new object[]{loadedOp, operation, logicalParent}); 43Debug.Assert(d is FrameworkElement || d is FrameworkContentElement); 50d.ClearValue(FrameworkElement.LoadedPendingPropertyKey); 70Debug.Assert(d is FrameworkElement || d is FrameworkContentElement); 83d.SetValue(FrameworkElement.UnloadedPendingPropertyKey, new object[]{unloadedOp, operation, logicalParent}); 91Debug.Assert(d is FrameworkElement || d is FrameworkContentElement); 98d.ClearValue(FrameworkElement.UnloadedPendingPropertyKey); 165object[] loadedPending = (object[])rootDO.GetValue(FrameworkElement.LoadedPendingProperty); 188BroadcastEventHelper.BroadcastEvent(rootDO, FrameworkElement.LoadedEvent); 202object[] unloadedPending = (object[])rootDO.GetValue(FrameworkElement.UnloadedPendingProperty); 225BroadcastEvent(rootDO, FrameworkElement.UnloadedEvent); 274if (routedEvent == FrameworkElement.LoadedEvent) 292if (FrameworkElement.DType.IsInstanceOfType(d)) 295FrameworkElement fe = (FrameworkElement)d; 297if (fe != root && routedEvent == FrameworkElement.LoadedEvent && fe.UnloadedPending != null) 304else if (fe != root && routedEvent == FrameworkElement.UnloadedEvent && fe.LoadedPending != null) 315if (routedEvent == FrameworkElement.LoadedEvent && fe.LoadedPending != null) 322else if (routedEvent == FrameworkElement.UnloadedEvent && fe.UnloadedPending != null) 344fe.IsLoadedCache = (routedEvent == FrameworkElement.LoadedEvent); 358if (fce != root && routedEvent == FrameworkElement.LoadedEvent && fce.UnloadedPending != null) 365else if (fce != root && routedEvent == FrameworkElement.UnloadedEvent && fce.LoadedPending != null) 376if (routedEvent == FrameworkElement.LoadedEvent && fce.LoadedPending != null) 383else if (routedEvent == FrameworkElement.UnloadedEvent && fce.UnloadedPending != null) 405fce.IsLoadedCache = (routedEvent == FrameworkElement.LoadedEvent); 421if (FrameworkElement.DType.IsInstanceOfType(d)) 423return ((FrameworkElement)d).SubtreeHasLoadedChangeHandler; 434if (FrameworkElement.DType.IsInstanceOfType(d)) 436((FrameworkElement)d).FireLoadedOnDescendentsInternal(); 446if (FrameworkElement.DType.IsInstanceOfType(d)) 448((FrameworkElement)d).FireUnloadedOnDescendentsInternal(); 591FrameworkElement child = VisualTreeHelper.GetChild(v, i) as FrameworkElement; 722FrameworkElement fe, 725if (fe.GetValue(FrameworkElement.LoadedPendingProperty) == null) 757if (fce.GetValue(FrameworkElement.LoadedPendingProperty) == null)
src\Framework\System\Windows\Controls\AdornedElementPlaceholder.cs (2)
234FrameworkElement templateParent = this.TemplatedParent as FrameworkElement;
src\Framework\System\Windows\Controls\ComboBox.cs (2)
252cb._clonedElement.CoerceValue(FrameworkElement.FlowDirectionProperty); 1603return (bool)d.GetValue(FrameworkElement.IsEnabledProperty);
src\Framework\System\Windows\Controls\ContentControl.cs (2)
109FrameworkElement feContent = content as FrameworkElement;
src\Framework\System\Windows\Controls\ContentPresenter.cs (3)
1009internal override bool BuildVisualTree(FrameworkElement container) 1041internal override bool BuildVisualTree(FrameworkElement container) 1169template = (DataTemplate)FrameworkElement.FindTemplateResourceInternal(container, item, typeof(DataTemplate));
src\Framework\System\Windows\Controls\Control.cs (2)
296new ValidateValueCallback(FrameworkElement.ValidateHorizontalAlignmentValue)); 322new ValidateValueCallback(FrameworkElement.ValidateVerticalAlignmentValue));
src\Framework\System\Windows\Controls\DataGrid.cs (10)
46dataGridRowPresenterFactory.SetValue(FrameworkElement.NameProperty, ItemsPanelPartName); 5882FrameworkElement focusContainer; 5883FrameworkElement startingElement = Keyboard.FocusedElement as FrameworkElement; 6181FrameworkElement targetElement; 6184FrameworkElement startingElement = null; 6187startingElement = Keyboard.FocusedElement as FrameworkElement; 6559private static bool CalculateCellDistance(FrameworkElement cell, DataGridRow rowOwner, Panel itemsHost, Rect itemsHostBounds, bool isMouseInCorner, out double distance) 6929FrameworkElement target; 6965FrameworkElement target;
src\Framework\System\Windows\Controls\DataGridBoundColumn.cs (2)
164internal void ApplyStyle(bool isEditing, bool defaultToElementStyle, FrameworkElement element) 213protected internal override void RefreshCellContent(FrameworkElement element, string propertyName)
src\Framework\System\Windows\Controls\DataGridCell.cs (11)
114else if ((Content as FrameworkElement) == null) 393FrameworkElement newContent = column.BuildVisualTree(IsEditing, RowDataItem, this); 398FrameworkElement oldContent = Content as FrameworkElement; 404oldContent.SetValue(FrameworkElement.DataContextProperty, BindingExpressionBase.DisconnectedItem); 587column.BeginEdit(Content as FrameworkElement, e); 601column.CancelEdit(Content as FrameworkElement); 617validationPassed = column.CommitEdit(Content as FrameworkElement); 633FrameworkElement currentEditingElement = EditingElement; 639internal FrameworkElement EditingElement 644return Content as FrameworkElement;
src\Framework\System\Windows\Controls\DataGridCellEditEndingEventArgs.cs (3)
25public DataGridCellEditEndingEventArgs(DataGridColumn column, DataGridRow row, FrameworkElement editingElement, DataGridEditAction editAction) 61public FrameworkElement EditingElement 77private FrameworkElement _editingElement;
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (2)
2445FrameworkElement itemsPresenter = TemplatedParent as FrameworkElement;
src\Framework\System\Windows\Controls\DataGridCheckBoxColumn.cs (4)
84protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 92protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 113protected internal override void RefreshCellContent(FrameworkElement element, string propertyName) 161protected override object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs)
src\Framework\System\Windows\Controls\DataGridColumn.cs (13)
617public FrameworkElement GetCellContent(object dataItem) 641public FrameworkElement GetCellContent(DataGridRow dataGridRow) 656return cell.Content as FrameworkElement; 670internal FrameworkElement BuildVisualTree(bool isEditing, object dataItem, DataGridCell cell) 685protected abstract FrameworkElement GenerateElement(DataGridCell cell, object dataItem); 690protected abstract FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem); 701protected virtual object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs) 712protected virtual void CancelCellEdit(FrameworkElement editingElement, object uneditedValue) 722protected virtual bool CommitCellEdit(FrameworkElement editingElement) 727internal void BeginEdit(FrameworkElement editingElement, RoutedEventArgs e) 740internal void CancelEdit(FrameworkElement editingElement) 749internal bool CommitEdit(FrameworkElement editingElement) 919protected internal virtual void RefreshCellContent(FrameworkElement element, string propertyName)
src\Framework\System\Windows\Controls\DataGridComboBoxColumn.cs (7)
290private void ApplyStyle(bool isEditing, bool defaultToElementStyle, FrameworkElement element) 412protected internal override void RefreshCellContent(FrameworkElement element, string propertyName) 491protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 506protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 539protected override object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs) 564protected override void CancelCellEdit(FrameworkElement editingElement, object uneditedValue) 581protected override bool CommitCellEdit(FrameworkElement editingElement)
src\Framework\System\Windows\Controls\DataGridHelper.cs (13)
157public static T FindParent<T>(FrameworkElement element) where T : FrameworkElement 159FrameworkElement parent = element.TemplatedParent as FrameworkElement; 169parent = parent.TemplatedParent as FrameworkElement; 519internal static BindingExpression GetBindingExpression(FrameworkElement element, DependencyProperty dp) 529internal static bool ValidateWithoutUpdate(FrameworkElement element) 560internal static bool BindingExpressionBelongsToElement<T>(BindingExpressionBase beb, T element) where T : FrameworkElement 620internal static void CacheFlowDirection(FrameworkElement element, DataGridCell cell) 624object flowDirectionObj = element.ReadLocalValue(FrameworkElement.FlowDirectionProperty); 632internal static void RestoreFlowDirection(FrameworkElement element, DataGridCell cell) 639element.SetValue(FrameworkElement.FlowDirectionProperty, flowDirectionObj); 644internal static void UpdateTarget(FrameworkElement element)
src\Framework\System\Windows\Controls\DataGridHyperlinkColumn.cs (6)
114protected internal override void RefreshCellContent(FrameworkElement element, string propertyName) 171protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 196protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 218protected override object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs) 255protected override void CancelCellEdit(FrameworkElement editingElement, object uneditedValue) 267protected override bool CommitCellEdit(FrameworkElement editingElement)
src\Framework\System\Windows\Controls\DataGridPreparingCellForEditEventArgs.cs (3)
26public DataGridPreparingCellForEditEventArgs(DataGridColumn column, DataGridRow row, RoutedEventArgs editingEventArgs, FrameworkElement editingElement) 61public FrameworkElement EditingElement 69private FrameworkElement _editingElement;
src\Framework\System\Windows\Controls\DataGridRow.cs (2)
831var detailsElement = row.DetailsPresenter != null ? row.DetailsPresenter.DetailsElement : null; 1335public static DataGridRow GetRowContainingElement(FrameworkElement element)
src\Framework\System\Windows\Controls\DataGridRowDetailsEventArgs.cs (2)
14public DataGridRowDetailsEventArgs(DataGridRow row, FrameworkElement detailsElement) 20public FrameworkElement DetailsElement
src\Framework\System\Windows\Controls\DataGridTemplateColumn.cs (4)
165private FrameworkElement LoadTemplateContent(bool isEditing, object dataItem, DataGridCell cell) 185protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 193protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 208protected internal override void RefreshCellContent(FrameworkElement element, string propertyName)
src\Framework\System\Windows\Controls\DataGridTextColumn.cs (9)
83protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem) 100protected override FrameworkElement GenerateEditingElement(DataGridCell cell, object dataItem) 114private void SyncProperties(FrameworkElement e) 123protected internal override void RefreshCellContent(FrameworkElement element, string propertyName) 129FrameworkElement textElement = cell.Content as FrameworkElement; 167protected override object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs) 221protected override void CancelCellEdit(FrameworkElement editingElement, object uneditedValue) 233protected override bool CommitCellEdit(FrameworkElement editingElement)
src\Framework\System\Windows\Controls\DateTimeHelper.cs (3)
110internal static CultureInfo GetCulture(FrameworkElement element) 114if (element.GetValueSource(FrameworkElement.LanguageProperty, null, out hasModifiers) != BaseValueSourceInternal.Default) 207public static string ToDecadeRangeString(int decade, FrameworkElement fe)
src\Framework\System\Windows\Controls\DocumentViewer.cs (4)
1397FrameworkElement grid = _documentScrollInfo as FrameworkElement; 2116FrameworkElement fe = _documentScrollInfo as FrameworkElement;
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (12)
793((FrameworkElement)CurrentViewer).Focus(); 919FrameworkElement feViewer; 952feViewer = (FrameworkElement)viewer; 1002FrameworkElement fe = focusedElement as FrameworkElement; 1090Invariant.Assert(viewer != null && viewer is FrameworkElement); 1091FrameworkElement feViewer = (FrameworkElement)viewer; 1113Invariant.Assert(viewer != null && viewer is FrameworkElement); 1114FrameworkElement feViewer = (FrameworkElement)viewer; 1134private void CreateTwoWayBinding(FrameworkElement fe, DependencyProperty dp, string propertyPath)
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (3)
819FrameworkElement.AddIntermediateElementsToRoute( 836continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(LogicalTreeHelper.GetParent(document), LogicalTreeHelper.GetParent(branchNode)); 1315private void CreateTwoWayBinding(FrameworkElement fe, DependencyProperty dp, string propertyPath)
src\Framework\System\Windows\Controls\Frame.cs (3)
680FrameworkElement journalEntryUIElem = e.Parameter as FrameworkElement; 1327FrameworkElement fe;
src\Framework\System\Windows\Controls\Grid.cs (1)
132/// <see cref="FrameworkElement.LogicalChildren"/>
src\Framework\System\Windows\Controls\GridSplitter.cs (1)
99FrameworkElement.HorizontalAlignmentProperty.OverrideMetadata(typeof(GridSplitter), new FrameworkPropertyMetadata(HorizontalAlignment.Right));
src\Framework\System\Windows\Controls\GridViewColumn.cs (2)
381FrameworkElement.WidthProperty.AddOwner( 502FrameworkElement fe;
src\Framework\System\Windows\Controls\GridViewColumnHeader.cs (2)
630FrameworkElement gripperContainer = _headerGripper.Parent as FrameworkElement;
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (5)
241/// Override of <seealso cref="FrameworkElement.MeasureOverride" />. 1256FrameworkElement fe = presenter.TemplatedParent as FrameworkElement; 1266fe = fe.TemplatedParent as FrameworkElement; 1581private static bool IsMousePositionValid(FrameworkElement floatingHeader, Point currentPos, double arrange)
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (11)
130/// Override of <seealso cref="FrameworkElement.MeasureOverride" />. 314FrameworkElement cell = InternalChildren[index] as FrameworkElement; 449_viewItem = this.TemplatedParent as FrameworkElement; 465_viewPort = scrollViewer.GetTemplateChild(ScrollViewer.ScrollContentPresenterTemplateName) as FrameworkElement; 580private FrameworkElement CreateCell(GridViewColumn column) 584FrameworkElement cell; 645FrameworkElement cell; 651cell = (FrameworkElement)children[i]; 700private FrameworkElement _viewPort; 701private FrameworkElement _viewItem;
src\Framework\System\Windows\Controls\GroupItem.cs (7)
55_header = this.GetTemplateChild("PART_Header") as FrameworkElement; 294FrameworkElement headerElement = HeaderElement; 435private FrameworkElement ExpanderHeader 441return _expander.GetTemplateChild(ExpanderHeaderPartName) as FrameworkElement; 448private FrameworkElement HeaderElement 452FrameworkElement headerElement = null; 474FrameworkElement _header;
src\Framework\System\Windows\Controls\Image.cs (1)
237/// Override for <seealso cref="FrameworkElement.ArrangeOverride" />.
src\Framework\System\Windows\Controls\InkCanvas.cs (2)
291e.Property == FrameworkElement.LayoutTransformProperty) 330if (e.Property == FrameworkElement.FlowDirectionProperty)
src\Framework\System\Windows\Controls\InkPresenter.cs (2)
159/// Override of <seealso cref="FrameworkElement.MeasureOverride" /> 203/// Override of <seealso cref="FrameworkElement.ArrangeOverride" />.
src\Framework\System\Windows\Controls\ItemCollection.cs (3)
93internal ItemCollection(FrameworkElement modelParent, int capacity) 1512internal FrameworkElement ModelParentFE 1514get { return ModelParent as FrameworkElement; }
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (4)
117label = (string)d.GetValue(FrameworkElement.NameProperty); 1068string name = (String)peer.GetValue(FrameworkElement.NameProperty); 2294container.SetValue(FrameworkElement.DataContextProperty, item); 2349DependencyProperty dp = FrameworkElement.DataContextProperty;
src\Framework\System\Windows\Controls\ItemContainerTemplateSelector.cs (1)
35return FrameworkElement.FindTemplateResourceInternal(parentItemsControl, item, typeof(ItemContainerTemplate)) as DataTemplate;
src\Framework\System\Windows\Controls\ItemsControl.cs (84)
43[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(FrameworkElement))] 1347Invariant.Assert(parent is FrameworkElement, SR.Get(SRID.ItemsControl_ParentNotFrameworkElement)); 1355((FrameworkElement)parent).TemplateChild = null; 1387Helper.HasUnmodifiedDefaultOrInheritedValue(container, FrameworkElement.BindingGroupProperty)) 1393container.SetValue(FrameworkElement.BindingGroupProperty, containerBindingGroup); 1831FrameworkElement element = info.Container as FrameworkElement; 1878while (startingElement != null && !(startingElement is FrameworkElement)) 1885return NavigateByLine(FocusedInfo, startingElement as FrameworkElement, direction, itemNavigateArgs); 1889FrameworkElement startingElement, 1892out FrameworkElement container) 1930FrameworkElement startingElement, 1953FrameworkElement container; 1964FrameworkElement startingElement, 1967out FrameworkElement container) 1981FrameworkElement nextElement = null; 2022treeViewNavigation) as FrameworkElement; 2027FrameworkElement viewport = GetViewportElement(); 2041TryGetTreeViewItemHeader(nextElement) as FrameworkElement, 2151treeViewNavigation) as FrameworkElement; 2189FrameworkElement startingElement, 2192out FrameworkElement container) 2225return NavigateByPage(FocusedInfo, Keyboard.FocusedElement as FrameworkElement, direction, itemNavigateArgs); 2238FrameworkElement startingElement, 2261FrameworkElement container; 2272FrameworkElement startingElement, 2275out FrameworkElement container) 2292FrameworkElement firstElement; 2370FrameworkElement container; 2374internal bool NavigateToStartInternal(ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container) 2408FrameworkElement firstElement; 2409FrameworkElement hopefulFirstElement = FindEndFocusableLeafContainer(ItemsHost, false /*last*/); 2436FrameworkElement container; 2440internal bool NavigateToEndInternal(ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container) 2474FrameworkElement lastElement; 2475FrameworkElement hopefulLastElement = FindEndFocusableLeafContainer(ItemsHost, true /*last*/); 2500private FrameworkElement FindEndFocusableLeafContainer(Panel itemsHost, bool last) 2514FrameworkElement fe = children[i] as FrameworkElement; 2518FrameworkElement result = null; 2596FrameworkElement container; 2603private object FindFocusable(int startIndex, int direction, out int foundIndex, out FrameworkElement foundContainer) 2612FrameworkElement container = ItemContainerGenerator.ContainerFromIndex(startIndex) as FrameworkElement; 2631private void AdjustOffsetToAlignWithEdge(FrameworkElement element, FocusNavigationDirection direction) 2638FrameworkElement viewportElement = GetViewportElement(); 2639element = TryGetTreeViewItemHeader(element) as FrameworkElement; 2674private void MakeVisible(int index, FocusNavigationDirection direction, bool alwaysAtTopOfViewport, out FrameworkElement container) 2680container = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement; 2690container = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement; 2700private void MakeVisible(ItemInfo info, FocusNavigationDirection direction, out FrameworkElement container) 2716internal void MakeVisible(FrameworkElement container, FocusNavigationDirection direction, bool alwaysAtTopOfViewport) 2723FrameworkElement viewportElement = GetViewportElement(); 2745FrameworkElement firstElement; 2774private bool NavigateToFirstItemOnCurrentPage(object startingItem, FocusNavigationDirection direction, ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container) 2776object firstItem = GetFirstItemOnCurrentPage(ItemContainerGenerator.ContainerFromItem(startingItem) as FrameworkElement, 2790private object GetFirstItemOnCurrentPage(FrameworkElement startingElement, 2792out FrameworkElement firstElement) 2841FrameworkElement currentElement = startingElement; 2856FrameworkElement viewportElement = GetViewportElement(); 2862viewportElement) as FrameworkElement; 2898internal FrameworkElement GetViewportElement() 2905FrameworkElement viewPort = ScrollHost; 2931FrameworkElement container = ItemContainerGenerator.ContainerFromItem(item) as FrameworkElement; 2941private bool IsOnCurrentPage(FrameworkElement element, FocusNavigationDirection axis) 2953private bool IsOnCurrentPage(FrameworkElement viewPort, FrameworkElement element, FocusNavigationDirection axis, bool fullyVisible) 2958internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort, 2967internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort, 2994internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort, 3298FrameworkElement relativeTo = ScrollHost != null ? (FrameworkElement)ScrollHost : ItemsHost; 3347private bool IsRTL(FrameworkElement element) 3353private static ItemsControl GetEncapsulatingItemsControl(FrameworkElement element) 3362element = VisualTreeHelper.GetParent(element) as FrameworkElement; 3367private static object GetEncapsulatingItem(FrameworkElement element, out FrameworkElement container) 3373private static object GetEncapsulatingItem(FrameworkElement element, out FrameworkElement container, out ItemsControl itemsControl) 3391element = VisualTreeHelper.GetParent(element) as FrameworkElement; 3426container.ReadLocalValue(FrameworkElement.StyleProperty) != DependencyProperty.UnsetValue) 3457container.ClearValue(FrameworkElement.StyleProperty); 3467container.ClearValue(FrameworkElement.StyleProperty);
src\Framework\System\Windows\Controls\ItemsPanelTemplate.cs (1)
157protected override void ValidateTemplatedParent(FrameworkElement templatedParent)
src\Framework\System\Windows\Controls\ItemsPresenter.cs (2)
67/// Override of <seealso cref="FrameworkElement.MeasureOverride" />. 78/// Override of <seealso cref="FrameworkElement.ArrangeOverride" />.
src\Framework\System\Windows\Controls\MediaElement.cs (2)
709/// Override for <seealso cref="FrameworkElement.MeasureOverride" />. 717/// Override for <seealso cref="FrameworkElement.ArrangeOverride" />.
src\Framework\System\Windows\Controls\Menu.cs (2)
304FrameworkElement element = e.OriginalSource as FrameworkElement;
src\Framework\System\Windows\Controls\MenuItem.cs (3)
2513FrameworkElement parent = LogicalParent as FrameworkElement; 2538private static bool IsMouseReallyOver(FrameworkElement elem)
src\Framework\System\Windows\Controls\Page.cs (5)
695FrameworkElement feParent = visualParent as FrameworkElement; 707feParent = parent as FrameworkElement; 789FrameworkElement feParent = this.Parent as FrameworkElement;
src\Framework\System\Windows\Controls\Panel.cs (2)
400protected virtual UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent) 610private void EnsureEmptyChildren(FrameworkElement logicalParent)
src\Framework\System\Windows\Controls\PasswordBox.cs (7)
42[TemplatePart(Name = "PART_ContentHost", Type = typeof(FrameworkElement))] 497/// <see cref="FrameworkElement.OnPropertyChanged"/> 806internal FrameworkElement RenderScope 962_passwordBoxContentHost = GetTemplateChild(ContentHostTemplateName) as FrameworkElement; 1014FrameworkElement element = _renderScope; 1021element = element.Parent as FrameworkElement; 1331private FrameworkElement _passwordBoxContentHost;
src\Framework\System\Windows\Controls\PopupControlService.cs (1)
1061return FrameworkElement.PopupControlService;
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (9)
18[TemplatePart(Name = CalendarItem.ElementRoot, Type = typeof(FrameworkElement))] 25[TemplatePart(Name = CalendarItem.ElementDisabledVisual, Type = typeof(FrameworkElement))] 52private FrameworkElement _disabledVisual; 177_disabledVisual = GetTemplateChild(ElementDisabledVisual) as FrameworkElement; 450FrameworkElement focusTarget = null; 961FrameworkElement titleCell = (this._dayTitleTemplate != null) ? (FrameworkElement)this._dayTitleTemplate.LoadContent() : new ContentControl(); 1028FrameworkElement daytitle = _monthView.Children[childIndex] as FrameworkElement;
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeader.cs (1)
210/// Override for <see cref="System.Windows.FrameworkElement.OnApplyTemplate">FrameworkElement.OnApplyTemplate</see>
src\Framework\System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (2)
142internal FrameworkElement DetailsElement 149return VisualTreeHelper.GetChild(this, 0) as FrameworkElement;
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (9)
458this.TextEditorRenderScope = (adornerDecorator != null) ? (adornerDecorator.Child as FrameworkElement) : null; 759internal FrameworkElement TextEditorRenderScope 932FrameworkElement fe; 942fe = child as FrameworkElement; 978FrameworkElement fe; 991fe = child as FrameworkElement; 1168FrameworkElement fe = child as FrameworkElement; 1677private FrameworkElement _textEditorRenderScope; // RenderScope associated with the TextEditor.
src\Framework\System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (2)
308private FrameworkElement GetStableAncester() 312return (ic != null) ? ic : (FrameworkElement)this;
src\Framework\System\Windows\Controls\Primitives\LayoutInformation.cs (3)
22private static void CheckArgument(FrameworkElement element) 34public static Rect GetLayoutSlot(FrameworkElement element) 47public static Geometry GetLayoutClip(FrameworkElement element)
src\Framework\System\Windows\Controls\Primitives\PopupRoot.cs (2)
358FrameworkElement child = Child as FrameworkElement;
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (2)
753FrameworkElement templatedParent = scrollContainer.TemplatedParent as FrameworkElement;
src\Framework\System\Windows\Controls\Primitives\Selector.cs (10)
117FrameworkElement.AddHandler(element, SelectedEvent, handler); 128FrameworkElement.RemoveHandler(element, SelectedEvent, handler); 146FrameworkElement.AddHandler(element, UnselectedEvent, handler); 157FrameworkElement.RemoveHandler(element, UnselectedEvent, handler); 1451private void SetSelectedHelper(object item, FrameworkElement UI, bool selected) 1917((Selector)sender).NotifyIsSelectedChanged(e.OriginalSource as FrameworkElement, true, e); 1922((Selector)sender).NotifyIsSelectedChanged(e.OriginalSource as FrameworkElement, false, e); 1935FrameworkElement element = this; 1944element = System.Windows.Media.VisualTreeHelper.GetParent(element) as FrameworkElement; 1958internal void NotifyIsSelectedChanged(FrameworkElement container, bool selected, RoutedEventArgs e)
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (7)
46[TemplatePart(Name = "PART_ContentHost", Type = typeof(FrameworkElement))] 1424internal abstract FrameworkElement CreateRenderScope(); 1839internal FrameworkElement RenderScope 2000FrameworkElement renderScope = CreateRenderScope(); 2006_textBoxContentHost = GetTemplateChild(ContentHostTemplateName) as FrameworkElement; 2279private FrameworkElement _textBoxContentHost; 2282private FrameworkElement _renderScope;
src\Framework\System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (1)
201protected override UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent)
src\Framework\System\Windows\Controls\Primitives\Track.cs (3)
427/// <seealso cref="FrameworkElement.MeasureOverride" /> 475/// <seealso cref="FrameworkElement.ArrangeOverride" /> 707private void BindChildToTemplatedParent(FrameworkElement element, DependencyProperty target, DependencyProperty source)
src\Framework\System\Windows\Controls\ProgressBar.cs (11)
37[TemplatePart(Name = "PART_Track", Type = typeof(FrameworkElement))] 38[TemplatePart(Name = "PART_Indicator", Type = typeof(FrameworkElement))] 39[TemplatePart(Name = "PART_GlowRect", Type = typeof(FrameworkElement))] 266_glow.BeginAnimation(FrameworkElement.MarginProperty, animation); 270_glow.BeginAnimation(FrameworkElement.MarginProperty, null); 348_track = GetTemplateChild(TrackTemplateName) as FrameworkElement; 349_indicator = GetTemplateChild(IndicatorTemplateName) as FrameworkElement; 350_glow = GetTemplateChild(GlowingRectTemplateName) as FrameworkElement; 374private FrameworkElement _track; 375private FrameworkElement _indicator; 376private FrameworkElement _glow;
src\Framework\System\Windows\Controls\RichTextBox.cs (2)
327internal override FrameworkElement CreateRenderScope() 798this.RenderScope.ClearValue(FrameworkElement.HorizontalAlignmentProperty);
src\Framework\System\Windows\Controls\ScrollViewer.cs (8)
387/// <see cref="System.Windows.FrameworkElement.Width" /> on the content element. 399/// <see cref="System.Windows.FrameworkElement.Height" /> on the content element. 428/// <see cref="System.Windows.FrameworkElement.Width" /> on this element. 440/// <see cref="System.Windows.FrameworkElement.Height" /> on this element. 1066FrameworkElement fe = elementRoot as FrameworkElement; 2765hsb.SetValue(FrameworkElement.CursorProperty, Cursors.Arrow); 2775vsb.SetValue(FrameworkElement.CursorProperty, Cursors.Arrow);
src\Framework\System\Windows\Controls\SinglePageViewer.cs (2)
798FrameworkElement.AddIntermediateElementsToRoute( 815continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(LogicalTreeHelper.GetParent(document), LogicalTreeHelper.GetParent(branchNode));
src\Framework\System\Windows\Controls\Slider.cs (6)
44[TemplatePart(Name = "PART_SelectionRange", Type = typeof(FrameworkElement))] 1007FrameworkElement rangeElement = this.SelectionRangeElement as FrameworkElement; 1081internal FrameworkElement SelectionRangeElement 1282SelectionRangeElement = GetTemplateChild(SelectionRangeElementName) as FrameworkElement; 1383private FrameworkElement _selectionRangeElement;
src\Framework\System\Windows\Controls\SoundPlayerAction.cs (2)
130internal sealed override void Invoke(FrameworkElement el, 142internal sealed override void Invoke(FrameworkElement el)
src\Framework\System\Windows\Controls\StickyNote.cs (8)
822FrameworkElement innerControl = stickyNoteControl.Content.InnerControl; 839FrameworkElement innerControl = stickyNoteControl.Content.InnerControl; 1003FrameworkElement parent = VisualTreeHelper.GetParent(Content.InnerControl) as FrameworkElement; 1404parent = FrameworkElement.GetFrameworkParent(parent); 1481FrameworkElement innerControl = Content.InnerControl; 1525FrameworkElement innerControl = (FrameworkElement)Content.InnerControl;
src\Framework\System\Windows\Controls\TabControl.cs (2)
566FrameworkElement visualParent = VisualTreeHelper.GetParent(tabItem) as FrameworkElement;
src\Framework\System\Windows\Controls\TextAdaptor.cs (2)
276FrameworkElement fe = renderScope as FrameworkElement;
src\Framework\System\Windows\Controls\TextBox.cs (2)
1007/// <see cref="FrameworkElement.OnPropertyChanged"/> 1113internal override FrameworkElement CreateRenderScope()
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (7)
160object val = tp.GetValue(FrameworkElement.LanguageProperty); 328Thickness margin = (Thickness)tp.GetValue(FrameworkElement.MarginProperty); 339Thickness margin = (Thickness)tp.GetValue(FrameworkElement.MarginProperty); 350Thickness margin = (Thickness)tp.GetValue(FrameworkElement.MarginProperty); 361Thickness margin = (Thickness)tp.GetValue(FrameworkElement.MarginProperty); 423FlowDirection flowWCP = (FlowDirection)tp.GetValue(FrameworkElement.FlowDirectionProperty); 1288(XmlLanguage)context.GetValue(FrameworkElement.LanguageProperty) :
src\Framework\System\Windows\Controls\TextSearch.cs (4)
629FrameworkElement fe = o as FrameworkElement; 770internal static string GetPrimaryText(FrameworkElement element) 833object o = element.GetValue(FrameworkElement.LanguageProperty);
src\Framework\System\Windows\Controls\ToolBar.cs (2)
483FrameworkElement fe = element as FrameworkElement;
src\Framework\System\Windows\Controls\TreeView.cs (3)
618FrameworkElement container; 625FrameworkElement container; 713FrameworkElement startingContainer = _selectedContainer.HeaderElement;
src\Framework\System\Windows\Controls\TreeViewItem.cs (13)
27[TemplatePart(Name = HeaderPartName, Type = typeof(FrameworkElement))] 48EventManager.RegisterClassHandler(typeof(TreeViewItem), FrameworkElement.RequestBringIntoViewEvent, new RequestBringIntoViewEventHandler(OnRequestBringIntoView)); 376FrameworkElement headerElement = HeaderElement; 688FrameworkElement startingContainer = this.HeaderElement; 779FrameworkElement header = HeaderElement; 795FrameworkElement header = HeaderElement; 803internal FrameworkElement HeaderElement 807return GetTemplateChild(HeaderPartName) as FrameworkElement; 813internal FrameworkElement TryGetHeaderElement() 816FrameworkElement header = HeaderElement; 838FrameworkElement parent = VisualTreeHelper.GetParent(toggleButton) as FrameworkElement; 846header = VisualTreeHelper.GetChild(parent, index+1) as FrameworkElement;
src\Framework\System\Windows\Controls\UIElementCollection.cs (3)
42public UIElementCollection(UIElement visualParent, FrameworkElement logicalParent) 545internal FrameworkElement LogicalParent 552private readonly FrameworkElement _logicalParent;
src\Framework\System\Windows\Controls\UserControl.cs (2)
63internal override FrameworkElement StateGroupsRoot 67return Content as FrameworkElement;
src\Framework\System\Windows\Controls\Validation.cs (4)
61FrameworkElement.AddHandler(element, ErrorEvent, handler); 71FrameworkElement.RemoveHandler(element, ErrorEvent, handler); 361if (!HasValidationGroup(targetElement as FrameworkElement)) 375private static bool HasValidationGroup(FrameworkElement fe)
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (33)
425FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport( 547FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport( 673FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport( 877FrameworkElement prevFirstContainerInViewport = _scrollData._firstContainerInViewport; 882FrameworkElement currFirstContainerInViewport = ComputeFirstContainerInViewport( 905FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport( 1093private FrameworkElement ComputeFirstContainerInViewport( 1094FrameworkElement viewportElement, 1107private FrameworkElement ComputeFirstContainerInViewport( 1108FrameworkElement viewportElement, 1144FrameworkElement result = null; 1153FrameworkElement fe = children[i] as FrameworkElement; 1673FrameworkElement childFE = child as FrameworkElement; 1937FrameworkElement.AddHandler(element, CleanUpVirtualizedItemEvent, handler); 1947FrameworkElement.RemoveHandler(element, CleanUpVirtualizedItemEvent, handler); 5173FrameworkElement container = virtualizationInfoProvider as FrameworkElement; 6271FrameworkElement container = virtualizationInfoProvider as FrameworkElement; 6330FrameworkElement fe = virtualizingChild as FrameworkElement; 6468private bool IsHeaderBeforeItems(bool isHorizontal, FrameworkElement container, ref Thickness inset) 6975bool isHeaderBeforeItems = IsHeaderBeforeItems(isHorizontal, virtualizingChild as FrameworkElement, ref inset); 10946bool isHeaderBeforeItems = IsHeaderBeforeItems(isHorizontal, virtualizingElement as FrameworkElement, ref inset); 11488private FrameworkElement FirstContainerInViewport 11675internal FrameworkElement _firstContainerInViewport; 12019sti = new ScrollTracingInfo(tracer, _nullInfo.Generation, 0, itemsOwner as FrameworkElement, null, null, 0); 12041sti = new ScrollTracingInfo(tracer, _nullInfo.Generation, parentInfo.Depth + 1, itemsOwner as FrameworkElement, parent, parentItem, itemIndex); 12517internal FrameworkElement Owner { get; private set; } 12522internal ScrollTracingInfo(ScrollTracer tracer, int generation, int depth, FrameworkElement owner, VirtualizingStackPanel parent, object parentItem, int itemIndex) 12717internal FrameworkElement _firstContainerInViewport;
src\Framework\System\Windows\Controls\WrapPanel.cs (2)
221/// <see cref="FrameworkElement.MeasureOverride"/> 282/// <see cref="FrameworkElement.ArrangeOverride"/>
src\Framework\System\Windows\ControlTemplate.cs (1)
62protected override void ValidateTemplatedParent(FrameworkElement templatedParent)
src\Framework\System\Windows\Data\Binding.cs (4)
118FrameworkElement.AddHandler(element, SourceUpdatedEvent, handler); 128FrameworkElement.RemoveHandler(element, SourceUpdatedEvent, handler); 148FrameworkElement.AddHandler(element, TargetUpdatedEvent, handler); 158FrameworkElement.RemoveHandler(element, TargetUpdatedEvent, handler);
src\Framework\System\Windows\Data\BindingExpression.cs (16)
235if (dp == FrameworkElement.DataContextProperty && d == ContextElement) 243else if (dp == FrameworkElement.LanguageProperty && UsesLanguage && d == TargetElement) 471BaseValueSourceInternal valueSource = d.GetValueSource(FrameworkElement.DataContextProperty, null, out hasModifiers); 712if (TargetProperty == FrameworkElement.DataContextProperty || 717cvs.PropertyForInheritanceContext == FrameworkElement.DataContextProperty) 720contextElement = FrameworkElement.GetFrameworkParent(contextElement); 765source = contextElement.GetValue(FrameworkElement.DataContextProperty); 931object item = contextElement.GetValue(FrameworkElement.DataContextProperty); 1221newSources[offset++] = new WeakDependencySource(_ctxElement, FrameworkElement.DataContextProperty); 1234newSources[offset++] = new WeakDependencySource(TargetElementReference, FrameworkElement.LanguageProperty); 2272item = contextElement.GetValue(FrameworkElement.DataContextProperty); 2420object newItem = contextElement.GetValue(FrameworkElement.DataContextProperty); 2644if (dp == FrameworkElement.DataContextProperty) 2663if (dp == FrameworkElement.LanguageProperty && UsesLanguage && d == TargetElement) 2708ancestor = FrameworkElement.GetFrameworkParent(ancestor)) 2712b = BindingOperations.GetBindingExpression(ancestor, FrameworkElement.DataContextProperty) as BindingExpression;
src\Framework\System\Windows\Data\BindingExpressionBase.cs (5)
1278if (IsInTransfer && (TargetProperty == FrameworkElement.LanguageProperty)) 1295_culture = ((XmlLanguage) target.GetValue(FrameworkElement.LanguageProperty)).GetSpecificCulture(); 1723bg = (BindingGroup)contextElement.GetValue(FrameworkElement.BindingGroupProperty); 1731DependencyProperty dataContextDP = FrameworkElement.DataContextProperty; 1749DependencyProperty bindingGroupDP = FrameworkElement.BindingGroupProperty;
src\Framework\System\Windows\Data\BindingGroup.cs (5)
600if (property == FrameworkElement.BindingGroupProperty && 825object dataContextItem = mentor.GetValue(FrameworkElement.DataContextProperty); 931FrameworkElement fe; 1029mentor.GetValue(FrameworkElement.DataContextProperty) == CollectionView.NewItemPlaceholder) 1319_culture = ((System.Windows.Markup.XmlLanguage) mentor.GetValue(FrameworkElement.LanguageProperty)).GetSpecificCulture();
src\Framework\System\Windows\Data\CollectionViewSource.cs (1)
832XmlLanguage language = (d != null) ? (XmlLanguage)d.GetValue(FrameworkElement.LanguageProperty) : null;
src\Framework\System\Windows\Data\MultiBindingExpression.cs (3)
237WeakDependencySource[] commonSources = new WeakDependencySource[] { new WeakDependencySource(TargetElement, FrameworkElement.LanguageProperty) }; 454commonSources = new WeakDependencySource[] { new WeakDependencySource(TargetElement, FrameworkElement.LanguageProperty) }; 1037if (UsesLanguage && d == TargetElement && dp == FrameworkElement.LanguageProperty)
src\Framework\System\Windows\DataTemplate.cs (1)
186protected override void ValidateTemplatedParent(FrameworkElement templatedParent)
src\Framework\System\Windows\DescendentsWalker.cs (14)
55if (FrameworkElement.DType.IsInstanceOfType(_startNode) || 78if (FrameworkElement.DType.IsInstanceOfType(d)) 80FrameworkElement fe = (FrameworkElement) d; 190FrameworkElement feParent, 233FrameworkElement feParent, bool hasLogicalChildren ) 265FrameworkElement fe = current as FrameworkElement; 306FrameworkElement feParent, bool hasLogicalChildren) 323if (child != null && FrameworkElement.DType.IsInstanceOfType(child)) 328if (VisualTreeHelper.GetParent(child) != ((FrameworkElement) child).Parent) 357private void VisitNode(FrameworkElement fe, bool visitedViaVisualTree) 403if (FrameworkElement.DType.IsInstanceOfType(d)) 405VisitNode(d as FrameworkElement, visitedViaVisualTree);
src\Framework\System\Windows\DescendentsWalkerBase.cs (3)
37if (FrameworkElement.DType.IsInstanceOfType(ancestor)) 39FrameworkElement fe = ancestor as FrameworkElement;
src\Framework\System\Windows\Documents\AdornerDecorator.cs (1)
141/// Override for <seealso cref="FrameworkElement.ArrangeOverride" />
src\Framework\System\Windows\Documents\Block.cs (1)
269FrameworkElement.FlowDirectionProperty.AddOwner(typeof(Block));
src\Framework\System\windows\Documents\CaretElement.cs (7)
132FrameworkElement owner = GetOwnerElement(); 784private static FrameworkElement Debug_RenderScope 788return ((ITextSelection)TextEditor._ThreadLocalStore.FocusedTextSelection).TextView.RenderScope as FrameworkElement; // TextBlock / TextFlow 834private FrameworkElement GetOwnerElement() 839internal static FrameworkElement GetOwnerElement(FrameworkElement uiScope) 851return (FrameworkElement)node;
src\Framework\System\Windows\Documents\FixedDSBuilder.cs (1)
172XmlLanguage language = (XmlLanguage) _fixedPage.GetValue(FrameworkElement.LanguageProperty);
src\Framework\System\Windows\Documents\FixedElement.cs (2)
68FrameworkElement.LanguageProperty.AddOwner( 97FrameworkElement.FlowDirectionProperty.AddOwner(
src\Framework\System\Windows\Documents\FixedHyperlink.cs (2)
104FrameworkElement targetElement = null; 106targetElement = ((IFixedNavigate)ElementHost).FindElementByID(elementID, out rootFixedPage) as FrameworkElement;
src\Framework\System\Windows\Documents\FixedPage.cs (5)
458/// <seealso cref="FrameworkElement.Margin" /> 475/// <seealso cref="FrameworkElement.Margin" /> 492/// <seealso cref="FrameworkElement.Margin" /> 510/// <seealso cref="FrameworkElement.Margin" /> 755private UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent)
src\Framework\System\Windows\Documents\FixedSOMFixedBlock.cs (1)
218element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft);
src\Framework\System\Windows\Documents\FixedSOMTextRun.cs (3)
238element.SetValue(FrameworkElement.LanguageProperty, XmlLanguage.GetLanguage(_cultureInfo.IetfLanguageTag)); 246element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 250element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight);
src\Framework\System\Windows\Documents\FixedTextBuilder.cs (1)
1426public void FindHyperlinkPaths(FrameworkElement elem)
src\Framework\System\Windows\Documents\Floater.cs (1)
82FrameworkElement.HorizontalAlignmentProperty.AddOwner(
src\Framework\System\Windows\Documents\FlowDocument.cs (4)
911else if (element is FrameworkElement) 914while (element is FrameworkElement) 921if (!(parentOfEmbeddedElement is FrameworkElement)) 929textPointer = TextContainerHelper.GetTextPointerForEmbeddedObject((FrameworkElement)element);
src\Framework\System\Windows\Documents\Hyperlink.cs (2)
947FrameworkElement fe = d as FrameworkElement;
src\Framework\System\Windows\Documents\ImmComposition.cs (2)
101internal static ImmComposition GetImmComposition(FrameworkElement scope) 2063private FrameworkElement UiScope
src\Framework\System\Windows\Documents\Inline.cs (1)
139FrameworkElement.FlowDirectionProperty.AddOwner(typeof(Inline));
src\Framework\System\Windows\Documents\RangeContentEnumerator.cs (2)
340FrameworkElement fe = node as FrameworkElement;
src\Framework\System\Windows\Documents\RubberbandSelector.cs (2)
66internal void AttachRubberbandSelector(FrameworkElement scope) 718private FrameworkElement _uiScope; // parent of _scope, if _scope is a DocumentGrid.
src\Framework\System\Windows\Documents\Speller.cs (3)
333return property == FrameworkElement.LanguageProperty || 1601_textEditor.UiScope.GetValueSource(FrameworkElement.LanguageProperty, null, out hasModifiers) == BaseValueSourceInternal.Default) 1608language = (XmlLanguage)position.GetValue(FrameworkElement.LanguageProperty);
src\Framework\System\Windows\Documents\TextContainer.cs (2)
185internal void EnableUndo(FrameworkElement uiScope) 193internal void DisableUndo(FrameworkElement uiScope)
src\Framework\System\windows\Documents\TextEditor.cs (25)
62internal TextEditor(ITextContainer textContainer, FrameworkElement uiScope, bool isUndoEnabled) 322internal static ITextSelection GetTextSelection(FrameworkElement frameworkElement) 497XmlLanguage language = (XmlLanguage)((ITextPointer)range.Start).GetValue(FrameworkElement.LanguageProperty); 505range.ApplyPropertyValue(FrameworkElement.LanguageProperty, XmlLanguage.GetLanguage(inputCultureInfo.IetfLanguageTag)); 520FlowDirection currentFlowDirection = (FlowDirection)((ITextPointer)range.Start).GetValue(FrameworkElement.FlowDirectionProperty); 526range.ApplyPropertyValue(FrameworkElement.FlowDirectionProperty, inputFlowDirection); 872internal FrameworkElement UiScope 1304if ((source is FrameworkElement) && ((FrameworkElement)source).TemplatedParent == this.UiScope) 1362internal FrameworkElement _Scroller 1366FrameworkElement scroller = this.TextView == null ? null : (this.TextView.RenderScope as FrameworkElement); 1370scroller = FrameworkElement.GetFrameworkParent(scroller) as FrameworkElement; 1674TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1691FrameworkElement frameworkElement = sender as FrameworkElement; 1734TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1794TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1834TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1878TextEditor This = TextEditor._GetTextEditor((FrameworkElement)target); 1904TextEditor This = TextEditor._GetTextEditor((FrameworkElement)target); 1930TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 1950TextEditor This = TextEditor._GetTextEditor((FrameworkElement)sender); 2041private FrameworkElement _uiScope;
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (8)
42EventManager.RegisterClassHandler(controlType, FrameworkElement.ContextMenuOpeningEvent, new ContextMenuEventHandler(OnContextMenuOpening)); 86contextMenu = (ContextMenu)e.TargetElement.GetValue(FrameworkElement.ContextMenuProperty); 99contextMenu = (ContextMenu)element.GetValue(FrameworkElement.ContextMenuProperty); 141if (This.UiScope.ReadLocalValue(FrameworkElement.ContextMenuProperty) == null) 286FrameworkElement element = This.TextView.RenderScope as FrameworkElement; 302element = visual as FrameworkElement; 357private static void ClipToElement(FrameworkElement element, GeneralTransform transform,
src\Framework\System\windows\Documents\TextEditorCopyPaste.cs (3)
894else if (element is FrameworkElement) 896((TextSelection)This.Selection).InsertEmbeddedUIElement((FrameworkElement)element); 1192private static bool ConfirmDataFormatSetting(FrameworkElement uiScope, IDataObject dataObject, string format)
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (1)
376FrameworkElement scroller = _textEditor._Scroller;
src\Framework\System\windows\Documents\TextEditorMouse.cs (3)
526FrameworkElement scroller = This._Scroller; 804if (hitElement is FrameworkElement && ((FrameworkElement)hitElement).TemplatedParent == textEditor.UiScope)
src\Framework\System\windows\Documents\TextEditorParagraphs.cs (2)
159TextEditorCharacters._OnApplyProperty(This, FrameworkElement.FlowDirectionProperty, 169TextEditorCharacters._OnApplyProperty(This, FrameworkElement.FlowDirectionProperty,
src\Framework\System\windows\Documents\TextEditorSelection.cs (1)
2456return (FlowDirection)navigator.GetValue(FrameworkElement.FlowDirectionProperty);
src\Framework\System\windows\Documents\TextEditorSpelling.cs (1)
166XmlLanguage language = (XmlLanguage)spellingError.Start.GetValue(FrameworkElement.LanguageProperty);
src\Framework\System\windows\Documents\TextEditorTyping.cs (4)
1256UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1257This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1272UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 1273This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft);
src\Framework\System\Windows\Documents\TextPointer.cs (2)
3820internal FrameworkElement ContainingFrameworkElement 3824return ((FrameworkElement)_tree.Parent);
src\Framework\System\Windows\Documents\TextPointerBase.cs (2)
897if (templatedParent == null && ((FlowDocumentView)textView.RenderScope).Parent is FrameworkElement) 899templatedParent = ((FrameworkElement)((FlowDocumentView)textView.RenderScope).Parent).TemplatedParent as Visual;
src\Framework\System\Windows\Documents\TextRange.cs (4)
1019internal void InsertEmbeddedUIElement(FrameworkElement embeddedElement) 1309internal FrameworkElement ContainingFrameworkElement 1571internal virtual void InsertEmbeddedUIElementVirtual(FrameworkElement embeddedElement) 1631if (formattingProperty == FrameworkElement.FlowDirectionProperty)
src\Framework\System\Windows\Documents\TextRangeEdit.cs (10)
845parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 849parentFlowDirection = (FlowDirection)FrameworkElement.FlowDirectionProperty.GetDefaultValue(typeof(FrameworkElement)); 888UIElementPropertyUndoUnit.Add(block.TextContainer, embeddedElement, FrameworkElement.HorizontalAlignmentProperty, horizontalAlignment); 889embeddedElement.SetValue(FrameworkElement.HorizontalAlignmentProperty, horizontalAlignment); 1324FlowDirection midpointFlowDirection = (FlowDirection)commonAncestor.GetValue(FrameworkElement.FlowDirectionProperty); 1325FlowDirection previousFlowDirection = (FlowDirection)previousRun.GetValue(FrameworkElement.FlowDirectionProperty); 1326FlowDirection nextFlowDirection = (FlowDirection)nextRun.GetValue(FrameworkElement.FlowDirectionProperty); 1338SetStructuralInlineProperty(scopingPreviousInline.ElementStart, scopingNextInline.ElementEnd, FrameworkElement.FlowDirectionProperty, previousFlowDirection); 1863while ((FlowDirection)inline.Parent.GetValue(FrameworkElement.FlowDirectionProperty) == flowDirection)
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (3)
1257FrameworkElement embeddedElement = null; 1260embeddedElement = ((BlockUIContainer)uiContainer).Child as FrameworkElement; 1268embeddedElement = ((InlineUIContainer)uiContainer).Child as FrameworkElement;
src\Framework\System\Windows\Documents\TextSchema.cs (18)
45FrameworkElement.LanguageProperty, 46FrameworkElement.FlowDirectionProperty, 1168FrameworkElement.LanguageProperty, 1172FrameworkElement.LayoutTransformProperty, 1173FrameworkElement.WidthProperty, 1174FrameworkElement.MinWidthProperty, 1175FrameworkElement.MaxWidthProperty, 1176FrameworkElement.HeightProperty, 1177FrameworkElement.MinHeightProperty, 1178FrameworkElement.MaxHeightProperty, 1180FrameworkElement.MarginProperty, 1181FrameworkElement.HorizontalAlignmentProperty, 1182FrameworkElement.VerticalAlignmentProperty, 1184FrameworkElement.CursorProperty, 1185FrameworkElement.ForceCursorProperty, 1187FrameworkElement.ToolTipProperty, 1226FrameworkElement.FlowDirectionProperty, 1227FrameworkElement.LanguageProperty,
src\Framework\System\windows\Documents\TextSelection.cs (14)
331FrameworkElement uiScope = UiScope; 332FrameworkElement owner = CaretElement.GetOwnerElement(uiScope); 513FlowDirection initialFlowDirection = (FlowDirection)caretPosition.GetValue(FrameworkElement.FlowDirectionProperty); 518initialFlowDirection == (FlowDirection)caretPosition.GetValue(FrameworkElement.FlowDirectionProperty) && 1257internal override void InsertEmbeddedUIElementVirtual(FrameworkElement embeddedElement) 1286formattingProperty != FrameworkElement.FlowDirectionProperty) // We dont want to apply flowdirection property to inlines when selection is empty. 1498inheritableProperties[i] != FrameworkElement.LanguageProperty && 1499inheritableProperties[i] != FrameworkElement.FlowDirectionProperty && 2275FlowDirection flowDirection = (FlowDirection)focusedTextSelection.Start.GetValue(FrameworkElement.FlowDirectionProperty); 2401FlowDirection uiScopeflowDirection = (FlowDirection)textEditor.UiScope.GetValue(FrameworkElement.FlowDirectionProperty); 2591if (element is FrameworkElement || element is FrameworkContentElement) 2594if (parent == null && element is FrameworkElement) 2596parent = ((FrameworkElement)element).TemplatedParent; 2676private FrameworkElement UiScope
src\Framework\System\Windows\Documents\TextStore.cs (1)
1967internal FrameworkElement UiScope
src\Framework\System\Windows\Documents\TextTreeNode.cs (1)
341if (objectNode.EmbeddedElement is FrameworkElement)
src\Framework\System\Windows\EventTrigger.cs (8)
263FrameworkElement _source; 275internal static void ProcessTriggerCollection( FrameworkElement triggersHost ) 297internal static void ProcessOneTrigger( FrameworkElement triggersHost, TriggerBase triggerBase ) 313eventTrigger._source = FrameworkElement.FindNamedFrameworkElement( triggersHost, eventTrigger.SourceName ); 336internal static void DisconnectAllTriggers( FrameworkElement triggersHost ) 357internal static void DisconnectOneTrigger( FrameworkElement triggersHost, TriggerBase triggerBase ) 376internal EventTriggerSourceListener( EventTrigger trigger, FrameworkElement host ) 393private FrameworkElement _owningTriggerHost;
src\Framework\System\Windows\FrameworkContentElement.cs (43)
129FrameworkElement.StyleProperty.AddOwner( 175= FrameworkElement.OverridesDefaultStyleProperty.AddOwner(typeof(FrameworkContentElement), 194FrameworkElement.DefaultStyleKeyProperty.AddOwner( 366object resource = FrameworkElement.FindResourceInternal(null /* fe */, this, resourceKey); 396object resource = FrameworkElement.FindResourceInternal(null /* fe */, this, resourceKey); 540object implicitValue = FrameworkElement.FindImplicitStyleResource(this, this.GetType(), out source); 580FrameworkElement parentFE; 581bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE); 644hasParent = FrameworkElement.GetFrameworkParent(parentFE, out parentFE, out parentFCE); 648hasParent = FrameworkElement.GetFrameworkParent(parentFCE, out parentFE, out parentFCE); 668FrameworkElement feTemplatedParent = (FrameworkElement)_templatedParent; 725if (dp == FrameworkElement.NameProperty && 742FrameworkElement feTemplatedParent = TemplatedParent as FrameworkElement; 841FrameworkElement.NameProperty.AddOwner( 860FrameworkElement.TagProperty.AddOwner( 881FrameworkElement.LanguageProperty.AddOwner( 905FrameworkElement.FocusVisualStyleProperty.AddOwner(typeof(FrameworkContentElement), 906new FrameworkPropertyMetadata(FrameworkElement.DefaultFocusVisualStyle)); 921FrameworkElement.CursorProperty.AddOwner( 953FrameworkElement.ForceCursorProperty.AddOwner( 1084args.RoutedEvent=FrameworkElement.RequestBringIntoViewEvent; 1138FrameworkElement.DataContextProperty.AddOwner( 1157add { EventHandlersStoreAdd(FrameworkElement.DataContextChangedKey, value); } 1158remove { EventHandlersStoreRemove(FrameworkElement.DataContextChangedKey, value); } 1177((FrameworkContentElement) d).RaiseDependencyPropertyChanged(FrameworkElement.DataContextChangedKey, e); 1215FrameworkElement.BindingGroupProperty.AddOwner( 1361FrameworkElement.AddIntermediateElementsToRoute(this, route, args, LogicalTreeHelper.GetParent(branchNode)); 1395FrameworkElement.AddStyleHandlersToEventRoute(null, this, route, args); 1426continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(this, LogicalTreeHelper.GetParent(branchNode)); 1607add { EventHandlersStoreAdd(FrameworkElement.InitializedKey, value); } 1608remove { EventHandlersStoreRemove(FrameworkElement.InitializedKey, value); } 1630RaiseInitialized(FrameworkElement.InitializedKey, e); 1672= FrameworkElement.LoadedPendingProperty.AddOwner(typeof(FrameworkContentElement)); 1679= FrameworkElement.UnloadedPendingProperty.AddOwner(typeof(FrameworkContentElement)); 1727public static readonly RoutedEvent LoadedEvent = FrameworkElement.LoadedEvent.AddOwner( typeof(FrameworkContentElement)); 1737AddHandler(FrameworkElement.LoadedEvent, value, false); 1741RemoveHandler(FrameworkElement.LoadedEvent, value); 1758public static readonly RoutedEvent UnloadedEvent = FrameworkElement.UnloadedEvent.AddOwner( typeof(FrameworkContentElement)); 1767AddHandler(FrameworkElement.UnloadedEvent, value, false); 1771RemoveHandler(FrameworkElement.UnloadedEvent, value); 2200private static readonly UncommonField<ResourceDictionary> ResourcesField = FrameworkElement.ResourcesField;
src\Framework\System\Windows\FrameworkElement.cs (97)
111static private readonly Type _typeofThis = typeof(FrameworkElement); 143FrameworkElement.EnsureFrameworkServices(); 181FrameworkElement fe = (FrameworkElement) d; 213typeof(FrameworkElement), 232FrameworkElement fe = (FrameworkElement)d; 262((FrameworkElement)d).UpdateThemeStyleProperty(); 282FrameworkElement fe = (FrameworkElement) d; 480internal static FrameworkElement FindNamedFrameworkElement( FrameworkElement startElement, string targetName ) 482FrameworkElement targetFE = null; 620internal virtual FrameworkElement StateGroupsRoot 624return _templateChild as FrameworkElement; 839object resource = FrameworkElement.FindResourceInternal(this, null /* fce */, resourceKey); 870object resource = FrameworkElement.FindResourceInternal(this, null /* fce */, resourceKey); 884internal static object FindImplicitStyleResource(FrameworkElement fe, object resourceKey, out object source) 908FrameworkElement.StyleProperty, // dp 992internal static object FindResourceInternal(FrameworkElement fe, FrameworkContentElement fce, object resourceKey) 1021return FrameworkElement.FindResourceInternal(null, // fe 1035FrameworkElement fe, 1164FrameworkElement feStart, 1211FrameworkElement fe = fo.FE; 1633private static ResourceDictionary GetInstanceResourceDictionary(FrameworkElement fe, FrameworkContentElement fce) 1657private static ResourceDictionary GetStyleResourceDictionary(FrameworkElement fe, FrameworkContentElement fce) 1697private static ResourceDictionary GetThemeStyleResourceDictionary(FrameworkElement fe, FrameworkContentElement fce) 1737private static ResourceDictionary GetTemplateResourceDictionary(FrameworkElement fe, FrameworkContentElement fce) 1888object implicitValue = FrameworkElement.FindImplicitStyleResource(this, this.GetType(), out source); 1945FrameworkElement feTemplatedParent = (FrameworkElement)_templatedParent; 1977FrameworkElement parentFE; 2087if (dp == FrameworkElement.NameProperty && 2104FrameworkElement feTemplatedParent = TemplatedParent as FrameworkElement; 2233if(FrameworkElement.DType.IsInstanceOfType(layoutParent)) 2234((FrameworkElement)layoutParent).ParentLayoutInvalidated(this); 2292internal static bool GetFrameworkParent(FrameworkElement current, out FrameworkElement feParent, out FrameworkContentElement fceParent) 2305internal static bool GetFrameworkParent(FrameworkContentElement current, out FrameworkElement feParent, out FrameworkContentElement fceParent) 2317internal static bool GetContainingFrameworkElement(DependencyObject current, out FrameworkElement fe, out FrameworkContentElement fce) 2385EventManager.RegisterClassHandler(_typeofThis, Mouse.QueryCursorEvent, new QueryCursorEventHandler(FrameworkElement.OnQueryCursorOverride), true); 2416typeof(FrameworkElement), 2424FrameworkElement fe = (FrameworkElement) d; 2480if (newParent != null && (newParent is FrameworkElement) == false) 2494else if (oldParent != null && (oldParent is FrameworkElement) == false) 2542FrameworkElement feParent = null; 2546FrameworkElement.GetContainingFrameworkElement(VisualTreeHelper.GetParent(this), out feParent, out fceParent); 2577FrameworkElement.GetContainingFrameworkElement(e.OldParent, out feParent, out fceParent); 2746((FrameworkElement) d).RaiseDependencyPropertyChanged(DataContextChangedKey, e); 2931FrameworkElement.AddIntermediateElementsToRoute(this, route, args, LogicalTreeHelper.GetParent(branchNode)); 2986FrameworkElement fe, 3032FrameworkElement feTemplatedParent = templatedParent as FrameworkElement; 3126continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(this, LogicalTreeHelper.GetParent(branchNode)); 3350FrameworkElement fe = (FrameworkElement) d; 3395FrameworkElement fe = (FrameworkElement) d; 3453FrameworkElement fe = (FrameworkElement)d; 3478FrameworkElement fe = (FrameworkElement)d; 3664FrameworkElement fe = d as FrameworkElement; 3678FrameworkElement fe = d as FrameworkElement; 3886FrameworkElement fe = ((FrameworkElement)d); 3921FrameworkElement fe = ((FrameworkElement)d); 3931FrameworkElement fe = (FrameworkElement) sender; 3970internal static bool ShouldApplyMirrorTransform(FrameworkElement fe) 3987FrameworkElement parentFE; 4017FrameworkElement fe = v as FrameworkElement; 4058internal MinMax(FrameworkElement e) 5149FrameworkElement fe = element as FrameworkElement; 5339FrameworkElement fe = (FrameworkElement)sender; 5365FrameworkElement fe = (FrameworkElement)sender; 5533((FrameworkElement) o).HasNumberSubstitutionChanged = true; 5537private static bool ShouldUseSystemFont(FrameworkElement fe, DependencyProperty dp) 5552if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontFamilyProperty)) 5563if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontSizeProperty)) 5574if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontStyleProperty)) 5585if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontWeightProperty)) 5964((FrameworkElement)sender).OnToolTipOpening(e); 5996((FrameworkElement)sender).OnToolTipClosing(e); 6029((FrameworkElement)sender).OnContextMenuOpening(e); 6056((FrameworkElement)sender).OnContextMenuClosing(e); 6101FrameworkElement fe = uiElement as FrameworkElement;
src\Framework\System\Windows\FrameworkElementFactory.cs (14)
91if (!typeof(FrameworkElement).IsAssignableFrom(value) && 353if ( (routedEvent == FrameworkElement.LoadedEvent) 354||(routedEvent == FrameworkElement.UnloadedEvent)) 391if ( (routedEvent == FrameworkElement.LoadedEvent) 392||(routedEvent == FrameworkElement.UnloadedEvent)) 394if ( !_eventHandlersStore.Contains(FrameworkElement.LoadedEvent) 395&&!_eventHandlersStore.Contains(FrameworkElement.UnloadedEvent)) 669FrameworkElement containerAsFE = container as FrameworkElement; 1033bool treeNodeIsFE, FrameworkElement treeNodeFE, FrameworkContentElement treeNodeFCE, 1072FrameworkElement treeNodeFE, FrameworkContentElement treeNodeFCE ) 1091FrameworkElement treeNodeFE, FrameworkContentElement treeNodeFCE ) 1112bool treeNodeIsFE, FrameworkElement treeNodeFE, FrameworkContentElement treeNodeFCE) 1135bool treeNodeIsFE, FrameworkElement treeNodeFE, FrameworkContentElement treeNodeFCE)
src\Framework\System\Windows\FrameworkTemplate.cs (15)
65protected virtual void ValidateTemplatedParent(FrameworkElement templatedParent) 307public Object FindName(string name, FrameworkElement templatedParent) 390typeof(FrameworkElement).Name, templateRoot.Type.Name)); 484FrameworkElement container) 629internal virtual bool BuildVisualTree(FrameworkElement container) 918FrameworkElement feContainer = container as FrameworkElement; 1118FrameworkElement feContainer, 1125(createdObject is FrameworkElement || createdObject is FrameworkContentElement)) 1137FrameworkElement feContainer, 1140if (createdObject is FrameworkElement || createdObject is FrameworkContentElement) 1153private static DependencyObject WireRootObjectToParent(object createdObject, DependencyObject rootObject, DependencyObject container, FrameworkElement feContainer, INameScope nameScope) 1169Debug.Assert(!(rootElement is FrameworkElement) || 1170((FrameworkElement)rootElement).TemplateChildIndex != -1); 1175FrameworkElement feResult;
src\Framework\System\Windows\Generated\FrameworkContentElement.cs (14)
74INameScope nameScope = FrameworkElement.FindScope(this); 92INameScope nameScope = FrameworkElement.FindScope(this); 118INameScope nameScope = FrameworkElement.FindScope(this, out scopeOwner); 331IsParentAnFE = newParent is FrameworkElement; 456RaiseClrEvent(FrameworkElement.ResourcesChangedKey, EventArgs.Empty); 495FrameworkElement.GetTemplatedParentChildRecord(templatedParent, childIndex, out childRecord, out isChildRecordValid); 497FrameworkElement parentFE; 499bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE); 785&& FrameworkElement.GetFrameworkParent(this) == null 1022Delegate handler = store.Get(FrameworkElement.InheritedPropertyChangedKey); 1205EventHandlersStoreAdd(FrameworkElement.ResourcesChangedKey, value); 1207remove { EventHandlersStoreRemove(FrameworkElement.ResourcesChangedKey, value); } 1225EventHandlersStoreAdd(FrameworkElement.InheritedPropertyChangedKey, value); 1227remove { EventHandlersStoreRemove(FrameworkElement.InheritedPropertyChangedKey, value); }
src\Framework\System\Windows\Generated\FrameworkElement.cs (15)
74INameScope nameScope = FrameworkElement.FindScope(this); 92INameScope nameScope = FrameworkElement.FindScope(this); 118INameScope nameScope = FrameworkElement.FindScope(this, out scopeOwner); 331IsParentAnFE = newParent is FrameworkElement; 448RaiseClrEvent(FrameworkElement.ResourcesChangedKey, EventArgs.Empty); 510FrameworkElement.GetTemplatedParentChildRecord(templatedParent, childIndex, out childRecord, out isChildRecordValid); 512FrameworkElement parentFE; 514bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE); 815&& FrameworkElement.GetFrameworkParent(this) == null 1052Delegate handler = store.Get(FrameworkElement.InheritedPropertyChangedKey); 1247EventHandlersStoreAdd(FrameworkElement.ResourcesChangedKey, value); 1249remove { EventHandlersStoreRemove(FrameworkElement.ResourcesChangedKey, value); } 1272EventHandlersStoreAdd(FrameworkElement.InheritedPropertyChangedKey, value); 1274remove { EventHandlersStoreRemove(FrameworkElement.InheritedPropertyChangedKey, value); } 1289internal new static DependencyObjectType DType = DependencyObjectType.FromSystemTypeInternal(typeof(FrameworkElement));
src\Framework\System\Windows\Input\KeyboardNavigation.cs (11)
911FrameworkElement fe = element as FrameworkElement; 922if (fvs == FrameworkElement.DefaultFocusVisualStyle) 949if (fvs == FrameworkElement.DefaultFocusVisualStyle) 1235return FrameworkElement.KeyboardNavigation; 1400FrameworkElement viewportBoundsElement, 1424FrameworkElement viewportBoundsElement, 2000FrameworkElement fe = e as FrameworkElement; 2568FrameworkElement header = tvi.TryGetHeaderElement(); 3084FrameworkElement viewportBoundsElement,
src\Framework\System\Windows\Interop\ActiveXHost.cs (1)
86invalidatorMap[FrameworkElement.IsEnabledProperty] = new PropertyInvalidator(OnIsEnabledInvalidated);
src\Framework\System\Windows\LogicalTreeHelper.cs (15)
137FrameworkElement fe = current as FrameworkElement; 164FrameworkElement fe = current as FrameworkElement; 182public static IEnumerable GetChildren(FrameworkElement current) 215FrameworkElement fe = current as FrameworkElement; 394FrameworkElement parentFE = parent as FrameworkElement; 410internal static void AddLogicalChild(FrameworkElement parentFE, FrameworkContentElement parentFCE, object child) 429FrameworkElement parentFE = parent as FrameworkElement; 445internal static void RemoveLogicalChild(FrameworkElement parentFE, FrameworkContentElement parentFCE, object child) 463FrameworkElement fe = current as FrameworkElement;
src\Framework\System\Windows\LostFocusEventManager.cs (2)
111FrameworkElement fe; 127FrameworkElement fe;
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (2)
79case 4: assembly = typeof(System.Windows.FrameworkElement).Assembly; break; 318case 226: t = () => typeof(FrameworkElement); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (43)
2469Type type = typeof(System.Windows.FrameworkElement); 2470DependencyProperty dp = System.Windows.FrameworkElement.FlowDirectionProperty; 2472this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2486Type type = typeof(System.Windows.FrameworkElement); 2487DependencyProperty dp = System.Windows.FrameworkElement.HeightProperty; 2489this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2503Type type = typeof(System.Windows.FrameworkElement); 2504DependencyProperty dp = System.Windows.FrameworkElement.HorizontalAlignmentProperty; 2506this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2520Type type = typeof(System.Windows.FrameworkElement); 2521DependencyProperty dp = System.Windows.FrameworkElement.MarginProperty; 2523this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2537Type type = typeof(System.Windows.FrameworkElement); 2538DependencyProperty dp = System.Windows.FrameworkElement.MaxHeightProperty; 2540this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2554Type type = typeof(System.Windows.FrameworkElement); 2555DependencyProperty dp = System.Windows.FrameworkElement.MaxWidthProperty; 2557this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2571Type type = typeof(System.Windows.FrameworkElement); 2572DependencyProperty dp = System.Windows.FrameworkElement.MinHeightProperty; 2574this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2588Type type = typeof(System.Windows.FrameworkElement); 2589DependencyProperty dp = System.Windows.FrameworkElement.MinWidthProperty; 2591this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2605Type type = typeof(System.Windows.FrameworkElement); 2606DependencyProperty dp = System.Windows.FrameworkElement.NameProperty; 2608this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2622Type type = typeof(System.Windows.FrameworkElement); 2623DependencyProperty dp = System.Windows.FrameworkElement.StyleProperty; 2625this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2638Type type = typeof(System.Windows.FrameworkElement); 2639DependencyProperty dp = System.Windows.FrameworkElement.VerticalAlignmentProperty; 2641this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 2655Type type = typeof(System.Windows.FrameworkElement); 2656DependencyProperty dp = System.Windows.FrameworkElement.WidthProperty; 2658this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 6318Type type = typeof(System.Windows.FrameworkElement); 6320this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 6327bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.FrameworkElement)target).Resources = (System.Windows.ResourceDictionary)value; }; 6328bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.FrameworkElement)target).Resources; }; 8211Type type = typeof(System.Windows.FrameworkElement); 8213this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType 8219bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.FrameworkElement)target).Triggers; };
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4541typeof(System.Windows.FrameworkElement),
src\Framework\System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (1)
113case 4: assembly = new Baml6Assembly(typeof(System.Windows.FrameworkElement).Assembly); break;
src\Framework\System\Windows\Markup\BamlRecordReader.cs (2)
4142FrameworkElement feParent; 4224result = FrameworkElement.FindResourceFromAppOrSystem(resourceNameObject, out source, false /*throwOnError*/, allowDeferredResourceReference, mustReturnDeferredResourceReference);
src\Framework\System\Windows\Markup\KnownTypes.cs (13)
1773return System.Windows.FrameworkElement.FlowDirectionProperty; 1775return System.Windows.FrameworkElement.HeightProperty; 1777return System.Windows.FrameworkElement.HorizontalAlignmentProperty; 1779return System.Windows.FrameworkElement.MarginProperty; 1781return System.Windows.FrameworkElement.MaxHeightProperty; 1783return System.Windows.FrameworkElement.MaxWidthProperty; 1785return System.Windows.FrameworkElement.MinHeightProperty; 1787return System.Windows.FrameworkElement.MinWidthProperty; 1789return System.Windows.FrameworkElement.NameProperty; 1791return System.Windows.FrameworkElement.StyleProperty; 1793return System.Windows.FrameworkElement.VerticalAlignmentProperty; 1795return System.Windows.FrameworkElement.WidthProperty; 5770case KnownElements.FrameworkElement: t = typeof(System.Windows.FrameworkElement); break;
src\Framework\System\Windows\Markup\RoutedEventConverter.cs (1)
102type = typeof(FrameworkElement);
src\Framework\System\Windows\Media\Animation\BeginStoryboard.cs (2)
177internal sealed override void Invoke( FrameworkElement fe, FrameworkContentElement fce, Style targetStyle, FrameworkTemplate frameworkTemplate, Int64 layer ) 196internal sealed override void Invoke( FrameworkElement fe )
src\Framework\System\Windows\Media\Animation\ControllableStoryboardAction.cs (4)
59internal sealed override void Invoke( FrameworkElement fe, FrameworkContentElement fce, Style targetStyle, FrameworkTemplate frameworkTemplate, Int64 layer ) 79internal sealed override void Invoke( FrameworkElement fe ) 86internal virtual void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard ) 93private Storyboard GetStoryboard( FrameworkElement fe, FrameworkContentElement fce, INameScope nameScope )
src\Framework\System\Windows\Media\Animation\PauseStoryboard.cs (1)
24internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
src\Framework\System\Windows\Media\Animation\RemoveStoryboard.cs (1)
24internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
src\Framework\System\Windows\Media\Animation\ResumeStoryboard.cs (1)
24internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
src\Framework\System\Windows\Media\Animation\SeekStoryboard.cs (1)
89internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
src\Framework\System\Windows\Media\Animation\SetStoryboardSpeedRatio.cs (1)
47internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
src\Framework\System\Windows\Media\Animation\SkipStoryboardToFill.cs (1)
24internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
src\Framework\System\Windows\Media\Animation\StopStoryboard.cs (1)
24internal override void Invoke( FrameworkElement containingFE, FrameworkContentElement containingFCE, Storyboard storyboard )
src\Framework\System\Windows\Media\Animation\Storyboard.cs (27)
247FrameworkElement fe = element as FrameworkElement; 308FrameworkElement fe, 437targetObject = containingObject as FrameworkElement; 931if( FrameworkElement.DType.IsInstanceOfType(targetObject) ) 1066public void Begin( FrameworkElement containingObject ) 1074public void Begin( FrameworkElement containingObject, HandoffBehavior handoffBehavior ) 1082public void Begin( FrameworkElement containingObject, bool isControllable ) 1090public void Begin( FrameworkElement containingObject, HandoffBehavior handoffBehavior, bool isControllable ) 1098public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate ) 1106public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate, HandoffBehavior handoffBehavior ) 1114public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate, bool isControllable ) 1122public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate, HandoffBehavior handoffBehavior, bool isControllable ) 1292public Nullable<Double> GetCurrentGlobalSpeed( FrameworkElement containingObject ) 1341public Nullable<Int32> GetCurrentIteration( FrameworkElement containingObject ) 1390public Nullable<Double> GetCurrentProgress( FrameworkElement containingObject ) 1438public ClockState GetCurrentState( FrameworkElement containingObject ) 1477public Nullable<TimeSpan> GetCurrentTime( FrameworkElement containingObject ) 1526public bool GetIsPaused( FrameworkElement containingObject ) 1567public void Pause( FrameworkElement containingObject ) 1612public void Remove(FrameworkElement containingObject) 1661public void Resume( FrameworkElement containingObject ) 1708public void Seek( FrameworkElement containingObject, TimeSpan offset, TimeSeekOrigin origin ) 1759public void SeekAlignedToLastTick( FrameworkElement containingObject, TimeSpan offset, TimeSeekOrigin origin ) 1810public void SetSpeedRatio( FrameworkElement containingObject, double speedRatio ) 1849public void SkipToFill( FrameworkElement containingObject ) 1886public void Stop( FrameworkElement containingObject )
src\Framework\System\Windows\Navigation\NavigationService.cs (9)
399FrameworkElement fe = _bp as FrameworkElement; 433FrameworkElement fe = elem as FrameworkElement; 827FrameworkElement fe = INavigatorHost as FrameworkElement; 2500FrameworkElement fe = _bp as FrameworkElement; 2792((FrameworkElement)_bp).Loaded -= OnContentLoaded;
src\Framework\System\Windows\Navigation\NavigationWindow.cs (4)
463FrameworkElement root = (this.GetVisualChild(0)) as FrameworkElement; 1102FrameworkElement journalEntryUIElem = e.Parameter as FrameworkElement;
src\Framework\System\Windows\ResourceDictionary.cs (12)
1479FrameworkElement fe = owner as FrameworkElement; 1562FrameworkElement fe = owner as FrameworkElement; 1620FrameworkElement fe = owner as FrameworkElement; 1674FrameworkElement fe = o as FrameworkElement; 1970FrameworkElement fe = o as FrameworkElement; 2024FrameworkElement fe = o as FrameworkElement;
src\Framework\System\Windows\ResourceReferenceExpression.cs (6)
114FrameworkElement mentorFE; 132FrameworkElement fe; 137resource = FrameworkElement.FindResourceInternal(fe, 151resource = FrameworkElement.FindResourceFromAppOrSystem(_resourceKey, 238if (!(_targetObject is FrameworkElement) && !(_targetObject is FrameworkContentElement)) 312FrameworkElement mentorFE;
src\Framework\System\Windows\Setter.cs (3)
83if( property == FrameworkElement.NameProperty) 85throw new InvalidOperationException(SR.Get(SRID.CannotHavePropertyInStyle, FrameworkElement.NameProperty.Name)); 109if (dp == FrameworkElement.StyleProperty)
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (4)
401var rootElement = (FrameworkElement)VisualTreeHelper.GetChild(_window, 0); 1533var rootElement = (FrameworkElement)VisualTreeHelper.GetChild(_window, 0);
src\Framework\System\Windows\StaticResourceExtension.cs (2)
226XamlType feXType = schemaContext.GetXamlType(typeof(FrameworkElement)); 313val = FrameworkElement.FindResourceFromAppOrSystem(ResourceKey,
src\Framework\System\Windows\Style.cs (3)
186if (!typeof(FrameworkElement).IsAssignableFrom(value) && 705if (eventSetter.Event == FrameworkElement.LoadedEvent || eventSetter.Event == FrameworkElement.UnloadedEvent)
src\Framework\System\Windows\StyleHelper.cs (81)
54FrameworkElement fe, 93FrameworkElement fe, 114if (StyleHelper.IsSetOnContainer(FrameworkElement.OverridesDefaultStyleProperty, ref newThemeStyle.ContainerDependents, true)) 133if(ShouldGetValueFromStyle ( FrameworkElement.DefaultStyleKeyProperty ) ) 163internal static Style GetThemeStyle(FrameworkElement fe, FrameworkContentElement fce) 182if(ShouldGetValueFromStyle ( FrameworkElement.DefaultStyleKeyProperty ) ) 256FrameworkElement.StyleProperty.GetMetadata(themeStyleTypeKey); 273FrameworkElement.OnThemeStyleChanged(fe, oldThemeStyle, newThemeStyle); 291FrameworkElement fe, 458if (StyleHelper.IsSetOnContainer(FrameworkElement.StyleProperty, ref containerDependents, true)) 460throw new InvalidOperationException(SR.Get(SRID.CannotHavePropertyInTemplate, FrameworkElement.StyleProperty.Name)); 465if (StyleHelper.IsSetOnContainer(FrameworkElement.DefaultStyleKeyProperty, ref containerDependents, true)) 467throw new InvalidOperationException(SR.Get(SRID.CannotHavePropertyInTemplate, FrameworkElement.DefaultStyleKeyProperty.Name)); 472if (StyleHelper.IsSetOnContainer(FrameworkElement.OverridesDefaultStyleProperty, ref containerDependents, true)) 474throw new InvalidOperationException(SR.Get(SRID.CannotHavePropertyInTemplate, FrameworkElement.OverridesDefaultStyleProperty.Name)); 479if (StyleHelper.IsSetOnContainer(FrameworkElement.NameProperty, ref containerDependents, true)) 481throw new InvalidOperationException(SR.Get(SRID.CannotHavePropertyInTemplate, FrameworkElement.NameProperty.Name)); 1162if ( (eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent) 1163||(eventTrigger.RoutedEvent == FrameworkElement.UnloadedEvent)) 1197if (eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent 1199eventTrigger.RoutedEvent == FrameworkElement.UnloadedEvent ) 1210if( eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent ) 1337FrameworkElement fe, 1372FrameworkElement fe, 1435FrameworkElement fe, 1502Debug.Assert((container is FrameworkElement) || (container is FrameworkContentElement), "Caller has queried with non-framework element. Bad caller, bad!"); 1545FrameworkElement feChild; 1781FrameworkElement feContainer = container as FrameworkElement; 1818Debug.Assert(treeRoot is FrameworkElement || treeRoot is FrameworkContentElement, 1866Debug.Assert(treeRoot == null || treeRoot is FrameworkElement || treeRoot is FrameworkContentElement, 1940internal static void AddCustomTemplateRoot( FrameworkElement container, UIElement child ) 1948FrameworkElement container, 1968FrameworkElement parent = VisualTreeHelper.GetParent(child) as FrameworkElement; 2056FrameworkElement feWalkNode; 2134FrameworkElement feContainer, 2186FrameworkElement feContainer, 2219FrameworkElement feContainer, 2241FrameworkElement fe; 2333out FrameworkElement fe, out FrameworkContentElement fce, 2336if (FrameworkElement.DType.IsInstanceOfType(d)) 2338fe = (FrameworkElement)d; 2401Debug.Assert(sender is FrameworkElement || sender is FrameworkContentElement, 2404FrameworkElement fe; 2456Debug.Assert(sender is FrameworkElement || sender is FrameworkContentElement, 2459FrameworkElement fe; 2481FrameworkElement feTemplatedParent; 2504FrameworkElement fe, 2699sourceNodeType = (container as FrameworkElement).TemplateInternal.ChildTypeFromChildIndex[sourceChildIndex]; 2730value = FrameworkElement.FindResourceInternal(child.FE, 2785value = FrameworkElement.FindResourceInternal( 2910FrameworkElement feChild, 2920FrameworkElement feContainer; 3104return (dp != FrameworkElement.StyleProperty); 3116return (dp != FrameworkElement.StyleProperty && 3117dp != FrameworkElement.DefaultStyleKeyProperty && 3118dp != FrameworkElement.OverridesDefaultStyleProperty); 3131return (dp != FrameworkElement.StyleProperty && 3132dp != FrameworkElement.DefaultStyleKeyProperty && 3133dp != FrameworkElement.OverridesDefaultStyleProperty && 3153FrameworkElement fe, 3234FrameworkElement fe, 3309FrameworkElement feContainer, 3451FrameworkElement fe, 3492FrameworkElement fe, 4241if (dp != FrameworkElement.StyleProperty) 4508private static void ExecuteOnApplyEnterExitActions( FrameworkElement fe, 4537private static void ExecuteOnApplyEnterExitActions( FrameworkElement fe, FrameworkContentElement fce, 4716FrameworkElement fe = (FrameworkElement)container; 4835action.Invoke(triggerContainer as FrameworkElement, triggerContainer as FrameworkContentElement, 5138FrameworkElement fe; 5175FrameworkElement fe; 5218FrameworkElement fe; 5454child is FrameworkElement && ((FrameworkElement)child).TemplateChildIndex == childIndex || 5485FrameworkElement fe; 5510FrameworkElement fe; 5600if (dp == ItemsControl.ItemsPanelProperty || dp == FrameworkElement.ContextMenuProperty || dp == FrameworkElement.ToolTipProperty)
src\Framework\System\Windows\SystemResources.cs (3)
514_presentationFramework = typeof(FrameworkElement).Assembly; 1315FrameworkElement fe = source.RootVisual as FrameworkElement;
src\Framework\System\Windows\SystemThemeKey.cs (1)
44_presentationFrameworkAssembly = typeof(FrameworkElement).Assembly;
src\Framework\System\Windows\TemplateContent.cs (7)
23[XamlDeferLoad(typeof(TemplateContentLoader), typeof(FrameworkElement))] 501if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 529if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 554if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 732if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 798if (typeof(FrameworkElement).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType) || 889if (!typeof(FrameworkElement).IsAssignableFrom(parentType.UnderlyingType) &&
src\Framework\System\Windows\TemplateNameScope.cs (3)
54Debug.Assert(templatedParent == null || (templatedParent is FrameworkElement || templatedParent is FrameworkContentElement), 81if (!(scopedElement is FrameworkContentElement || scopedElement is FrameworkElement)) 88FrameworkElement fe;
src\Framework\System\Windows\TreeWalkHelper.cs (20)
38FrameworkElement fe, 191FrameworkElement fe, 242FrameworkElement fe, 460FrameworkElement fe, 546FrameworkElement fe = fo.FE; 579(fe.HasImplicitStyleFromResources || fe.Style == FrameworkElement.StyleProperty.GetMetadata(fe.DependencyObjectType).DefaultValue)) 607fe.RaiseClrEvent(FrameworkElement.ResourcesChangedKey, new ResourcesChangedEventArgs(info)); 663fce.RaiseClrEvent(FrameworkElement.ResourcesChangedKey, new ResourcesChangedEventArgs(info)); 756FrameworkElement fe = fo.FE; 760(fe.HasImplicitStyleFromResources || fe.Style == FrameworkElement.StyleProperty.GetMetadata(fe.DependencyObjectType).DefaultValue)) 798FrameworkElement templatedParent = (FrameworkElement)fe.TemplatedParent; 866FrameworkElement templatedParent = (FrameworkElement)fce.TemplatedParent; 905FrameworkElement fe, 966DependencyObject parent = FrameworkElement.GetFrameworkParent(d); 1009if (visitedViaVisualTree && FrameworkElement.DType.IsInstanceOfType(d)) 1173FrameworkElement fe, 1268internal static bool HasChildren(FrameworkElement fe, FrameworkContentElement fce) 1291return (dp == FrameworkElement.FlowDirectionProperty);
src\Framework\System\Windows\TriggerAction.cs (2)
42internal abstract void Invoke( FrameworkElement fe, 57internal abstract void Invoke( FrameworkElement fe );
src\Framework\System\Windows\TriggerBase.cs (1)
178if (dp == FrameworkElement.StyleProperty)
src\Framework\System\Windows\TriggerCollection.cs (3)
31internal TriggerCollection(FrameworkElement owner) : base() 118internal FrameworkElement Owner 208private FrameworkElement _owner;
src\Framework\System\Windows\VisualStateChangedEventArgs.cs (6)
17internal VisualStateChangedEventArgs(VisualState oldState, VisualState newState, FrameworkElement control, FrameworkElement stateGroupsRoot) 50public FrameworkElement Control 61public FrameworkElement StateGroupsRoot 71private FrameworkElement _control; 72private FrameworkElement _stateGroupsRoot;
src\Framework\System\Windows\VisualStateGroup.cs (5)
100internal void StartNewThenStopOld(FrameworkElement element, params Storyboard[] newStoryboards) 138internal void RaiseCurrentStateChanging(FrameworkElement stateGroupsRoot, VisualState oldState, VisualState newState, FrameworkElement control) 146internal void RaiseCurrentStateChanged(FrameworkElement stateGroupsRoot, VisualState oldState, VisualState newState, FrameworkElement control)
src\Framework\System\Windows\VisualStateManager.cs (24)
31private static bool GoToStateCommon(FrameworkElement control, FrameworkElement stateGroupsRoot, string stateName, bool useTransitions) 76public static bool GoToState(FrameworkElement control, string stateName, bool useTransitions) 83FrameworkElement stateGroupsRoot = control.StateGroupsRoot; 95public static bool GoToElementState(FrameworkElement stateGroupsRoot, string stateName, bool useTransitions) 108protected virtual bool GoToStateCore(FrameworkElement control, FrameworkElement stateGroupsRoot, string stateName, VisualStateGroup group, VisualState state, bool useTransitions) 122public static VisualStateManager GetCustomVisualStateManager(FrameworkElement obj) 132public static void SetCustomVisualStateManager(FrameworkElement obj, VisualStateManager value) 159internal static Collection<VisualStateGroup> GetVisualStateGroupsInternal(FrameworkElement obj) 178public static IList GetVisualStateGroups(FrameworkElement obj) 211private static bool GoToStateInternal(FrameworkElement control, FrameworkElement stateGroupsRoot, VisualStateGroup group, VisualState state, bool useTransitions) 335private static bool ShouldRunStateStoryboard(FrameworkElement control, FrameworkElement stateGroupsRoot, VisualState state, VisualStateGroup group) 364protected void RaiseCurrentStateChanging(VisualStateGroup stateGroup, VisualState oldState, VisualState newState, FrameworkElement control, FrameworkElement stateGroupsRoot) 384protected void RaiseCurrentStateChanged(VisualStateGroup stateGroup, VisualState oldState, VisualState newState, FrameworkElement control, FrameworkElement stateGroupsRoot) 408private static Storyboard GenerateDynamicTransitionAnimations(FrameworkElement root, VisualStateGroup group, VisualState newState, VisualTransition transition) 472private static Timeline GenerateFromAnimation(FrameworkElement root, Timeline timeline, IEasingFunction easingFunction) 499private static Timeline GenerateToAnimation(FrameworkElement root, Timeline timeline, IEasingFunction easingFunction, bool isEntering) 538private static void CopyStoryboardTargetProperties(FrameworkElement root, Timeline source, Timeline destination) 579internal static VisualTransition GetTransition(FrameworkElement element, VisualStateGroup group, VisualState from, VisualState to)
src\Framework\System\Windows\Window.cs (2)
4824SetValue(FrameworkElement.WidthProperty, ptLogicalUnits.X); 4825SetValue(FrameworkElement.HeightProperty, ptLogicalUnits.Y);
System.Activities.Core.Presentation (13)
System\Activities\Core\Presentation\FlowchartConnectionPointsAdorner.cs (1)
46Thickness margin = ((FrameworkElement)AdornedElement).Margin;
System\Activities\Core\Presentation\FlowchartDesigner.ModelChangeReactions.cs (1)
590((FrameworkElement)deleteShape).SizeChanged -= new SizeChangedEventHandler(ChildSizeChanged);
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (3)
876MultiBinding GetConnectionPointBinding(FrameworkElement element, double widthFraction, double heightFraction) 1113BindingOperations.SetBinding(connectionPoint, ConnectionPoint.LocationProperty, GetConnectionPointBinding(element as FrameworkElement, widthFraction, heightFraction)); 1230((FrameworkElement)container).SizeChanged += new SizeChangedEventHandler(ChildSizeChanged);
System\Activities\Core\Presentation\FlowchartExpressionAutomationPeer.cs (1)
17public FlowchartExpressionAutomationPeer(FrameworkElement owner, AutomationPeer wrappedAutomationPeer)
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (1)
81static void SetConnectorStartDotToolTip(FrameworkElement startDot, ModelItem connectorModelItem)
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (5)
426((FrameworkElement)element).SizeChanged -= new SizeChangedEventHandler(OnChildElementSizeChanged); 575((FrameworkElement)element).SizeChanged += new SizeChangedEventHandler(OnChildElementSizeChanged); 683((FrameworkElement)removedStateDesigner).SizeChanged -= new SizeChangedEventHandler(OnChildElementSizeChanged); 1034MultiBinding GetConnectionPointBinding(FrameworkElement element, double widthFraction, double heightFraction) 1059BindingOperations.SetBinding(connectionPoint, ConnectionPoint.LocationProperty, GetConnectionPointBinding(element as FrameworkElement, widthFraction, heightFraction));
System\Activities\Core\Presentation\StateMachineConnetionPointsAdorner.cs (1)
30Thickness margin = ((FrameworkElement)AdornedElement).Margin;
System.Activities.Presentation (154)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\CategoryContainerAutomationPeer.cs (8)
256FrameworkElement expanderGrid = VisualTreeUtils.GetNamedChild<FrameworkElement>(expander, "PART_BasicSection"); 307FrameworkElement expanderGrid = VisualTreeUtils.GetNamedChild<FrameworkElement>(expander, "PART_BasicSection"); 531FrameworkElement expanderGrid = VisualTreeUtils.GetNamedChild<FrameworkElement>(expander, "PART_AdvancedSection"); 581FrameworkElement expanderGrid = VisualTreeUtils.GetNamedChild<FrameworkElement>(expander, "PART_AdvancedSection");
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\CategoryListAutomationPeer.cs (1)
79FrameworkElement selection = _control.Selection;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CategoryList.cs (13)
47private FrameworkElement _selection; 170public FrameworkElement Selection 616FrameworkElement focusableElement = VisualTreeUtils.FindFocusableElement<FrameworkElement>(_selection); 718FrameworkElement selection = PropertySelection.FindParentSelectionStop<FrameworkElement>(visualSource); 737FrameworkElement focusableElement = VisualTreeUtils.FindFocusableElement<FrameworkElement>(_selection) ?? _selection; 738FrameworkElement parentPropertyContainer = VisualTreeUtils.FindVisualAncestor<PropertyContainer>(focusableElement); 739FrameworkElement bringIntoViewElement = parentPropertyContainer ?? focusableElement; 765VisualTreeUtils.FindFocusableElement<FrameworkElement>(_selection))) 789FrameworkElement nextStop = PropertySelection.FindNeighborSelectionStop<FrameworkElement>(_selection, direction);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UserInterface\FocusScopeManager.cs (4)
48FocusManager.FocusedElementProperty.OverrideMetadata(typeof(FrameworkElement), new PropertyMetadata(null, null, new CoerceValueCallback(FocusScopeManager.FocusManager_CoerceFocusedElement))); 272FrameworkElement element = d as FrameworkElement; 318private void OnAllowedFocusChanged(FrameworkElement element, bool newValue)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (6)
712FrameworkElement element = e.NewFocus as FrameworkElement; 838FrameworkElement element = e.OldFocus as FrameworkElement; 852FrameworkElement element = e.OldFocus as FrameworkElement;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ValueEditorUtils.cs (2)
42public static void UpdateBinding(FrameworkElement element, DependencyProperty property, bool updateSource) 47public static void UpdateBinding(FrameworkElement element, DependencyProperty property, UpdateBindingType updateType)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Metadata\PropertyInspectorMetadata.cs (2)
52MakeBasic(builder, typeof(FrameworkElement), FrameworkElement.FlowDirectionProperty);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyValue.cs (1)
339if (ParentModelPropertyEntry.PropertyName.Equals(FrameworkElement.FlowDirectionProperty.Name))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspector.xaml.cs (8)
226FrameworkElement curElement = selectedVisual as FrameworkElement; 227FrameworkElement parentElement = curElement.Parent as FrameworkElement; 539FrameworkElement selectedElement = _lastNotifiedSelection.PrimarySelection.View as FrameworkElement; 552FrameworkElement curElm = item.View as FrameworkElement;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Resources\PropertyInspectorResources.cs (1)
48FrameworkElement.NameProperty.Name);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Resources\ResourceUtilities.cs (2)
26public static double GetDouble(FrameworkElement element, string key, double fallbackValue) 39public static Size GetDesiredTypeIconSize(FrameworkElement queryRoot)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Selection\CategoryContainerSelectionPathInterpreter.cs (1)
95searchStart = VisualTreeUtils.GetNamedChild<FrameworkElement>(categoryVisual, "PART_AdvancedExpander");
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Selection\PropertySelection.cs (21)
78typeof(FrameworkElement), 215FrameworkElement target = sender as FrameworkElement; 237FrameworkElement target = sender as FrameworkElement; 264FrameworkElement parentSelectionStopVisual = PropertySelection.FindParentSelectionStop<FrameworkElement>(target); 277private static void AddDoubleClickHandler(FrameworkElement target) 283private static void RemoveDoubleClickHandler(FrameworkElement target) 329internal static FrameworkElement GetKeyDownTarget(DependencyObject obj) 336return (FrameworkElement)obj.GetValue(KeyDownTargetProperty); 344internal static void SetKeyDownTarget(DependencyObject obj, FrameworkElement value) 358FrameworkElement target = sender as FrameworkElement; 378FrameworkElement target = sender as FrameworkElement; 421FrameworkElement keyTarget = GetKeyDownTarget(keySender); 429FrameworkElement focusable = VisualTreeUtils.FindFocusableElement<FrameworkElement>(keyTarget); 436private static void AddKeyStrokeHandlers(FrameworkElement target) 442private static void RemoveKeyStrokeHandlers(FrameworkElement target)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\VisualTreeUtils.cs (4)
37where T : FrameworkElement 52where T : FrameworkElement 73FrameworkElement child = VisualTreeHelper.GetChild(container, index) as FrameworkElement;
System.Activities.Presentation\System\Activities\Presentation\Converters\ModelPropertyEntryToModelItemConverter.cs (4)
52FrameworkElement categoryEditorVisual = (FrameworkElement) 53values.FirstOrDefault<object>(p => p != null && typeof(FrameworkElement).IsAssignableFrom(p.GetType())); 111void UpdateCategoryEditorDataContext(PropertyEntry property, FrameworkElement editor, Container context)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPoint.cs (2)
113FrameworkElement parent = this.ParentDesigner as FrameworkElement;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\Connector.cs (2)
154public virtual FrameworkElement StartDot 291public ConnectorAutomationPeer(FrameworkElement owner, AutomationPeer wrappedAutomationPeer)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (2)
127FrameworkElement frameworkChild = child as FrameworkElement;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorWithStartDot.xaml.cs (1)
21public override FrameworkElement StartDot
System.Activities.Presentation\System\Activities\Presentation\Hosting\WindowHelperService.cs (1)
34internal FrameworkElement View
System.Activities.Presentation\System\Activities\Presentation\MiniMap\MiniMapControl.xaml.cs (3)
266if (null != this.mapSource && null != this.mapSource.Content && this.mapSource.Content is FrameworkElement) 268FrameworkElement content = (FrameworkElement)this.mapSource.Content;
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (5)
839var container = this.ContainerService.QueryContainerForItem(this.itemsToExpand[index]); 909void Populate(FrameworkElement container) 962if (null != this.itemToFocus.View && ((FrameworkElement)this.itemToFocus.View).IsVisible) 967((FrameworkElement)this.itemToFocus.View).BringIntoView(rectToBringIntoView); 971((FrameworkElement)this.itemToFocus.View).BringIntoView();
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (2)
712FrameworkElement fe = (FrameworkElement)itemToFocus.View;
System.Activities.Presentation\System\Activities\Presentation\View\AutoScrollHelper.cs (3)
19FrameworkElement logicalView = element as FrameworkElement; 47static void AutoScroll(Point positionInScrollViewer, ScrollViewer scrollViewer, Point? positionInLogicalView, FrameworkElement logicalView, double scrollOnDragThresholdX, double scrollOnDragThresholdY, double scrollOnDragOffset)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (5)
42DependencyProperty.RegisterAttached("MenuItemOrigin", typeof(FrameworkElement), typeof(DesignerView)); 519Action<WorkflowViewElement, FrameworkElement> contextMenuLoaded = 1717static FrameworkElement GetMenuItemOrigin(DependencyObject obj) 1719return (FrameworkElement)obj.GetValue(MenuItemOriginProperty); 1722static void SetMenuItemOrigin(DependencyObject obj, FrameworkElement value)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (4)
635FrameworkElement source = e.NewFocus as FrameworkElement; 644source = VisualTreeHelper.GetParent(source) as FrameworkElement; 1293private static bool IsRightToLeft(FrameworkElement element)
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (1)
736void SetBinding(string path, DependencyProperty property, FrameworkElement target, ExpressionTextBox source,
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (14)
37typeof(FrameworkElement), 62KeyValuePair<FrameworkElement, Point> selectedChild; 146foreach (FrameworkElement child in this.Children) 196FrameworkElement target = ExtensionSurface.GetPlacementTarget(window); 202FrameworkElement commonRoot = null; 210commonRoot = target.FindCommonVisualAncestor(this) as FrameworkElement; 323FrameworkElement child = item as FrameworkElement; 406FrameworkElement child = item as FrameworkElement; 446this.selectedChild = new KeyValuePair<FrameworkElement, Point>(window, this.canvasOffset); 464public static void SetPlacementTarget(DependencyObject container, FrameworkElement value) 469public static FrameworkElement GetPlacementTarget(DependencyObject container) 471return (FrameworkElement)container.GetValue(PlacementTargetProperty);
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindow.cs (7)
214FrameworkElement target = ExtensionSurface.GetPlacementTarget(this); 217FrameworkElement commonRoot = target.FindCommonVisualAncestor(this) as FrameworkElement; 541internal static bool TryGetParentExtensionWindow(FrameworkElement element, out ExtensionWindow window, out ExtensionSurface surface) 547FrameworkElement current = element; 552current = (FrameworkElement)current.Parent; 561current = (FrameworkElement)current.Parent;
System.Activities.Presentation\System\Activities\Presentation\View\VirtualizedContainerService.cs (5)
42IDictionary<ModelItem, FrameworkElement> modelItemToContainer; 52this.modelItemToContainer = new Dictionary<ModelItem, FrameworkElement>(); 208internal FrameworkElement QueryContainerForItem(ModelItem item) 214FrameworkElement element; 221FrameworkElement view = null;
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (10)
401FrameworkElement parent = (FrameworkElement)this.Parent; 404parent = parent.Parent as FrameworkElement; 410parent = VisualTreeHelper.GetParent(this) as FrameworkElement; 413parent = VisualTreeHelper.GetParent(parent) as FrameworkElement; 647Keyboard.Focus((FrameworkElement)this); 833public FrameworkElement Spacer { get; set; } 1073private FrameworkElement CreateAndInitializeSpacer(VerticalAlignment alignment) 1075FrameworkElement spacer = (SpacerTemplate != null) 1076? (FrameworkElement)SpacerTemplate.LoadContent()
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (7)
252FrameworkElement spacer = CreateSpacer(); 392FrameworkElement startSpacer = CreateSpacer(); 402FrameworkElement spacer = CreateSpacer(); 458private FrameworkElement CreateSpacer() 460FrameworkElement spacer = (this.SpacerTemplate != null) ? (FrameworkElement)this.SpacerTemplate.LoadContent() : new Rectangle(); 530Keyboard.Focus((FrameworkElement)sender);
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (2)
314public FrameworkElement DragHandle 907target.BeginAnimation(FrameworkElement.OpacityProperty, opacityAnimation);