src\Framework\System\Windows\BroadcastEventHelper.cs (37)
22Debug.Assert(d is FrameworkElement || d is FrameworkContentElement);
35d.SetValue(FrameworkElement.LoadedPendingPropertyKey, new object[]{loadedOp, operation, logicalParent});
43Debug.Assert(d is FrameworkElement || d is FrameworkContentElement);
50d.ClearValue(FrameworkElement.LoadedPendingPropertyKey);
70Debug.Assert(d is FrameworkElement || d is FrameworkContentElement);
83d.SetValue(FrameworkElement.UnloadedPendingPropertyKey, new object[]{unloadedOp, operation, logicalParent});
91Debug.Assert(d is FrameworkElement || d is FrameworkContentElement);
98d.ClearValue(FrameworkElement.UnloadedPendingPropertyKey);
165object[] loadedPending = (object[])rootDO.GetValue(FrameworkElement.LoadedPendingProperty);
188BroadcastEventHelper.BroadcastEvent(rootDO, FrameworkElement.LoadedEvent);
202object[] unloadedPending = (object[])rootDO.GetValue(FrameworkElement.UnloadedPendingProperty);
225BroadcastEvent(rootDO, FrameworkElement.UnloadedEvent);
274if (routedEvent == FrameworkElement.LoadedEvent)
292if (FrameworkElement.DType.IsInstanceOfType(d))
295FrameworkElement fe = (FrameworkElement)d;
297if (fe != root && routedEvent == FrameworkElement.LoadedEvent && fe.UnloadedPending != null)
304else if (fe != root && routedEvent == FrameworkElement.UnloadedEvent && fe.LoadedPending != null)
315if (routedEvent == FrameworkElement.LoadedEvent && fe.LoadedPending != null)
322else if (routedEvent == FrameworkElement.UnloadedEvent && fe.UnloadedPending != null)
344fe.IsLoadedCache = (routedEvent == FrameworkElement.LoadedEvent);
358if (fce != root && routedEvent == FrameworkElement.LoadedEvent && fce.UnloadedPending != null)
365else if (fce != root && routedEvent == FrameworkElement.UnloadedEvent && fce.LoadedPending != null)
376if (routedEvent == FrameworkElement.LoadedEvent && fce.LoadedPending != null)
383else if (routedEvent == FrameworkElement.UnloadedEvent && fce.UnloadedPending != null)
405fce.IsLoadedCache = (routedEvent == FrameworkElement.LoadedEvent);
421if (FrameworkElement.DType.IsInstanceOfType(d))
423return ((FrameworkElement)d).SubtreeHasLoadedChangeHandler;
434if (FrameworkElement.DType.IsInstanceOfType(d))
436((FrameworkElement)d).FireLoadedOnDescendentsInternal();
446if (FrameworkElement.DType.IsInstanceOfType(d))
448((FrameworkElement)d).FireUnloadedOnDescendentsInternal();
591FrameworkElement child = VisualTreeHelper.GetChild(v, i) as FrameworkElement;
722FrameworkElement fe,
725if (fe.GetValue(FrameworkElement.LoadedPendingProperty) == null)
757if (fce.GetValue(FrameworkElement.LoadedPendingProperty) == null)
src\Framework\System\Windows\Controls\ItemsControl.cs (84)
43[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(FrameworkElement))]
1347Invariant.Assert(parent is FrameworkElement, SR.Get(SRID.ItemsControl_ParentNotFrameworkElement));
1355((FrameworkElement)parent).TemplateChild = null;
1387Helper.HasUnmodifiedDefaultOrInheritedValue(container, FrameworkElement.BindingGroupProperty))
1393container.SetValue(FrameworkElement.BindingGroupProperty, containerBindingGroup);
1831FrameworkElement element = info.Container as FrameworkElement;
1878while (startingElement != null && !(startingElement is FrameworkElement))
1885return NavigateByLine(FocusedInfo, startingElement as FrameworkElement, direction, itemNavigateArgs);
1889FrameworkElement startingElement,
1892out FrameworkElement container)
1930FrameworkElement startingElement,
1953FrameworkElement container;
1964FrameworkElement startingElement,
1967out FrameworkElement container)
1981FrameworkElement nextElement = null;
2022treeViewNavigation) as FrameworkElement;
2027FrameworkElement viewport = GetViewportElement();
2041TryGetTreeViewItemHeader(nextElement) as FrameworkElement,
2151treeViewNavigation) as FrameworkElement;
2189FrameworkElement startingElement,
2192out FrameworkElement container)
2225return NavigateByPage(FocusedInfo, Keyboard.FocusedElement as FrameworkElement, direction, itemNavigateArgs);
2238FrameworkElement startingElement,
2261FrameworkElement container;
2272FrameworkElement startingElement,
2275out FrameworkElement container)
2292FrameworkElement firstElement;
2370FrameworkElement container;
2374internal bool NavigateToStartInternal(ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container)
2408FrameworkElement firstElement;
2409FrameworkElement hopefulFirstElement = FindEndFocusableLeafContainer(ItemsHost, false /*last*/);
2436FrameworkElement container;
2440internal bool NavigateToEndInternal(ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container)
2474FrameworkElement lastElement;
2475FrameworkElement hopefulLastElement = FindEndFocusableLeafContainer(ItemsHost, true /*last*/);
2500private FrameworkElement FindEndFocusableLeafContainer(Panel itemsHost, bool last)
2514FrameworkElement fe = children[i] as FrameworkElement;
2518FrameworkElement result = null;
2596FrameworkElement container;
2603private object FindFocusable(int startIndex, int direction, out int foundIndex, out FrameworkElement foundContainer)
2612FrameworkElement container = ItemContainerGenerator.ContainerFromIndex(startIndex) as FrameworkElement;
2631private void AdjustOffsetToAlignWithEdge(FrameworkElement element, FocusNavigationDirection direction)
2638FrameworkElement viewportElement = GetViewportElement();
2639element = TryGetTreeViewItemHeader(element) as FrameworkElement;
2674private void MakeVisible(int index, FocusNavigationDirection direction, bool alwaysAtTopOfViewport, out FrameworkElement container)
2680container = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement;
2690container = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement;
2700private void MakeVisible(ItemInfo info, FocusNavigationDirection direction, out FrameworkElement container)
2716internal void MakeVisible(FrameworkElement container, FocusNavigationDirection direction, bool alwaysAtTopOfViewport)
2723FrameworkElement viewportElement = GetViewportElement();
2745FrameworkElement firstElement;
2774private bool NavigateToFirstItemOnCurrentPage(object startingItem, FocusNavigationDirection direction, ItemNavigateArgs itemNavigateArgs, bool shouldFocus, out FrameworkElement container)
2776object firstItem = GetFirstItemOnCurrentPage(ItemContainerGenerator.ContainerFromItem(startingItem) as FrameworkElement,
2790private object GetFirstItemOnCurrentPage(FrameworkElement startingElement,
2792out FrameworkElement firstElement)
2841FrameworkElement currentElement = startingElement;
2856FrameworkElement viewportElement = GetViewportElement();
2862viewportElement) as FrameworkElement;
2898internal FrameworkElement GetViewportElement()
2905FrameworkElement viewPort = ScrollHost;
2931FrameworkElement container = ItemContainerGenerator.ContainerFromItem(item) as FrameworkElement;
2941private bool IsOnCurrentPage(FrameworkElement element, FocusNavigationDirection axis)
2953private bool IsOnCurrentPage(FrameworkElement viewPort, FrameworkElement element, FocusNavigationDirection axis, bool fullyVisible)
2958internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort,
2967internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort,
2994internal static ElementViewportPosition GetElementViewportPosition(FrameworkElement viewPort,
3298FrameworkElement relativeTo = ScrollHost != null ? (FrameworkElement)ScrollHost : ItemsHost;
3347private bool IsRTL(FrameworkElement element)
3353private static ItemsControl GetEncapsulatingItemsControl(FrameworkElement element)
3362element = VisualTreeHelper.GetParent(element) as FrameworkElement;
3367private static object GetEncapsulatingItem(FrameworkElement element, out FrameworkElement container)
3373private static object GetEncapsulatingItem(FrameworkElement element, out FrameworkElement container, out ItemsControl itemsControl)
3391element = VisualTreeHelper.GetParent(element) as FrameworkElement;
3426container.ReadLocalValue(FrameworkElement.StyleProperty) != DependencyProperty.UnsetValue)
3457container.ClearValue(FrameworkElement.StyleProperty);
3467container.ClearValue(FrameworkElement.StyleProperty);
src\Framework\System\Windows\Controls\Primitives\Selector.cs (10)
117FrameworkElement.AddHandler(element, SelectedEvent, handler);
128FrameworkElement.RemoveHandler(element, SelectedEvent, handler);
146FrameworkElement.AddHandler(element, UnselectedEvent, handler);
157FrameworkElement.RemoveHandler(element, UnselectedEvent, handler);
1451private void SetSelectedHelper(object item, FrameworkElement UI, bool selected)
1917((Selector)sender).NotifyIsSelectedChanged(e.OriginalSource as FrameworkElement, true, e);
1922((Selector)sender).NotifyIsSelectedChanged(e.OriginalSource as FrameworkElement, false, e);
1935FrameworkElement element = this;
1944element = System.Windows.Media.VisualTreeHelper.GetParent(element) as FrameworkElement;
1958internal void NotifyIsSelectedChanged(FrameworkElement container, bool selected, RoutedEventArgs e)
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (33)
425FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport(
547FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport(
673FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport(
877FrameworkElement prevFirstContainerInViewport = _scrollData._firstContainerInViewport;
882FrameworkElement currFirstContainerInViewport = ComputeFirstContainerInViewport(
905FrameworkElement deepestTopContainer = ComputeFirstContainerInViewport(
1093private FrameworkElement ComputeFirstContainerInViewport(
1094FrameworkElement viewportElement,
1107private FrameworkElement ComputeFirstContainerInViewport(
1108FrameworkElement viewportElement,
1144FrameworkElement result = null;
1153FrameworkElement fe = children[i] as FrameworkElement;
1673FrameworkElement childFE = child as FrameworkElement;
1937FrameworkElement.AddHandler(element, CleanUpVirtualizedItemEvent, handler);
1947FrameworkElement.RemoveHandler(element, CleanUpVirtualizedItemEvent, handler);
5173FrameworkElement container = virtualizationInfoProvider as FrameworkElement;
6271FrameworkElement container = virtualizationInfoProvider as FrameworkElement;
6330FrameworkElement fe = virtualizingChild as FrameworkElement;
6468private bool IsHeaderBeforeItems(bool isHorizontal, FrameworkElement container, ref Thickness inset)
6975bool isHeaderBeforeItems = IsHeaderBeforeItems(isHorizontal, virtualizingChild as FrameworkElement, ref inset);
10946bool isHeaderBeforeItems = IsHeaderBeforeItems(isHorizontal, virtualizingElement as FrameworkElement, ref inset);
11488private FrameworkElement FirstContainerInViewport
11675internal FrameworkElement _firstContainerInViewport;
12019sti = new ScrollTracingInfo(tracer, _nullInfo.Generation, 0, itemsOwner as FrameworkElement, null, null, 0);
12041sti = new ScrollTracingInfo(tracer, _nullInfo.Generation, parentInfo.Depth + 1, itemsOwner as FrameworkElement, parent, parentItem, itemIndex);
12517internal FrameworkElement Owner { get; private set; }
12522internal ScrollTracingInfo(ScrollTracer tracer, int generation, int depth, FrameworkElement owner, VirtualizingStackPanel parent, object parentItem, int itemIndex)
12717internal FrameworkElement _firstContainerInViewport;
src\Framework\System\Windows\Documents\TextSchema.cs (18)
45FrameworkElement.LanguageProperty,
46FrameworkElement.FlowDirectionProperty,
1168FrameworkElement.LanguageProperty,
1172FrameworkElement.LayoutTransformProperty,
1173FrameworkElement.WidthProperty,
1174FrameworkElement.MinWidthProperty,
1175FrameworkElement.MaxWidthProperty,
1176FrameworkElement.HeightProperty,
1177FrameworkElement.MinHeightProperty,
1178FrameworkElement.MaxHeightProperty,
1180FrameworkElement.MarginProperty,
1181FrameworkElement.HorizontalAlignmentProperty,
1182FrameworkElement.VerticalAlignmentProperty,
1184FrameworkElement.CursorProperty,
1185FrameworkElement.ForceCursorProperty,
1187FrameworkElement.ToolTipProperty,
1226FrameworkElement.FlowDirectionProperty,
1227FrameworkElement.LanguageProperty,
src\Framework\System\Windows\FrameworkContentElement.cs (43)
129FrameworkElement.StyleProperty.AddOwner(
175= FrameworkElement.OverridesDefaultStyleProperty.AddOwner(typeof(FrameworkContentElement),
194FrameworkElement.DefaultStyleKeyProperty.AddOwner(
366object resource = FrameworkElement.FindResourceInternal(null /* fe */, this, resourceKey);
396object resource = FrameworkElement.FindResourceInternal(null /* fe */, this, resourceKey);
540object implicitValue = FrameworkElement.FindImplicitStyleResource(this, this.GetType(), out source);
580FrameworkElement parentFE;
581bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE);
644hasParent = FrameworkElement.GetFrameworkParent(parentFE, out parentFE, out parentFCE);
648hasParent = FrameworkElement.GetFrameworkParent(parentFCE, out parentFE, out parentFCE);
668FrameworkElement feTemplatedParent = (FrameworkElement)_templatedParent;
725if (dp == FrameworkElement.NameProperty &&
742FrameworkElement feTemplatedParent = TemplatedParent as FrameworkElement;
841FrameworkElement.NameProperty.AddOwner(
860FrameworkElement.TagProperty.AddOwner(
881FrameworkElement.LanguageProperty.AddOwner(
905FrameworkElement.FocusVisualStyleProperty.AddOwner(typeof(FrameworkContentElement),
906new FrameworkPropertyMetadata(FrameworkElement.DefaultFocusVisualStyle));
921FrameworkElement.CursorProperty.AddOwner(
953FrameworkElement.ForceCursorProperty.AddOwner(
1084args.RoutedEvent=FrameworkElement.RequestBringIntoViewEvent;
1138FrameworkElement.DataContextProperty.AddOwner(
1157add { EventHandlersStoreAdd(FrameworkElement.DataContextChangedKey, value); }
1158remove { EventHandlersStoreRemove(FrameworkElement.DataContextChangedKey, value); }
1177((FrameworkContentElement) d).RaiseDependencyPropertyChanged(FrameworkElement.DataContextChangedKey, e);
1215FrameworkElement.BindingGroupProperty.AddOwner(
1361FrameworkElement.AddIntermediateElementsToRoute(this, route, args, LogicalTreeHelper.GetParent(branchNode));
1395FrameworkElement.AddStyleHandlersToEventRoute(null, this, route, args);
1426continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(this, LogicalTreeHelper.GetParent(branchNode));
1607add { EventHandlersStoreAdd(FrameworkElement.InitializedKey, value); }
1608remove { EventHandlersStoreRemove(FrameworkElement.InitializedKey, value); }
1630RaiseInitialized(FrameworkElement.InitializedKey, e);
1672= FrameworkElement.LoadedPendingProperty.AddOwner(typeof(FrameworkContentElement));
1679= FrameworkElement.UnloadedPendingProperty.AddOwner(typeof(FrameworkContentElement));
1727public static readonly RoutedEvent LoadedEvent = FrameworkElement.LoadedEvent.AddOwner( typeof(FrameworkContentElement));
1737AddHandler(FrameworkElement.LoadedEvent, value, false);
1741RemoveHandler(FrameworkElement.LoadedEvent, value);
1758public static readonly RoutedEvent UnloadedEvent = FrameworkElement.UnloadedEvent.AddOwner( typeof(FrameworkContentElement));
1767AddHandler(FrameworkElement.UnloadedEvent, value, false);
1771RemoveHandler(FrameworkElement.UnloadedEvent, value);
2200private static readonly UncommonField<ResourceDictionary> ResourcesField = FrameworkElement.ResourcesField;
src\Framework\System\Windows\FrameworkElement.cs (97)
111static private readonly Type _typeofThis = typeof(FrameworkElement);
143FrameworkElement.EnsureFrameworkServices();
181FrameworkElement fe = (FrameworkElement) d;
213typeof(FrameworkElement),
232FrameworkElement fe = (FrameworkElement)d;
262((FrameworkElement)d).UpdateThemeStyleProperty();
282FrameworkElement fe = (FrameworkElement) d;
480internal static FrameworkElement FindNamedFrameworkElement( FrameworkElement startElement, string targetName )
482FrameworkElement targetFE = null;
620internal virtual FrameworkElement StateGroupsRoot
624return _templateChild as FrameworkElement;
839object resource = FrameworkElement.FindResourceInternal(this, null /* fce */, resourceKey);
870object resource = FrameworkElement.FindResourceInternal(this, null /* fce */, resourceKey);
884internal static object FindImplicitStyleResource(FrameworkElement fe, object resourceKey, out object source)
908FrameworkElement.StyleProperty, // dp
992internal static object FindResourceInternal(FrameworkElement fe, FrameworkContentElement fce, object resourceKey)
1021return FrameworkElement.FindResourceInternal(null, // fe
1035FrameworkElement fe,
1164FrameworkElement feStart,
1211FrameworkElement fe = fo.FE;
1633private static ResourceDictionary GetInstanceResourceDictionary(FrameworkElement fe, FrameworkContentElement fce)
1657private static ResourceDictionary GetStyleResourceDictionary(FrameworkElement fe, FrameworkContentElement fce)
1697private static ResourceDictionary GetThemeStyleResourceDictionary(FrameworkElement fe, FrameworkContentElement fce)
1737private static ResourceDictionary GetTemplateResourceDictionary(FrameworkElement fe, FrameworkContentElement fce)
1888object implicitValue = FrameworkElement.FindImplicitStyleResource(this, this.GetType(), out source);
1945FrameworkElement feTemplatedParent = (FrameworkElement)_templatedParent;
1977FrameworkElement parentFE;
2087if (dp == FrameworkElement.NameProperty &&
2104FrameworkElement feTemplatedParent = TemplatedParent as FrameworkElement;
2233if(FrameworkElement.DType.IsInstanceOfType(layoutParent))
2234((FrameworkElement)layoutParent).ParentLayoutInvalidated(this);
2292internal static bool GetFrameworkParent(FrameworkElement current, out FrameworkElement feParent, out FrameworkContentElement fceParent)
2305internal static bool GetFrameworkParent(FrameworkContentElement current, out FrameworkElement feParent, out FrameworkContentElement fceParent)
2317internal static bool GetContainingFrameworkElement(DependencyObject current, out FrameworkElement fe, out FrameworkContentElement fce)
2385EventManager.RegisterClassHandler(_typeofThis, Mouse.QueryCursorEvent, new QueryCursorEventHandler(FrameworkElement.OnQueryCursorOverride), true);
2416typeof(FrameworkElement),
2424FrameworkElement fe = (FrameworkElement) d;
2480if (newParent != null && (newParent is FrameworkElement) == false)
2494else if (oldParent != null && (oldParent is FrameworkElement) == false)
2542FrameworkElement feParent = null;
2546FrameworkElement.GetContainingFrameworkElement(VisualTreeHelper.GetParent(this), out feParent, out fceParent);
2577FrameworkElement.GetContainingFrameworkElement(e.OldParent, out feParent, out fceParent);
2746((FrameworkElement) d).RaiseDependencyPropertyChanged(DataContextChangedKey, e);
2931FrameworkElement.AddIntermediateElementsToRoute(this, route, args, LogicalTreeHelper.GetParent(branchNode));
2986FrameworkElement fe,
3032FrameworkElement feTemplatedParent = templatedParent as FrameworkElement;
3126continueInvalidation = FrameworkElement.InvalidateAutomationIntermediateElements(this, LogicalTreeHelper.GetParent(branchNode));
3350FrameworkElement fe = (FrameworkElement) d;
3395FrameworkElement fe = (FrameworkElement) d;
3453FrameworkElement fe = (FrameworkElement)d;
3478FrameworkElement fe = (FrameworkElement)d;
3664FrameworkElement fe = d as FrameworkElement;
3678FrameworkElement fe = d as FrameworkElement;
3886FrameworkElement fe = ((FrameworkElement)d);
3921FrameworkElement fe = ((FrameworkElement)d);
3931FrameworkElement fe = (FrameworkElement) sender;
3970internal static bool ShouldApplyMirrorTransform(FrameworkElement fe)
3987FrameworkElement parentFE;
4017FrameworkElement fe = v as FrameworkElement;
4058internal MinMax(FrameworkElement e)
5149FrameworkElement fe = element as FrameworkElement;
5339FrameworkElement fe = (FrameworkElement)sender;
5365FrameworkElement fe = (FrameworkElement)sender;
5533((FrameworkElement) o).HasNumberSubstitutionChanged = true;
5537private static bool ShouldUseSystemFont(FrameworkElement fe, DependencyProperty dp)
5552if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontFamilyProperty))
5563if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontSizeProperty))
5574if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontStyleProperty))
5585if (ShouldUseSystemFont((FrameworkElement)o, TextElement.FontWeightProperty))
5964((FrameworkElement)sender).OnToolTipOpening(e);
5996((FrameworkElement)sender).OnToolTipClosing(e);
6029((FrameworkElement)sender).OnContextMenuOpening(e);
6056((FrameworkElement)sender).OnContextMenuClosing(e);
6101FrameworkElement fe = uiElement as FrameworkElement;
src\Framework\System\Windows\Generated\FrameworkContentElement.cs (14)
74INameScope nameScope = FrameworkElement.FindScope(this);
92INameScope nameScope = FrameworkElement.FindScope(this);
118INameScope nameScope = FrameworkElement.FindScope(this, out scopeOwner);
331IsParentAnFE = newParent is FrameworkElement;
456RaiseClrEvent(FrameworkElement.ResourcesChangedKey, EventArgs.Empty);
495FrameworkElement.GetTemplatedParentChildRecord(templatedParent, childIndex, out childRecord, out isChildRecordValid);
497FrameworkElement parentFE;
499bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE);
785&& FrameworkElement.GetFrameworkParent(this) == null
1022Delegate handler = store.Get(FrameworkElement.InheritedPropertyChangedKey);
1205EventHandlersStoreAdd(FrameworkElement.ResourcesChangedKey, value);
1207remove { EventHandlersStoreRemove(FrameworkElement.ResourcesChangedKey, value); }
1225EventHandlersStoreAdd(FrameworkElement.InheritedPropertyChangedKey, value);
1227remove { EventHandlersStoreRemove(FrameworkElement.InheritedPropertyChangedKey, value); }
src\Framework\System\Windows\Generated\FrameworkElement.cs (15)
74INameScope nameScope = FrameworkElement.FindScope(this);
92INameScope nameScope = FrameworkElement.FindScope(this);
118INameScope nameScope = FrameworkElement.FindScope(this, out scopeOwner);
331IsParentAnFE = newParent is FrameworkElement;
448RaiseClrEvent(FrameworkElement.ResourcesChangedKey, EventArgs.Empty);
510FrameworkElement.GetTemplatedParentChildRecord(templatedParent, childIndex, out childRecord, out isChildRecordValid);
512FrameworkElement parentFE;
514bool hasParent = FrameworkElement.GetFrameworkParent(this, out parentFE, out parentFCE);
815&& FrameworkElement.GetFrameworkParent(this) == null
1052Delegate handler = store.Get(FrameworkElement.InheritedPropertyChangedKey);
1247EventHandlersStoreAdd(FrameworkElement.ResourcesChangedKey, value);
1249remove { EventHandlersStoreRemove(FrameworkElement.ResourcesChangedKey, value); }
1272EventHandlersStoreAdd(FrameworkElement.InheritedPropertyChangedKey, value);
1274remove { EventHandlersStoreRemove(FrameworkElement.InheritedPropertyChangedKey, value); }
1289internal new static DependencyObjectType DType = DependencyObjectType.FromSystemTypeInternal(typeof(FrameworkElement));
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (43)
2469Type type = typeof(System.Windows.FrameworkElement);
2470DependencyProperty dp = System.Windows.FrameworkElement.FlowDirectionProperty;
2472this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2486Type type = typeof(System.Windows.FrameworkElement);
2487DependencyProperty dp = System.Windows.FrameworkElement.HeightProperty;
2489this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2503Type type = typeof(System.Windows.FrameworkElement);
2504DependencyProperty dp = System.Windows.FrameworkElement.HorizontalAlignmentProperty;
2506this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2520Type type = typeof(System.Windows.FrameworkElement);
2521DependencyProperty dp = System.Windows.FrameworkElement.MarginProperty;
2523this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2537Type type = typeof(System.Windows.FrameworkElement);
2538DependencyProperty dp = System.Windows.FrameworkElement.MaxHeightProperty;
2540this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2554Type type = typeof(System.Windows.FrameworkElement);
2555DependencyProperty dp = System.Windows.FrameworkElement.MaxWidthProperty;
2557this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2571Type type = typeof(System.Windows.FrameworkElement);
2572DependencyProperty dp = System.Windows.FrameworkElement.MinHeightProperty;
2574this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2588Type type = typeof(System.Windows.FrameworkElement);
2589DependencyProperty dp = System.Windows.FrameworkElement.MinWidthProperty;
2591this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2605Type type = typeof(System.Windows.FrameworkElement);
2606DependencyProperty dp = System.Windows.FrameworkElement.NameProperty;
2608this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2622Type type = typeof(System.Windows.FrameworkElement);
2623DependencyProperty dp = System.Windows.FrameworkElement.StyleProperty;
2625this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2638Type type = typeof(System.Windows.FrameworkElement);
2639DependencyProperty dp = System.Windows.FrameworkElement.VerticalAlignmentProperty;
2641this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
2655Type type = typeof(System.Windows.FrameworkElement);
2656DependencyProperty dp = System.Windows.FrameworkElement.WidthProperty;
2658this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
6318Type type = typeof(System.Windows.FrameworkElement);
6320this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
6327bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.FrameworkElement)target).Resources = (System.Windows.ResourceDictionary)value; };
6328bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.FrameworkElement)target).Resources; };
8211Type type = typeof(System.Windows.FrameworkElement);
8213this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
8219bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.FrameworkElement)target).Triggers; };
src\Framework\System\Windows\Media\Animation\Storyboard.cs (27)
247FrameworkElement fe = element as FrameworkElement;
308FrameworkElement fe,
437targetObject = containingObject as FrameworkElement;
931if( FrameworkElement.DType.IsInstanceOfType(targetObject) )
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 )
1292public Nullable<Double> GetCurrentGlobalSpeed( FrameworkElement containingObject )
1341public Nullable<Int32> GetCurrentIteration( FrameworkElement containingObject )
1390public Nullable<Double> GetCurrentProgress( FrameworkElement containingObject )
1438public ClockState GetCurrentState( FrameworkElement containingObject )
1477public Nullable<TimeSpan> GetCurrentTime( FrameworkElement containingObject )
1526public bool GetIsPaused( FrameworkElement containingObject )
1567public void Pause( FrameworkElement containingObject )
1612public void Remove(FrameworkElement containingObject)
1661public void Resume( FrameworkElement containingObject )
1708public void Seek( FrameworkElement containingObject, TimeSpan offset, TimeSeekOrigin origin )
1759public void SeekAlignedToLastTick( FrameworkElement containingObject, TimeSpan offset, TimeSeekOrigin origin )
1810public void SetSpeedRatio( FrameworkElement containingObject, double speedRatio )
1849public void SkipToFill( FrameworkElement containingObject )
1886public void Stop( FrameworkElement containingObject )
src\Framework\System\Windows\StyleHelper.cs (81)
54FrameworkElement fe,
93FrameworkElement fe,
114if (StyleHelper.IsSetOnContainer(FrameworkElement.OverridesDefaultStyleProperty, ref newThemeStyle.ContainerDependents, true))
133if(ShouldGetValueFromStyle ( FrameworkElement.DefaultStyleKeyProperty ) )
163internal static Style GetThemeStyle(FrameworkElement fe, FrameworkContentElement fce)
182if(ShouldGetValueFromStyle ( FrameworkElement.DefaultStyleKeyProperty ) )
256FrameworkElement.StyleProperty.GetMetadata(themeStyleTypeKey);
273FrameworkElement.OnThemeStyleChanged(fe, oldThemeStyle, newThemeStyle);
291FrameworkElement fe,
458if (StyleHelper.IsSetOnContainer(FrameworkElement.StyleProperty, ref containerDependents, true))
460throw new InvalidOperationException(SR.Get(SRID.CannotHavePropertyInTemplate, FrameworkElement.StyleProperty.Name));
465if (StyleHelper.IsSetOnContainer(FrameworkElement.DefaultStyleKeyProperty, ref containerDependents, true))
467throw new InvalidOperationException(SR.Get(SRID.CannotHavePropertyInTemplate, FrameworkElement.DefaultStyleKeyProperty.Name));
472if (StyleHelper.IsSetOnContainer(FrameworkElement.OverridesDefaultStyleProperty, ref containerDependents, true))
474throw new InvalidOperationException(SR.Get(SRID.CannotHavePropertyInTemplate, FrameworkElement.OverridesDefaultStyleProperty.Name));
479if (StyleHelper.IsSetOnContainer(FrameworkElement.NameProperty, ref containerDependents, true))
481throw new InvalidOperationException(SR.Get(SRID.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 (FrameworkElement.DType.IsInstanceOfType(d))
2338fe = (FrameworkElement)d;
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;
3104return (dp != FrameworkElement.StyleProperty);
3116return (dp != FrameworkElement.StyleProperty &&
3117dp != FrameworkElement.DefaultStyleKeyProperty &&
3118dp != FrameworkElement.OverridesDefaultStyleProperty);
3131return (dp != FrameworkElement.StyleProperty &&
3132dp != FrameworkElement.DefaultStyleKeyProperty &&
3133dp != FrameworkElement.OverridesDefaultStyleProperty &&
3153FrameworkElement fe,
3234FrameworkElement fe,
3309FrameworkElement feContainer,
3451FrameworkElement fe,
3492FrameworkElement fe,
4241if (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;
5454child is FrameworkElement && ((FrameworkElement)child).TemplateChildIndex == childIndex ||
5485FrameworkElement fe;
5510FrameworkElement fe;
5600if (dp == ItemsControl.ItemsPanelProperty || dp == FrameworkElement.ContextMenuProperty || dp == FrameworkElement.ToolTipProperty)
src\Framework\System\Windows\VisualStateManager.cs (24)
31private static bool GoToStateCommon(FrameworkElement control, FrameworkElement stateGroupsRoot, string stateName, bool useTransitions)
76public static bool GoToState(FrameworkElement control, string stateName, bool useTransitions)
83FrameworkElement stateGroupsRoot = control.StateGroupsRoot;
95public static bool GoToElementState(FrameworkElement stateGroupsRoot, string stateName, bool useTransitions)
108protected virtual bool GoToStateCore(FrameworkElement control, FrameworkElement stateGroupsRoot, string stateName, VisualStateGroup group, VisualState state, bool useTransitions)
122public static VisualStateManager GetCustomVisualStateManager(FrameworkElement obj)
132public static void SetCustomVisualStateManager(FrameworkElement obj, VisualStateManager value)
159internal static Collection<VisualStateGroup> GetVisualStateGroupsInternal(FrameworkElement obj)
178public static IList GetVisualStateGroups(FrameworkElement obj)
211private static bool GoToStateInternal(FrameworkElement control, FrameworkElement stateGroupsRoot, VisualStateGroup group, VisualState state, bool useTransitions)
335private static bool ShouldRunStateStoryboard(FrameworkElement control, FrameworkElement stateGroupsRoot, VisualState state, VisualStateGroup group)
364protected void RaiseCurrentStateChanging(VisualStateGroup stateGroup, VisualState oldState, VisualState newState, FrameworkElement control, FrameworkElement stateGroupsRoot)
384protected void RaiseCurrentStateChanged(VisualStateGroup stateGroup, VisualState oldState, VisualState newState, FrameworkElement control, FrameworkElement stateGroupsRoot)
408private static Storyboard GenerateDynamicTransitionAnimations(FrameworkElement root, VisualStateGroup group, VisualState newState, VisualTransition transition)
472private static Timeline GenerateFromAnimation(FrameworkElement root, Timeline timeline, IEasingFunction easingFunction)
499private static Timeline GenerateToAnimation(FrameworkElement root, Timeline timeline, IEasingFunction easingFunction, bool isEntering)
538private static void CopyStoryboardTargetProperties(FrameworkElement root, Timeline source, Timeline destination)
579internal static VisualTransition GetTransition(FrameworkElement element, VisualStateGroup group, VisualState from, VisualState to)