System\Windows\BroadcastEventHelper.cs (32)
19Debug.Assert(d is FrameworkElement || d is FrameworkContentElement);
32d.SetValue(FrameworkElement.LoadedPendingPropertyKey, new object[]{loadedOp, operation, logicalParent});
40Debug.Assert(d is FrameworkElement || d is FrameworkContentElement);
47d.ClearValue(FrameworkElement.LoadedPendingPropertyKey);
67Debug.Assert(d is FrameworkElement || d is FrameworkContentElement);
80d.SetValue(FrameworkElement.UnloadedPendingPropertyKey, new object[]{unloadedOp, operation, logicalParent});
88Debug.Assert(d is FrameworkElement || d is FrameworkContentElement);
95d.ClearValue(FrameworkElement.UnloadedPendingPropertyKey);
162object[] loadedPending = (object[])rootDO.GetValue(FrameworkElement.LoadedPendingProperty);
185BroadcastEventHelper.BroadcastEvent(rootDO, FrameworkElement.LoadedEvent);
199object[] unloadedPending = (object[])rootDO.GetValue(FrameworkElement.UnloadedPendingProperty);
222BroadcastEvent(rootDO, FrameworkElement.UnloadedEvent);
271if (routedEvent == FrameworkElement.LoadedEvent)
290if (d is FrameworkElement fe)
292if (fe != root && routedEvent == FrameworkElement.LoadedEvent && fe.UnloadedPending != null)
299else if (fe != root && routedEvent == FrameworkElement.UnloadedEvent && fe.LoadedPending != null)
310if (routedEvent == FrameworkElement.LoadedEvent && fe.LoadedPending != null)
317else if (routedEvent == FrameworkElement.UnloadedEvent && fe.UnloadedPending != null)
339fe.IsLoadedCache = (routedEvent == FrameworkElement.LoadedEvent);
353if (fce != root && routedEvent == FrameworkElement.LoadedEvent && fce.UnloadedPending != null)
360else if (fce != root && routedEvent == FrameworkElement.UnloadedEvent && fce.LoadedPending != null)
371if (routedEvent == FrameworkElement.LoadedEvent && fce.LoadedPending != null)
378else if (routedEvent == FrameworkElement.UnloadedEvent && fce.UnloadedPending != null)
400fce.IsLoadedCache = (routedEvent == FrameworkElement.LoadedEvent);
416if (d is FrameworkElement fe)
429if (d is FrameworkElement fe)
441if (d is FrameworkElement fe)
586FrameworkElement child = VisualTreeHelper.GetChild(v, i) as FrameworkElement;
717FrameworkElement fe,
720if (fe.GetValue(FrameworkElement.LoadedPendingProperty) == null)
752if (fce.GetValue(FrameworkElement.LoadedPendingProperty) == null)
System\Windows\Controls\ItemsControl.cs (85)
32[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(FrameworkElement))]
1321Invariant.Assert(parent is FrameworkElement, SR.ItemsControl_ParentNotFrameworkElement);
1329((FrameworkElement)parent).TemplateChild = null;
1361Helper.HasUnmodifiedDefaultOrInheritedValue(container, FrameworkElement.BindingGroupProperty))
1367container.SetValue(FrameworkElement.BindingGroupProperty, containerBindingGroup);
1791FrameworkElement element = info.Container as FrameworkElement;
1835while (startingElement != null && !(startingElement is FrameworkElement))
1842return NavigateByLine(FocusedInfo, startingElement as FrameworkElement, direction, itemNavigateArgs);
1846FrameworkElement startingElement,
1849out FrameworkElement container)
1887FrameworkElement startingElement,
1910FrameworkElement container;
1921FrameworkElement startingElement,
1924out FrameworkElement container)
1938FrameworkElement nextElement = null;
1979treeViewNavigation) as FrameworkElement;
1984FrameworkElement viewport = GetViewportElement();
1998TryGetTreeViewItemHeader(nextElement) as FrameworkElement,
2108treeViewNavigation) as FrameworkElement;
2146FrameworkElement startingElement,
2149out FrameworkElement container)
2182return NavigateByPage(FocusedInfo, Keyboard.FocusedElement as FrameworkElement, direction, itemNavigateArgs);
2195FrameworkElement startingElement,
2218FrameworkElement container;
2229FrameworkElement startingElement,
2232out FrameworkElement container)
2249FrameworkElement firstElement;
2327FrameworkElement container;
2331internal bool NavigateToStartInternal(ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container)
2365FrameworkElement firstElement;
2366FrameworkElement hopefulFirstElement = FindEndFocusableLeafContainer(ItemsHost, false /*last*/);
2393FrameworkElement container;
2397internal bool NavigateToEndInternal(ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container)
2431FrameworkElement lastElement;
2432FrameworkElement hopefulLastElement = FindEndFocusableLeafContainer(ItemsHost, true /*last*/);
2457private FrameworkElement FindEndFocusableLeafContainer(Panel itemsHost, bool last)
2471FrameworkElement fe = children[i] as FrameworkElement;
2475FrameworkElement result = null;
2553FrameworkElement container;
2560private object FindFocusable(int startIndex, int direction, out int foundIndex, out FrameworkElement foundContainer)
2569FrameworkElement container = ItemContainerGenerator.ContainerFromIndex(startIndex) as FrameworkElement;
2588private void AdjustOffsetToAlignWithEdge(FrameworkElement element, FocusNavigationDirection direction)
2595FrameworkElement viewportElement = GetViewportElement();
2596element = TryGetTreeViewItemHeader(element) as FrameworkElement;
2631private void MakeVisible(int index, FocusNavigationDirection direction, bool alwaysAtTopOfViewport, out FrameworkElement container)
2637container = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement;
2647container = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement;
2657private void MakeVisible(ItemInfo info, FocusNavigationDirection direction, out FrameworkElement container)
2673internal void MakeVisible(FrameworkElement container, FocusNavigationDirection direction, bool alwaysAtTopOfViewport)
2680FrameworkElement viewportElement = GetViewportElement();
2702FrameworkElement firstElement;
2731private bool NavigateToFirstItemOnCurrentPage(object startingItem, FocusNavigationDirection direction, ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container)
2733object firstItem = GetFirstItemOnCurrentPage(ItemContainerGenerator.ContainerFromItem(startingItem) as FrameworkElement,
2747private object GetFirstItemOnCurrentPage(FrameworkElement startingElement,
2749out FrameworkElement firstElement)
2798FrameworkElement currentElement = startingElement;
2813FrameworkElement viewportElement = GetViewportElement();
2819viewportElement) as FrameworkElement;
2855internal FrameworkElement GetViewportElement()
2862FrameworkElement viewPort = ScrollHost;
2888FrameworkElement container = ItemContainerGenerator.ContainerFromItem(item) as FrameworkElement;
2898private bool IsOnCurrentPage(FrameworkElement element, FocusNavigationDirection axis)
2910private bool IsOnCurrentPage(FrameworkElement viewPort, FrameworkElement element, FocusNavigationDirection axis, bool fullyVisible)
2915internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort,
2924internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort,
2951internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort,
3042internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort,
3327FrameworkElement relativeTo = ScrollHost != null ? (FrameworkElement)ScrollHost : ItemsHost;
3376private bool IsRTL(FrameworkElement element)
3382private static ItemsControl GetEncapsulatingItemsControl(FrameworkElement element)
3391element = VisualTreeHelper.GetParent(element) as FrameworkElement;
3396private static object GetEncapsulatingItem(FrameworkElement element, out FrameworkElement container)
3402private static object GetEncapsulatingItem(FrameworkElement element, out FrameworkElement container, out ItemsControl itemsControl)
3420element = VisualTreeHelper.GetParent(element) as FrameworkElement;
3455container.ReadLocalValue(FrameworkElement.StyleProperty) != DependencyProperty.UnsetValue)
3486container.ClearValue(FrameworkElement.StyleProperty);
3496container.ClearValue(FrameworkElement.StyleProperty);
System\Windows\Controls\Primitives\Selector.cs (8)
103FrameworkElement.AddHandler(element, SelectedEvent, handler);
114FrameworkElement.RemoveHandler(element, SelectedEvent, handler);
132FrameworkElement.AddHandler(element, UnselectedEvent, handler);
143FrameworkElement.RemoveHandler(element, UnselectedEvent, handler);
1420private void SetSelectedHelper(object item, FrameworkElement UI, bool selected)
1885((Selector)sender).NotifyIsSelectedChanged(e.OriginalSource as FrameworkElement, true, e);
1890((Selector)sender).NotifyIsSelectedChanged(e.OriginalSource as FrameworkElement, false, e);
1901internal void NotifyIsSelectedChanged(FrameworkElement container, bool selected, RoutedEventArgs e)
System\Windows\Controls\VirtualizingStackPanel.cs (33)
418FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport(
542FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport(
670FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport(
874FrameworkElement prevFirstContainerInViewport = _scrollData._firstContainerInViewport;
879FrameworkElement currFirstContainerInViewport = ComputeFirstContainerInViewport(
902FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport(
1118private FrameworkElement ComputeFirstContainerInViewport(
1119FrameworkElement viewportElement,
1132private FrameworkElement ComputeFirstContainerInViewport(
1133FrameworkElement viewportElement,
1170FrameworkElement result = null;
1179FrameworkElement fe = children[i] as FrameworkElement;
1706FrameworkElement childFE = child as FrameworkElement;
1970FrameworkElement.AddHandler(element, CleanUpVirtualizedItemEvent, handler);
1980FrameworkElement.RemoveHandler(element, CleanUpVirtualizedItemEvent, handler);
5261FrameworkElement container = virtualizationInfoProvider as FrameworkElement;
6380FrameworkElement container = virtualizationInfoProvider as FrameworkElement;
6439FrameworkElement fe = virtualizingChild as FrameworkElement;
6576private bool IsHeaderBeforeItems(bool isHorizontal, FrameworkElement container, ref Thickness inset)
7088bool isHeaderBeforeItems = IsHeaderBeforeItems(isHorizontal, virtualizingChild as FrameworkElement, ref inset);
11065bool isHeaderBeforeItems = IsHeaderBeforeItems(isHorizontal, virtualizingElement as FrameworkElement, ref inset);
11598private FrameworkElement FirstContainerInViewport
11785internal FrameworkElement _firstContainerInViewport;
12148sti = new ScrollTracingInfo(tracer, _nullInfo.Generation, 0, itemsOwner as FrameworkElement, null, null, 0);
12170sti = new ScrollTracingInfo(tracer, _nullInfo.Generation, parentInfo.Depth + 1, itemsOwner as FrameworkElement, parent, parentItem, itemIndex);
12647internal FrameworkElement Owner { get; private set; }
12652internal ScrollTracingInfo(ScrollTracer tracer, int generation, int depth, FrameworkElement owner, VirtualizingStackPanel parent, object parentItem, int itemIndex)
12849internal FrameworkElement _firstContainerInViewport;
System\Windows\Documents\TextSchema.cs (18)
41FrameworkElement.LanguageProperty,
42FrameworkElement.FlowDirectionProperty,
1159FrameworkElement.LanguageProperty,
1163FrameworkElement.LayoutTransformProperty,
1164FrameworkElement.WidthProperty,
1165FrameworkElement.MinWidthProperty,
1166FrameworkElement.MaxWidthProperty,
1167FrameworkElement.HeightProperty,
1168FrameworkElement.MinHeightProperty,
1169FrameworkElement.MaxHeightProperty,
1171FrameworkElement.MarginProperty,
1172FrameworkElement.HorizontalAlignmentProperty,
1173FrameworkElement.VerticalAlignmentProperty,
1175FrameworkElement.CursorProperty,
1176FrameworkElement.ForceCursorProperty,
1178FrameworkElement.ToolTipProperty,
1214FrameworkElement.FlowDirectionProperty,
1215FrameworkElement.LanguageProperty,
System\Windows\FrameworkContentElement.cs (43)
110FrameworkElement.StyleProperty.AddOwner(
156= FrameworkElement.OverridesDefaultStyleProperty.AddOwner(typeof(FrameworkContentElement),
175FrameworkElement.DefaultStyleKeyProperty.AddOwner(
341object resource = FrameworkElement.FindResourceInternal(null /* fe */, this, resourceKey);
368object resource = FrameworkElement.FindResourceInternal(null /* fe */, this, resourceKey);
509object implicitValue = FrameworkElement.FindImplicitStyleResource(this, this.GetType(), out source);
549FrameworkElement parentFE;
550bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE);
613hasParent = FrameworkElement.GetFrameworkParent(parentFE, out parentFE, out parentFCE);
617hasParent = FrameworkElement.GetFrameworkParent(parentFCE, out parentFE, out parentFCE);
637FrameworkElement feTemplatedParent = (FrameworkElement)_templatedParent;
696if (dp == FrameworkElement.NameProperty &&
713FrameworkElement feTemplatedParent = TemplatedParent as FrameworkElement;
812FrameworkElement.NameProperty.AddOwner(
831FrameworkElement.TagProperty.AddOwner(
852FrameworkElement.LanguageProperty.AddOwner(
876FrameworkElement.FocusVisualStyleProperty.AddOwner(typeof(FrameworkContentElement),
877new FrameworkPropertyMetadata(FrameworkElement.DefaultFocusVisualStyle));
892FrameworkElement.CursorProperty.AddOwner(
924FrameworkElement.ForceCursorProperty.AddOwner(
1053RoutedEvent = FrameworkElement.RequestBringIntoViewEvent
1108FrameworkElement.DataContextProperty.AddOwner(
1127add { EventHandlersStoreAdd(FrameworkElement.DataContextChangedKey, value); }
1128remove { EventHandlersStoreRemove(FrameworkElement.DataContextChangedKey, value); }
1147((FrameworkContentElement) d).RaiseDependencyPropertyChanged(FrameworkElement.DataContextChangedKey, e);
1185FrameworkElement.BindingGroupProperty.AddOwner(
1330FrameworkElement.AddIntermediateElementsToRoute(this, route, args, LogicalTreeHelper.GetParent(branchNode));
1364FrameworkElement.AddStyleHandlersToEventRoute(null, this, route, args);
1395continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(this, LogicalTreeHelper.GetParent(branchNode));
1575add { EventHandlersStoreAdd(FrameworkElement.InitializedKey, value); }
1576remove { EventHandlersStoreRemove(FrameworkElement.InitializedKey, value); }
1598RaiseInitialized(FrameworkElement.InitializedKey, e);
1640= FrameworkElement.LoadedPendingProperty.AddOwner(typeof(FrameworkContentElement));
1647= FrameworkElement.UnloadedPendingProperty.AddOwner(typeof(FrameworkContentElement));
1695public static readonly RoutedEvent LoadedEvent = FrameworkElement.LoadedEvent.AddOwner( typeof(FrameworkContentElement));
1705AddHandler(FrameworkElement.LoadedEvent, value, false);
1709RemoveHandler(FrameworkElement.LoadedEvent, value);
1726public static readonly RoutedEvent UnloadedEvent = FrameworkElement.UnloadedEvent.AddOwner( typeof(FrameworkContentElement));
1735AddHandler(FrameworkElement.UnloadedEvent, value, false);
1739RemoveHandler(FrameworkElement.UnloadedEvent, value);
2162private static readonly UncommonField<ResourceDictionary> ResourcesField = FrameworkElement.ResourcesField;
System\Windows\FrameworkElement.cs (96)
95private static readonly Type _typeofThis = typeof(FrameworkElement);
127FrameworkElement.EnsureFrameworkServices();
165FrameworkElement fe = (FrameworkElement) d;
197typeof(FrameworkElement),
216FrameworkElement fe = (FrameworkElement)d;
246((FrameworkElement)d).UpdateThemeStyleProperty();
266FrameworkElement fe = (FrameworkElement) d;
461internal static FrameworkElement FindNamedFrameworkElement( FrameworkElement startElement, string targetName )
463FrameworkElement targetFE = null;
601internal virtual FrameworkElement StateGroupsRoot
605return _templateChild as FrameworkElement;
821object resource = FrameworkElement.FindResourceInternal(this, null /* fce */, resourceKey);
849object resource = FrameworkElement.FindResourceInternal(this, null /* fce */, resourceKey);
863internal static object FindImplicitStyleResource(FrameworkElement fe, object resourceKey, out object source)
887FrameworkElement.StyleProperty, // dp
971internal static object FindResourceInternal(FrameworkElement fe, FrameworkContentElement fce, object resourceKey)
1000return FrameworkElement.FindResourceInternal(null, // fe
1014FrameworkElement fe,
1143FrameworkElement feStart,
1190FrameworkElement fe = fo.FE;
1612private static ResourceDictionary GetInstanceResourceDictionary(FrameworkElement fe, FrameworkContentElement fce)
1636private static ResourceDictionary GetStyleResourceDictionary(FrameworkElement fe, FrameworkContentElement fce)
1676private static ResourceDictionary GetThemeStyleResourceDictionary(FrameworkElement fe, FrameworkContentElement fce)
1716private static ResourceDictionary GetTemplateResourceDictionary(FrameworkElement fe, FrameworkContentElement fce)
1867object implicitValue = FrameworkElement.FindImplicitStyleResource(this, this.GetType(), out source);
1924FrameworkElement feTemplatedParent = (FrameworkElement)_templatedParent;
1956FrameworkElement parentFE;
2068if (dp == FrameworkElement.NameProperty &&
2085FrameworkElement feTemplatedParent = TemplatedParent as FrameworkElement;
2214if(layoutParent is FrameworkElement fe)
2275internal static bool GetFrameworkParent(FrameworkElement current, out FrameworkElement feParent, out FrameworkContentElement fceParent)
2288internal static bool GetFrameworkParent(FrameworkContentElement current, out FrameworkElement feParent, out FrameworkContentElement fceParent)
2300internal static bool GetContainingFrameworkElement(DependencyObject current, out FrameworkElement fe, out FrameworkContentElement fce)
2368EventManager.RegisterClassHandler(_typeofThis, Mouse.QueryCursorEvent, new QueryCursorEventHandler(FrameworkElement.OnQueryCursorOverride), true);
2399typeof(FrameworkElement),
2407FrameworkElement fe = (FrameworkElement) d;
2462if (newParent != null && newParent is not FrameworkElement)
2476else if (oldParent != null && oldParent is not FrameworkElement)
2524FrameworkElement feParent = null;
2528FrameworkElement.GetContainingFrameworkElement(VisualTreeHelper.GetParent(this), out feParent, out fceParent);
2559FrameworkElement.GetContainingFrameworkElement(e.OldParent, out feParent, out fceParent);
2728((FrameworkElement) d).RaiseDependencyPropertyChanged(DataContextChangedKey, e);
2913FrameworkElement.AddIntermediateElementsToRoute(this, route, args, LogicalTreeHelper.GetParent(branchNode));
2968FrameworkElement fe,
3014FrameworkElement feTemplatedParent = templatedParent as FrameworkElement;
3104continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(this, LogicalTreeHelper.GetParent(branchNode));
3330FrameworkElement fe = (FrameworkElement) d;
3375FrameworkElement fe = (FrameworkElement) d;
3433FrameworkElement fe = (FrameworkElement)d;
3458FrameworkElement fe = (FrameworkElement)d;
3644FrameworkElement fe = d as FrameworkElement;
3658FrameworkElement fe = d as FrameworkElement;
3866FrameworkElement fe = ((FrameworkElement)d);
3901FrameworkElement fe = ((FrameworkElement)d);
3911FrameworkElement fe = (FrameworkElement) sender;
3950internal static bool ShouldApplyMirrorTransform(FrameworkElement fe)
3967FrameworkElement parentFE;
3997FrameworkElement fe = v as FrameworkElement;
4038internal MinMax(FrameworkElement e)
5135FrameworkElement fe = element as FrameworkElement;
5328FrameworkElement fe = (FrameworkElement)sender;
5354FrameworkElement fe = (FrameworkElement)sender;
5522((FrameworkElement) o).HasNumberSubstitutionChanged = true;
5526private static bool ShouldUseSystemFont(FrameworkElement fe, DependencyProperty dp)
5541if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontFamilyProperty))
5552if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontSizeProperty))
5563if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontStyleProperty))
5574if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontWeightProperty))
5942((FrameworkElement)sender).OnToolTipOpening(e);
5974((FrameworkElement)sender).OnToolTipClosing(e);
6007((FrameworkElement)sender).OnContextMenuOpening(e);
6034((FrameworkElement)sender).OnContextMenuClosing(e);
6079FrameworkElement fe = uiElement as FrameworkElement;
System\Windows\Generated\FrameworkContentElement.cs (14)
64INameScope nameScope = FrameworkElement.FindScope(this);
82INameScope nameScope = FrameworkElement.FindScope(this);
108INameScope nameScope = FrameworkElement.FindScope(this, out scopeOwner);
318IsParentAnFE = newParent is FrameworkElement;
436RaiseClrEvent(FrameworkElement.ResourcesChangedKey, EventArgs.Empty);
475FrameworkElement.GetTemplatedParentChildRecord(templatedParent, childIndex, out childRecord, out isChildRecordValid);
477FrameworkElement parentFE;
479bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE);
765&& FrameworkElement.GetFrameworkParent(this) == null
1002Delegate handler = store.Get(FrameworkElement.InheritedPropertyChangedKey);
1185EventHandlersStoreAdd(FrameworkElement.ResourcesChangedKey, value);
1187remove { EventHandlersStoreRemove(FrameworkElement.ResourcesChangedKey, value); }
1205EventHandlersStoreAdd(FrameworkElement.InheritedPropertyChangedKey, value);
1207remove { EventHandlersStoreRemove(FrameworkElement.InheritedPropertyChangedKey, value); }
System\Windows\Generated\FrameworkElement.cs (14)
64INameScope nameScope = FrameworkElement.FindScope(this);
82INameScope nameScope = FrameworkElement.FindScope(this);
108INameScope nameScope = FrameworkElement.FindScope(this, out scopeOwner);
318IsParentAnFE = newParent is FrameworkElement;
428RaiseClrEvent(FrameworkElement.ResourcesChangedKey, EventArgs.Empty);
490FrameworkElement.GetTemplatedParentChildRecord(templatedParent, childIndex, out childRecord, out isChildRecordValid);
492FrameworkElement parentFE;
494bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE);
795&& FrameworkElement.GetFrameworkParent(this) == null
1032Delegate handler = store.Get(FrameworkElement.InheritedPropertyChangedKey);
1227EventHandlersStoreAdd(FrameworkElement.ResourcesChangedKey, value);
1229remove { EventHandlersStoreRemove(FrameworkElement.ResourcesChangedKey, value); }
1252EventHandlersStoreAdd(FrameworkElement.InheritedPropertyChangedKey, value);
1254remove { EventHandlersStoreRemove(FrameworkElement.InheritedPropertyChangedKey, value); }
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (43)
2538Type type = typeof(System.Windows.FrameworkElement);
2539DependencyProperty dp = System.Windows.FrameworkElement.FlowDirectionProperty;
2541this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2557Type type = typeof(System.Windows.FrameworkElement);
2558DependencyProperty dp = System.Windows.FrameworkElement.HeightProperty;
2560this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2576Type type = typeof(System.Windows.FrameworkElement);
2577DependencyProperty dp = System.Windows.FrameworkElement.HorizontalAlignmentProperty;
2579this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2595Type type = typeof(System.Windows.FrameworkElement);
2596DependencyProperty dp = System.Windows.FrameworkElement.MarginProperty;
2598this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2614Type type = typeof(System.Windows.FrameworkElement);
2615DependencyProperty dp = System.Windows.FrameworkElement.MaxHeightProperty;
2617this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2633Type type = typeof(System.Windows.FrameworkElement);
2634DependencyProperty dp = System.Windows.FrameworkElement.MaxWidthProperty;
2636this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2652Type type = typeof(System.Windows.FrameworkElement);
2653DependencyProperty dp = System.Windows.FrameworkElement.MinHeightProperty;
2655this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2671Type type = typeof(System.Windows.FrameworkElement);
2672DependencyProperty dp = System.Windows.FrameworkElement.MinWidthProperty;
2674this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2690Type type = typeof(System.Windows.FrameworkElement);
2691DependencyProperty dp = System.Windows.FrameworkElement.NameProperty;
2693this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2709Type type = typeof(System.Windows.FrameworkElement);
2710DependencyProperty dp = System.Windows.FrameworkElement.StyleProperty;
2712this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2725Type type = typeof(System.Windows.FrameworkElement);
2726DependencyProperty dp = System.Windows.FrameworkElement.VerticalAlignmentProperty;
2728this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2744Type type = typeof(System.Windows.FrameworkElement);
2745DependencyProperty dp = System.Windows.FrameworkElement.WidthProperty;
2747this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
6823Type type = typeof(System.Windows.FrameworkElement);
6825this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
6833SetDelegate = delegate (object target, object value) { ((System.Windows.FrameworkElement)target).Resources = (System.Windows.ResourceDictionary)value; },
6834GetDelegate = delegate (object target) { return ((System.Windows.FrameworkElement)target).Resources; }
8928Type type = typeof(System.Windows.FrameworkElement);
8930this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
8937GetDelegate = delegate (object target) { return ((System.Windows.FrameworkElement)target).Triggers; },
System\Windows\Media\Animation\Storyboard.cs (27)
246FrameworkElement fe = element as FrameworkElement;
307FrameworkElement fe,
436targetObject = containingObject as FrameworkElement;
930if(targetObject is FrameworkElement)
1065public void Begin( FrameworkElement containingObject )
1073public void Begin( FrameworkElement containingObject, HandoffBehavior handoffBehavior )
1081public void Begin( FrameworkElement containingObject, bool isControllable )
1089public void Begin( FrameworkElement containingObject, HandoffBehavior handoffBehavior, bool isControllable )
1097public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate )
1105public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate, HandoffBehavior handoffBehavior )
1113public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate, bool isControllable )
1121public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate, HandoffBehavior handoffBehavior, bool isControllable )
1287public Nullable<Double> GetCurrentGlobalSpeed( FrameworkElement containingObject )
1336public Nullable<Int32> GetCurrentIteration( FrameworkElement containingObject )
1385public Nullable<Double> GetCurrentProgress( FrameworkElement containingObject )
1433public ClockState GetCurrentState( FrameworkElement containingObject )
1472public Nullable<TimeSpan> GetCurrentTime( FrameworkElement containingObject )
1521public bool GetIsPaused( FrameworkElement containingObject )
1562public void Pause( FrameworkElement containingObject )
1604public void Remove(FrameworkElement containingObject)
1650public void Resume( FrameworkElement containingObject )
1694public void Seek( FrameworkElement containingObject, TimeSpan offset, TimeSeekOrigin origin )
1742public void SeekAlignedToLastTick( FrameworkElement containingObject, TimeSpan offset, TimeSeekOrigin origin )
1790public void SetSpeedRatio( FrameworkElement containingObject, double speedRatio )
1829public void SkipToFill( FrameworkElement containingObject )
1863public void Stop( FrameworkElement containingObject )
System\Windows\StyleHelper.cs (79)
48FrameworkElement fe,
87FrameworkElement fe,
107if (StyleHelper.IsSetOnContainer(FrameworkElement.OverridesDefaultStyleProperty, ref newThemeStyle.ContainerDependents, true))
125if(ShouldGetValueFromStyle ( FrameworkElement.DefaultStyleKeyProperty ) )
155internal static Style GetThemeStyle(FrameworkElement fe, FrameworkContentElement fce)
241FrameworkElement.StyleProperty.GetMetadata(themeStyleTypeKey);
258FrameworkElement.OnThemeStyleChanged(fe, oldThemeStyle, newThemeStyle);
276FrameworkElement fe,
439if (StyleHelper.IsSetOnContainer(FrameworkElement.StyleProperty, ref containerDependents, true))
441throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.StyleProperty.Name));
446if (StyleHelper.IsSetOnContainer(FrameworkElement.DefaultStyleKeyProperty, ref containerDependents, true))
448throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.DefaultStyleKeyProperty.Name));
453if (StyleHelper.IsSetOnContainer(FrameworkElement.OverridesDefaultStyleProperty, ref containerDependents, true))
455throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.OverridesDefaultStyleProperty.Name));
460if (StyleHelper.IsSetOnContainer(FrameworkElement.NameProperty, ref containerDependents, true))
462throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.NameProperty.Name));
1153if ( (eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent)
1154||(eventTrigger.RoutedEvent == FrameworkElement.UnloadedEvent))
1188if (eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent
1190eventTrigger.RoutedEvent == FrameworkElement.UnloadedEvent )
1201if( eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent )
1328FrameworkElement fe,
1363FrameworkElement fe,
1426FrameworkElement fe,
1493Debug.Assert((container is FrameworkElement) || (container is FrameworkContentElement), "Caller has queried with non-framework element. Bad caller, bad!");
1536FrameworkElement feChild;
1772FrameworkElement feContainer = container as FrameworkElement;
1809Debug.Assert(treeRoot is FrameworkElement || treeRoot is FrameworkContentElement,
1857Debug.Assert(treeRoot == null || treeRoot is FrameworkElement || treeRoot is FrameworkContentElement,
1931internal static void AddCustomTemplateRoot( FrameworkElement container, UIElement child )
1939FrameworkElement container,
1959FrameworkElement parent = VisualTreeHelper.GetParent(child) as FrameworkElement;
2047FrameworkElement feWalkNode;
2125FrameworkElement feContainer,
2174FrameworkElement feContainer,
2207FrameworkElement feContainer,
2229FrameworkElement fe;
2321out FrameworkElement fe, out FrameworkContentElement fce,
2324if (d is FrameworkElement frameworkElement)
2389Debug.Assert(sender is FrameworkElement || sender is FrameworkContentElement,
2392FrameworkElement fe;
2444Debug.Assert(sender is FrameworkElement || sender is FrameworkContentElement,
2447FrameworkElement fe;
2469FrameworkElement feTemplatedParent;
2492FrameworkElement fe,
2687sourceNodeType = (container as FrameworkElement).TemplateInternal.ChildTypeFromChildIndex[sourceChildIndex];
2718value = FrameworkElement.FindResourceInternal(child.FE,
2773value = FrameworkElement.FindResourceInternal(
2898FrameworkElement feChild,
2908FrameworkElement feContainer;
3090return (dp != FrameworkElement.StyleProperty);
3102return (dp != FrameworkElement.StyleProperty &&
3103dp != FrameworkElement.DefaultStyleKeyProperty &&
3104dp != FrameworkElement.OverridesDefaultStyleProperty);
3117return (dp != FrameworkElement.StyleProperty &&
3118dp != FrameworkElement.DefaultStyleKeyProperty &&
3119dp != FrameworkElement.OverridesDefaultStyleProperty &&
3139FrameworkElement fe,
3220FrameworkElement fe,
3295FrameworkElement feContainer,
3437FrameworkElement fe,
3478FrameworkElement fe,
4231if (dp != FrameworkElement.StyleProperty)
4497private static void ExecuteOnApplyEnterExitActions( FrameworkElement fe,
4526private static void ExecuteOnApplyEnterExitActions( FrameworkElement fe, FrameworkContentElement fce,
4705FrameworkElement fe = (FrameworkElement)container;
4824action.Invoke(triggerContainer as FrameworkElement, triggerContainer as FrameworkContentElement,
5127FrameworkElement fe;
5164FrameworkElement fe;
5207FrameworkElement fe;
5439child is FrameworkElement && ((FrameworkElement)child).TemplateChildIndex == childIndex ||
5474FrameworkElement fe;
5499FrameworkElement fe;
5589if (dp == ItemsControl.ItemsPanelProperty || dp == FrameworkElement.ContextMenuProperty || dp == FrameworkElement.ToolTipProperty)
System\Windows\VisualStateManager.cs (24)
26private static bool GoToStateCommon(FrameworkElement control, FrameworkElement stateGroupsRoot, string stateName, bool useTransitions)
68public static bool GoToState(FrameworkElement control, string stateName, bool useTransitions)
72FrameworkElement stateGroupsRoot = control.StateGroupsRoot;
84public static bool GoToElementState(FrameworkElement stateGroupsRoot, string stateName, bool useTransitions)
94protected virtual bool GoToStateCore(FrameworkElement control, FrameworkElement stateGroupsRoot, string stateName, VisualStateGroup group, VisualState state, bool useTransitions)
108public static VisualStateManager GetCustomVisualStateManager(FrameworkElement obj)
115public static void SetCustomVisualStateManager(FrameworkElement obj, VisualStateManager value)
139internal static Collection<VisualStateGroup> GetVisualStateGroupsInternal(FrameworkElement obj)
155public static IList GetVisualStateGroups(FrameworkElement obj)
185private static bool GoToStateInternal(FrameworkElement control, FrameworkElement stateGroupsRoot, VisualStateGroup group, VisualState state, bool useTransitions)
297private static bool ShouldRunStateStoryboard(FrameworkElement control, FrameworkElement stateGroupsRoot, VisualState state, VisualStateGroup group)
326protected void RaiseCurrentStateChanging(VisualStateGroup stateGroup, VisualState oldState, VisualState newState, FrameworkElement control, FrameworkElement stateGroupsRoot)
339protected void RaiseCurrentStateChanged(VisualStateGroup stateGroup, VisualState oldState, VisualState newState, FrameworkElement control, FrameworkElement stateGroupsRoot)
356private static Storyboard GenerateDynamicTransitionAnimations(FrameworkElement root, VisualStateGroup group, VisualState newState, VisualTransition transition)
420private static Timeline GenerateFromAnimation(FrameworkElement root, Timeline timeline, IEasingFunction easingFunction)
447private static Timeline GenerateToAnimation(FrameworkElement root, Timeline timeline, IEasingFunction easingFunction, bool isEntering)
486private static void CopyStoryboardTargetProperties(FrameworkElement root, Timeline source, Timeline destination)
527internal static VisualTransition GetTransition(FrameworkElement element, VisualStateGroup group, VisualState from, VisualState to)