System\Windows\BroadcastEventHelper.cs (32)
26Debug.Assert(d is FrameworkElement || d is FrameworkContentElement);
39d.SetValue(FrameworkElement.LoadedPendingPropertyKey, new object[]{loadedOp, operation, logicalParent});
47Debug.Assert(d is FrameworkElement || d is FrameworkContentElement);
54d.ClearValue(FrameworkElement.LoadedPendingPropertyKey);
74Debug.Assert(d is FrameworkElement || d is FrameworkContentElement);
87d.SetValue(FrameworkElement.UnloadedPendingPropertyKey, new object[]{unloadedOp, operation, logicalParent});
95Debug.Assert(d is FrameworkElement || d is FrameworkContentElement);
102d.ClearValue(FrameworkElement.UnloadedPendingPropertyKey);
169object[] loadedPending = (object[])rootDO.GetValue(FrameworkElement.LoadedPendingProperty);
192BroadcastEventHelper.BroadcastEvent(rootDO, FrameworkElement.LoadedEvent);
206object[] unloadedPending = (object[])rootDO.GetValue(FrameworkElement.UnloadedPendingProperty);
229BroadcastEvent(rootDO, FrameworkElement.UnloadedEvent);
278if (routedEvent == FrameworkElement.LoadedEvent)
297if (d is FrameworkElement fe)
299if (fe != root && routedEvent == FrameworkElement.LoadedEvent && fe.UnloadedPending != null)
306else if (fe != root && routedEvent == FrameworkElement.UnloadedEvent && fe.LoadedPending != null)
317if (routedEvent == FrameworkElement.LoadedEvent && fe.LoadedPending != null)
324else if (routedEvent == FrameworkElement.UnloadedEvent && fe.UnloadedPending != null)
346fe.IsLoadedCache = (routedEvent == FrameworkElement.LoadedEvent);
360if (fce != root && routedEvent == FrameworkElement.LoadedEvent && fce.UnloadedPending != null)
367else if (fce != root && routedEvent == FrameworkElement.UnloadedEvent && fce.LoadedPending != null)
378if (routedEvent == FrameworkElement.LoadedEvent && fce.LoadedPending != null)
385else if (routedEvent == FrameworkElement.UnloadedEvent && fce.UnloadedPending != null)
407fce.IsLoadedCache = (routedEvent == FrameworkElement.LoadedEvent);
423if (d is FrameworkElement fe)
436if (d is FrameworkElement fe)
448if (d is FrameworkElement fe)
593FrameworkElement child = VisualTreeHelper.GetChild(v, i) as FrameworkElement;
724FrameworkElement fe,
727if (fe.GetValue(FrameworkElement.LoadedPendingProperty) == null)
759if (fce.GetValue(FrameworkElement.LoadedPendingProperty) == null)
System\Windows\Controls\ItemsControl.cs (85)
42[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(FrameworkElement))]
1343Invariant.Assert(parent is FrameworkElement, SR.ItemsControl_ParentNotFrameworkElement);
1351((FrameworkElement)parent).TemplateChild = null;
1383Helper.HasUnmodifiedDefaultOrInheritedValue(container, FrameworkElement.BindingGroupProperty))
1389container.SetValue(FrameworkElement.BindingGroupProperty, containerBindingGroup);
1828FrameworkElement element = info.Container as FrameworkElement;
1875while (startingElement != null && !(startingElement is FrameworkElement))
1882return NavigateByLine(FocusedInfo, startingElement as FrameworkElement, direction, itemNavigateArgs);
1886FrameworkElement startingElement,
1889out FrameworkElement container)
1927FrameworkElement startingElement,
1950FrameworkElement container;
1961FrameworkElement startingElement,
1964out FrameworkElement container)
1978FrameworkElement nextElement = null;
2019treeViewNavigation) as FrameworkElement;
2024FrameworkElement viewport = GetViewportElement();
2038TryGetTreeViewItemHeader(nextElement) as FrameworkElement,
2148treeViewNavigation) as FrameworkElement;
2186FrameworkElement startingElement,
2189out FrameworkElement container)
2222return NavigateByPage(FocusedInfo, Keyboard.FocusedElement as FrameworkElement, direction, itemNavigateArgs);
2235FrameworkElement startingElement,
2258FrameworkElement container;
2269FrameworkElement startingElement,
2272out FrameworkElement container)
2289FrameworkElement firstElement;
2367FrameworkElement container;
2371internal bool NavigateToStartInternal(ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container)
2405FrameworkElement firstElement;
2406FrameworkElement hopefulFirstElement = FindEndFocusableLeafContainer(ItemsHost, false /*last*/);
2433FrameworkElement container;
2437internal bool NavigateToEndInternal(ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container)
2471FrameworkElement lastElement;
2472FrameworkElement hopefulLastElement = FindEndFocusableLeafContainer(ItemsHost, true /*last*/);
2497private FrameworkElement FindEndFocusableLeafContainer(Panel itemsHost, bool last)
2511FrameworkElement fe = children[i] as FrameworkElement;
2515FrameworkElement result = null;
2593FrameworkElement container;
2600private object FindFocusable(int startIndex, int direction, out int foundIndex, out FrameworkElement foundContainer)
2609FrameworkElement container = ItemContainerGenerator.ContainerFromIndex(startIndex) as FrameworkElement;
2628private void AdjustOffsetToAlignWithEdge(FrameworkElement element, FocusNavigationDirection direction)
2635FrameworkElement viewportElement = GetViewportElement();
2636element = TryGetTreeViewItemHeader(element) as FrameworkElement;
2671private void MakeVisible(int index, FocusNavigationDirection direction, bool alwaysAtTopOfViewport, out FrameworkElement container)
2677container = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement;
2687container = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement;
2697private void MakeVisible(ItemInfo info, FocusNavigationDirection direction, out FrameworkElement container)
2713internal void MakeVisible(FrameworkElement container, FocusNavigationDirection direction, bool alwaysAtTopOfViewport)
2720FrameworkElement viewportElement = GetViewportElement();
2742FrameworkElement firstElement;
2771private bool NavigateToFirstItemOnCurrentPage(object startingItem, FocusNavigationDirection direction, ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container)
2773object firstItem = GetFirstItemOnCurrentPage(ItemContainerGenerator.ContainerFromItem(startingItem) as FrameworkElement,
2787private object GetFirstItemOnCurrentPage(FrameworkElement startingElement,
2789out FrameworkElement firstElement)
2838FrameworkElement currentElement = startingElement;
2853FrameworkElement viewportElement = GetViewportElement();
2859viewportElement) as FrameworkElement;
2895internal FrameworkElement GetViewportElement()
2902FrameworkElement viewPort = ScrollHost;
2928FrameworkElement container = ItemContainerGenerator.ContainerFromItem(item) as FrameworkElement;
2938private bool IsOnCurrentPage(FrameworkElement element, FocusNavigationDirection axis)
2950private bool IsOnCurrentPage(FrameworkElement viewPort, FrameworkElement element, FocusNavigationDirection axis, bool fullyVisible)
2955internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort,
2964internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort,
2991internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort,
3082internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort,
3367FrameworkElement relativeTo = ScrollHost != null ? (FrameworkElement)ScrollHost : ItemsHost;
3416private bool IsRTL(FrameworkElement element)
3422private static ItemsControl GetEncapsulatingItemsControl(FrameworkElement element)
3431element = VisualTreeHelper.GetParent(element) as FrameworkElement;
3436private static object GetEncapsulatingItem(FrameworkElement element, out FrameworkElement container)
3442private static object GetEncapsulatingItem(FrameworkElement element, out FrameworkElement container, out ItemsControl itemsControl)
3460element = VisualTreeHelper.GetParent(element) as FrameworkElement;
3495container.ReadLocalValue(FrameworkElement.StyleProperty) != DependencyProperty.UnsetValue)
3526container.ClearValue(FrameworkElement.StyleProperty);
3536container.ClearValue(FrameworkElement.StyleProperty);
System\Windows\Controls\Primitives\Selector.cs (8)
116FrameworkElement.AddHandler(element, SelectedEvent, handler);
127FrameworkElement.RemoveHandler(element, SelectedEvent, handler);
145FrameworkElement.AddHandler(element, UnselectedEvent, handler);
156FrameworkElement.RemoveHandler(element, UnselectedEvent, handler);
1433private void SetSelectedHelper(object item, FrameworkElement UI, bool selected)
1897((Selector)sender).NotifyIsSelectedChanged(e.OriginalSource as FrameworkElement, true, e);
1902((Selector)sender).NotifyIsSelectedChanged(e.OriginalSource as FrameworkElement, false, e);
1913internal void NotifyIsSelectedChanged(FrameworkElement container, bool selected, RoutedEventArgs e)
System\Windows\Controls\VirtualizingStackPanel.cs (33)
424FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport(
548FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport(
676FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport(
880FrameworkElement prevFirstContainerInViewport = _scrollData._firstContainerInViewport;
885FrameworkElement currFirstContainerInViewport = ComputeFirstContainerInViewport(
908FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport(
1124private FrameworkElement ComputeFirstContainerInViewport(
1125FrameworkElement viewportElement,
1138private FrameworkElement ComputeFirstContainerInViewport(
1139FrameworkElement viewportElement,
1176FrameworkElement result = null;
1185FrameworkElement fe = children[i] as FrameworkElement;
1722FrameworkElement childFE = child as FrameworkElement;
1986FrameworkElement.AddHandler(element, CleanUpVirtualizedItemEvent, handler);
1996FrameworkElement.RemoveHandler(element, CleanUpVirtualizedItemEvent, handler);
5290FrameworkElement container = virtualizationInfoProvider as FrameworkElement;
6409FrameworkElement container = virtualizationInfoProvider as FrameworkElement;
6468FrameworkElement fe = virtualizingChild as FrameworkElement;
6605private bool IsHeaderBeforeItems(bool isHorizontal, FrameworkElement container, ref Thickness inset)
7115bool isHeaderBeforeItems = IsHeaderBeforeItems(isHorizontal, virtualizingChild as FrameworkElement, ref inset);
11093bool isHeaderBeforeItems = IsHeaderBeforeItems(isHorizontal, virtualizingElement as FrameworkElement, ref inset);
11626private FrameworkElement FirstContainerInViewport
11813internal FrameworkElement _firstContainerInViewport;
12175sti = new ScrollTracingInfo(tracer, _nullInfo.Generation, 0, itemsOwner as FrameworkElement, null, null, 0);
12197sti = new ScrollTracingInfo(tracer, _nullInfo.Generation, parentInfo.Depth + 1, itemsOwner as FrameworkElement, parent, parentItem, itemIndex);
12682internal FrameworkElement Owner { get; private set; }
12687internal ScrollTracingInfo(ScrollTracer tracer, int generation, int depth, FrameworkElement owner, VirtualizingStackPanel parent, object parentItem, int itemIndex)
12884internal FrameworkElement _firstContainerInViewport;
System\Windows\Documents\TextSchema.cs (18)
43FrameworkElement.LanguageProperty,
44FrameworkElement.FlowDirectionProperty,
1166FrameworkElement.LanguageProperty,
1170FrameworkElement.LayoutTransformProperty,
1171FrameworkElement.WidthProperty,
1172FrameworkElement.MinWidthProperty,
1173FrameworkElement.MaxWidthProperty,
1174FrameworkElement.HeightProperty,
1175FrameworkElement.MinHeightProperty,
1176FrameworkElement.MaxHeightProperty,
1178FrameworkElement.MarginProperty,
1179FrameworkElement.HorizontalAlignmentProperty,
1180FrameworkElement.VerticalAlignmentProperty,
1182FrameworkElement.CursorProperty,
1183FrameworkElement.ForceCursorProperty,
1185FrameworkElement.ToolTipProperty,
1224FrameworkElement.FlowDirectionProperty,
1225FrameworkElement.LanguageProperty,
System\Windows\FrameworkContentElement.cs (43)
132FrameworkElement.StyleProperty.AddOwner(
178= FrameworkElement.OverridesDefaultStyleProperty.AddOwner(typeof(FrameworkContentElement),
197FrameworkElement.DefaultStyleKeyProperty.AddOwner(
366object resource = FrameworkElement.FindResourceInternal(null /* fe */, this, resourceKey);
393object resource = FrameworkElement.FindResourceInternal(null /* fe */, this, resourceKey);
534object implicitValue = FrameworkElement.FindImplicitStyleResource(this, this.GetType(), out source);
574FrameworkElement parentFE;
575bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE);
638hasParent = FrameworkElement.GetFrameworkParent(parentFE, out parentFE, out parentFCE);
642hasParent = FrameworkElement.GetFrameworkParent(parentFCE, out parentFE, out parentFCE);
662FrameworkElement feTemplatedParent = (FrameworkElement)_templatedParent;
719if (dp == FrameworkElement.NameProperty &&
736FrameworkElement feTemplatedParent = TemplatedParent as FrameworkElement;
835FrameworkElement.NameProperty.AddOwner(
854FrameworkElement.TagProperty.AddOwner(
875FrameworkElement.LanguageProperty.AddOwner(
899FrameworkElement.FocusVisualStyleProperty.AddOwner(typeof(FrameworkContentElement),
900new FrameworkPropertyMetadata(FrameworkElement.DefaultFocusVisualStyle));
915FrameworkElement.CursorProperty.AddOwner(
947FrameworkElement.ForceCursorProperty.AddOwner(
1075args.RoutedEvent=FrameworkElement.RequestBringIntoViewEvent;
1129FrameworkElement.DataContextProperty.AddOwner(
1148add { EventHandlersStoreAdd(FrameworkElement.DataContextChangedKey, value); }
1149remove { EventHandlersStoreRemove(FrameworkElement.DataContextChangedKey, value); }
1168((FrameworkContentElement) d).RaiseDependencyPropertyChanged(FrameworkElement.DataContextChangedKey, e);
1206FrameworkElement.BindingGroupProperty.AddOwner(
1351FrameworkElement.AddIntermediateElementsToRoute(this, route, args, LogicalTreeHelper.GetParent(branchNode));
1385FrameworkElement.AddStyleHandlersToEventRoute(null, this, route, args);
1416continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(this, LogicalTreeHelper.GetParent(branchNode));
1596add { EventHandlersStoreAdd(FrameworkElement.InitializedKey, value); }
1597remove { EventHandlersStoreRemove(FrameworkElement.InitializedKey, value); }
1619RaiseInitialized(FrameworkElement.InitializedKey, e);
1661= FrameworkElement.LoadedPendingProperty.AddOwner(typeof(FrameworkContentElement));
1668= FrameworkElement.UnloadedPendingProperty.AddOwner(typeof(FrameworkContentElement));
1716public static readonly RoutedEvent LoadedEvent = FrameworkElement.LoadedEvent.AddOwner( typeof(FrameworkContentElement));
1726AddHandler(FrameworkElement.LoadedEvent, value, false);
1730RemoveHandler(FrameworkElement.LoadedEvent, value);
1747public static readonly RoutedEvent UnloadedEvent = FrameworkElement.UnloadedEvent.AddOwner( typeof(FrameworkContentElement));
1756AddHandler(FrameworkElement.UnloadedEvent, value, false);
1760RemoveHandler(FrameworkElement.UnloadedEvent, value);
2189private static readonly UncommonField<ResourceDictionary> ResourcesField = FrameworkElement.ResourcesField;
System\Windows\FrameworkElement.cs (96)
114static private readonly Type _typeofThis = typeof(FrameworkElement);
146FrameworkElement.EnsureFrameworkServices();
184FrameworkElement fe = (FrameworkElement) d;
216typeof(FrameworkElement),
235FrameworkElement fe = (FrameworkElement)d;
265((FrameworkElement)d).UpdateThemeStyleProperty();
285FrameworkElement fe = (FrameworkElement) d;
480internal static FrameworkElement FindNamedFrameworkElement( FrameworkElement startElement, string targetName )
482FrameworkElement targetFE = null;
620internal virtual FrameworkElement StateGroupsRoot
624return _templateChild as FrameworkElement;
843object resource = FrameworkElement.FindResourceInternal(this, null /* fce */, resourceKey);
871object resource = FrameworkElement.FindResourceInternal(this, null /* fce */, resourceKey);
885internal static object FindImplicitStyleResource(FrameworkElement fe, object resourceKey, out object source)
909FrameworkElement.StyleProperty, // dp
993internal static object FindResourceInternal(FrameworkElement fe, FrameworkContentElement fce, object resourceKey)
1022return FrameworkElement.FindResourceInternal(null, // fe
1036FrameworkElement fe,
1165FrameworkElement feStart,
1212FrameworkElement fe = fo.FE;
1634private static ResourceDictionary GetInstanceResourceDictionary(FrameworkElement fe, FrameworkContentElement fce)
1658private static ResourceDictionary GetStyleResourceDictionary(FrameworkElement fe, FrameworkContentElement fce)
1698private static ResourceDictionary GetThemeStyleResourceDictionary(FrameworkElement fe, FrameworkContentElement fce)
1738private static ResourceDictionary GetTemplateResourceDictionary(FrameworkElement fe, FrameworkContentElement fce)
1889object implicitValue = FrameworkElement.FindImplicitStyleResource(this, this.GetType(), out source);
1946FrameworkElement feTemplatedParent = (FrameworkElement)_templatedParent;
1978FrameworkElement parentFE;
2088if (dp == FrameworkElement.NameProperty &&
2105FrameworkElement feTemplatedParent = TemplatedParent as FrameworkElement;
2234if(layoutParent is FrameworkElement fe)
2295internal static bool GetFrameworkParent(FrameworkElement current, out FrameworkElement feParent, out FrameworkContentElement fceParent)
2308internal static bool GetFrameworkParent(FrameworkContentElement current, out FrameworkElement feParent, out FrameworkContentElement fceParent)
2320internal static bool GetContainingFrameworkElement(DependencyObject current, out FrameworkElement fe, out FrameworkContentElement fce)
2388EventManager.RegisterClassHandler(_typeofThis, Mouse.QueryCursorEvent, new QueryCursorEventHandler(FrameworkElement.OnQueryCursorOverride), true);
2419typeof(FrameworkElement),
2427FrameworkElement fe = (FrameworkElement) d;
2482if (newParent != null && (newParent is FrameworkElement) == false)
2496else if (oldParent != null && (oldParent is FrameworkElement) == false)
2544FrameworkElement feParent = null;
2548FrameworkElement.GetContainingFrameworkElement(VisualTreeHelper.GetParent(this), out feParent, out fceParent);
2579FrameworkElement.GetContainingFrameworkElement(e.OldParent, out feParent, out fceParent);
2748((FrameworkElement) d).RaiseDependencyPropertyChanged(DataContextChangedKey, e);
2933FrameworkElement.AddIntermediateElementsToRoute(this, route, args, LogicalTreeHelper.GetParent(branchNode));
2988FrameworkElement fe,
3034FrameworkElement feTemplatedParent = templatedParent as FrameworkElement;
3127continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(this, LogicalTreeHelper.GetParent(branchNode));
3351FrameworkElement fe = (FrameworkElement) d;
3396FrameworkElement fe = (FrameworkElement) d;
3454FrameworkElement fe = (FrameworkElement)d;
3479FrameworkElement fe = (FrameworkElement)d;
3665FrameworkElement fe = d as FrameworkElement;
3679FrameworkElement fe = d as FrameworkElement;
3887FrameworkElement fe = ((FrameworkElement)d);
3922FrameworkElement fe = ((FrameworkElement)d);
3932FrameworkElement fe = (FrameworkElement) sender;
3971internal static bool ShouldApplyMirrorTransform(FrameworkElement fe)
3988FrameworkElement parentFE;
4018FrameworkElement fe = v as FrameworkElement;
4059internal MinMax(FrameworkElement e)
5154FrameworkElement fe = element as FrameworkElement;
5341FrameworkElement fe = (FrameworkElement)sender;
5367FrameworkElement fe = (FrameworkElement)sender;
5535((FrameworkElement) o).HasNumberSubstitutionChanged = true;
5539private static bool ShouldUseSystemFont(FrameworkElement fe, DependencyProperty dp)
5554if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontFamilyProperty))
5565if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontSizeProperty))
5576if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontStyleProperty))
5587if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontWeightProperty))
5958((FrameworkElement)sender).OnToolTipOpening(e);
5990((FrameworkElement)sender).OnToolTipClosing(e);
6023((FrameworkElement)sender).OnContextMenuOpening(e);
6050((FrameworkElement)sender).OnContextMenuClosing(e);
6095FrameworkElement fe = uiElement as FrameworkElement;
System\Windows\Generated\FrameworkContentElement.cs (14)
70INameScope nameScope = FrameworkElement.FindScope(this);
88INameScope nameScope = FrameworkElement.FindScope(this);
114INameScope nameScope = FrameworkElement.FindScope(this, out scopeOwner);
327IsParentAnFE = newParent is FrameworkElement;
444RaiseClrEvent(FrameworkElement.ResourcesChangedKey, EventArgs.Empty);
483FrameworkElement.GetTemplatedParentChildRecord(templatedParent, childIndex, out childRecord, out isChildRecordValid);
485FrameworkElement parentFE;
487bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE);
772&& FrameworkElement.GetFrameworkParent(this) == null
1009Delegate handler = store.Get(FrameworkElement.InheritedPropertyChangedKey);
1192EventHandlersStoreAdd(FrameworkElement.ResourcesChangedKey, value);
1194remove { EventHandlersStoreRemove(FrameworkElement.ResourcesChangedKey, value); }
1212EventHandlersStoreAdd(FrameworkElement.InheritedPropertyChangedKey, value);
1214remove { EventHandlersStoreRemove(FrameworkElement.InheritedPropertyChangedKey, value); }
System\Windows\Generated\FrameworkElement.cs (14)
70INameScope nameScope = FrameworkElement.FindScope(this);
88INameScope nameScope = FrameworkElement.FindScope(this);
114INameScope nameScope = FrameworkElement.FindScope(this, out scopeOwner);
327IsParentAnFE = newParent is FrameworkElement;
437RaiseClrEvent(FrameworkElement.ResourcesChangedKey, EventArgs.Empty);
499FrameworkElement.GetTemplatedParentChildRecord(templatedParent, childIndex, out childRecord, out isChildRecordValid);
501FrameworkElement parentFE;
503bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE);
804&& FrameworkElement.GetFrameworkParent(this) == null
1041Delegate handler = store.Get(FrameworkElement.InheritedPropertyChangedKey);
1236EventHandlersStoreAdd(FrameworkElement.ResourcesChangedKey, value);
1238remove { EventHandlersStoreRemove(FrameworkElement.ResourcesChangedKey, value); }
1261EventHandlersStoreAdd(FrameworkElement.InheritedPropertyChangedKey, value);
1263remove { EventHandlersStoreRemove(FrameworkElement.InheritedPropertyChangedKey, value); }
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (43)
2477Type type = typeof(System.Windows.FrameworkElement);
2478DependencyProperty dp = System.Windows.FrameworkElement.FlowDirectionProperty;
2480this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2494Type type = typeof(System.Windows.FrameworkElement);
2495DependencyProperty dp = System.Windows.FrameworkElement.HeightProperty;
2497this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2511Type type = typeof(System.Windows.FrameworkElement);
2512DependencyProperty dp = System.Windows.FrameworkElement.HorizontalAlignmentProperty;
2514this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2528Type type = typeof(System.Windows.FrameworkElement);
2529DependencyProperty dp = System.Windows.FrameworkElement.MarginProperty;
2531this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2545Type type = typeof(System.Windows.FrameworkElement);
2546DependencyProperty dp = System.Windows.FrameworkElement.MaxHeightProperty;
2548this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2562Type type = typeof(System.Windows.FrameworkElement);
2563DependencyProperty dp = System.Windows.FrameworkElement.MaxWidthProperty;
2565this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2579Type type = typeof(System.Windows.FrameworkElement);
2580DependencyProperty dp = System.Windows.FrameworkElement.MinHeightProperty;
2582this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2596Type type = typeof(System.Windows.FrameworkElement);
2597DependencyProperty dp = System.Windows.FrameworkElement.MinWidthProperty;
2599this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2613Type type = typeof(System.Windows.FrameworkElement);
2614DependencyProperty dp = System.Windows.FrameworkElement.NameProperty;
2616this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2630Type type = typeof(System.Windows.FrameworkElement);
2631DependencyProperty dp = System.Windows.FrameworkElement.StyleProperty;
2633this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2646Type type = typeof(System.Windows.FrameworkElement);
2647DependencyProperty dp = System.Windows.FrameworkElement.VerticalAlignmentProperty;
2649this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2663Type type = typeof(System.Windows.FrameworkElement);
2664DependencyProperty dp = System.Windows.FrameworkElement.WidthProperty;
2666this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
6360Type type = typeof(System.Windows.FrameworkElement);
6362this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
6369bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.FrameworkElement)target).Resources = (System.Windows.ResourceDictionary)value; };
6370bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.FrameworkElement)target).Resources; };
8253Type type = typeof(System.Windows.FrameworkElement);
8255this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
8261bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.FrameworkElement)target).Triggers; };
System\Windows\Media\Animation\Storyboard.cs (27)
248FrameworkElement fe = element as FrameworkElement;
309FrameworkElement fe,
438targetObject = containingObject as FrameworkElement;
932if(targetObject is FrameworkElement)
1067public void Begin( FrameworkElement containingObject )
1075public void Begin( FrameworkElement containingObject, HandoffBehavior handoffBehavior )
1083public void Begin( FrameworkElement containingObject, bool isControllable )
1091public void Begin( FrameworkElement containingObject, HandoffBehavior handoffBehavior, bool isControllable )
1099public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate )
1107public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate, HandoffBehavior handoffBehavior )
1115public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate, bool isControllable )
1123public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate, HandoffBehavior handoffBehavior, bool isControllable )
1289public Nullable<Double> GetCurrentGlobalSpeed( FrameworkElement containingObject )
1338public Nullable<Int32> GetCurrentIteration( FrameworkElement containingObject )
1387public Nullable<Double> GetCurrentProgress( FrameworkElement containingObject )
1435public ClockState GetCurrentState( FrameworkElement containingObject )
1474public Nullable<TimeSpan> GetCurrentTime( FrameworkElement containingObject )
1523public bool GetIsPaused( FrameworkElement containingObject )
1564public void Pause( FrameworkElement containingObject )
1609public void Remove(FrameworkElement containingObject)
1658public void Resume( FrameworkElement containingObject )
1705public void Seek( FrameworkElement containingObject, TimeSpan offset, TimeSeekOrigin origin )
1756public void SeekAlignedToLastTick( FrameworkElement containingObject, TimeSpan offset, TimeSeekOrigin origin )
1807public void SetSpeedRatio( FrameworkElement containingObject, double speedRatio )
1846public void SkipToFill( FrameworkElement containingObject )
1883public void Stop( FrameworkElement containingObject )
System\Windows\StyleHelper.cs (79)
61FrameworkElement fe,
100FrameworkElement fe,
121if (StyleHelper.IsSetOnContainer(FrameworkElement.OverridesDefaultStyleProperty, ref newThemeStyle.ContainerDependents, true))
140if(ShouldGetValueFromStyle ( FrameworkElement.DefaultStyleKeyProperty ) )
170internal static Style GetThemeStyle(FrameworkElement fe, FrameworkContentElement fce)
256FrameworkElement.StyleProperty.GetMetadata(themeStyleTypeKey);
273FrameworkElement.OnThemeStyleChanged(fe, oldThemeStyle, newThemeStyle);
291FrameworkElement fe,
458if (StyleHelper.IsSetOnContainer(FrameworkElement.StyleProperty, ref containerDependents, true))
460throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.StyleProperty.Name));
465if (StyleHelper.IsSetOnContainer(FrameworkElement.DefaultStyleKeyProperty, ref containerDependents, true))
467throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.DefaultStyleKeyProperty.Name));
472if (StyleHelper.IsSetOnContainer(FrameworkElement.OverridesDefaultStyleProperty, ref containerDependents, true))
474throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.OverridesDefaultStyleProperty.Name));
479if (StyleHelper.IsSetOnContainer(FrameworkElement.NameProperty, ref containerDependents, true))
481throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.NameProperty.Name));
1162if ( (eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent)
1163||(eventTrigger.RoutedEvent == FrameworkElement.UnloadedEvent))
1197if (eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent
1199eventTrigger.RoutedEvent == FrameworkElement.UnloadedEvent )
1210if( eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent )
1337FrameworkElement fe,
1372FrameworkElement fe,
1435FrameworkElement fe,
1502Debug.Assert((container is FrameworkElement) || (container is FrameworkContentElement), "Caller has queried with non-framework element. Bad caller, bad!");
1545FrameworkElement feChild;
1781FrameworkElement feContainer = container as FrameworkElement;
1818Debug.Assert(treeRoot is FrameworkElement || treeRoot is FrameworkContentElement,
1866Debug.Assert(treeRoot == null || treeRoot is FrameworkElement || treeRoot is FrameworkContentElement,
1940internal static void AddCustomTemplateRoot( FrameworkElement container, UIElement child )
1948FrameworkElement container,
1968FrameworkElement parent = VisualTreeHelper.GetParent(child) as FrameworkElement;
2056FrameworkElement feWalkNode;
2134FrameworkElement feContainer,
2186FrameworkElement feContainer,
2219FrameworkElement feContainer,
2241FrameworkElement fe;
2333out FrameworkElement fe, out FrameworkContentElement fce,
2336if (d is FrameworkElement frameworkElement)
2401Debug.Assert(sender is FrameworkElement || sender is FrameworkContentElement,
2404FrameworkElement fe;
2456Debug.Assert(sender is FrameworkElement || sender is FrameworkContentElement,
2459FrameworkElement fe;
2481FrameworkElement feTemplatedParent;
2504FrameworkElement fe,
2699sourceNodeType = (container as FrameworkElement).TemplateInternal.ChildTypeFromChildIndex[sourceChildIndex];
2730value = FrameworkElement.FindResourceInternal(child.FE,
2785value = FrameworkElement.FindResourceInternal(
2910FrameworkElement feChild,
2920FrameworkElement feContainer;
3105return (dp != FrameworkElement.StyleProperty);
3117return (dp != FrameworkElement.StyleProperty &&
3118dp != FrameworkElement.DefaultStyleKeyProperty &&
3119dp != FrameworkElement.OverridesDefaultStyleProperty);
3132return (dp != FrameworkElement.StyleProperty &&
3133dp != FrameworkElement.DefaultStyleKeyProperty &&
3134dp != FrameworkElement.OverridesDefaultStyleProperty &&
3154FrameworkElement fe,
3235FrameworkElement fe,
3310FrameworkElement feContainer,
3452FrameworkElement fe,
3493FrameworkElement 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)
32private static bool GoToStateCommon(FrameworkElement control, FrameworkElement stateGroupsRoot, string stateName, bool useTransitions)
74public static bool GoToState(FrameworkElement control, string stateName, bool useTransitions)
78FrameworkElement stateGroupsRoot = control.StateGroupsRoot;
90public static bool GoToElementState(FrameworkElement stateGroupsRoot, string stateName, bool useTransitions)
100protected virtual bool GoToStateCore(FrameworkElement control, FrameworkElement stateGroupsRoot, string stateName, VisualStateGroup group, VisualState state, bool useTransitions)
114public static VisualStateManager GetCustomVisualStateManager(FrameworkElement obj)
121public static void SetCustomVisualStateManager(FrameworkElement obj, VisualStateManager value)
145internal static Collection<VisualStateGroup> GetVisualStateGroupsInternal(FrameworkElement obj)
161public static IList GetVisualStateGroups(FrameworkElement obj)
191private static bool GoToStateInternal(FrameworkElement control, FrameworkElement stateGroupsRoot, VisualStateGroup group, VisualState state, bool useTransitions)
303private static bool ShouldRunStateStoryboard(FrameworkElement control, FrameworkElement stateGroupsRoot, VisualState state, VisualStateGroup group)
332protected void RaiseCurrentStateChanging(VisualStateGroup stateGroup, VisualState oldState, VisualState newState, FrameworkElement control, FrameworkElement stateGroupsRoot)
345protected void RaiseCurrentStateChanged(VisualStateGroup stateGroup, VisualState oldState, VisualState newState, FrameworkElement control, FrameworkElement stateGroupsRoot)
362private static Storyboard GenerateDynamicTransitionAnimations(FrameworkElement root, VisualStateGroup group, VisualState newState, VisualTransition transition)
426private static Timeline GenerateFromAnimation(FrameworkElement root, Timeline timeline, IEasingFunction easingFunction)
453private static Timeline GenerateToAnimation(FrameworkElement root, Timeline timeline, IEasingFunction easingFunction, bool isEntering)
492private static void CopyStoryboardTargetProperties(FrameworkElement root, Timeline source, Timeline destination)
533internal static VisualTransition GetTransition(FrameworkElement element, VisualStateGroup group, VisualState from, VisualState to)