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))]
1334Invariant.Assert(parent is FrameworkElement, SR.ItemsControl_ParentNotFrameworkElement);
1342((FrameworkElement)parent).TemplateChild = null;
1374Helper.HasUnmodifiedDefaultOrInheritedValue(container, FrameworkElement.BindingGroupProperty))
1380container.SetValue(FrameworkElement.BindingGroupProperty, containerBindingGroup);
1819FrameworkElement element = info.Container as FrameworkElement;
1866while (startingElement != null && !(startingElement is FrameworkElement))
1873return NavigateByLine(FocusedInfo, startingElement as FrameworkElement, direction, itemNavigateArgs);
1877FrameworkElement startingElement,
1880out FrameworkElement container)
1918FrameworkElement startingElement,
1941FrameworkElement container;
1952FrameworkElement startingElement,
1955out FrameworkElement container)
1969FrameworkElement nextElement = null;
2010treeViewNavigation) as FrameworkElement;
2015FrameworkElement viewport = GetViewportElement();
2029TryGetTreeViewItemHeader(nextElement) as FrameworkElement,
2139treeViewNavigation) as FrameworkElement;
2177FrameworkElement startingElement,
2180out FrameworkElement container)
2213return NavigateByPage(FocusedInfo, Keyboard.FocusedElement as FrameworkElement, direction, itemNavigateArgs);
2226FrameworkElement startingElement,
2249FrameworkElement container;
2260FrameworkElement startingElement,
2263out FrameworkElement container)
2280FrameworkElement firstElement;
2358FrameworkElement container;
2362internal bool NavigateToStartInternal(ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container)
2396FrameworkElement firstElement;
2397FrameworkElement hopefulFirstElement = FindEndFocusableLeafContainer(ItemsHost, false /*last*/);
2424FrameworkElement container;
2428internal bool NavigateToEndInternal(ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container)
2462FrameworkElement lastElement;
2463FrameworkElement hopefulLastElement = FindEndFocusableLeafContainer(ItemsHost, true /*last*/);
2488private FrameworkElement FindEndFocusableLeafContainer(Panel itemsHost, bool last)
2502FrameworkElement fe = children[i] as FrameworkElement;
2506FrameworkElement result = null;
2584FrameworkElement container;
2591private object FindFocusable(int startIndex, int direction, out int foundIndex, out FrameworkElement foundContainer)
2600FrameworkElement container = ItemContainerGenerator.ContainerFromIndex(startIndex) as FrameworkElement;
2619private void AdjustOffsetToAlignWithEdge(FrameworkElement element, FocusNavigationDirection direction)
2626FrameworkElement viewportElement = GetViewportElement();
2627element = TryGetTreeViewItemHeader(element) as FrameworkElement;
2662private void MakeVisible(int index, FocusNavigationDirection direction, bool alwaysAtTopOfViewport, out FrameworkElement container)
2668container = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement;
2678container = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement;
2688private void MakeVisible(ItemInfo info, FocusNavigationDirection direction, out FrameworkElement container)
2704internal void MakeVisible(FrameworkElement container, FocusNavigationDirection direction, bool alwaysAtTopOfViewport)
2711FrameworkElement viewportElement = GetViewportElement();
2733FrameworkElement firstElement;
2762private bool NavigateToFirstItemOnCurrentPage(object startingItem, FocusNavigationDirection direction, ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container)
2764object firstItem = GetFirstItemOnCurrentPage(ItemContainerGenerator.ContainerFromItem(startingItem) as FrameworkElement,
2778private object GetFirstItemOnCurrentPage(FrameworkElement startingElement,
2780out FrameworkElement firstElement)
2829FrameworkElement currentElement = startingElement;
2844FrameworkElement viewportElement = GetViewportElement();
2850viewportElement) as FrameworkElement;
2886internal FrameworkElement GetViewportElement()
2893FrameworkElement viewPort = ScrollHost;
2919FrameworkElement container = ItemContainerGenerator.ContainerFromItem(item) as FrameworkElement;
2929private bool IsOnCurrentPage(FrameworkElement element, FocusNavigationDirection axis)
2941private bool IsOnCurrentPage(FrameworkElement viewPort, FrameworkElement element, FocusNavigationDirection axis, bool fullyVisible)
2946internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort,
2955internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort,
2982internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort,
3073internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort,
3358FrameworkElement relativeTo = ScrollHost != null ? (FrameworkElement)ScrollHost : ItemsHost;
3407private bool IsRTL(FrameworkElement element)
3413private static ItemsControl GetEncapsulatingItemsControl(FrameworkElement element)
3422element = VisualTreeHelper.GetParent(element) as FrameworkElement;
3427private static object GetEncapsulatingItem(FrameworkElement element, out FrameworkElement container)
3433private static object GetEncapsulatingItem(FrameworkElement element, out FrameworkElement container, out ItemsControl itemsControl)
3451element = VisualTreeHelper.GetParent(element) as FrameworkElement;
3486container.ReadLocalValue(FrameworkElement.StyleProperty) != DependencyProperty.UnsetValue)
3517container.ClearValue(FrameworkElement.StyleProperty);
3527container.ClearValue(FrameworkElement.StyleProperty);
System\Windows\Controls\Primitives\Selector.cs (8)
104FrameworkElement.AddHandler(element, SelectedEvent, handler);
115FrameworkElement.RemoveHandler(element, SelectedEvent, handler);
133FrameworkElement.AddHandler(element, UnselectedEvent, handler);
144FrameworkElement.RemoveHandler(element, UnselectedEvent, handler);
1422private void SetSelectedHelper(object item, FrameworkElement UI, bool selected)
1887((Selector)sender).NotifyIsSelectedChanged(e.OriginalSource as FrameworkElement, true, e);
1892((Selector)sender).NotifyIsSelectedChanged(e.OriginalSource as FrameworkElement, false, e);
1903internal 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;
1713FrameworkElement childFE = child as FrameworkElement;
1977FrameworkElement.AddHandler(element, CleanUpVirtualizedItemEvent, handler);
1987FrameworkElement.RemoveHandler(element, CleanUpVirtualizedItemEvent, handler);
5283FrameworkElement container = virtualizationInfoProvider as FrameworkElement;
6402FrameworkElement container = virtualizationInfoProvider as FrameworkElement;
6461FrameworkElement fe = virtualizingChild as FrameworkElement;
6598private bool IsHeaderBeforeItems(bool isHorizontal, FrameworkElement container, ref Thickness inset)
7110bool isHeaderBeforeItems = IsHeaderBeforeItems(isHorizontal, virtualizingChild as FrameworkElement, ref inset);
11090bool isHeaderBeforeItems = IsHeaderBeforeItems(isHorizontal, virtualizingElement as FrameworkElement, ref inset);
11623private FrameworkElement FirstContainerInViewport
11810internal FrameworkElement _firstContainerInViewport;
12173sti = new ScrollTracingInfo(tracer, _nullInfo.Generation, 0, itemsOwner as FrameworkElement, null, null, 0);
12195sti = new ScrollTracingInfo(tracer, _nullInfo.Generation, parentInfo.Depth + 1, itemsOwner as FrameworkElement, parent, parentItem, itemIndex);
12672internal FrameworkElement Owner { get; private set; }
12677internal ScrollTracingInfo(ScrollTracer tracer, int generation, int depth, FrameworkElement owner, VirtualizingStackPanel parent, object parentItem, int itemIndex)
12874internal 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(
345object resource = FrameworkElement.FindResourceInternal(null /* fe */, this, resourceKey);
372object resource = FrameworkElement.FindResourceInternal(null /* fe */, this, resourceKey);
513object implicitValue = FrameworkElement.FindImplicitStyleResource(this, this.GetType(), out source);
553FrameworkElement parentFE;
554bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE);
617hasParent = FrameworkElement.GetFrameworkParent(parentFE, out parentFE, out parentFCE);
621hasParent = FrameworkElement.GetFrameworkParent(parentFCE, out parentFE, out parentFCE);
641FrameworkElement feTemplatedParent = (FrameworkElement)_templatedParent;
700if (dp == FrameworkElement.NameProperty &&
717FrameworkElement feTemplatedParent = TemplatedParent as FrameworkElement;
816FrameworkElement.NameProperty.AddOwner(
835FrameworkElement.TagProperty.AddOwner(
856FrameworkElement.LanguageProperty.AddOwner(
880FrameworkElement.FocusVisualStyleProperty.AddOwner(typeof(FrameworkContentElement),
881new FrameworkPropertyMetadata(FrameworkElement.DefaultFocusVisualStyle));
896FrameworkElement.CursorProperty.AddOwner(
928FrameworkElement.ForceCursorProperty.AddOwner(
1057RoutedEvent = FrameworkElement.RequestBringIntoViewEvent
1112FrameworkElement.DataContextProperty.AddOwner(
1131add { EventHandlersStoreAdd(FrameworkElement.DataContextChangedKey, value); }
1132remove { EventHandlersStoreRemove(FrameworkElement.DataContextChangedKey, value); }
1151((FrameworkContentElement) d).RaiseDependencyPropertyChanged(FrameworkElement.DataContextChangedKey, e);
1189FrameworkElement.BindingGroupProperty.AddOwner(
1334FrameworkElement.AddIntermediateElementsToRoute(this, route, args, LogicalTreeHelper.GetParent(branchNode));
1368FrameworkElement.AddStyleHandlersToEventRoute(null, this, route, args);
1399continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(this, LogicalTreeHelper.GetParent(branchNode));
1579add { EventHandlersStoreAdd(FrameworkElement.InitializedKey, value); }
1580remove { EventHandlersStoreRemove(FrameworkElement.InitializedKey, value); }
1602RaiseInitialized(FrameworkElement.InitializedKey, e);
1644= FrameworkElement.LoadedPendingProperty.AddOwner(typeof(FrameworkContentElement));
1651= FrameworkElement.UnloadedPendingProperty.AddOwner(typeof(FrameworkContentElement));
1699public static readonly RoutedEvent LoadedEvent = FrameworkElement.LoadedEvent.AddOwner( typeof(FrameworkContentElement));
1709AddHandler(FrameworkElement.LoadedEvent, value, false);
1713RemoveHandler(FrameworkElement.LoadedEvent, value);
1730public static readonly RoutedEvent UnloadedEvent = FrameworkElement.UnloadedEvent.AddOwner( typeof(FrameworkContentElement));
1739AddHandler(FrameworkElement.UnloadedEvent, value, false);
1743RemoveHandler(FrameworkElement.UnloadedEvent, value);
2172private 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;
825object resource = FrameworkElement.FindResourceInternal(this, null /* fce */, resourceKey);
853object resource = FrameworkElement.FindResourceInternal(this, null /* fce */, resourceKey);
867internal static object FindImplicitStyleResource(FrameworkElement fe, object resourceKey, out object source)
891FrameworkElement.StyleProperty, // dp
975internal static object FindResourceInternal(FrameworkElement fe, FrameworkContentElement fce, object resourceKey)
1004return FrameworkElement.FindResourceInternal(null, // fe
1018FrameworkElement fe,
1147FrameworkElement feStart,
1194FrameworkElement fe = fo.FE;
1616private static ResourceDictionary GetInstanceResourceDictionary(FrameworkElement fe, FrameworkContentElement fce)
1640private static ResourceDictionary GetStyleResourceDictionary(FrameworkElement fe, FrameworkContentElement fce)
1680private static ResourceDictionary GetThemeStyleResourceDictionary(FrameworkElement fe, FrameworkContentElement fce)
1720private static ResourceDictionary GetTemplateResourceDictionary(FrameworkElement fe, FrameworkContentElement fce)
1871object implicitValue = FrameworkElement.FindImplicitStyleResource(this, this.GetType(), out source);
1928FrameworkElement feTemplatedParent = (FrameworkElement)_templatedParent;
1960FrameworkElement parentFE;
2072if (dp == FrameworkElement.NameProperty &&
2089FrameworkElement feTemplatedParent = TemplatedParent as FrameworkElement;
2218if(layoutParent is FrameworkElement fe)
2279internal static bool GetFrameworkParent(FrameworkElement current, out FrameworkElement feParent, out FrameworkContentElement fceParent)
2292internal static bool GetFrameworkParent(FrameworkContentElement current, out FrameworkElement feParent, out FrameworkContentElement fceParent)
2304internal static bool GetContainingFrameworkElement(DependencyObject current, out FrameworkElement fe, out FrameworkContentElement fce)
2372EventManager.RegisterClassHandler(_typeofThis, Mouse.QueryCursorEvent, new QueryCursorEventHandler(FrameworkElement.OnQueryCursorOverride), true);
2403typeof(FrameworkElement),
2411FrameworkElement fe = (FrameworkElement) d;
2466if (newParent != null && (newParent is FrameworkElement) == false)
2480else if (oldParent != null && (oldParent is FrameworkElement) == false)
2528FrameworkElement feParent = null;
2532FrameworkElement.GetContainingFrameworkElement(VisualTreeHelper.GetParent(this), out feParent, out fceParent);
2563FrameworkElement.GetContainingFrameworkElement(e.OldParent, out feParent, out fceParent);
2732((FrameworkElement) d).RaiseDependencyPropertyChanged(DataContextChangedKey, e);
2917FrameworkElement.AddIntermediateElementsToRoute(this, route, args, LogicalTreeHelper.GetParent(branchNode));
2972FrameworkElement fe,
3018FrameworkElement feTemplatedParent = templatedParent as FrameworkElement;
3111continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(this, LogicalTreeHelper.GetParent(branchNode));
3337FrameworkElement fe = (FrameworkElement) d;
3382FrameworkElement fe = (FrameworkElement) d;
3440FrameworkElement fe = (FrameworkElement)d;
3465FrameworkElement fe = (FrameworkElement)d;
3651FrameworkElement fe = d as FrameworkElement;
3665FrameworkElement fe = d as FrameworkElement;
3873FrameworkElement fe = ((FrameworkElement)d);
3908FrameworkElement fe = ((FrameworkElement)d);
3918FrameworkElement fe = (FrameworkElement) sender;
3957internal static bool ShouldApplyMirrorTransform(FrameworkElement fe)
3974FrameworkElement parentFE;
4004FrameworkElement fe = v as FrameworkElement;
4045internal MinMax(FrameworkElement e)
5142FrameworkElement fe = element as FrameworkElement;
5335FrameworkElement fe = (FrameworkElement)sender;
5361FrameworkElement fe = (FrameworkElement)sender;
5529((FrameworkElement) o).HasNumberSubstitutionChanged = true;
5533private static bool ShouldUseSystemFont(FrameworkElement fe, DependencyProperty dp)
5548if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontFamilyProperty))
5559if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontSizeProperty))
5570if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontStyleProperty))
5581if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontWeightProperty))
5952((FrameworkElement)sender).OnToolTipOpening(e);
5984((FrameworkElement)sender).OnToolTipClosing(e);
6017((FrameworkElement)sender).OnContextMenuOpening(e);
6044((FrameworkElement)sender).OnContextMenuClosing(e);
6089FrameworkElement 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);
321IsParentAnFE = newParent is FrameworkElement;
438RaiseClrEvent(FrameworkElement.ResourcesChangedKey, EventArgs.Empty);
477FrameworkElement.GetTemplatedParentChildRecord(templatedParent, childIndex, out childRecord, out isChildRecordValid);
479FrameworkElement parentFE;
481bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE);
766&& FrameworkElement.GetFrameworkParent(this) == null
1003Delegate handler = store.Get(FrameworkElement.InheritedPropertyChangedKey);
1186EventHandlersStoreAdd(FrameworkElement.ResourcesChangedKey, value);
1188remove { EventHandlersStoreRemove(FrameworkElement.ResourcesChangedKey, value); }
1206EventHandlersStoreAdd(FrameworkElement.InheritedPropertyChangedKey, value);
1208remove { EventHandlersStoreRemove(FrameworkElement.InheritedPropertyChangedKey, value); }
System\Windows\Generated\FrameworkElement.cs (14)
64INameScope nameScope = FrameworkElement.FindScope(this);
82INameScope nameScope = FrameworkElement.FindScope(this);
108INameScope nameScope = FrameworkElement.FindScope(this, out scopeOwner);
321IsParentAnFE = newParent is FrameworkElement;
431RaiseClrEvent(FrameworkElement.ResourcesChangedKey, EventArgs.Empty);
493FrameworkElement.GetTemplatedParentChildRecord(templatedParent, childIndex, out childRecord, out isChildRecordValid);
495FrameworkElement parentFE;
497bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE);
798&& FrameworkElement.GetFrameworkParent(this) == null
1035Delegate handler = store.Get(FrameworkElement.InheritedPropertyChangedKey);
1230EventHandlersStoreAdd(FrameworkElement.ResourcesChangedKey, value);
1232remove { EventHandlersStoreRemove(FrameworkElement.ResourcesChangedKey, value); }
1255EventHandlersStoreAdd(FrameworkElement.InheritedPropertyChangedKey, value);
1257remove { EventHandlersStoreRemove(FrameworkElement.InheritedPropertyChangedKey, value); }
System\Windows\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 )
1608public void Remove(FrameworkElement containingObject)
1657public void Resume( FrameworkElement containingObject )
1704public void Seek( FrameworkElement containingObject, TimeSpan offset, TimeSeekOrigin origin )
1755public void SeekAlignedToLastTick( FrameworkElement containingObject, TimeSpan offset, TimeSeekOrigin origin )
1806public void SetSpeedRatio( FrameworkElement containingObject, double speedRatio )
1845public void SkipToFill( FrameworkElement containingObject )
1882public 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,
444if (StyleHelper.IsSetOnContainer(FrameworkElement.StyleProperty, ref containerDependents, true))
446throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.StyleProperty.Name));
451if (StyleHelper.IsSetOnContainer(FrameworkElement.DefaultStyleKeyProperty, ref containerDependents, true))
453throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.DefaultStyleKeyProperty.Name));
458if (StyleHelper.IsSetOnContainer(FrameworkElement.OverridesDefaultStyleProperty, ref containerDependents, true))
460throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.OverridesDefaultStyleProperty.Name));
465if (StyleHelper.IsSetOnContainer(FrameworkElement.NameProperty, ref containerDependents, true))
467throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.NameProperty.Name));
1158if ( (eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent)
1159||(eventTrigger.RoutedEvent == FrameworkElement.UnloadedEvent))
1193if (eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent
1195eventTrigger.RoutedEvent == FrameworkElement.UnloadedEvent )
1206if( eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent )
1333FrameworkElement fe,
1368FrameworkElement fe,
1431FrameworkElement fe,
1498Debug.Assert((container is FrameworkElement) || (container is FrameworkContentElement), "Caller has queried with non-framework element. Bad caller, bad!");
1541FrameworkElement feChild;
1777FrameworkElement feContainer = container as FrameworkElement;
1814Debug.Assert(treeRoot is FrameworkElement || treeRoot is FrameworkContentElement,
1862Debug.Assert(treeRoot == null || treeRoot is FrameworkElement || treeRoot is FrameworkContentElement,
1936internal static void AddCustomTemplateRoot( FrameworkElement container, UIElement child )
1944FrameworkElement container,
1964FrameworkElement parent = VisualTreeHelper.GetParent(child) as FrameworkElement;
2052FrameworkElement feWalkNode;
2130FrameworkElement feContainer,
2182FrameworkElement feContainer,
2215FrameworkElement feContainer,
2237FrameworkElement fe;
2329out FrameworkElement fe, out FrameworkContentElement fce,
2332if (d is FrameworkElement frameworkElement)
2397Debug.Assert(sender is FrameworkElement || sender is FrameworkContentElement,
2400FrameworkElement fe;
2452Debug.Assert(sender is FrameworkElement || sender is FrameworkContentElement,
2455FrameworkElement fe;
2477FrameworkElement feTemplatedParent;
2500FrameworkElement fe,
2695sourceNodeType = (container as FrameworkElement).TemplateInternal.ChildTypeFromChildIndex[sourceChildIndex];
2726value = FrameworkElement.FindResourceInternal(child.FE,
2781value = FrameworkElement.FindResourceInternal(
2906FrameworkElement feChild,
2916FrameworkElement feContainer;
3101return (dp != FrameworkElement.StyleProperty);
3113return (dp != FrameworkElement.StyleProperty &&
3114dp != FrameworkElement.DefaultStyleKeyProperty &&
3115dp != FrameworkElement.OverridesDefaultStyleProperty);
3128return (dp != FrameworkElement.StyleProperty &&
3129dp != FrameworkElement.DefaultStyleKeyProperty &&
3130dp != FrameworkElement.OverridesDefaultStyleProperty &&
3150FrameworkElement fe,
3231FrameworkElement fe,
3306FrameworkElement feContainer,
3448FrameworkElement fe,
3489FrameworkElement fe,
4242if (dp != FrameworkElement.StyleProperty)
4508private static void ExecuteOnApplyEnterExitActions( FrameworkElement fe,
4537private static void ExecuteOnApplyEnterExitActions( FrameworkElement fe, FrameworkContentElement fce,
4716FrameworkElement fe = (FrameworkElement)container;
4835action.Invoke(triggerContainer as FrameworkElement, triggerContainer as FrameworkContentElement,
5138FrameworkElement fe;
5175FrameworkElement fe;
5218FrameworkElement fe;
5450child is FrameworkElement && ((FrameworkElement)child).TemplateChildIndex == childIndex ||
5485FrameworkElement fe;
5510FrameworkElement fe;
5600if (dp == ItemsControl.ItemsPanelProperty || dp == FrameworkElement.ContextMenuProperty || dp == FrameworkElement.ToolTipProperty)
System\Windows\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)