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)
107FrameworkElement.AddHandler(element, SelectedEvent, handler);
118FrameworkElement.RemoveHandler(element, SelectedEvent, handler);
136FrameworkElement.AddHandler(element, UnselectedEvent, handler);
147FrameworkElement.RemoveHandler(element, UnselectedEvent, handler);
1424private void SetSelectedHelper(object item, FrameworkElement UI, bool selected)
1888((Selector)sender).NotifyIsSelectedChanged(e.OriginalSource as FrameworkElement, true, e);
1893((Selector)sender).NotifyIsSelectedChanged(e.OriginalSource as FrameworkElement, false, e);
1904internal 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;
1717FrameworkElement childFE = child as FrameworkElement;
1981FrameworkElement.AddHandler(element, CleanUpVirtualizedItemEvent, handler);
1991FrameworkElement.RemoveHandler(element, CleanUpVirtualizedItemEvent, handler);
5285FrameworkElement container = virtualizationInfoProvider as FrameworkElement;
6404FrameworkElement container = virtualizationInfoProvider as FrameworkElement;
6463FrameworkElement fe = virtualizingChild as FrameworkElement;
6600private bool IsHeaderBeforeItems(bool isHorizontal, FrameworkElement container, ref Thickness inset)
7110bool isHeaderBeforeItems = IsHeaderBeforeItems(isHorizontal, virtualizingChild as FrameworkElement, ref inset);
11088bool isHeaderBeforeItems = IsHeaderBeforeItems(isHorizontal, virtualizingElement as FrameworkElement, ref inset);
11621private FrameworkElement FirstContainerInViewport
11808internal FrameworkElement _firstContainerInViewport;
12170sti = new ScrollTracingInfo(tracer, _nullInfo.Generation, 0, itemsOwner as FrameworkElement, null, null, 0);
12192sti = new ScrollTracingInfo(tracer, _nullInfo.Generation, parentInfo.Depth + 1, itemsOwner as FrameworkElement, parent, parentItem, itemIndex);
12677internal FrameworkElement Owner { get; private set; }
12682internal ScrollTracingInfo(ScrollTracer tracer, int generation, int depth, FrameworkElement owner, VirtualizingStackPanel parent, object parentItem, int itemIndex)
12879internal FrameworkElement _firstContainerInViewport;
System\Windows\Documents\TextSchema.cs (18)
42FrameworkElement.LanguageProperty,
43FrameworkElement.FlowDirectionProperty,
1165FrameworkElement.LanguageProperty,
1169FrameworkElement.LayoutTransformProperty,
1170FrameworkElement.WidthProperty,
1171FrameworkElement.MinWidthProperty,
1172FrameworkElement.MaxWidthProperty,
1173FrameworkElement.HeightProperty,
1174FrameworkElement.MinHeightProperty,
1175FrameworkElement.MaxHeightProperty,
1177FrameworkElement.MarginProperty,
1178FrameworkElement.HorizontalAlignmentProperty,
1179FrameworkElement.VerticalAlignmentProperty,
1181FrameworkElement.CursorProperty,
1182FrameworkElement.ForceCursorProperty,
1184FrameworkElement.ToolTipProperty,
1223FrameworkElement.FlowDirectionProperty,
1224FrameworkElement.LanguageProperty,
System\Windows\FrameworkContentElement.cs (43)
120FrameworkElement.StyleProperty.AddOwner(
166= FrameworkElement.OverridesDefaultStyleProperty.AddOwner(typeof(FrameworkContentElement),
185FrameworkElement.DefaultStyleKeyProperty.AddOwner(
354object resource = FrameworkElement.FindResourceInternal(null /* fe */, this, resourceKey);
381object resource = FrameworkElement.FindResourceInternal(null /* fe */, this, resourceKey);
522object implicitValue = FrameworkElement.FindImplicitStyleResource(this, this.GetType(), out source);
562FrameworkElement parentFE;
563bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE);
626hasParent = FrameworkElement.GetFrameworkParent(parentFE, out parentFE, out parentFCE);
630hasParent = FrameworkElement.GetFrameworkParent(parentFCE, out parentFE, out parentFCE);
650FrameworkElement feTemplatedParent = (FrameworkElement)_templatedParent;
707if (dp == FrameworkElement.NameProperty &&
724FrameworkElement feTemplatedParent = TemplatedParent as FrameworkElement;
823FrameworkElement.NameProperty.AddOwner(
842FrameworkElement.TagProperty.AddOwner(
863FrameworkElement.LanguageProperty.AddOwner(
887FrameworkElement.FocusVisualStyleProperty.AddOwner(typeof(FrameworkContentElement),
888new FrameworkPropertyMetadata(FrameworkElement.DefaultFocusVisualStyle));
903FrameworkElement.CursorProperty.AddOwner(
935FrameworkElement.ForceCursorProperty.AddOwner(
1063args.RoutedEvent=FrameworkElement.RequestBringIntoViewEvent;
1117FrameworkElement.DataContextProperty.AddOwner(
1136add { EventHandlersStoreAdd(FrameworkElement.DataContextChangedKey, value); }
1137remove { EventHandlersStoreRemove(FrameworkElement.DataContextChangedKey, value); }
1156((FrameworkContentElement) d).RaiseDependencyPropertyChanged(FrameworkElement.DataContextChangedKey, e);
1194FrameworkElement.BindingGroupProperty.AddOwner(
1339FrameworkElement.AddIntermediateElementsToRoute(this, route, args, LogicalTreeHelper.GetParent(branchNode));
1373FrameworkElement.AddStyleHandlersToEventRoute(null, this, route, args);
1404continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(this, LogicalTreeHelper.GetParent(branchNode));
1584add { EventHandlersStoreAdd(FrameworkElement.InitializedKey, value); }
1585remove { EventHandlersStoreRemove(FrameworkElement.InitializedKey, value); }
1607RaiseInitialized(FrameworkElement.InitializedKey, e);
1649= FrameworkElement.LoadedPendingProperty.AddOwner(typeof(FrameworkContentElement));
1656= FrameworkElement.UnloadedPendingProperty.AddOwner(typeof(FrameworkContentElement));
1704public static readonly RoutedEvent LoadedEvent = FrameworkElement.LoadedEvent.AddOwner( typeof(FrameworkContentElement));
1714AddHandler(FrameworkElement.LoadedEvent, value, false);
1718RemoveHandler(FrameworkElement.LoadedEvent, value);
1735public static readonly RoutedEvent UnloadedEvent = FrameworkElement.UnloadedEvent.AddOwner( typeof(FrameworkContentElement));
1744AddHandler(FrameworkElement.UnloadedEvent, value, false);
1748RemoveHandler(FrameworkElement.UnloadedEvent, value);
2177private static readonly UncommonField<ResourceDictionary> ResourcesField = FrameworkElement.ResourcesField;
System\Windows\FrameworkElement.cs (96)
103static private readonly Type _typeofThis = typeof(FrameworkElement);
135FrameworkElement.EnsureFrameworkServices();
173FrameworkElement fe = (FrameworkElement) d;
205typeof(FrameworkElement),
224FrameworkElement fe = (FrameworkElement)d;
254((FrameworkElement)d).UpdateThemeStyleProperty();
274FrameworkElement fe = (FrameworkElement) d;
469internal static FrameworkElement FindNamedFrameworkElement( FrameworkElement startElement, string targetName )
471FrameworkElement targetFE = null;
609internal virtual FrameworkElement StateGroupsRoot
613return _templateChild as FrameworkElement;
832object resource = FrameworkElement.FindResourceInternal(this, null /* fce */, resourceKey);
860object resource = FrameworkElement.FindResourceInternal(this, null /* fce */, resourceKey);
874internal static object FindImplicitStyleResource(FrameworkElement fe, object resourceKey, out object source)
898FrameworkElement.StyleProperty, // dp
982internal static object FindResourceInternal(FrameworkElement fe, FrameworkContentElement fce, object resourceKey)
1011return FrameworkElement.FindResourceInternal(null, // fe
1025FrameworkElement fe,
1154FrameworkElement feStart,
1201FrameworkElement fe = fo.FE;
1623private static ResourceDictionary GetInstanceResourceDictionary(FrameworkElement fe, FrameworkContentElement fce)
1647private static ResourceDictionary GetStyleResourceDictionary(FrameworkElement fe, FrameworkContentElement fce)
1687private static ResourceDictionary GetThemeStyleResourceDictionary(FrameworkElement fe, FrameworkContentElement fce)
1727private static ResourceDictionary GetTemplateResourceDictionary(FrameworkElement fe, FrameworkContentElement fce)
1878object implicitValue = FrameworkElement.FindImplicitStyleResource(this, this.GetType(), out source);
1935FrameworkElement feTemplatedParent = (FrameworkElement)_templatedParent;
1967FrameworkElement parentFE;
2077if (dp == FrameworkElement.NameProperty &&
2094FrameworkElement feTemplatedParent = TemplatedParent as FrameworkElement;
2223if(layoutParent is FrameworkElement fe)
2284internal static bool GetFrameworkParent(FrameworkElement current, out FrameworkElement feParent, out FrameworkContentElement fceParent)
2297internal static bool GetFrameworkParent(FrameworkContentElement current, out FrameworkElement feParent, out FrameworkContentElement fceParent)
2309internal static bool GetContainingFrameworkElement(DependencyObject current, out FrameworkElement fe, out FrameworkContentElement fce)
2377EventManager.RegisterClassHandler(_typeofThis, Mouse.QueryCursorEvent, new QueryCursorEventHandler(FrameworkElement.OnQueryCursorOverride), true);
2408typeof(FrameworkElement),
2416FrameworkElement fe = (FrameworkElement) d;
2471if (newParent != null && (newParent is FrameworkElement) == false)
2485else if (oldParent != null && (oldParent is FrameworkElement) == false)
2533FrameworkElement feParent = null;
2537FrameworkElement.GetContainingFrameworkElement(VisualTreeHelper.GetParent(this), out feParent, out fceParent);
2568FrameworkElement.GetContainingFrameworkElement(e.OldParent, out feParent, out fceParent);
2737((FrameworkElement) d).RaiseDependencyPropertyChanged(DataContextChangedKey, e);
2922FrameworkElement.AddIntermediateElementsToRoute(this, route, args, LogicalTreeHelper.GetParent(branchNode));
2977FrameworkElement fe,
3023FrameworkElement feTemplatedParent = templatedParent as FrameworkElement;
3116continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(this, LogicalTreeHelper.GetParent(branchNode));
3340FrameworkElement fe = (FrameworkElement) d;
3385FrameworkElement fe = (FrameworkElement) d;
3443FrameworkElement fe = (FrameworkElement)d;
3468FrameworkElement fe = (FrameworkElement)d;
3654FrameworkElement fe = d as FrameworkElement;
3668FrameworkElement fe = d as FrameworkElement;
3876FrameworkElement fe = ((FrameworkElement)d);
3911FrameworkElement fe = ((FrameworkElement)d);
3921FrameworkElement fe = (FrameworkElement) sender;
3960internal static bool ShouldApplyMirrorTransform(FrameworkElement fe)
3977FrameworkElement parentFE;
4007FrameworkElement fe = v as FrameworkElement;
4048internal MinMax(FrameworkElement e)
5143FrameworkElement fe = element as FrameworkElement;
5330FrameworkElement fe = (FrameworkElement)sender;
5356FrameworkElement fe = (FrameworkElement)sender;
5524((FrameworkElement) o).HasNumberSubstitutionChanged = true;
5528private static bool ShouldUseSystemFont(FrameworkElement fe, DependencyProperty dp)
5543if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontFamilyProperty))
5554if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontSizeProperty))
5565if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontStyleProperty))
5576if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontWeightProperty))
5947((FrameworkElement)sender).OnToolTipOpening(e);
5979((FrameworkElement)sender).OnToolTipClosing(e);
6012((FrameworkElement)sender).OnContextMenuOpening(e);
6039((FrameworkElement)sender).OnContextMenuClosing(e);
6084FrameworkElement 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)
2475Type type = typeof(System.Windows.FrameworkElement);
2476DependencyProperty dp = System.Windows.FrameworkElement.FlowDirectionProperty;
2478this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2492Type type = typeof(System.Windows.FrameworkElement);
2493DependencyProperty dp = System.Windows.FrameworkElement.HeightProperty;
2495this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2509Type type = typeof(System.Windows.FrameworkElement);
2510DependencyProperty dp = System.Windows.FrameworkElement.HorizontalAlignmentProperty;
2512this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2526Type type = typeof(System.Windows.FrameworkElement);
2527DependencyProperty dp = System.Windows.FrameworkElement.MarginProperty;
2529this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2543Type type = typeof(System.Windows.FrameworkElement);
2544DependencyProperty dp = System.Windows.FrameworkElement.MaxHeightProperty;
2546this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2560Type type = typeof(System.Windows.FrameworkElement);
2561DependencyProperty dp = System.Windows.FrameworkElement.MaxWidthProperty;
2563this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2577Type type = typeof(System.Windows.FrameworkElement);
2578DependencyProperty dp = System.Windows.FrameworkElement.MinHeightProperty;
2580this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2594Type type = typeof(System.Windows.FrameworkElement);
2595DependencyProperty dp = System.Windows.FrameworkElement.MinWidthProperty;
2597this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2611Type type = typeof(System.Windows.FrameworkElement);
2612DependencyProperty dp = System.Windows.FrameworkElement.NameProperty;
2614this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2628Type type = typeof(System.Windows.FrameworkElement);
2629DependencyProperty dp = System.Windows.FrameworkElement.StyleProperty;
2631this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2644Type type = typeof(System.Windows.FrameworkElement);
2645DependencyProperty dp = System.Windows.FrameworkElement.VerticalAlignmentProperty;
2647this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2661Type type = typeof(System.Windows.FrameworkElement);
2662DependencyProperty dp = System.Windows.FrameworkElement.WidthProperty;
2664this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
6358Type type = typeof(System.Windows.FrameworkElement);
6360this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
6367bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.FrameworkElement)target).Resources = (System.Windows.ResourceDictionary)value; };
6368bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.FrameworkElement)target).Resources; };
8251Type type = typeof(System.Windows.FrameworkElement);
8253this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
8259bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.FrameworkElement)target).Triggers; };
System\Windows\Media\Animation\Storyboard.cs (27)
245FrameworkElement fe = element as FrameworkElement;
306FrameworkElement fe,
435targetObject = containingObject as FrameworkElement;
929if(targetObject is FrameworkElement)
1064public void Begin( FrameworkElement containingObject )
1072public void Begin( FrameworkElement containingObject, HandoffBehavior handoffBehavior )
1080public void Begin( FrameworkElement containingObject, bool isControllable )
1088public void Begin( FrameworkElement containingObject, HandoffBehavior handoffBehavior, bool isControllable )
1096public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate )
1104public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate, HandoffBehavior handoffBehavior )
1112public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate, bool isControllable )
1120public void Begin( FrameworkElement containingObject, FrameworkTemplate frameworkTemplate, HandoffBehavior handoffBehavior, bool isControllable )
1286public Nullable<Double> GetCurrentGlobalSpeed( FrameworkElement containingObject )
1335public Nullable<Int32> GetCurrentIteration( FrameworkElement containingObject )
1384public Nullable<Double> GetCurrentProgress( FrameworkElement containingObject )
1432public ClockState GetCurrentState( FrameworkElement containingObject )
1471public Nullable<TimeSpan> GetCurrentTime( FrameworkElement containingObject )
1520public bool GetIsPaused( FrameworkElement containingObject )
1561public void Pause( FrameworkElement containingObject )
1606public void Remove(FrameworkElement containingObject)
1655public void Resume( FrameworkElement containingObject )
1702public void Seek( FrameworkElement containingObject, TimeSpan offset, TimeSeekOrigin origin )
1753public void SeekAlignedToLastTick( FrameworkElement containingObject, TimeSpan offset, TimeSeekOrigin origin )
1804public void SetSpeedRatio( FrameworkElement containingObject, double speedRatio )
1843public void SkipToFill( FrameworkElement containingObject )
1880public void Stop( FrameworkElement containingObject )
System\Windows\StyleHelper.cs (79)
55FrameworkElement fe,
94FrameworkElement fe,
115if (StyleHelper.IsSetOnContainer(FrameworkElement.OverridesDefaultStyleProperty, ref newThemeStyle.ContainerDependents, true))
134if(ShouldGetValueFromStyle ( FrameworkElement.DefaultStyleKeyProperty ) )
164internal static Style GetThemeStyle(FrameworkElement fe, FrameworkContentElement fce)
250FrameworkElement.StyleProperty.GetMetadata(themeStyleTypeKey);
267FrameworkElement.OnThemeStyleChanged(fe, oldThemeStyle, newThemeStyle);
285FrameworkElement fe,
452if (StyleHelper.IsSetOnContainer(FrameworkElement.StyleProperty, ref containerDependents, true))
454throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.StyleProperty.Name));
459if (StyleHelper.IsSetOnContainer(FrameworkElement.DefaultStyleKeyProperty, ref containerDependents, true))
461throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.DefaultStyleKeyProperty.Name));
466if (StyleHelper.IsSetOnContainer(FrameworkElement.OverridesDefaultStyleProperty, ref containerDependents, true))
468throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.OverridesDefaultStyleProperty.Name));
473if (StyleHelper.IsSetOnContainer(FrameworkElement.NameProperty, ref containerDependents, true))
475throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.NameProperty.Name));
1156if ( (eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent)
1157||(eventTrigger.RoutedEvent == FrameworkElement.UnloadedEvent))
1191if (eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent
1193eventTrigger.RoutedEvent == FrameworkElement.UnloadedEvent )
1204if( eventTrigger.RoutedEvent == FrameworkElement.LoadedEvent )
1331FrameworkElement fe,
1366FrameworkElement fe,
1429FrameworkElement fe,
1496Debug.Assert((container is FrameworkElement) || (container is FrameworkContentElement), "Caller has queried with non-framework element. Bad caller, bad!");
1539FrameworkElement feChild;
1775FrameworkElement feContainer = container as FrameworkElement;
1812Debug.Assert(treeRoot is FrameworkElement || treeRoot is FrameworkContentElement,
1860Debug.Assert(treeRoot == null || treeRoot is FrameworkElement || treeRoot is FrameworkContentElement,
1934internal static void AddCustomTemplateRoot( FrameworkElement container, UIElement child )
1942FrameworkElement container,
1962FrameworkElement parent = VisualTreeHelper.GetParent(child) as FrameworkElement;
2050FrameworkElement feWalkNode;
2128FrameworkElement feContainer,
2180FrameworkElement feContainer,
2213FrameworkElement feContainer,
2235FrameworkElement fe;
2327out FrameworkElement fe, out FrameworkContentElement fce,
2330if (d is FrameworkElement frameworkElement)
2395Debug.Assert(sender is FrameworkElement || sender is FrameworkContentElement,
2398FrameworkElement fe;
2450Debug.Assert(sender is FrameworkElement || sender is FrameworkContentElement,
2453FrameworkElement fe;
2475FrameworkElement feTemplatedParent;
2498FrameworkElement fe,
2693sourceNodeType = (container as FrameworkElement).TemplateInternal.ChildTypeFromChildIndex[sourceChildIndex];
2724value = FrameworkElement.FindResourceInternal(child.FE,
2779value = FrameworkElement.FindResourceInternal(
2904FrameworkElement feChild,
2914FrameworkElement feContainer;
3099return (dp != FrameworkElement.StyleProperty);
3111return (dp != FrameworkElement.StyleProperty &&
3112dp != FrameworkElement.DefaultStyleKeyProperty &&
3113dp != FrameworkElement.OverridesDefaultStyleProperty);
3126return (dp != FrameworkElement.StyleProperty &&
3127dp != FrameworkElement.DefaultStyleKeyProperty &&
3128dp != FrameworkElement.OverridesDefaultStyleProperty &&
3148FrameworkElement fe,
3229FrameworkElement fe,
3304FrameworkElement feContainer,
3446FrameworkElement fe,
3487FrameworkElement fe,
4236if (dp != FrameworkElement.StyleProperty)
4502private static void ExecuteOnApplyEnterExitActions( FrameworkElement fe,
4531private static void ExecuteOnApplyEnterExitActions( FrameworkElement fe, FrameworkContentElement fce,
4710FrameworkElement fe = (FrameworkElement)container;
4829action.Invoke(triggerContainer as FrameworkElement, triggerContainer as FrameworkContentElement,
5132FrameworkElement fe;
5169FrameworkElement fe;
5212FrameworkElement fe;
5444child is FrameworkElement && ((FrameworkElement)child).TemplateChildIndex == childIndex ||
5479FrameworkElement fe;
5504FrameworkElement fe;
5594if (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)