System\Windows\BroadcastEventHelper.cs (32)
20Debug.Assert(d is FrameworkElement || d is FrameworkContentElement);
33d.SetValue(FrameworkElement.LoadedPendingPropertyKey, new object[]{loadedOp, operation, logicalParent});
41Debug.Assert(d is FrameworkElement || d is FrameworkContentElement);
48d.ClearValue(FrameworkElement.LoadedPendingPropertyKey);
68Debug.Assert(d is FrameworkElement || d is FrameworkContentElement);
81d.SetValue(FrameworkElement.UnloadedPendingPropertyKey, new object[]{unloadedOp, operation, logicalParent});
89Debug.Assert(d is FrameworkElement || d is FrameworkContentElement);
96d.ClearValue(FrameworkElement.UnloadedPendingPropertyKey);
163object[] loadedPending = (object[])rootDO.GetValue(FrameworkElement.LoadedPendingProperty);
186BroadcastEventHelper.BroadcastEvent(rootDO, FrameworkElement.LoadedEvent);
200object[] unloadedPending = (object[])rootDO.GetValue(FrameworkElement.UnloadedPendingProperty);
223BroadcastEvent(rootDO, FrameworkElement.UnloadedEvent);
272if (routedEvent == FrameworkElement.LoadedEvent)
291if (d is FrameworkElement fe)
293if (fe != root && routedEvent == FrameworkElement.LoadedEvent && fe.UnloadedPending != null)
300else if (fe != root && routedEvent == FrameworkElement.UnloadedEvent && fe.LoadedPending != null)
311if (routedEvent == FrameworkElement.LoadedEvent && fe.LoadedPending != null)
318else if (routedEvent == FrameworkElement.UnloadedEvent && fe.UnloadedPending != null)
340fe.IsLoadedCache = (routedEvent == FrameworkElement.LoadedEvent);
354if (fce != root && routedEvent == FrameworkElement.LoadedEvent && fce.UnloadedPending != null)
361else if (fce != root && routedEvent == FrameworkElement.UnloadedEvent && fce.LoadedPending != null)
372if (routedEvent == FrameworkElement.LoadedEvent && fce.LoadedPending != null)
379else if (routedEvent == FrameworkElement.UnloadedEvent && fce.UnloadedPending != null)
401fce.IsLoadedCache = (routedEvent == FrameworkElement.LoadedEvent);
417if (d is FrameworkElement fe)
430if (d is FrameworkElement fe)
442if (d is FrameworkElement fe)
587FrameworkElement child = VisualTreeHelper.GetChild(v, i) as FrameworkElement;
718FrameworkElement fe,
721if (fe.GetValue(FrameworkElement.LoadedPendingProperty) == null)
753if (fce.GetValue(FrameworkElement.LoadedPendingProperty) == null)
System\Windows\Controls\ItemsControl.cs (85)
33[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(FrameworkElement))]
1322Invariant.Assert(parent is FrameworkElement, SR.ItemsControl_ParentNotFrameworkElement);
1330((FrameworkElement)parent).TemplateChild = null;
1362Helper.HasUnmodifiedDefaultOrInheritedValue(container, FrameworkElement.BindingGroupProperty))
1368container.SetValue(FrameworkElement.BindingGroupProperty, containerBindingGroup);
1792FrameworkElement element = info.Container as FrameworkElement;
1836while (startingElement != null && !(startingElement is FrameworkElement))
1843return NavigateByLine(FocusedInfo, startingElement as FrameworkElement, direction, itemNavigateArgs);
1847FrameworkElement startingElement,
1850out FrameworkElement container)
1888FrameworkElement startingElement,
1911FrameworkElement container;
1922FrameworkElement startingElement,
1925out FrameworkElement container)
1939FrameworkElement nextElement = null;
1980treeViewNavigation) as FrameworkElement;
1985FrameworkElement viewport = GetViewportElement();
1999TryGetTreeViewItemHeader(nextElement) as FrameworkElement,
2109treeViewNavigation) as FrameworkElement;
2147FrameworkElement startingElement,
2150out FrameworkElement container)
2183return NavigateByPage(FocusedInfo, Keyboard.FocusedElement as FrameworkElement, direction, itemNavigateArgs);
2196FrameworkElement startingElement,
2219FrameworkElement container;
2230FrameworkElement startingElement,
2233out FrameworkElement container)
2250FrameworkElement firstElement;
2328FrameworkElement container;
2332internal bool NavigateToStartInternal(ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container)
2366FrameworkElement firstElement;
2367FrameworkElement hopefulFirstElement = FindEndFocusableLeafContainer(ItemsHost, false /*last*/);
2394FrameworkElement container;
2398internal bool NavigateToEndInternal(ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container)
2432FrameworkElement lastElement;
2433FrameworkElement hopefulLastElement = FindEndFocusableLeafContainer(ItemsHost, true /*last*/);
2458private FrameworkElement FindEndFocusableLeafContainer(Panel itemsHost, bool last)
2472FrameworkElement fe = children[i] as FrameworkElement;
2476FrameworkElement result = null;
2554FrameworkElement container;
2561private object FindFocusable(int startIndex, int direction, out int foundIndex, out FrameworkElement foundContainer)
2570FrameworkElement container = ItemContainerGenerator.ContainerFromIndex(startIndex) as FrameworkElement;
2589private void AdjustOffsetToAlignWithEdge(FrameworkElement element, FocusNavigationDirection direction)
2596FrameworkElement viewportElement = GetViewportElement();
2597element = TryGetTreeViewItemHeader(element) as FrameworkElement;
2632private void MakeVisible(int index, FocusNavigationDirection direction, bool alwaysAtTopOfViewport, out FrameworkElement container)
2638container = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement;
2648container = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement;
2658private void MakeVisible(ItemInfo info, FocusNavigationDirection direction, out FrameworkElement container)
2674internal void MakeVisible(FrameworkElement container, FocusNavigationDirection direction, bool alwaysAtTopOfViewport)
2681FrameworkElement viewportElement = GetViewportElement();
2703FrameworkElement firstElement;
2732private bool NavigateToFirstItemOnCurrentPage(object startingItem, FocusNavigationDirection direction, ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container)
2734object firstItem = GetFirstItemOnCurrentPage(ItemContainerGenerator.ContainerFromItem(startingItem) as FrameworkElement,
2748private object GetFirstItemOnCurrentPage(FrameworkElement startingElement,
2750out FrameworkElement firstElement)
2799FrameworkElement currentElement = startingElement;
2814FrameworkElement viewportElement = GetViewportElement();
2820viewportElement) as FrameworkElement;
2856internal FrameworkElement GetViewportElement()
2863FrameworkElement viewPort = ScrollHost;
2889FrameworkElement container = ItemContainerGenerator.ContainerFromItem(item) as FrameworkElement;
2899private bool IsOnCurrentPage(FrameworkElement element, FocusNavigationDirection axis)
2911private bool IsOnCurrentPage(FrameworkElement viewPort, FrameworkElement element, FocusNavigationDirection axis, bool fullyVisible)
2916internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort,
2925internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort,
2952internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort,
3043internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort,
3328FrameworkElement relativeTo = ScrollHost != null ? (FrameworkElement)ScrollHost : ItemsHost;
3377private bool IsRTL(FrameworkElement element)
3383private static ItemsControl GetEncapsulatingItemsControl(FrameworkElement element)
3392element = VisualTreeHelper.GetParent(element) as FrameworkElement;
3397private static object GetEncapsulatingItem(FrameworkElement element, out FrameworkElement container)
3403private static object GetEncapsulatingItem(FrameworkElement element, out FrameworkElement container, out ItemsControl itemsControl)
3421element = VisualTreeHelper.GetParent(element) as FrameworkElement;
3456container.ReadLocalValue(FrameworkElement.StyleProperty) != DependencyProperty.UnsetValue)
3487container.ClearValue(FrameworkElement.StyleProperty);
3497container.ClearValue(FrameworkElement.StyleProperty);
System\Windows\Controls\Primitives\Selector.cs (8)
104FrameworkElement.AddHandler(element, SelectedEvent, handler);
115FrameworkElement.RemoveHandler(element, SelectedEvent, handler);
133FrameworkElement.AddHandler(element, UnselectedEvent, handler);
144FrameworkElement.RemoveHandler(element, UnselectedEvent, handler);
1421private void SetSelectedHelper(object item, FrameworkElement UI, bool selected)
1886((Selector)sender).NotifyIsSelectedChanged(e.OriginalSource as FrameworkElement, true, e);
1891((Selector)sender).NotifyIsSelectedChanged(e.OriginalSource as FrameworkElement, false, e);
1902internal void NotifyIsSelectedChanged(FrameworkElement container, bool selected, RoutedEventArgs e)
System\Windows\Controls\VirtualizingStackPanel.cs (33)
419FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport(
543FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport(
671FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport(
875FrameworkElement prevFirstContainerInViewport = _scrollData._firstContainerInViewport;
880FrameworkElement currFirstContainerInViewport = ComputeFirstContainerInViewport(
903FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport(
1119private FrameworkElement ComputeFirstContainerInViewport(
1120FrameworkElement viewportElement,
1133private FrameworkElement ComputeFirstContainerInViewport(
1134FrameworkElement viewportElement,
1171FrameworkElement result = null;
1180FrameworkElement fe = children[i] as FrameworkElement;
1707FrameworkElement childFE = child as FrameworkElement;
1971FrameworkElement.AddHandler(element, CleanUpVirtualizedItemEvent, handler);
1981FrameworkElement.RemoveHandler(element, CleanUpVirtualizedItemEvent, handler);
5262FrameworkElement container = virtualizationInfoProvider as FrameworkElement;
6381FrameworkElement container = virtualizationInfoProvider as FrameworkElement;
6440FrameworkElement fe = virtualizingChild as FrameworkElement;
6577private bool IsHeaderBeforeItems(bool isHorizontal, FrameworkElement container, ref Thickness inset)
7089bool isHeaderBeforeItems = IsHeaderBeforeItems(isHorizontal, virtualizingChild as FrameworkElement, ref inset);
11066bool isHeaderBeforeItems = IsHeaderBeforeItems(isHorizontal, virtualizingElement as FrameworkElement, ref inset);
11599private FrameworkElement FirstContainerInViewport
11786internal FrameworkElement _firstContainerInViewport;
12149sti = new ScrollTracingInfo(tracer, _nullInfo.Generation, 0, itemsOwner as FrameworkElement, null, null, 0);
12171sti = new ScrollTracingInfo(tracer, _nullInfo.Generation, parentInfo.Depth + 1, itemsOwner as FrameworkElement, parent, parentItem, itemIndex);
12648internal FrameworkElement Owner { get; private set; }
12653internal ScrollTracingInfo(ScrollTracer tracer, int generation, int depth, FrameworkElement owner, VirtualizingStackPanel parent, object parentItem, int itemIndex)
12850internal FrameworkElement _firstContainerInViewport;
System\Windows\Documents\TextSchema.cs (18)
42FrameworkElement.LanguageProperty,
43FrameworkElement.FlowDirectionProperty,
1160FrameworkElement.LanguageProperty,
1164FrameworkElement.LayoutTransformProperty,
1165FrameworkElement.WidthProperty,
1166FrameworkElement.MinWidthProperty,
1167FrameworkElement.MaxWidthProperty,
1168FrameworkElement.HeightProperty,
1169FrameworkElement.MinHeightProperty,
1170FrameworkElement.MaxHeightProperty,
1172FrameworkElement.MarginProperty,
1173FrameworkElement.HorizontalAlignmentProperty,
1174FrameworkElement.VerticalAlignmentProperty,
1176FrameworkElement.CursorProperty,
1177FrameworkElement.ForceCursorProperty,
1179FrameworkElement.ToolTipProperty,
1218FrameworkElement.FlowDirectionProperty,
1219FrameworkElement.LanguageProperty,
System\Windows\FrameworkContentElement.cs (43)
111FrameworkElement.StyleProperty.AddOwner(
157= FrameworkElement.OverridesDefaultStyleProperty.AddOwner(typeof(FrameworkContentElement),
176FrameworkElement.DefaultStyleKeyProperty.AddOwner(
342object resource = FrameworkElement.FindResourceInternal(null /* fe */, this, resourceKey);
369object resource = FrameworkElement.FindResourceInternal(null /* fe */, this, resourceKey);
510object implicitValue = FrameworkElement.FindImplicitStyleResource(this, this.GetType(), out source);
550FrameworkElement parentFE;
551bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE);
614hasParent = FrameworkElement.GetFrameworkParent(parentFE, out parentFE, out parentFCE);
618hasParent = FrameworkElement.GetFrameworkParent(parentFCE, out parentFE, out parentFCE);
638FrameworkElement feTemplatedParent = (FrameworkElement)_templatedParent;
697if (dp == FrameworkElement.NameProperty &&
714FrameworkElement feTemplatedParent = TemplatedParent as FrameworkElement;
813FrameworkElement.NameProperty.AddOwner(
832FrameworkElement.TagProperty.AddOwner(
853FrameworkElement.LanguageProperty.AddOwner(
877FrameworkElement.FocusVisualStyleProperty.AddOwner(typeof(FrameworkContentElement),
878new FrameworkPropertyMetadata(FrameworkElement.DefaultFocusVisualStyle));
893FrameworkElement.CursorProperty.AddOwner(
925FrameworkElement.ForceCursorProperty.AddOwner(
1054RoutedEvent = FrameworkElement.RequestBringIntoViewEvent
1109FrameworkElement.DataContextProperty.AddOwner(
1128add { EventHandlersStoreAdd(FrameworkElement.DataContextChangedKey, value); }
1129remove { EventHandlersStoreRemove(FrameworkElement.DataContextChangedKey, value); }
1148((FrameworkContentElement) d).RaiseDependencyPropertyChanged(FrameworkElement.DataContextChangedKey, e);
1186FrameworkElement.BindingGroupProperty.AddOwner(
1331FrameworkElement.AddIntermediateElementsToRoute(this, route, args, LogicalTreeHelper.GetParent(branchNode));
1365FrameworkElement.AddStyleHandlersToEventRoute(null, this, route, args);
1396continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(this, LogicalTreeHelper.GetParent(branchNode));
1576add { EventHandlersStoreAdd(FrameworkElement.InitializedKey, value); }
1577remove { EventHandlersStoreRemove(FrameworkElement.InitializedKey, value); }
1599RaiseInitialized(FrameworkElement.InitializedKey, e);
1641= FrameworkElement.LoadedPendingProperty.AddOwner(typeof(FrameworkContentElement));
1648= FrameworkElement.UnloadedPendingProperty.AddOwner(typeof(FrameworkContentElement));
1696public static readonly RoutedEvent LoadedEvent = FrameworkElement.LoadedEvent.AddOwner( typeof(FrameworkContentElement));
1706AddHandler(FrameworkElement.LoadedEvent, value, false);
1710RemoveHandler(FrameworkElement.LoadedEvent, value);
1727public static readonly RoutedEvent UnloadedEvent = FrameworkElement.UnloadedEvent.AddOwner( typeof(FrameworkContentElement));
1736AddHandler(FrameworkElement.UnloadedEvent, value, false);
1740RemoveHandler(FrameworkElement.UnloadedEvent, value);
2163private static readonly UncommonField<ResourceDictionary> ResourcesField = FrameworkElement.ResourcesField;
System\Windows\FrameworkElement.cs (96)
96static private readonly Type _typeofThis = typeof(FrameworkElement);
128FrameworkElement.EnsureFrameworkServices();
166FrameworkElement fe = (FrameworkElement) d;
198typeof(FrameworkElement),
217FrameworkElement fe = (FrameworkElement)d;
247((FrameworkElement)d).UpdateThemeStyleProperty();
267FrameworkElement fe = (FrameworkElement) d;
462internal static FrameworkElement FindNamedFrameworkElement( FrameworkElement startElement, string targetName )
464FrameworkElement targetFE = null;
602internal virtual FrameworkElement StateGroupsRoot
606return _templateChild as FrameworkElement;
822object resource = FrameworkElement.FindResourceInternal(this, null /* fce */, resourceKey);
850object resource = FrameworkElement.FindResourceInternal(this, null /* fce */, resourceKey);
864internal static object FindImplicitStyleResource(FrameworkElement fe, object resourceKey, out object source)
888FrameworkElement.StyleProperty, // dp
972internal static object FindResourceInternal(FrameworkElement fe, FrameworkContentElement fce, object resourceKey)
1001return FrameworkElement.FindResourceInternal(null, // fe
1015FrameworkElement fe,
1144FrameworkElement feStart,
1191FrameworkElement fe = fo.FE;
1613private static ResourceDictionary GetInstanceResourceDictionary(FrameworkElement fe, FrameworkContentElement fce)
1637private static ResourceDictionary GetStyleResourceDictionary(FrameworkElement fe, FrameworkContentElement fce)
1677private static ResourceDictionary GetThemeStyleResourceDictionary(FrameworkElement fe, FrameworkContentElement fce)
1717private static ResourceDictionary GetTemplateResourceDictionary(FrameworkElement fe, FrameworkContentElement fce)
1868object implicitValue = FrameworkElement.FindImplicitStyleResource(this, this.GetType(), out source);
1925FrameworkElement feTemplatedParent = (FrameworkElement)_templatedParent;
1957FrameworkElement parentFE;
2069if (dp == FrameworkElement.NameProperty &&
2086FrameworkElement feTemplatedParent = TemplatedParent as FrameworkElement;
2215if(layoutParent is FrameworkElement fe)
2276internal static bool GetFrameworkParent(FrameworkElement current, out FrameworkElement feParent, out FrameworkContentElement fceParent)
2289internal static bool GetFrameworkParent(FrameworkContentElement current, out FrameworkElement feParent, out FrameworkContentElement fceParent)
2301internal static bool GetContainingFrameworkElement(DependencyObject current, out FrameworkElement fe, out FrameworkContentElement fce)
2369EventManager.RegisterClassHandler(_typeofThis, Mouse.QueryCursorEvent, new QueryCursorEventHandler(FrameworkElement.OnQueryCursorOverride), true);
2400typeof(FrameworkElement),
2408FrameworkElement fe = (FrameworkElement) d;
2463if (newParent != null && (newParent is FrameworkElement) == false)
2477else if (oldParent != null && (oldParent is FrameworkElement) == false)
2525FrameworkElement feParent = null;
2529FrameworkElement.GetContainingFrameworkElement(VisualTreeHelper.GetParent(this), out feParent, out fceParent);
2560FrameworkElement.GetContainingFrameworkElement(e.OldParent, out feParent, out fceParent);
2729((FrameworkElement) d).RaiseDependencyPropertyChanged(DataContextChangedKey, e);
2914FrameworkElement.AddIntermediateElementsToRoute(this, route, args, LogicalTreeHelper.GetParent(branchNode));
2969FrameworkElement fe,
3015FrameworkElement feTemplatedParent = templatedParent as FrameworkElement;
3105continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(this, LogicalTreeHelper.GetParent(branchNode));
3331FrameworkElement fe = (FrameworkElement) d;
3376FrameworkElement fe = (FrameworkElement) d;
3434FrameworkElement fe = (FrameworkElement)d;
3459FrameworkElement fe = (FrameworkElement)d;
3645FrameworkElement fe = d as FrameworkElement;
3659FrameworkElement fe = d as FrameworkElement;
3867FrameworkElement fe = ((FrameworkElement)d);
3902FrameworkElement fe = ((FrameworkElement)d);
3912FrameworkElement fe = (FrameworkElement) sender;
3951internal static bool ShouldApplyMirrorTransform(FrameworkElement fe)
3968FrameworkElement parentFE;
3998FrameworkElement fe = v as FrameworkElement;
4039internal MinMax(FrameworkElement e)
5136FrameworkElement fe = element as FrameworkElement;
5329FrameworkElement fe = (FrameworkElement)sender;
5355FrameworkElement fe = (FrameworkElement)sender;
5523((FrameworkElement) o).HasNumberSubstitutionChanged = true;
5527private static bool ShouldUseSystemFont(FrameworkElement fe, DependencyProperty dp)
5542if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontFamilyProperty))
5553if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontSizeProperty))
5564if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontStyleProperty))
5575if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontWeightProperty))
5943((FrameworkElement)sender).OnToolTipOpening(e);
5975((FrameworkElement)sender).OnToolTipClosing(e);
6008((FrameworkElement)sender).OnContextMenuOpening(e);
6035((FrameworkElement)sender).OnContextMenuClosing(e);
6080FrameworkElement fe = uiElement as FrameworkElement;
System\Windows\Generated\FrameworkContentElement.cs (14)
65INameScope nameScope = FrameworkElement.FindScope(this);
83INameScope nameScope = FrameworkElement.FindScope(this);
109INameScope nameScope = FrameworkElement.FindScope(this, out scopeOwner);
319IsParentAnFE = newParent is FrameworkElement;
437RaiseClrEvent(FrameworkElement.ResourcesChangedKey, EventArgs.Empty);
476FrameworkElement.GetTemplatedParentChildRecord(templatedParent, childIndex, out childRecord, out isChildRecordValid);
478FrameworkElement parentFE;
480bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE);
766&& FrameworkElement.GetFrameworkParent(this) == null
1003Delegate handler = store.Get(FrameworkElement.InheritedPropertyChangedKey);
1186EventHandlersStoreAdd(FrameworkElement.ResourcesChangedKey, value);
1188remove { EventHandlersStoreRemove(FrameworkElement.ResourcesChangedKey, value); }
1206EventHandlersStoreAdd(FrameworkElement.InheritedPropertyChangedKey, value);
1208remove { EventHandlersStoreRemove(FrameworkElement.InheritedPropertyChangedKey, value); }
System\Windows\Generated\FrameworkElement.cs (14)
65INameScope nameScope = FrameworkElement.FindScope(this);
83INameScope nameScope = FrameworkElement.FindScope(this);
109INameScope nameScope = FrameworkElement.FindScope(this, out scopeOwner);
319IsParentAnFE = newParent is FrameworkElement;
429RaiseClrEvent(FrameworkElement.ResourcesChangedKey, EventArgs.Empty);
491FrameworkElement.GetTemplatedParentChildRecord(templatedParent, childIndex, out childRecord, out isChildRecordValid);
493FrameworkElement parentFE;
495bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE);
796&& FrameworkElement.GetFrameworkParent(this) == null
1033Delegate handler = store.Get(FrameworkElement.InheritedPropertyChangedKey);
1228EventHandlersStoreAdd(FrameworkElement.ResourcesChangedKey, value);
1230remove { EventHandlersStoreRemove(FrameworkElement.ResourcesChangedKey, value); }
1253EventHandlersStoreAdd(FrameworkElement.InheritedPropertyChangedKey, value);
1255remove { EventHandlersStoreRemove(FrameworkElement.InheritedPropertyChangedKey, value); }
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (43)
2539Type type = typeof(System.Windows.FrameworkElement);
2540DependencyProperty dp = System.Windows.FrameworkElement.FlowDirectionProperty;
2542this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2558Type type = typeof(System.Windows.FrameworkElement);
2559DependencyProperty dp = System.Windows.FrameworkElement.HeightProperty;
2561this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2577Type type = typeof(System.Windows.FrameworkElement);
2578DependencyProperty dp = System.Windows.FrameworkElement.HorizontalAlignmentProperty;
2580this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2596Type type = typeof(System.Windows.FrameworkElement);
2597DependencyProperty dp = System.Windows.FrameworkElement.MarginProperty;
2599this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2615Type type = typeof(System.Windows.FrameworkElement);
2616DependencyProperty dp = System.Windows.FrameworkElement.MaxHeightProperty;
2618this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2634Type type = typeof(System.Windows.FrameworkElement);
2635DependencyProperty dp = System.Windows.FrameworkElement.MaxWidthProperty;
2637this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2653Type type = typeof(System.Windows.FrameworkElement);
2654DependencyProperty dp = System.Windows.FrameworkElement.MinHeightProperty;
2656this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2672Type type = typeof(System.Windows.FrameworkElement);
2673DependencyProperty dp = System.Windows.FrameworkElement.MinWidthProperty;
2675this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2691Type type = typeof(System.Windows.FrameworkElement);
2692DependencyProperty dp = System.Windows.FrameworkElement.NameProperty;
2694this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2710Type type = typeof(System.Windows.FrameworkElement);
2711DependencyProperty dp = System.Windows.FrameworkElement.StyleProperty;
2713this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2726Type type = typeof(System.Windows.FrameworkElement);
2727DependencyProperty dp = System.Windows.FrameworkElement.VerticalAlignmentProperty;
2729this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2745Type type = typeof(System.Windows.FrameworkElement);
2746DependencyProperty dp = System.Windows.FrameworkElement.WidthProperty;
2748this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
6824Type type = typeof(System.Windows.FrameworkElement);
6826this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
6834SetDelegate = delegate (object target, object value) { ((System.Windows.FrameworkElement)target).Resources = (System.Windows.ResourceDictionary)value; },
6835GetDelegate = delegate (object target) { return ((System.Windows.FrameworkElement)target).Resources; }
8929Type type = typeof(System.Windows.FrameworkElement);
8931this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
8938GetDelegate = delegate (object target) { return ((System.Windows.FrameworkElement)target).Triggers; },
System\Windows\Media\Animation\Storyboard.cs (27)
247FrameworkElement fe = element as FrameworkElement;
308FrameworkElement fe,
437targetObject = containingObject as FrameworkElement;
931if(targetObject is FrameworkElement)
1066public void Begin( FrameworkElement containingObject )
1074public void Begin( FrameworkElement containingObject, HandoffBehavior handoffBehavior )
1082public void Begin( FrameworkElement containingObject, bool isControllable )
1090public void Begin( FrameworkElement containingObject, HandoffBehavior handoffBehavior, bool isControllable )
1098public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate )
1106public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate, HandoffBehavior handoffBehavior )
1114public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate, bool isControllable )
1122public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate, HandoffBehavior handoffBehavior, bool isControllable )
1288public Nullable<Double> GetCurrentGlobalSpeed( FrameworkElement containingObject )
1337public Nullable<Int32> GetCurrentIteration( FrameworkElement containingObject )
1386public Nullable<Double> GetCurrentProgress( FrameworkElement containingObject )
1434public ClockState GetCurrentState( FrameworkElement containingObject )
1473public Nullable<TimeSpan> GetCurrentTime( FrameworkElement containingObject )
1522public bool GetIsPaused( FrameworkElement containingObject )
1563public void Pause( FrameworkElement containingObject )
1605public void Remove(FrameworkElement containingObject)
1651public void Resume( FrameworkElement containingObject )
1695public void Seek( FrameworkElement containingObject, TimeSpan offset, TimeSeekOrigin origin )
1743public void SeekAlignedToLastTick( FrameworkElement containingObject, TimeSpan offset, TimeSeekOrigin origin )
1791public void SetSpeedRatio( FrameworkElement containingObject, double speedRatio )
1830public void SkipToFill( FrameworkElement containingObject )
1864public void Stop( FrameworkElement containingObject )
System\Windows\StyleHelper.cs (79)
49FrameworkElement fe,
88FrameworkElement fe,
108if (StyleHelper.IsSetOnContainer(FrameworkElement.OverridesDefaultStyleProperty, ref newThemeStyle.ContainerDependents, true))
126if(ShouldGetValueFromStyle ( FrameworkElement.DefaultStyleKeyProperty ) )
156internal static Style GetThemeStyle(FrameworkElement fe, FrameworkContentElement fce)
242FrameworkElement.StyleProperty.GetMetadata(themeStyleTypeKey);
259FrameworkElement.OnThemeStyleChanged(fe, oldThemeStyle, newThemeStyle);
277FrameworkElement fe,
440if (StyleHelper.IsSetOnContainer(FrameworkElement.StyleProperty, ref containerDependents, true))
442throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.StyleProperty.Name));
447if (StyleHelper.IsSetOnContainer(FrameworkElement.DefaultStyleKeyProperty, ref containerDependents, true))
449throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.DefaultStyleKeyProperty.Name));
454if (StyleHelper.IsSetOnContainer(FrameworkElement.OverridesDefaultStyleProperty, ref containerDependents, true))
456throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.OverridesDefaultStyleProperty.Name));
461if (StyleHelper.IsSetOnContainer(FrameworkElement.NameProperty, ref containerDependents, true))
463throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.NameProperty.Name));
1154if ( (eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent)
1155||(eventTrigger.RoutedEvent == FrameworkElement.UnloadedEvent))
1189if (eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent
1191eventTrigger.RoutedEvent == FrameworkElement.UnloadedEvent )
1202if( eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent )
1329FrameworkElement fe,
1364FrameworkElement fe,
1427FrameworkElement fe,
1494Debug.Assert((container is FrameworkElement) || (container is FrameworkContentElement), "Caller has queried with non-framework element. Bad caller, bad!");
1537FrameworkElement feChild;
1773FrameworkElement feContainer = container as FrameworkElement;
1810Debug.Assert(treeRoot is FrameworkElement || treeRoot is FrameworkContentElement,
1858Debug.Assert(treeRoot == null || treeRoot is FrameworkElement || treeRoot is FrameworkContentElement,
1932internal static void AddCustomTemplateRoot( FrameworkElement container, UIElement child )
1940FrameworkElement container,
1960FrameworkElement parent = VisualTreeHelper.GetParent(child) as FrameworkElement;
2048FrameworkElement feWalkNode;
2126FrameworkElement feContainer,
2175FrameworkElement feContainer,
2208FrameworkElement feContainer,
2230FrameworkElement fe;
2322out FrameworkElement fe, out FrameworkContentElement fce,
2325if (d is FrameworkElement frameworkElement)
2390Debug.Assert(sender is FrameworkElement || sender is FrameworkContentElement,
2393FrameworkElement fe;
2445Debug.Assert(sender is FrameworkElement || sender is FrameworkContentElement,
2448FrameworkElement fe;
2470FrameworkElement feTemplatedParent;
2493FrameworkElement fe,
2688sourceNodeType = (container as FrameworkElement).TemplateInternal.ChildTypeFromChildIndex[sourceChildIndex];
2719value = FrameworkElement.FindResourceInternal(child.FE,
2774value = FrameworkElement.FindResourceInternal(
2899FrameworkElement feChild,
2909FrameworkElement feContainer;
3091return (dp != FrameworkElement.StyleProperty);
3103return (dp != FrameworkElement.StyleProperty &&
3104dp != FrameworkElement.DefaultStyleKeyProperty &&
3105dp != FrameworkElement.OverridesDefaultStyleProperty);
3118return (dp != FrameworkElement.StyleProperty &&
3119dp != FrameworkElement.DefaultStyleKeyProperty &&
3120dp != FrameworkElement.OverridesDefaultStyleProperty &&
3140FrameworkElement fe,
3221FrameworkElement fe,
3296FrameworkElement feContainer,
3438FrameworkElement fe,
3479FrameworkElement fe,
4232if (dp != FrameworkElement.StyleProperty)
4498private static void ExecuteOnApplyEnterExitActions( FrameworkElement fe,
4527private static void ExecuteOnApplyEnterExitActions( FrameworkElement fe, FrameworkContentElement fce,
4706FrameworkElement fe = (FrameworkElement)container;
4825action.Invoke(triggerContainer as FrameworkElement, triggerContainer as FrameworkContentElement,
5128FrameworkElement fe;
5165FrameworkElement fe;
5208FrameworkElement fe;
5440child is FrameworkElement && ((FrameworkElement)child).TemplateChildIndex == childIndex ||
5475FrameworkElement fe;
5500FrameworkElement fe;
5590if (dp == ItemsControl.ItemsPanelProperty || dp == FrameworkElement.ContextMenuProperty || dp == FrameworkElement.ToolTipProperty)
System\Windows\VisualStateManager.cs (24)
27private static bool GoToStateCommon(FrameworkElement control, FrameworkElement stateGroupsRoot, string stateName, bool useTransitions)
69public static bool GoToState(FrameworkElement control, string stateName, bool useTransitions)
73FrameworkElement stateGroupsRoot = control.StateGroupsRoot;
85public static bool GoToElementState(FrameworkElement stateGroupsRoot, string stateName, bool useTransitions)
95protected virtual bool GoToStateCore(FrameworkElement control, FrameworkElement stateGroupsRoot, string stateName, VisualStateGroup group, VisualState state, bool useTransitions)
109public static VisualStateManager GetCustomVisualStateManager(FrameworkElement obj)
116public static void SetCustomVisualStateManager(FrameworkElement obj, VisualStateManager value)
140internal static Collection<VisualStateGroup> GetVisualStateGroupsInternal(FrameworkElement obj)
156public static IList GetVisualStateGroups(FrameworkElement obj)
186private static bool GoToStateInternal(FrameworkElement control, FrameworkElement stateGroupsRoot, VisualStateGroup group, VisualState state, bool useTransitions)
298private static bool ShouldRunStateStoryboard(FrameworkElement control, FrameworkElement stateGroupsRoot, VisualState state, VisualStateGroup group)
327protected void RaiseCurrentStateChanging(VisualStateGroup stateGroup, VisualState oldState, VisualState newState, FrameworkElement control, FrameworkElement stateGroupsRoot)
340protected void RaiseCurrentStateChanged(VisualStateGroup stateGroup, VisualState oldState, VisualState newState, FrameworkElement control, FrameworkElement stateGroupsRoot)
357private static Storyboard GenerateDynamicTransitionAnimations(FrameworkElement root, VisualStateGroup group, VisualState newState, VisualTransition transition)
421private static Timeline GenerateFromAnimation(FrameworkElement root, Timeline timeline, IEasingFunction easingFunction)
448private static Timeline GenerateToAnimation(FrameworkElement root, Timeline timeline, IEasingFunction easingFunction, bool isEntering)
487private static void CopyStoryboardTargetProperties(FrameworkElement root, Timeline source, Timeline destination)
528internal static VisualTransition GetTransition(FrameworkElement element, VisualStateGroup group, VisualState from, VisualState to)