Core\CSharp\MS\Internal\Media\VisualTreeUtils.cs (11)
67DependencyObject element,
91internal static void SetFlagsToRoot(DependencyObject element, bool value, VisualFlags flags)
112internal static DependencyObject FindFirstAncestorWithFlagsAnd(DependencyObject element, VisualFlags flags)
201internal static void EnsureNonNullVisual(DependencyObject element)
210internal static void EnsureVisual(DependencyObject element)
219private static void EnsureVisual(DependencyObject element, bool allowNull)
244internal static void AsNonNullVisual(DependencyObject element, out Visual visual, out Visual3D visual3D)
263internal static void AsVisual(DependencyObject element, out Visual visual, out Visual3D visual3D)
293internal static bool AsVisualInternal(DependencyObject element, out Visual visual, out Visual3D visual3D)
331private static bool AsVisualHelper(DependencyObject element, out Visual visual, out Visual3D visual3D)
Core\CSharp\System\Windows\Automation\AutomationProperties.cs (30)
23public static void SetAutomationId(DependencyObject element, string value)
36public static string GetAutomationId(DependencyObject element)
62public static void SetName(DependencyObject element, string value)
75public static string GetName(DependencyObject element)
101public static void SetHelpText(DependencyObject element, string value)
114public static string GetHelpText(DependencyObject element)
140public static void SetAcceleratorKey(DependencyObject element, string value)
153public static string GetAcceleratorKey(DependencyObject element)
179public static void SetAccessKey(DependencyObject element, string value)
192public static string GetAccessKey(DependencyObject element)
218public static void SetItemStatus(DependencyObject element, string value)
231public static string GetItemStatus(DependencyObject element)
257public static void SetItemType(DependencyObject element, string value)
270public static string GetItemType(DependencyObject element)
295public static void SetIsColumnHeader(DependencyObject element, bool value)
308public static bool GetIsColumnHeader(DependencyObject element)
333public static void SetIsRowHeader(DependencyObject element, bool value)
346public static bool GetIsRowHeader(DependencyObject element)
371public static void SetIsRequiredForForm(DependencyObject element, bool value)
384public static bool GetIsRequiredForForm(DependencyObject element)
409public static void SetLabeledBy(DependencyObject element, UIElement value)
422public static UIElement GetLabeledBy(DependencyObject element)
447public static void SetIsOffscreenBehavior(DependencyObject element, IsOffscreenBehavior value)
460public static IsOffscreenBehavior GetIsOffscreenBehavior(DependencyObject element)
485public static void SetLiveSetting(DependencyObject element, AutomationLiveSetting value)
498public static AutomationLiveSetting GetLiveSetting(DependencyObject element)
527public static void SetPositionInSet(DependencyObject element, int value)
540public static int GetPositionInSet(DependencyObject element)
569public static void SetSizeOfSet(DependencyObject element, int value)
582public static int GetSizeOfSet(DependencyObject element)
Core\CSharp\System\Windows\DragDrop.cs (36)
62public static void AddPreviewQueryContinueDragHandler(DependencyObject element, QueryContinueDragEventHandler handler)
72public static void RemovePreviewQueryContinueDragHandler(DependencyObject element, QueryContinueDragEventHandler handler)
87public static void AddQueryContinueDragHandler(DependencyObject element, QueryContinueDragEventHandler handler)
97public static void RemoveQueryContinueDragHandler(DependencyObject element, QueryContinueDragEventHandler handler)
112public static void AddPreviewGiveFeedbackHandler(DependencyObject element, GiveFeedbackEventHandler handler)
122public static void RemovePreviewGiveFeedbackHandler(DependencyObject element, GiveFeedbackEventHandler handler)
137public static void AddGiveFeedbackHandler(DependencyObject element, GiveFeedbackEventHandler handler)
147public static void RemoveGiveFeedbackHandler(DependencyObject element, GiveFeedbackEventHandler handler)
162public static void AddPreviewDragEnterHandler(DependencyObject element, DragEventHandler handler)
172public static void RemovePreviewDragEnterHandler(DependencyObject element, DragEventHandler handler)
187public static void AddDragEnterHandler(DependencyObject element, DragEventHandler handler)
197public static void RemoveDragEnterHandler(DependencyObject element, DragEventHandler handler)
212public static void AddPreviewDragOverHandler(DependencyObject element, DragEventHandler handler)
222public static void RemovePreviewDragOverHandler(DependencyObject element, DragEventHandler handler)
237public static void AddDragOverHandler(DependencyObject element, DragEventHandler handler)
247public static void RemoveDragOverHandler(DependencyObject element, DragEventHandler handler)
262public static void AddPreviewDragLeaveHandler(DependencyObject element, DragEventHandler handler)
272public static void RemovePreviewDragLeaveHandler(DependencyObject element, DragEventHandler handler)
287public static void AddDragLeaveHandler(DependencyObject element, DragEventHandler handler)
297public static void RemoveDragLeaveHandler(DependencyObject element, DragEventHandler handler)
312public static void AddPreviewDropHandler(DependencyObject element, DragEventHandler handler)
322public static void RemovePreviewDropHandler(DependencyObject element, DragEventHandler handler)
337public static void AddDropHandler(DependencyObject element, DragEventHandler handler)
347public static void RemoveDropHandler(DependencyObject element, DragEventHandler handler)
389public static DragDropEffects DoDragDrop(DependencyObject dragSource, object data, DragDropEffects allowedEffects)
606private static DragDropEffects OleDoDragDrop(DependencyObject dragSource, DataObject dataObject, DragDropEffects allowedEffects)
657public OleDragSource(DependencyObject dragSource)
910private DependencyObject _dragSource;
960DependencyObject target;
1003DependencyObject target;
1122DependencyObject target;
1166private void RaiseDragEvent(RoutedEvent dragEvent, int dragDropKeyStates, ref int effects, DependencyObject target, Point targetPoint)
1334private DependencyObject GetCurrentTarget(long dragPoint, out Point targetPoint)
1337DependencyObject target;
1355target = MouseDevice.LocalHitTest(targetPoint, source) as DependencyObject;
1484private DependencyObject _lastTarget;
Core\CSharp\System\Windows\Generated\UIElement.cs (10)
789internal virtual bool InvalidateAutomationAncestorsCore(Stack<DependencyObject> branchNodeStack, out bool continuePastVisualTree)
919UIElement.CrackMouseButtonEventAndReRaiseEvent((DependencyObject)sender, e);
957UIElement.CrackMouseButtonEventAndReRaiseEvent((DependencyObject)sender, e);
990UIElement.CrackMouseButtonEventAndReRaiseEvent((DependencyObject)sender, e);
1023UIElement.CrackMouseButtonEventAndReRaiseEvent((DependencyObject)sender, e);
4608private static void IsMouseDirectlyOver_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
4744private static void IsMouseCaptured_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
4846private static void IsStylusDirectlyOver_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
4900private static void IsStylusCaptured_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
5002private static void IsKeyboardFocused_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
Core\CSharp\System\Windows\Input\Keyboard.cs (21)
31public static void AddPreviewKeyDownHandler(DependencyObject element, KeyEventHandler handler)
41public static void RemovePreviewKeyDownHandler(DependencyObject element, KeyEventHandler handler)
56public static void AddKeyDownHandler(DependencyObject element, KeyEventHandler handler)
66public static void RemoveKeyDownHandler(DependencyObject element, KeyEventHandler handler)
81public static void AddPreviewKeyUpHandler(DependencyObject element, KeyEventHandler handler)
91public static void RemovePreviewKeyUpHandler(DependencyObject element, KeyEventHandler handler)
106public static void AddKeyUpHandler(DependencyObject element, KeyEventHandler handler)
116public static void RemoveKeyUpHandler(DependencyObject element, KeyEventHandler handler)
131public static void AddPreviewGotKeyboardFocusHandler(DependencyObject element, KeyboardFocusChangedEventHandler handler)
141public static void RemovePreviewGotKeyboardFocusHandler(DependencyObject element, KeyboardFocusChangedEventHandler handler)
156public static void AddPreviewKeyboardInputProviderAcquireFocusHandler(DependencyObject element, KeyboardInputProviderAcquireFocusEventHandler handler)
166public static void RemovePreviewKeyboardInputProviderAcquireFocusHandler(DependencyObject element, KeyboardInputProviderAcquireFocusEventHandler handler)
181public static void AddKeyboardInputProviderAcquireFocusHandler(DependencyObject element, KeyboardInputProviderAcquireFocusEventHandler handler)
191public static void RemoveKeyboardInputProviderAcquireFocusHandler(DependencyObject element, KeyboardInputProviderAcquireFocusEventHandler handler)
206public static void AddGotKeyboardFocusHandler(DependencyObject element, KeyboardFocusChangedEventHandler handler)
216public static void RemoveGotKeyboardFocusHandler(DependencyObject element, KeyboardFocusChangedEventHandler handler)
231public static void AddPreviewLostKeyboardFocusHandler(DependencyObject element, KeyboardFocusChangedEventHandler handler)
241public static void RemovePreviewLostKeyboardFocusHandler(DependencyObject element, KeyboardFocusChangedEventHandler handler)
256public static void AddLostKeyboardFocusHandler(DependencyObject element, KeyboardFocusChangedEventHandler handler)
266public static void RemoveLostKeyboardFocusHandler(DependencyObject element, KeyboardFocusChangedEventHandler handler)
389internal static bool IsFocusable(DependencyObject element)
Core\CSharp\System\Windows\Input\KeyboardDevice.cs (21)
86_forceTarget = value as DependencyObject;
157DependencyObject oFocus = null;
169oFocus = (DependencyObject) element;
175oFocus = _activeSource.Value.RootVisual as DependencyObject;
190private void Focus(DependencyObject focus, bool askOld, bool askNew, bool forceToNullIfFailed)
209DependencyObject containingVisual = InputElement.GetContainingVisual(focus);
343private void TryChangeFocus(DependencyObject newFocus, IKeyboardInputProvider keyboardInputProvider, bool askOld, bool askNew, bool forceToNullIfFailed)
347DependencyObject oldFocus = _focus; // This is required, used below to see if focus has been delegated
453private void ChangeFocus(DependencyObject focus, int timestamp)
455DependencyObject o = null;
460DependencyObject oldFocus = _focus;
602internal void ReevaluateFocusAsync(DependencyObject element, DependencyObject oldParent, bool isCoreParent)
666DependencyObject element = _focus;
680DependencyObject visualContainer = InputElement.GetContainingVisual(element);
689DependencyObject moveFocusTo = null;
720moveFocusTo = _activeSource.Value.RootVisual as DependencyObject;
1112if(InputElement.GetRootVisual (_focus as DependencyObject) != _focusRootVisual)
1150private DependencyObject _focus;
1152private DependencyObject _forceTarget;
1153private DependencyObject _focusRootVisual;
Core\CSharp\System\Windows\Input\Mouse.cs (31)
32public static void AddPreviewMouseMoveHandler(DependencyObject element, MouseEventHandler handler)
42public static void RemovePreviewMouseMoveHandler(DependencyObject element, MouseEventHandler handler)
57public static void AddMouseMoveHandler(DependencyObject element, MouseEventHandler handler)
67public static void RemoveMouseMoveHandler(DependencyObject element, MouseEventHandler handler)
82public static void AddPreviewMouseDownOutsideCapturedElementHandler(DependencyObject element, MouseButtonEventHandler handler)
92public static void RemovePreviewMouseDownOutsideCapturedElementHandler(DependencyObject element, MouseButtonEventHandler handler)
107public static void AddPreviewMouseUpOutsideCapturedElementHandler(DependencyObject element, MouseButtonEventHandler handler)
117public static void RemovePreviewMouseUpOutsideCapturedElementHandler(DependencyObject element, MouseButtonEventHandler handler)
132public static void AddPreviewMouseDownHandler(DependencyObject element, MouseButtonEventHandler handler)
142public static void RemovePreviewMouseDownHandler(DependencyObject element, MouseButtonEventHandler handler)
157public static void AddMouseDownHandler(DependencyObject element, MouseButtonEventHandler handler)
167public static void RemoveMouseDownHandler(DependencyObject element, MouseButtonEventHandler handler)
182public static void AddPreviewMouseUpHandler(DependencyObject element, MouseButtonEventHandler handler)
192public static void RemovePreviewMouseUpHandler(DependencyObject element, MouseButtonEventHandler handler)
207public static void AddMouseUpHandler(DependencyObject element, MouseButtonEventHandler handler)
217public static void RemoveMouseUpHandler(DependencyObject element, MouseButtonEventHandler handler)
232public static void AddPreviewMouseWheelHandler(DependencyObject element, MouseWheelEventHandler handler)
242public static void RemovePreviewMouseWheelHandler(DependencyObject element, MouseWheelEventHandler handler)
257public static void AddMouseWheelHandler(DependencyObject element, MouseWheelEventHandler handler)
267public static void RemoveMouseWheelHandler(DependencyObject element, MouseWheelEventHandler handler)
282public static void AddMouseEnterHandler(DependencyObject element, MouseEventHandler handler)
292public static void RemoveMouseEnterHandler(DependencyObject element, MouseEventHandler handler)
307public static void AddMouseLeaveHandler(DependencyObject element, MouseEventHandler handler)
317public static void RemoveMouseLeaveHandler(DependencyObject element, MouseEventHandler handler)
332public static void AddGotMouseCaptureHandler(DependencyObject element, MouseEventHandler handler)
342public static void RemoveGotMouseCaptureHandler(DependencyObject element, MouseEventHandler handler)
357public static void AddLostMouseCaptureHandler(DependencyObject element, MouseEventHandler handler)
367public static void RemoveLostMouseCaptureHandler(DependencyObject element, MouseEventHandler handler)
382public static void AddQueryCursorHandler(DependencyObject element, QueryCursorEventHandler handler)
392public static void RemoveQueryCursorHandler(DependencyObject element, QueryCursorEventHandler handler)
482PresentationSource inputSource = PresentationSource.FromDependencyObject(InputElement.GetContainingVisual(relativeTo as DependencyObject));
Core\CSharp\System\Windows\Input\MouseDevice.cs (40)
363DependencyObject eltDO = element as DependencyObject;
418DependencyObject containingVisual = InputElement.GetContainingVisual(eltDO);
642DependencyObject dependencyObject = relativeTo as DependencyObject;
643DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject);
680ptRelative = InputElement.TranslatePoint(ptRoot, relativePresentationSource.RootVisual, (DependencyObject)relativeTo);
687internal void ReevaluateMouseOver(DependencyObject element, DependencyObject oldParent, bool isCoreParent)
739UIElement.MouseOverProperty.OnOriginValueChanged(_mouseOver as DependencyObject, _mouseOver as DependencyObject, ref _mouseOverTreeState);
747internal void ReevaluateCapture(DependencyObject element, DependencyObject oldParent, bool isCoreParent)
786DependencyObject dependencyObject = _mouseCapture as DependencyObject;
811DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject);
831UIElement.MouseCaptureWithinProperty.OnOriginValueChanged(_mouseCapture as DependencyObject, _mouseCapture as DependencyObject, ref _mouseCaptureWithinTreeState);
881private bool ValidateVisualForCapture(DependencyObject visual)
1052DependencyObject o = null;
1067o = oldMouseOver as DependencyObject;
1092o = _mouseOver as DependencyObject;
1120UIElement.MouseOverProperty.OnOriginValueChanged(oldMouseOver as DependencyObject, _mouseOver as DependencyObject, ref _mouseOverTreeState);
1125o = oldMouseOver as DependencyObject;
1130o = _mouseOver as DependencyObject;
1145DependencyObject o = null;
1169o = oldMouseCapture as DependencyObject;
1194o = _mouseCapture as DependencyObject;
1222UIElement.MouseCaptureWithinProperty.OnOriginValueChanged(oldMouseCapture as DependencyObject, _mouseCapture as DependencyObject, ref _mouseCaptureWithinTreeState);
1227o = oldMouseCapture as DependencyObject;
1232o = _mouseCapture as DependencyObject;
1581Point ptRelativeToOver = InputElement.TranslatePoint(ptRoot, rawMouseInputReport.InputSource.RootVisual, (DependencyObject)_mouseOver, out mouseOverAvailable);
1622mouseOver = InputElement.GetContainingInputElement(mouseOver as DependencyObject);
1624rawMouseOver = InputElement.GetContainingInputElement(rawMouseOver as DependencyObject);
1659IInputElement mouseCapture = InputElement.GetContainingInputElement(_mouseCapture as DependencyObject);
1670mouseOver = InputElement.GetContainingInputElement(mouseOver as DependencyObject);
1740rawMouseOver = InputElement.GetContainingInputElement(rawMouseOver as DependencyObject);
1759ptRelativeToOver = InputElement.TranslatePoint(ptRoot, rawMouseInputReport.InputSource.RootVisual, (DependencyObject)mouseOver);
Core\CSharp\System\Windows\Input\TextCompositionManager.cs (12)
67public static void AddPreviewTextInputStartHandler(DependencyObject element, TextCompositionEventHandler handler)
82public static void RemovePreviewTextInputStartHandler(DependencyObject element, TextCompositionEventHandler handler)
102public static void AddTextInputStartHandler(DependencyObject element, TextCompositionEventHandler handler)
117public static void RemoveTextInputStartHandler(DependencyObject element, TextCompositionEventHandler handler)
137public static void AddPreviewTextInputUpdateHandler(DependencyObject element, TextCompositionEventHandler handler)
152public static void RemovePreviewTextInputUpdateHandler(DependencyObject element, TextCompositionEventHandler handler)
172public static void AddTextInputUpdateHandler(DependencyObject element, TextCompositionEventHandler handler)
187public static void RemoveTextInputUpdateHandler(DependencyObject element, TextCompositionEventHandler handler)
207public static void AddPreviewTextInputHandler(DependencyObject element, TextCompositionEventHandler handler)
222public static void RemovePreviewTextInputHandler(DependencyObject element, TextCompositionEventHandler handler)
242public static void AddTextInputHandler(DependencyObject element, TextCompositionEventHandler handler)
257public static void RemoveTextInputHandler(DependencyObject element, TextCompositionEventHandler handler)
Core\CSharp\System\Windows\Input\TouchDevice.cs (36)
237IInputElement capture = InputElement.GetContainingInputElement(_captured as DependencyObject);
308element = InputElement.GetContainingInputElement(element as DependencyObject);
440DependencyObject o = oldCapture as DependencyObject;
446DependencyObject o = _captured as DependencyObject;
479List<DependencyObject> others = null;
483others = new List<DependencyObject>(count);
490DependencyObject other = capture ? (touchDevice._captured as DependencyObject) : (touchDevice._directlyOver as DependencyObject);
500Action<DependencyObject, bool> originChangedAction = capture ? null : RaiseTouchEnterOrLeaveAction;
502property.OnOriginValueChanged(oldElement as DependencyObject, newElement as DependencyObject, others, ref treeState, originChangedAction);
514internal static void ReevaluateCapturedWithin(DependencyObject element, DependencyObject oldParent, bool isCoreParent)
524private void ReevaluateCapturedWithinAsync(DependencyObject element, DependencyObject oldParent, bool isCoreParent)
595DependencyObject containingVisual = InputElement.GetContainingVisual(_captured as DependencyObject);
619private bool ValidateVisualForCapture(DependencyObject visual)
883internal static void ReevaluateDirectlyOver(DependencyObject element, DependencyObject oldParent, bool isCoreParent)
893private void ReevaluateDirectlyOverAsync(DependencyObject element, DependencyObject oldParent, bool isCoreParent)
977DependencyObject o = oldDirectlyOver as DependencyObject;
983DependencyObject o = newDirectlyOver as DependencyObject;
994private Action<DependencyObject, bool> RaiseTouchEnterOrLeaveAction
1000_raiseTouchEnterOrLeaveAction = new Action<DependencyObject, bool>(RaiseTouchEnterOrLeave);
1011private void RaiseTouchEnterOrLeave(DependencyObject element, bool isLeave)
1158UIElement element = InputElement.GetContainingUIElement(_directlyOver as DependencyObject) as UIElement;
1299DependencyObject currentChild = child as DependencyObject;
1411private Action<DependencyObject, bool> _raiseTouchEnterOrLeaveAction;
Core\CSharp\System\Windows\Media\Animation\AnimationStorage.cs (17)
119internal void Initialize(DependencyObject d, DependencyProperty dp)
168DependencyObject d = (DependencyObject)_dependencyObject.Target;
321DependencyObject d = (DependencyObject)_dependencyObject.Target;
374DependencyObject targetDO = ((DependencyObject)target);
572DependencyObject d,
591DependencyObject d,
698DependencyObject d,
779DependencyObject d,
877DependencyObject d,
899DependencyObject d,
1030DependencyObject d,
1080internal static FrugalMap GetAnimatedPropertiesMap(DependencyObject d)
1095internal static AnimationStorage GetStorage(DependencyObject d, DependencyProperty dp)
1104DependencyObject d,
Core\CSharp\System\Windows\Media\Generated\DrawingGroup.cs (11)
90private static void ChildrenPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
181private static void ClipGeometryPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
229private static void OpacityPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
236private static void OpacityMaskPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
284private static void TransformPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
332private static void GuidelineSetPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
380private static void EdgeModePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
387private static void BitmapEffectPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
398private static void BitmapEffectInputPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
409private static void BitmapScalingModePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
416private static void ClearTypeHintPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
Core\CSharp\System\Windows\Media\Generated\TileBrush.cs (11)
90private static void ViewportUnitsPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
97private static void ViewboxUnitsPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
104private static void ViewportPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
111private static void ViewboxPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
118private static void StretchPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
125private static void TileModePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
132private static void AlignmentXPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
139private static void AlignmentYPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
146private static void CachingHintPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
153private static void CacheInvalidationThresholdMinimumPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
160private static void CacheInvalidationThresholdMaximumPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
Core\CSharp\System\Windows\ReverseInheritProperty.cs (14)
36internal void OnOriginValueChanged(DependencyObject oldOrigin, DependencyObject newOrigin, ref DeferredElementTreeState oldTreeState)
41internal void OnOriginValueChanged(DependencyObject oldOrigin,
42DependencyObject newOrigin,
43IList<DependencyObject> otherOrigins,
45Action<DependencyObject, bool> originChangedAction)
100private void SetCacheFlagInAncestry(DependencyObject element,
144DependencyObject coreParent = DeferredElementTreeState.GetInputElementParent(element, treeState);
145DependencyObject logicalParent = DeferredElementTreeState.GetLogicalParent(element, treeState);
159private void FirePropertyChangeInAncestry(DependencyObject element,
162Action<DependencyObject, bool> originChangedAction)
218DependencyObject coreParent = DeferredElementTreeState.GetInputElementParent(element, treeState);
219DependencyObject logicalParent = DeferredElementTreeState.GetLogicalParent(element, treeState);
293private static void CastElement(DependencyObject o, out UIElement uie, out ContentElement ce, out UIElement3D uie3D)
Core\CSharp\System\Windows\UIElement.cs (56)
815DependencyObject parent = GetUIParent() as UIElement;
1384private static void RenderTransform_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
1437private static void RenderTransformOrigin_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
1453protected internal override void OnVisualParentChanged(DependencyObject oldParent)
1458DependencyObject parent = _parent;
1505DependencyObject parent = oldParent;
1556DependencyObject parent = null;
1613internal DependencyObject GetUIParent()
1618internal DependencyObject GetUIParent(bool continuePastVisualTree)
1623internal DependencyObject GetUIParentNo3DTraversal()
1625DependencyObject parent = null;
1628DependencyObject myParent = InternalVisualParent;
1642protected virtual internal DependencyObject GetUIParentCore()
1664internal static void BuildRouteHelper(DependencyObject e, EventRoute route, RoutedEventArgs args)
1797e = (DependencyObject)contentElement.GetUIParent(continuePastVisualTree);
1909internal static void AddHandler(DependencyObject d, RoutedEvent routedEvent, Delegate handler)
1949internal static void RemoveHandler(DependencyObject d, RoutedEvent routedEvent, Delegate handler)
2079DependencyObject candidate = result.Result;
2090DependencyObject containingElement = InputElement.GetContainingUIElement(candidate);
2151private HitTestFilterBehavior InputHitTestFilterCallback(DependencyObject currentNode)
2194public DependencyObject Result
2250private static void CrackMouseButtonEventAndReRaiseEvent(DependencyObject sender, MouseButtonEventArgs e)
2273private static void ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
2332internal static void RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
2409internal void SynchronizeReverseInheritPropertyFlags(DependencyObject oldParent, bool isCoreParent)
2647DependencyObject focusScope = FocusManager.GetFocusScope(this);
2677public virtual DependencyObject PredictFocus(FocusNavigationDirection direction)
2713private static void Opacity_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
2745private static void OpacityMask_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
2777private static void OnBitmapEffectChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
2811private static void OnEffectChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
2841private static void OnBitmapEffectInputChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
2864private static void EdgeMode_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
2875private static void BitmapScalingMode_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
2886private static void ClearTypeHint_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
2897private static void TextHintingMode_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
2918private static void OnCacheModeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
2991private static void OnVisibilityChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
3402private static void ClipToBounds_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
3443private static void Clip_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
3475private static void SnapsToDevicePixels_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
3565private static void IsFocused_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
3665private static object CoerceIsEnabled(DependencyObject d, object value)
3685DependencyObject parent = uie.GetUIParentCore() as ContentElement;
3706private static void OnIsEnabledChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
3769private static object CoerceIsHitTestVisible(DependencyObject d, object value)
3792DependencyObject parent = InputElement.GetContainingUIElement(uie._parent);
3809private static void OnIsHitTestVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
3859private static object GetIsVisible(DependencyObject d, out BaseValueSourceInternal source)
3907DependencyObject parent = InputElement.GetContainingUIElement(_parent);
3946private static void OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
4002private static void OnFocusableChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
4224DependencyObject parent)
4293DependencyObject child = v.InternalGet2DOr3DVisualChild(iChild);
4389private static void OnIsManipulationEnabledChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
4415private static bool IsDefaultValue(DependencyObject dependencyObject, DependencyProperty dependencyProperty)
Core\CSharp\System\Windows\UIElement3D.cs (22)
151protected internal override void OnVisualParentChanged(DependencyObject oldParent)
156DependencyObject parent = InternalVisualParent;
200DependencyObject parent = oldParent;
251DependencyObject parent = null;
302internal DependencyObject GetUIParent(bool continuePastVisualTree)
315protected internal DependencyObject GetUIParentCore()
369internal void SynchronizeReverseInheritPropertyFlags(DependencyObject oldParent, bool isCoreParent)
607DependencyObject focusScope = FocusManager.GetFocusScope(this);
637public virtual DependencyObject PredictFocus(FocusNavigationDirection direction)
670private static void OnVisibilityChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
776private static void IsFocused_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
869private static object CoerceIsEnabled(DependencyObject d, object value)
890DependencyObject parent = uie.GetUIParentCore() as ContentElement;
911private static void OnIsEnabledChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
972private static object CoerceIsHitTestVisible(DependencyObject d, object value)
995DependencyObject parent = InputElement.GetContainingUIElement(uie.InternalVisualParent);
1012private static void OnIsHitTestVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1053private static object GetIsVisible(DependencyObject d, out BaseValueSourceInternal source)
1101DependencyObject parent = InputElement.GetContainingUIElement(InternalVisualParent);
1140private static void OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1194private static void OnFocusableChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1391DependencyObject vChild = v.InternalGet2DOr3DVisualChild(iChild);
src\Framework\MS\Internal\Annotations\Anchoring\LocatorManager.cs (14)
149public SubTreeProcessor GetSubTreeProcessor(DependencyObject node)
296public IList<IAttachedAnnotation> ProcessAnnotations(DependencyObject node)
426public Object ResolveLocator(ContentLocatorBase locator, int offset, DependencyObject startNode, out AttachmentLevel attachmentLevel)
493public static void SetSubTreeProcessorId(DependencyObject d, String id)
510public static String GetSubTreeProcessorId(DependencyObject d)
538internal IList<IAttachedAnnotation> ProcessSubTree(DependencyObject subTree)
566internal Object FindAttachedAnchor(DependencyObject startNode, ContentLocator[] prefixes, ContentLocatorBase locator, out AttachmentLevel attachmentLevel)
861private bool PreVisit(DependencyObject dependencyObject, ProcessingTreeState data, bool visitedViaVisualTree)
888private bool PostVisit(DependencyObject dependencyObject, ProcessingTreeState data, bool visitedViaVisualTree)
927private Object InternalResolveLocator(ContentLocatorBase locator, int offset, DependencyObject startNode, bool skipStartNode, out AttachmentLevel attachmentLevel)
1070private ResolvingLocatorState ResolveSingleLocator(ref object selection, ref AttachmentLevel attachmentLevel, AttachmentLevel attemptedLevel, ContentLocator locator, int offset, DependencyObject startNode, bool skipStartNode)
1130private bool ResolveLocatorPart(DependencyObject dependencyObject, ResolvingLocatorState data, bool visitedViaVisualTree)
1142DependencyObject node = null;
1223private bool TerminateResolve(DependencyObject dependencyObject, ResolvingLocatorState data, bool visitedViaVisualTree)
src\Framework\MS\Internal\Data\DefaultValueConverter.cs (11)
257protected object ConvertFrom(object o, Type destinationType, DependencyObject targetElement, CultureInfo culture)
262protected object ConvertTo(object o, Type destinationType, DependencyObject targetElement, CultureInfo culture)
282private object ConvertHelper(object o, Type destinationType, DependencyObject targetElement, CultureInfo culture, bool isForward)
407return ConvertTo(o, _targetType, parameter as DependencyObject, culture);
412return ConvertFrom(o, _sourceType, parameter as DependencyObject, culture);
442return ConvertFrom(o, _targetType, parameter as DependencyObject, culture);
447return ConvertTo(o, _sourceType, parameter as DependencyObject, culture);
599return ConvertFrom(o, _sourceType, parameter as DependencyObject, culture);
638return ConvertFrom(o, _targetType, parameter as DependencyObject, culture);
779internal void SetTargetElement(DependencyObject target)
806private DependencyObject _targetElement;
src\Framework\MS\Internal\Data\ObjectRef.cs (21)
63internal virtual object GetObject(DependencyObject d, ObjectRefArgs args)
73internal virtual object GetDataObject(DependencyObject d, ObjectRefArgs args)
79internal bool TreeContextIsRequired(DependencyObject target)
85protected virtual bool ProtectedTreeContextIsRequired(DependencyObject target)
146internal override object GetObject(DependencyObject d, ObjectRefArgs args)
178DependencyObject scopeOwner;
192DependencyObject parent = LogicalTreeHelper.GetParent(d);
221DependencyObject dd = foScopeOwner.TemplatedParent;
255DependencyObject parent;
363internal override object GetObject(DependencyObject d, ObjectRefArgs args)
374internal override object GetDataObject(DependencyObject d, ObjectRefArgs args)
377DependencyObject el = o as DependencyObject;
391private object GetDataObjectImpl(DependencyObject d, ObjectRefArgs args)
437protected override bool ProtectedTreeContextIsRequired(DependencyObject target)
471private object GetPreviousData(DependencyObject d)
528DependencyObject layout = (v != null) ? VisualTreeHelper.GetParent(v) : null;
560private DependencyObject FindAncestorOfType(Type type, int level, DependencyObject d, bool isTracing)
646if (o is DependencyObject)
661internal override object GetObject(DependencyObject d, ObjectRefArgs args)
src\Framework\MS\Internal\Helper.cs (57)
86internal static object FindTemplateResourceFromAppOrSystem(DependencyObject target, ArrayList keys, int exactMatch, ref int bestMatch)
202internal static DependencyObject FindMentor(DependencyObject d)
231internal static bool HasDefaultValue(DependencyObject d, DependencyProperty dp)
239internal static bool HasDefaultOrInheritedValue(DependencyObject d, DependencyProperty dp)
247internal static bool HasUnmodifiedDefaultValue(DependencyObject d, DependencyProperty dp)
255internal static bool HasUnmodifiedDefaultOrInheritedValue(DependencyObject d, DependencyProperty dp)
263private static bool HasDefaultOrInheritedValueImpl(DependencyObject d, DependencyProperty dp,
296internal static void DowncastToFEorFCE(DependencyObject d,
329DependencyObject d)
361DependencyObject d)
384internal static bool IsTemplateSelectorDefined(DependencyProperty templateSelectorProperty, DependencyObject d)
400internal static bool IsTemplateDefined(DependencyProperty templateProperty, DependencyObject d)
415internal static object FindNameInTemplate(string name, DependencyObject templatedParent)
427internal static MS.Internal.Controls.IGeneratorHost GeneratorHostForElement(DependencyObject element)
429DependencyObject d = null;
430DependencyObject parent = null;
489internal static DependencyObject GetTemplatedParent(DependencyObject d)
508internal static System.Windows.Data.XmlDataProvider XmlDataProviderForElement(DependencyObject d)
588out DependencyObject targetDependencyObject,
617targetDependencyObject = targetObject as DependencyObject;
776internal static object ReadItemValue(DependencyObject owner, object item, int dpIndex)
798internal static void StoreItemValue(DependencyObject owner, object item, int dpIndex, object value)
829internal static void ClearItemValue(DependencyObject owner, object item, int dpIndex)
854internal static List<KeyValuePair<int, object>> GetItemValues(DependencyObject owner, object item)
859internal static List<KeyValuePair<int, object>> GetItemValues(DependencyObject owner, object item,
874internal static List<KeyValuePair<int, object>> EnsureItemValues(DependencyObject owner, object item)
889internal static WeakDictionary<object, List<KeyValuePair<int, object>>> EnsureItemValueStorage(DependencyObject owner)
907internal static void SetItemValuesOnContainer(DependencyObject owner, DependencyObject container, object item)
1005internal static void StoreItemValues(IContainItemStorage owner, DependencyObject container, object item)
1009DependencyObject ownerDO = (DependencyObject)owner;
1046internal static void ClearItemValueStorage(DependencyObject owner)
1051internal static void ClearItemValueStorage(DependencyObject owner, int[] dpIndices)
1322internal static T FindVisualAncestor<T>(DependencyObject element, Func<DependencyObject, bool> shouldContinueFunc) where T : DependencyObject
1346internal static void InvalidateMeasureOnPath(DependencyObject pathStartElement, DependencyObject pathEndElement, bool duringMeasure)
1356internal static void InvalidateMeasureOnPath(DependencyObject pathStartElement, DependencyObject pathEndElement, bool duringMeasure, bool includePathEnd)
1360DependencyObject element = pathStartElement;
1399internal static void InvalidateMeasureForSubtree(DependencyObject d)
1421DependencyObject child = VisualTreeHelper.GetChild(d, i);
1436internal static bool IsAnyAncestorOf(DependencyObject ancestor, DependencyObject element)
1442return FindAnyAncestor(element, delegate(DependencyObject d) { return d == ancestor; }) != null;
1449internal static DependencyObject FindAnyAncestor(DependencyObject element,
1450Predicate<DependencyObject> predicate)
1467internal static DependencyObject GetAnyParent(DependencyObject element)
1469DependencyObject parent = null;
1485internal static bool IsDefaultValue(DependencyProperty dp, DependencyObject element)
1496internal static bool IsComposing(DependencyObject d, DependencyProperty dp)
src\Framework\System\Windows\BroadcastEventHelper.cs (47)
20internal static void AddLoadedCallback(DependencyObject d, DependencyObject logicalParent)
41internal static void RemoveLoadedCallback(DependencyObject d, object[] loadedPending)
68internal static void AddUnloadedCallback(DependencyObject d, DependencyObject logicalParent)
89internal static void RemoveUnloadedCallback(DependencyObject d, object[] unloadedPending)
127DependencyObject d,
128DependencyObject oldParent,
129DependencyObject newParent)
163DependencyObject rootDO = (DependencyObject)root;
181internal static void BroadcastLoadedSynchronously(DependencyObject rootDO, bool isLoaded)
200DependencyObject rootDO = (DependencyObject)root;
218internal static void BroadcastUnloadedSynchronously(DependencyObject rootDO, bool isLoaded)
233internal BroadcastEventData(DependencyObject root, RoutedEvent routedEvent, List<DependencyObject> eventRoute)
240internal DependencyObject Root;
242internal List<DependencyObject> EventRoute;
254private static void BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
258List<DependencyObject> eventRoute = new List<DependencyObject>();
270DependencyObject d = eventRoute[i];
286private static bool OnBroadcastCallback(DependencyObject d, BroadcastEventData data, bool visitedViaVisualTree)
288DependencyObject root = data.Root;
290List<DependencyObject> eventRoute = data.EventRoute;
419private static bool SubtreeHasLoadedChangeHandlerHelper(DependencyObject d)
432private static void FireLoadedOnDescendentsHelper(DependencyObject d)
444private static void FireUnloadedOnDescendentsHelper(DependencyObject d)
456private static bool IsLoadedHelper(DependencyObject d)
464internal static bool IsParentLoaded(DependencyObject d)
467DependencyObject parent = fo.EffectiveParent;
507internal static FrameworkElementFactory GetFEFTreeRoot(DependencyObject templatedParent)
533DependencyObject d,
534DependencyObject oldParent,
535DependencyObject newParent)
557internal static void AddHasLoadedChangeHandlerFlagInAncestry(DependencyObject d)
562internal static void RemoveHasLoadedChangeHandlerFlagInAncestry(DependencyObject d)
602DependencyObject child = o as DependencyObject;
622private static void UpdateHasLoadedChangeHandlerFlagInAncestry(DependencyObject d, bool addHandler)
636DependencyObject coreParent = (fo.IsFE) ? VisualTreeHelper.GetParent(fo.FE) : null;
637DependencyObject logicalParent = fo.Parent;
638DependencyObject parent = null;
691DependencyObject coreParent = null;
723DependencyObject parent)
755DependencyObject parent)
src\Framework\System\Windows\Controls\Calendar.cs (12)
211private static void OnDisplayDateChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
221private static object CoerceDisplayDate(DependencyObject d, object value)
267private static void OnDisplayDateEndChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
276private static object CoerceDisplayDateEnd(DependencyObject d, object value)
328private static void OnDisplayDateStartChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
338private static object CoerceDisplayDateStart(DependencyObject d, object value)
385private static void OnDisplayModePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
456private static void OnFirstDayOfWeekChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
490private static void OnIsTodayHighlightedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
505private static void OnLanguageChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
543private static void OnSelectedDateChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
629private static void OnSelectionModeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
src\Framework\System\Windows\Controls\ContextMenuService.cs (36)
40[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
41public static ContextMenu GetContextMenu(DependencyObject element)
69public static void SetContextMenu(DependencyObject element, ContextMenu value)
93[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
94public static double GetHorizontalOffset(DependencyObject element)
108public static void SetHorizontalOffset(DependencyObject element, double value)
132[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
133public static double GetVerticalOffset(DependencyObject element)
147public static void SetVerticalOffset(DependencyObject element, double value)
169[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
170public static bool GetHasDropShadow(DependencyObject element)
184public static void SetHasDropShadow(DependencyObject element, bool value)
207[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
208public static UIElement GetPlacementTarget(DependencyObject element)
222public static void SetPlacementTarget(DependencyObject element, UIElement value)
245[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
246public static Rect GetPlacementRectangle(DependencyObject element)
260public static void SetPlacementRectangle(DependencyObject element, Rect value)
283[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
284public static PlacementMode GetPlacement(DependencyObject element)
298public static void SetPlacement(DependencyObject element, PlacementMode value)
321[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
322public static bool GetShowOnDisabled(DependencyObject element)
336public static void SetShowOnDisabled(DependencyObject element, bool value)
359[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
360public static bool GetIsEnabled(DependencyObject element)
374public static void SetIsEnabled(DependencyObject element, bool value)
405public static void AddContextMenuOpeningHandler(DependencyObject element, ContextMenuEventHandler handler)
415public static void RemoveContextMenuOpeningHandler(DependencyObject element, ContextMenuEventHandler handler)
434public static void AddContextMenuClosingHandler(DependencyObject element, ContextMenuEventHandler handler)
444public static void RemoveContextMenuClosingHandler(DependencyObject element, ContextMenuEventHandler handler)
460DependencyObject o = sender as DependencyObject;
476internal static bool ContextMenuIsEnabled(DependencyObject o)
533internal DependencyObject TargetElement
552private DependencyObject _targetElement;
src\Framework\System\Windows\Controls\DataGrid.cs (57)
199private static void OnColumnSizeConstraintChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
472private static void OnNotifyCellsPresenterPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
480private static void OnNotifyColumnAndCellPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
488private static void OnNotifyColumnPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
496private static void OnNotifyColumnAndColumnHeaderPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
504private static void OnNotifyColumnHeaderPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
512private static void OnNotifyHeaderPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
520private static void OnNotifyDataGridAndRowPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
528private static void OnNotifyGridLinePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
545private static void OnNotifyRowPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
553private static void OnNotifyRowHeaderPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
561private static void OnNotifyRowAndRowHeaderPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
569private static void OnNotifyRowAndDetailsPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
577private static void OnNotifyHorizontalOffsetPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
591internal void NotifyPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e, DataGridNotificationTarget target)
605internal void NotifyPropertyChanged(DependencyObject d, string propertyName, DependencyPropertyChangedEventArgs e, DataGridNotificationTarget target)
618foreach (DependencyObject container in ItemContainerGenerator.RecyclableContainers)
813protected override DependencyObject GetContainerForItemOverride()
823protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
853protected override void ClearContainerForItemOverride(DependencyObject element, object item)
903private static void OnRowStyleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
908private static object OnCoerceItemContainerStyle(DependencyObject d, object baseValue)
1015private static void OnRowStyleSelectorChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1020private static object OnCoerceItemContainerStyleSelector(DependencyObject d, object baseValue)
1030private static object OnCoerceIsSynchronizedWithCurrentItem(DependencyObject d, object baseValue)
1076private static object OnCoerceAlternationCount(DependencyObject d, object baseValue)
1261private static void OnNotifyRowHeaderWidthPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
2784private static void OnIsReadOnlyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
2820private static void OnCurrentItemChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
2863private static void OnCurrentColumnChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
2896private static void OnCurrentCellChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
3099DependencyObject currentContainer = currentCell.ItemInfo.Container;
3467private static void OnCanUserAddRowsChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
3472private static object OnCoerceCanUserAddRows(DependencyObject d, object baseValue)
3517private static void OnCanUserDeleteRowsChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
3523private static object OnCoerceCanUserDeleteRows(DependencyObject d, object baseValue)
4452private static void OnSelectionModeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
4514private static void OnSelectionUnitChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
5414private static void OnIsEnabledChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
5430private static void OnIsKeyboardFocusWithinChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
5449ItemsControl itemsControl = ItemsControlFromItemContainer(e.OriginalSource as DependencyObject);
5604DependencyObject nextFocusTarget = this.PredictFocus(KeyToTraversalDirection(e.Key));
5717DependencyObject nextFocusTarget = keyboardNavigation.PredictFocusedElement(currentCellContainer, KeyToTraversalDirection(rtlKey),
5763DependencyObject nextFocusTarget = keyboardNavigation.PredictFocusedElement(currentCellContainer, KeyToTraversalDirection(rtlKey),
5797DependencyObject nextFocusTarget = keyboardNavigation.PredictFocusedElement(currentCellContainer, KeyToTraversalDirection(rtlKey),
5832DependencyObject nextFocusTarget = keyboardNavigation.PredictFocusedElement(currentCellContainer, KeyToTraversalDirection(rtlKey),
7091private static object OnCoerceCanUserSortColumns(DependencyObject d, object baseValue)
7103private static void OnCanUserSortColumnsPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
7623private static object OnCoerceItemsSourceProperty(DependencyObject d, object baseValue)
7922private static void OnAutoGenerateColumnsPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
7968private static object OnCoerceFrozenColumnCount(DependencyObject d, object baseValue)
7986private static void OnFrozenColumnCountPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
8075private static void OnEnableRowVirtualizationChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
8091private static object OnCoerceIsVirtualizingProperty(DependencyObject d, object baseValue)
8124private static void OnEnableColumnVirtualizationChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
8238private static void OnClipboardCopyModeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
8475private static void CellsPanelActualWidthChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
src\Framework\System\Windows\Controls\DataGridCell.cs (8)
213private static void OnNotifyPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
221private static void OnNotifyIsReadOnlyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
239internal void NotifyPropertyChanged(DependencyObject d, string propertyName, DependencyPropertyChangedEventArgs e, DataGridNotificationTarget target)
294private static object OnCoerceStyle(DependencyObject d, object baseValue)
388RemoveBindingExpressions(bindingGroup, Content as DependencyObject);
421private void RemoveBindingExpressions(BindingGroup bindingGroup, DependencyObject element)
531private static object OnCoerceIsReadOnly(DependencyObject d, object baseValue)
1014private static object OnCoerceClip(DependencyObject d, object baseValue)
src\Framework\System\Windows\Controls\DataGridColumn.cs (29)
55private static object OnCoerceHeaderStyle(DependencyObject d, object baseValue)
130private static object OnCoerceCellStyle(DependencyObject d, object baseValue)
156private static object OnCoerceIsReadOnly(DependencyObject d, object baseValue)
224private static void OnWidthPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
314private static void OnMinWidthPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
353private static void OnMaxWidthPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
391private static object OnCoerceWidth(DependencyObject d, object baseValue)
419private static object OnCoerceMinWidth(DependencyObject d, object baseValue)
433private static object OnCoerceMaxWidth(DependencyObject d, object baseValue)
485private static object OnCoerceActualWidth(DependencyObject d, object baseValue)
769private static object GetOriginalValue(DependencyObject obj)
774private static void SetOriginalValue(DependencyObject obj, object value)
779private static void ClearOriginalValue(DependencyObject obj)
794internal static void OnNotifyCellPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
802private static void OnNotifyColumnHeaderPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
810private static void OnNotifyColumnPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
818internal void NotifyPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e, DataGridNotificationTarget target)
907internal static void NotifyPropertyChangeForRefreshContent(DependencyObject d, DependencyPropertyChangedEventArgs e)
982private static object OnCoerceDisplayIndex(DependencyObject d, object baseValue)
997private static void DisplayIndexChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1061internal static object OnCoerceCanUserSort(DependencyObject d, object baseValue)
1091private static void OnCanUserSortPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1127private static void OnNotifySortPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1276private static void OnNotifyFrozenPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1288private static object OnCoerceIsFrozen(DependencyObject d, object baseValue)
1326private static object OnCoerceCanUserReorder(DependencyObject d, object baseValue)
1352private static object OnCoerceDragIndicatorStyle(DependencyObject d, object baseValue)
1485private static object OnCoerceCanUserResize(DependencyObject d, object baseValue)
1522private static void OnVisibilityPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs eventArgs)
src\Framework\System\Windows\Controls\DataGridHelper.cs (21)
196public static bool TreeHasFocusAndTabStop(DependencyObject element)
223DependencyObject child = VisualTreeHelper.GetChild(element, i) as DependencyObject;
335public static bool IsDefaultValue(DependencyObject d, DependencyProperty dp)
341DependencyObject baseObject,
344DependencyObject parentObject,
372DependencyObject baseObject,
375DependencyObject parentObject,
377DependencyObject grandParentObject,
430public static void TransferProperty(DependencyObject d, DependencyProperty p)
438private static Dictionary<DependencyProperty, bool> GetPropertyTransferEnabledMapForObject(DependencyObject d)
451internal static bool IsPropertyTransferEnabled(DependencyObject d, DependencyProperty p)
471private static ConditionalWeakTable<DependencyObject, Dictionary<DependencyProperty, bool>> _propertyTransferEnabledMap = new ConditionalWeakTable<DependencyObject, Dictionary<DependencyProperty, bool>>();
562DependencyObject targetElement = beb.TargetElement;
565DependencyObject contextElement = FindContextElement(beb);
580private static DependencyObject FindContextElement(BindingExpressionBase beb)
607DependencyObject result = FindContextElement(childBEB);
664DependencyObject targetElement = beb.TargetElement;
674internal static void SyncColumnProperty(DependencyObject column, DependencyObject content, DependencyProperty contentProperty, DependencyProperty columnProperty)
src\Framework\System\Windows\Controls\DataGridRow.cs (18)
505private void PersistAttachedItemValue(DependencyObject objectWithProperty, DependencyProperty property)
516private void RestoreAttachedItemValue(DependencyObject objectWithProperty, DependencyProperty property)
615private static object OnCoerceHeaderStyle(DependencyObject d, object baseValue)
626private static object OnCoerceHeaderTemplate(DependencyObject d, object baseValue)
637private static object OnCoerceHeaderTemplateSelector(DependencyObject d, object baseValue)
648private static object OnCoerceBackground(DependencyObject d, object baseValue)
678private static object OnCoerceValidationErrorTemplate(DependencyObject d, object baseValue)
689private static object OnCoerceDetailsTemplate(DependencyObject d, object baseValue)
700private static object OnCoerceDetailsTemplateSelector(DependencyObject d, object baseValue)
711private static object OnCoerceDetailsVisibility(DependencyObject d, object baseValue)
749private static object OnCoerceVisibility(DependencyObject d, object baseValue)
766private static object OnCoerceShouldCacheContainerSize(DependencyObject d, object baseValue)
783private static void OnNotifyRowPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
788private static void OnNotifyRowAndRowHeaderPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
793private static void OnNotifyDetailsTemplatePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
815private static void OnNotifyDetailsVisibilityChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
871internal void NotifyPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e, DataGridNotificationTarget target)
879internal void NotifyPropertyChanged(DependencyObject d, string propertyName, DependencyPropertyChangedEventArgs e, DataGridNotificationTarget target)
src\Framework\System\Windows\Controls\DatePicker.cs (12)
169private static object CoerceDisplayDate(DependencyObject d, object value)
207private static void OnDisplayDateEndChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
215private static object CoerceDisplayDateEnd(DependencyObject d, object value)
253private static void OnDisplayDateStartChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
262private static object CoerceDisplayDateStart(DependencyObject d, object value)
318private static object OnCoerceIsDropDownOpen(DependencyObject d, object baseValue)
336private static void OnIsDropDownOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
363private static void OnIsEnabledChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
424private static void OnSelectedDateChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
482private static object CoerceSelectedDate(DependencyObject d, object value)
520private static void OnSelectedDateFormatChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
572private static void OnTextChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
src\Framework\System\Windows\Controls\DocumentViewer.cs (13)
939protected override void OnBringIntoView(DependencyObject element, Rect rect, int pageNumber)
2471private static void OnHorizontalOffsetChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
2491private static void OnVerticalOffsetChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
2508private static void OnExtentWidthChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
2516private static void OnExtentHeightChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
2524private static void OnViewportWidthChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
2533private static void OnViewportHeightChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
2545private static void OnShowPageBordersChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
2558private static object CoerceZoom(DependencyObject d, object value)
2577private static void OnZoomChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
2624private static void OnMaxPagesAcrossChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
2655private static void OnVerticalPageSpacingChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
2671private static void OnHorizontalPageSpacingChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (16)
894internal override bool InvalidateAutomationAncestorsCore(Stack<DependencyObject> branchNodeStack, out bool continuePastCoreTree)
921DependencyObject focusedElement = null;
939focusedElement = Keyboard.FocusedElement as DependencyObject;
996DependencyObject focusedElement = Keyboard.FocusedElement as DependencyObject;
1644private static void ViewingModeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1679private static void ViewingModeEnabledChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1709private static void IsFindEnabledChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1730private static void IsPrintEnabledChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1742private static void DocumentChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1755private static void ZoomChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1770private static object CoerceZoom(DependencyObject d, object value)
1795private static void MaxZoomChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1807private static object CoerceMaxZoom(DependencyObject d, object value)
1819private static void MinZoomChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1843private static void UpdateCaretElement(DependencyObject d, DependencyPropertyChangedEventArgs e)
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (19)
812DependencyObject document = this.Document as DependencyObject;
815DependencyObject branchNode = route.PeekBranchNode() as DependencyObject;
826internal override bool InvalidateAutomationAncestorsCore(Stack<DependencyObject> branchNodeStack, out bool continuePastCoreTree)
830DependencyObject document = this.Document as DependencyObject;
833DependencyObject branchNode = (branchNodeStack.Count > 0) ? branchNodeStack.Peek() : null;
1104DependencyObject child;
1105DependencyObject document;
1631private static void DocumentChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1643private static void ZoomChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1661private static object CoerceZoom(DependencyObject d, object value)
1686private static void MaxZoomChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1698private static object CoerceMaxZoom(DependencyObject d, object value)
1710private static void MinZoomChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1747private static void IsSelectionEnabledChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1758private static void IsToolBarVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1772private static void UpdateCaretElement(DependencyObject d, DependencyPropertyChangedEventArgs e)
src\Framework\System\Windows\Controls\GridViewColumn.cs (14)
122private static void OnHeaderChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
153private static void OnHeaderContainerStyleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
184private static void OnHeaderTemplateChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
222private static void OnHeaderTemplateSelectorChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
262private static void OnHeaderStringFormatChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
335private static void OnCellTemplateChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
367private static void OnCellTemplateSelectorChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
401private static void OnWidthChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
498DependencyObject d = Header as DependencyObject;
691internal override DependencyObject InheritanceContext
697internal override void AddInheritanceContext(DependencyObject context, DependencyProperty property)
709internal override void RemoveInheritanceContext(DependencyObject context, DependencyProperty property)
720DependencyObject _inheritanceContext;
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (45)
54: this(null, host, host as DependencyObject, 0)
67private ItemContainerGenerator(ItemContainerGenerator parent, IGeneratorHost host, DependencyObject peer, int level)
115DependencyObject d = Host as DependencyObject;
230DependencyObject IItemContainerGenerator.GenerateNext()
239DependencyObject IItemContainerGenerator.GenerateNext(out bool isNewlyRealized)
261void IItemContainerGenerator.PrepareItemContainer(DependencyObject container)
325DependencyObject container = rblock.ContainerAt(offset);
495_recyclableContainers = new Queue<DependencyObject>();
573public object ItemFromContainer(DependencyObject container)
595public DependencyObject ContainerFromItem(object item)
598DependencyObject container;
602delegate(object o, DependencyObject d) { return ItemsControl.EqualsEx(o, item); },
612public int IndexFromContainer(DependencyObject container)
621public int IndexFromContainer(DependencyObject container, bool returnLocalIndex)
630DependencyObject dummy;
633delegate(object o, DependencyObject d) { return (d == container); },
640internal bool FindItem(Func<object, DependencyObject, bool> match,
641out DependencyObject container, out int itemIndex)
691private bool DoLinearSearch(Func<object, DependencyObject, bool> match,
692out object item, out DependencyObject container, out int itemIndex,
899public DependencyObject ContainerFromIndex(int index)
935DependencyObject container = block.ContainerAt(index);
1067DependencyObject peer = Peer;
1377public DependencyObject GenerateNext(bool stopAtRealized, out bool isNewlyRealized)
1379DependencyObject container = null;
1627DependencyObject Peer
1721void Realize(UnrealizedItemBlock block, int offset, object item, DependencyObject container)
1929DependencyObject ContainerForGroup(CollectionViewGroup group)
2276internal static void LinkContainerToItem(DependencyObject container, object item)
2298private void UnlinkContainerFromItem(DependencyObject container, object item)
2303internal static void UnlinkContainerFromItem(DependencyObject container, object item, IGeneratorHost host)
2541DependencyObject container = null; // the corresponding container
2618DependencyObject container = rib.ContainerAt(offsetFromBlockStart);
2631DependencyObject newContainer = _host.GetContainerForItem(newItem);
2656DependencyObject container = null; // the corresponding container
2741DependencyObject parent = VisualTreeHelper.GetParentInternal(container);
2803private DependencyObject _peer;
2813private Queue<DependencyObject> _recyclableContainers = new Queue<DependencyObject>();
2874public virtual DependencyObject ContainerAt(int index) { return null; }
2994public override DependencyObject ContainerAt(int index)
3056public void RealizeItem(int index, object item, DependencyObject container)
3080public DependencyObject Container { get { return _container; } set { _container = value; } }
3083private DependencyObject _container;
src\Framework\System\Windows\Controls\ItemsControl.cs (69)
73private static void OnScrollingModeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
79private static object CoerceScrollingMode(DependencyObject d, object baseValue)
94private static void OnCacheSizeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
101private static object CoerceVirtualizationCacheLengthUnit(DependencyObject d, object baseValue)
191private static void OnItemsSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
394private static void OnDisplayMemberPathChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
481private static void OnItemTemplateChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
537private static void OnItemTemplateSelectorChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
588private static void OnItemStringFormatChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
638private static void OnItemBindingGroupChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
709private static void OnItemContainerStyleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
765private static void OnItemContainerStyleSelectorChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
792public static ItemsControl GetItemsOwner(DependencyObject element)
817internal static DependencyObject GetItemsOwnerInternal(DependencyObject element)
830internal static DependencyObject GetItemsOwnerInternal(DependencyObject element, out ItemsControl itemsControl)
832DependencyObject container = null;
893private static void OnItemsPanelChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
930private static void OnIsGroupingChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1005private static void OnGroupStyleSelectorChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1061private static void OnAlternationCountChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1100public static int GetAlternationIndex(DependencyObject element)
1110internal static void SetAlternationIndex(DependencyObject d, int value)
1117internal static void ClearAlternationIndex(DependencyObject d)
1169public static ItemsControl ItemsControlFromItemContainer(DependencyObject container)
1199public static DependencyObject ContainerFromElement(ItemsControl itemsControl, DependencyObject element)
1232public DependencyObject ContainerFromElement(DependencyObject element)
1238private static bool IsContainerForItemsControl(DependencyObject element, ItemsControl itemsControl)
1324DependencyObject IGeneratorHost.GetContainerForItem(object item)
1326DependencyObject container;
1330container = item as DependencyObject;
1366void IGeneratorHost.PrepareItemContainer(DependencyObject container, object item)
1416void IGeneratorHost.ClearContainerForItem(DependencyObject container, object item)
1451bool IGeneratorHost.IsHostForItemContainer(DependencyObject container)
1466DependencyObject parent = LogicalTreeHelper.GetParent(container);
1582protected virtual DependencyObject GetContainerForItemOverride()
1591protected virtual void PrepareContainerForItemOverride(DependencyObject element, object item)
1640protected virtual void ClearContainerForItemOverride(DependencyObject element, object item)
1683(e.OriginalSource == this || ItemsControlFromItemContainer(e.OriginalSource as DependencyObject) == this))
1735protected virtual bool ShouldApplyItemContainerStyle(DependencyObject container, object item)
1875DependencyObject startingElement = Keyboard.FocusedElement as DependencyObject;
1882startingElement = KeyboardNavigation.GetParent(startingElement) as DependencyObject;
2004DependencyObject startingParent = VisualTreeHelper.GetParent(startingElement);
3259for (DependencyObject current = _itemsHost; current != this && current != null; current = VisualTreeHelper.GetParent(current))
3398internal static DependencyObject TryGetTreeViewItemHeader(DependencyObject element)
3420private void ApplyItemContainerStyle(DependencyObject container, object item)
3461private void RemoveItemContainerStyle(DependencyObject container)
3472internal object GetItemOrContainerFromContainer(DependencyObject container)
3511internal ItemInfo NewItemInfo(object item, DependencyObject container=null, int index=-1)
3517internal ItemInfo ItemInfoFromContainer(DependencyObject container)
3536internal DependencyObject ContainerFromItemInfo(ItemInfo info)
3538DependencyObject container = info.Container;
3574DependencyObject container = info.Container;
3592List<DependencyObject> claimedContainers = new List<DependencyObject>();
3597DependencyObject container = info.Container;
3608DependencyObject container = info.Container;
3622delegate(object o, DependencyObject d)
3762internal DependencyObject Container { get; set; }
3765internal static readonly DependencyObject SentinelContainer = new DependencyObject();
3766internal static readonly DependencyObject UnresolvedContainer = new DependencyObject();
3767internal static readonly DependencyObject KeyContainer = new DependencyObject();
3768internal static readonly DependencyObject RemovedContainer = new DependencyObject();
3780public ItemInfo(object item, DependencyObject container=null, int index=-1)
src\Framework\System\Windows\Controls\MenuItem.cs (20)
345private static object CoerceHeader(DependencyObject d, object value)
407private static void OnCommandChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
551private static object CoerceIsSubmenuOpen(DependencyObject d, object value)
567private static object CoerceToolTipIsEnabled(DependencyObject d, object value)
592private static void OnIsSubmenuOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
824private static void OnIsCheckableChanged(DependencyObject target, DependencyPropertyChangedEventArgs e)
948private static void OnIsCheckedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1006private static void OnIsSelectedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1111private static void OnInputGestureTextChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1119private static object CoerceInputGestureText(DependencyObject d, object value)
1299protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
1309internal static void PrepareMenuItem(DependencyObject element, object item)
1634DependencyObject source = e.Source as DependencyObject;
2137protected override bool ShouldApplyItemContainerStyle(DependencyObject container, object item)
2150protected override DependencyObject GetContainerForItemOverride()
2163return itemContainer as DependencyObject;
2179protected internal override void OnVisualParentChanged(DependencyObject oldParent)
2189DependencyObject newParent = VisualTreeHelper.GetParentInternal(this);
2653private static object OnCoerceAcceleratorKey(DependencyObject d, object value)
src\Framework\System\Windows\Controls\PopupControlService.cs (42)
85PresentationSource source = PresentationSource.CriticalFromVisual((DependencyObject)directlyOver);
162InspectElementForToolTip(directlyOver as DependencyObject, ToolTip.ToolTipTrigger.Mouse);
172InspectElementForToolTip(focusedElement as DependencyObject, ToolTip.ToolTipTrigger.KeyboardFocus);
244result = InspectElementForToolTip(focusedElement as DependencyObject, ToolTip.ToolTipTrigger.KeyboardShortcut);
284private bool InspectElementForToolTip(DependencyObject o, ToolTip.ToolTipTrigger triggerAction)
286DependencyObject origObj = o;
374private bool LocateNearestToolTip(ref DependencyObject o, ToolTip.ToolTipTrigger triggerAction, ref bool showToolTip)
405internal bool StopLookingForToolTip(DependencyObject o)
416private bool WithinCurrentToolTip(DependencyObject o)
424DependencyObject v = o as Visual;
474DependencyObject o = LastObjectWithToolTip;
555DependencyObject o = LastObjectWithToolTip;
691private DependencyObject LastMouseOverWithToolTip
697DependencyObject o = (DependencyObject)_lastMouseOverWithToolTip.Target;
729private DependencyObject LastObjectWithToolTip
735DependencyObject o = (DependencyObject)_lastObjectWithToolTip.Target;
767private DependencyObject LastChecked
773DependencyObject o = (DependencyObject)_lastChecked.Target;
848DependencyObject sourceDO = source as DependencyObject;
879DependencyObject o = args.TargetElement;
924DependencyObject o = (DependencyObject)cm.GetValue(OwnerProperty);
948private static bool IsPresentationSourceNull(DependencyObject uie)
957internal static DependencyObject FindParent(DependencyObject o)
960DependencyObject v = o as Visual;
992internal static DependencyObject FindContentElementParent(ContentElement ce)
994DependencyObject nearestVisual = null;
995DependencyObject o = ce;
1034internal static bool IsElementEnabled(DependencyObject o)
1089private static UIElement GetTarget(DependencyObject o)
1097DependencyObject ceParent = FindContentElementParent(ce);
1141typeof(DependencyObject), // Type
1143new FrameworkPropertyMetadata((DependencyObject)null, // Default Value
1147private static void OnOwnerChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
1171internal static object CoerceProperty(DependencyObject o, object value, DependencyProperty dp)
1173DependencyObject owner = (DependencyObject)o.GetValue(OwnerProperty);
src\Framework\System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (10)
199private static object OnCoerceHeight(DependencyObject d, object baseValue)
210private static object OnCoerceMinHeight(DependencyObject d, object baseValue)
299protected override DependencyObject GetContainerForItemOverride()
309protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
327protected override void ClearContainerForItemOverride(DependencyObject element, object item)
367private static void OnNotifyHeightPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
375internal void NotifyPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e, DataGridNotificationTarget target)
383internal void NotifyPropertyChanged(DependencyObject d, string propertyName, DependencyPropertyChangedEventArgs e, DataGridNotificationTarget target)
501private static void OnIsVirtualizingPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
514private static object OnCoerceIsVirtualizingProperty(DependencyObject d, object baseValue)
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeader.cs (15)
171private static object OnCoerceDisplayIndex(DependencyObject d, object baseValue)
190private static void OnDisplayIndexChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
394private static void OnNotifyPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
402internal void NotifyPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
608private static object OnCoerceContent(DependencyObject d, object baseValue)
622FrameworkObject fo = new FrameworkObject(content as DependencyObject);
634private static object OnCoerceContentTemplate(DependencyObject d, object baseValue)
648private static object OnCoerceContentTemplateSelector(DependencyObject d, object baseValue)
662private static object OnCoerceStringFormat(DependencyObject d, object baseValue)
676private static object OnCoerceStyle(DependencyObject d, object baseValue)
786private static object OnCoerceHeight(DependencyObject d, object baseValue)
818private static object OnCoerceCanUserSort(DependencyObject d, object baseValue)
834private static object OnCoerceSortDirection(DependencyObject d, object baseValue)
892private static object OnCoerceIsFrozen(DependencyObject d, object baseValue)
909private static object OnCoerceClip(DependencyObject d, object baseValue)
src\Framework\System\Windows\Controls\Primitives\Popup.cs (20)
69private static object CoerceVisibility(DependencyObject d, object value)
135private static void OnChildChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
310private static object CoerceIsOpen(DependencyObject d, object value)
346private static void OnIsOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
484private static void OnPlacementChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
557private static void OnStaysOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
603private static void OnOffsetChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
665private static void OnPlacementTargetChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
722DependencyObject parent = this;
787private static object CoercePopupAnimation(DependencyObject o, object value)
820private static void OnAllowsTransparencyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
825private static object CoerceAllowsTransparency(DependencyObject d, object value)
856private static object CoerceHasDropShadow(DependencyObject d, object value)
1249bool newCaptureInsidePopup = childPopupTookCapture || (Mouse.Captured != null && MenuBase.IsDescendant(root, Mouse.Captured as DependencyObject));
1350protected internal override DependencyObject GetUIParentCore()
1426DependencyObject parent;
1427DependencyObject root = child;
1817DependencyObject parent = VisualTreeHelper.GetParent(this);
3373DependencyObject root = null;
3374DependencyObject dependencyObject = v;
src\Framework\System\Windows\Controls\Primitives\Selector.cs (29)
115public static void AddSelectedHandler(DependencyObject element, RoutedEventHandler handler)
126public static void RemoveSelectedHandler(DependencyObject element, RoutedEventHandler handler)
144public static void AddUnselectedHandler(DependencyObject element, RoutedEventHandler handler)
155public static void RemoveUnselectedHandler(DependencyObject element, RoutedEventHandler handler)
196public static bool GetIsSelectionActive(DependencyObject element)
223public static bool GetIsSelected(DependencyObject element)
239public static void SetIsSelected(DependencyObject element, bool isSelected)
277private static void OnIsSynchronizedWithCurrentItemChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
352private static void OnSelectedIndexChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
369private static object CoerceSelectedIndex(DependencyObject d, object value)
406private static void OnSelectedItemChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
416private static object CoerceSelectedItem(DependencyObject d, object value)
477private static void OnSelectedValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
667private static object CoerceSelectedValue(DependencyObject d, object value)
718private static void OnSelectedValuePathChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
993protected override void ClearContainerForItemOverride(DependencyObject element, object item)
1012internal void RaiseIsSelectedChangedAutomationEvent(DependencyObject container, bool isSelected)
1344DependencyObject currentFocus = Keyboard.FocusedElement as DependencyObject;
1389protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
1815DependencyObject container = info.Container;
1825DependencyObject element = info.Item as DependencyObject;
1840DependencyObject container = info.Container;
1857DependencyObject element = item as DependencyObject;
1885internal static bool UiGetIsSelectable(DependencyObject o)
2286private DependencyObject _clearingContainer;
2747public void Add(object item, DependencyObject container, int index)
src\Framework\System\Windows\Controls\ScrollViewer.cs (20)
462public static void SetCanContentScroll(DependencyObject element, bool canContentScroll)
475public static bool GetCanContentScroll(DependencyObject element)
502public static void SetHorizontalScrollBarVisibility(DependencyObject element, ScrollBarVisibility horizontalScrollBarVisibility)
515public static ScrollBarVisibility GetHorizontalScrollBarVisibility(DependencyObject element)
542public static void SetVerticalScrollBarVisibility(DependencyObject element, ScrollBarVisibility verticalScrollBarVisibility)
555public static ScrollBarVisibility GetVerticalScrollBarVisibility(DependencyObject element)
812public static bool GetIsDeferredScrollingEnabled(DependencyObject element)
827public static void SetIsDeferredScrollingEnabled(DependencyObject element, bool value)
980DependencyObject predictedFocus = null;
981DependencyObject focusedElement = Keyboard.FocusedElement as DependencyObject;
1052private bool IsInViewport(ScrollContentPresenter scp, DependencyObject element)
1470public static void SetPanningMode(DependencyObject element, PanningMode panningMode)
1483public static PanningMode GetPanningMode(DependencyObject element)
1496private static void OnPanningModeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1552public static void SetPanningDeceleration(DependencyObject element, double value)
1565public static double GetPanningDeceleration(DependencyObject element)
1598public static void SetPanningRatio(DependencyObject element, double value)
1611public static double GetPanningRatio(DependencyObject element)
1703if (!PresentationSource.UnderSamePresentationSource(e.OriginalSource as DependencyObject, this))
src\Framework\System\Windows\Controls\TextBlock.cs (29)
568public static void SetBaselineOffset(DependencyObject element, double value)
582public static double GetBaselineOffset(DependencyObject element)
624private static object CoerceText(DependencyObject d, object value)
674public static void SetFontFamily(DependencyObject element, FontFamily value)
688public static FontFamily GetFontFamily(DependencyObject element)
719public static void SetFontStyle(DependencyObject element, FontStyle value)
733public static FontStyle GetFontStyle(DependencyObject element)
764public static void SetFontWeight(DependencyObject element, FontWeight value)
778public static FontWeight GetFontWeight(DependencyObject element)
809public static void SetFontStretch(DependencyObject element, FontStretch value)
823public static FontStretch GetFontStretch(DependencyObject element)
857public static void SetFontSize(DependencyObject element, double value)
872public static double GetFontSize(DependencyObject element)
904public static void SetForeground(DependencyObject element, Brush value)
918public static Brush GetForeground(DependencyObject element)
1009public static void SetLineHeight(DependencyObject element, double value)
1024public static double GetLineHeight(DependencyObject element)
1054public static void SetLineStackingStrategy(DependencyObject element, LineStackingStrategy value)
1068public static LineStackingStrategy GetLineStackingStrategy(DependencyObject element)
1117public static void SetTextAlignment(DependencyObject element, TextAlignment value)
1131public static TextAlignment GetTextAlignment(DependencyObject element)
2892private static void OnTypographyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
3661DependencyObject embeddedObject = position.GetAdjacentElement(LogicalDirection.Forward);
3683internal void OnChildBaselineOffsetChanged(DependencyObject source)
3703private static void OnBaselineOffsetChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
3712DependencyObject parent = te.TextContainer.Parent;
4047private static object CoerceBaselineOffset(DependencyObject d, object value)
4074private static void OnTextChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
4079private static void OnTextChanged(DependencyObject d, string newText)
src\Framework\System\Windows\Controls\ToolTipService.cs (48)
40[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
41public static object GetToolTip(DependencyObject element)
61public static void SetToolTip(DependencyObject element, object value)
85[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
86public static double GetHorizontalOffset(DependencyObject element)
100public static void SetHorizontalOffset(DependencyObject element, double value)
124[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
125public static double GetVerticalOffset(DependencyObject element)
139public static void SetVerticalOffset(DependencyObject element, double value)
162[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
163public static bool GetHasDropShadow(DependencyObject element)
177public static void SetHasDropShadow(DependencyObject element, bool value)
200[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
201public static UIElement GetPlacementTarget(DependencyObject element)
215public static void SetPlacementTarget(DependencyObject element, UIElement value)
238[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
239public static Rect GetPlacementRectangle(DependencyObject element)
253public static void SetPlacementRectangle(DependencyObject element, Rect value)
276[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
277public static PlacementMode GetPlacement(DependencyObject element)
291public static void SetPlacement(DependencyObject element, PlacementMode value)
314[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
315public static bool GetShowOnDisabled(DependencyObject element)
329public static void SetShowOnDisabled(DependencyObject element, bool value)
357[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
358public static bool GetIsOpen(DependencyObject element)
372private static void SetIsOpen(DependencyObject element, bool value)
395[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
396public static bool GetIsEnabled(DependencyObject element)
410public static void SetIsEnabled(DependencyObject element, bool value)
439[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
440public static int GetShowDuration(DependencyObject element)
454public static void SetShowDuration(DependencyObject element, int value)
478[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
479public static int GetInitialShowDelay(DependencyObject element)
493public static void SetInitialShowDelay(DependencyObject element, int value)
517[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
518public static int GetBetweenShowDelay(DependencyObject element)
532public static void SetBetweenShowDelay(DependencyObject element, int value)
565public static void AddToolTipOpeningHandler(DependencyObject element, ToolTipEventHandler handler)
575public static void RemoveToolTipOpeningHandler(DependencyObject element, ToolTipEventHandler handler)
596public static void AddToolTipClosingHandler(DependencyObject element, ToolTipEventHandler handler)
606public static void RemoveToolTipClosingHandler(DependencyObject element, ToolTipEventHandler handler)
632DependencyObject o = sender as DependencyObject;
655private static bool ToolTipIsEnabled(DependencyObject o, ToolTip.ToolTipTrigger triggerAction)
727internal DependencyObject TargetElement
755private DependencyObject _targetElement;
src\Framework\System\Windows\Controls\Validation.cs (50)
59public static void AddErrorHandler(DependencyObject element, EventHandler<ValidationErrorEventArgs> handler)
69public static void RemoveErrorHandler(DependencyObject element, EventHandler<ValidationErrorEventArgs> handler)
99public static ReadOnlyObservableCollection<ValidationError> GetErrors(DependencyObject element)
119private static void OnErrorsInternalChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
133internal static ValidationErrorCollection GetErrorsInternal(DependencyObject target)
153private static void OnHasErrorChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
171public static bool GetHasError(DependencyObject element)
199[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
200public static ControlTemplate GetErrorTemplate(DependencyObject element)
210public static void SetErrorTemplate(DependencyObject element, ControlTemplate value)
222private static void OnErrorTemplateChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
238typeof(DependencyObject), typeof(Validation),
239new FrameworkPropertyMetadata((DependencyObject)null,
245[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
246public static DependencyObject GetValidationAdornerSite(DependencyObject element)
251return element.GetValue(ValidationAdornerSiteProperty) as DependencyObject;
256public static void SetValidationAdornerSite(DependencyObject element, DependencyObject value)
265private static void OnValidationAdornerSiteChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
271DependencyObject oldSite = (DependencyObject)e.OldValue;
272DependencyObject newSite = (DependencyObject)e.NewValue;
306typeof(DependencyObject), typeof(Validation),
307new FrameworkPropertyMetadata((DependencyObject)null,
313[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
314public static DependencyObject GetValidationAdornerSiteFor(DependencyObject element)
319return element.GetValue(ValidationAdornerSiteForProperty) as DependencyObject;
324public static void SetValidationAdornerSiteFor(DependencyObject element, DependencyObject value)
333private static void OnValidationAdornerSiteForChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
339DependencyObject oldSiteFor = (DependencyObject)e.OldValue;
340DependencyObject newSiteFor = (DependencyObject)e.NewValue;
357internal static void ShowValidationAdorner(DependencyObject targetElement, bool show)
364DependencyObject adornerSite = GetValidationAdornerSite(targetElement);
414private static void ShowValidationAdornerHelper(DependencyObject targetElement, DependencyObject adornerSite, bool show)
422DependencyObject targetElement = (DependencyObject)args[0];
423DependencyObject adornerSite = (DependencyObject)args[1];
431private static void ShowValidationAdornerHelper(DependencyObject targetElement, DependencyObject adornerSite, bool show, bool tryAgain)
507internal static void AddValidationError(ValidationError validationError, DependencyObject targetElement, bool shouldRaiseEvent)
545internal static void RemoveValidationError(ValidationError validationError, DependencyObject targetElement, bool shouldRaiseEvent)
584static void OnValidationError(DependencyObject source, ValidationError validationError, ValidationErrorEventAction action)
src\Framework\System\Windows\Controls\VirtualizingPanel.cs (20)
70public static bool GetIsVirtualizing(DependencyObject element)
85public static void SetIsVirtualizing(DependencyObject element, bool value)
110public static VirtualizationMode GetVirtualizationMode(DependencyObject element)
125public static void SetVirtualizationMode(DependencyObject element, VirtualizationMode value)
148public static bool GetIsVirtualizingWhenGrouping(DependencyObject element)
163public static void SetIsVirtualizingWhenGrouping(DependencyObject element, bool value)
185public static ScrollUnit GetScrollUnit(DependencyObject element)
199public static void SetScrollUnit(DependencyObject element, ScrollUnit value)
226public static VirtualizationCacheLength GetCacheLength(DependencyObject element)
242public static void SetCacheLength(DependencyObject element, VirtualizationCacheLength value)
266public static VirtualizationCacheLengthUnit GetCacheLengthUnit(DependencyObject element)
281public static void SetCacheLengthUnit(DependencyObject element, VirtualizationCacheLengthUnit value)
304public static bool GetIsContainerVirtualizable(DependencyObject element)
319public static void SetIsContainerVirtualizable(DependencyObject element, bool value)
342internal static bool GetShouldCacheContainerSize(DependencyObject element)
386private static object CoerceIsVirtualizingWhenGrouping(DependencyObject d, object baseValue)
392internal static void OnVirtualizationPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
422private static void VirtualizationPropertyChangePropagationRecursive(DependencyObject parent, Panel itemsHost)
431TreeViewItem.IsVirtualizingPropagationHelper(parent, (DependencyObject)virtualizingChild);
436VirtualizationPropertyChangePropagationRecursive((DependencyObject)virtualizingChild, childItemsHost);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (47)
787delegate(DependencyObject d)
1065DependencyObject element = _scrollData._firstContainerInViewport;
1068DependencyObject parent = VisualTreeHelper.GetParent(element);
1097Action<DependencyObject> action,
1111Action<DependencyObject> action,
1935public static void AddCleanUpVirtualizedItemHandler(DependencyObject element, CleanUpVirtualizedItemEventHandler handler)
1945public static void RemoveCleanUpVirtualizedItemHandler(DependencyObject element, CleanUpVirtualizedItemEventHandler handler)
3069DependencyObject itemsOwner = itemStorageProvider as DependencyObject;
3172DependencyObject offsetHost = virtualizationInfoProvider as DependencyObject;
3465DependencyObject offsetHost = virtualizationInfoProvider as DependencyObject;
3685DependencyObject itemsOwner = ItemsControl.GetItemsOwnerInternal(this);
4010DependencyObject itemsOwner = ItemsControl.GetItemsOwnerInternal(this, out itemsControl);
4018private static IHierarchicalVirtualizationAndScrollInfo GetVirtualizingProvider(DependencyObject element)
4033private static IHierarchicalVirtualizationAndScrollInfo GetVirtualizingChild(DependencyObject element)
4039private static IHierarchicalVirtualizationAndScrollInfo GetVirtualizingChild(DependencyObject element, ref bool isChildHorizontal)
4065DependencyObject itemsOwner = ItemsControl.GetItemsOwnerInternal(itemsHost, out itemsControl);
4097DependencyObject itemsOwner = ItemsControl.GetItemsOwnerInternal(this, out itemsControl);
4203Helper.ClearItemValueStorage((DependencyObject)itemStorageProvider, _indicesStoredInItemValueStorage);
4445DependencyObject container = virtualizationInfoProvider as DependencyObject;
5547DependencyObject firstContainer,
5586DependencyObject container = virtualizationInfoProvider as DependencyObject;
6442DependencyObject parent = container;
6462private object GetItemFromContainer(DependencyObject container)
9318list.Add(ContainerPath((DependencyObject)children[startIndex + i]));
9338list.Add(ContainerPath((DependencyObject)children[startIndex + i]));
10891DependencyObject child = v;
10892DependencyObject element = VisualTreeHelper.GetParent(child);
10953child = (DependencyObject)virtualizingElement;
10989private DependencyObject FindDirectDescendentOfItemsHost(Panel itemsHost, DependencyObject child)
10999DependencyObject parent = VisualTreeHelper.GetParent(child);
11165private static void OnOrientationChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
11483private DependencyObject BringIntoViewLeafContainer
11591private DependencyObject _bringIntoViewContainer; // pointer to the container we're about to bring into view; it can't be recycled even if it's offscreen.
11672internal DependencyObject _bringIntoViewLeafContainer; // pointer to the container we are in the process of making visible. We remember it until the container has been successfully brought into view because this may require a few measure iterations.
11788public DependencyObject FirstContainer; // first container visible in viewport
11792public FirstContainerInformation(ref Rect viewport, DependencyObject firstContainer, int firstItemIndex, double firstItemOffset)
11988DependencyObject itemsOwner,
12720internal DependencyObject _bringIntoViewContainer;
12721internal DependencyObject _bringIntoViewLeafContainer;
12881private string ContainerPath(DependencyObject container)
12900DependencyObject parentContainer = ItemsControl.ContainerFromElement(null, vsp);
src\Framework\System\Windows\Data\BindingExpressionBase.cs (29)
201public DependencyObject Target { get { return TargetElement; } }
371internal sealed override void OnAttach(DependencyObject d, DependencyProperty dp)
389internal sealed override void OnDetach(DependencyObject d, DependencyProperty dp)
400internal override object GetValue(DependencyObject d, DependencyProperty dp)
412internal override bool SetValue(DependencyObject d, DependencyProperty dp, object value)
433internal override void OnPropertyInvalidation(DependencyObject d, DependencyPropertyChangedEventArgs args)
475DependencyObject d = _sources[k].DependencyObject;
496internal override Expression Copy( DependencyObject targetObject, DependencyProperty targetDP )
522internal static BindingExpressionBase CreateUntargetedBindingExpression(DependencyObject d, BindingBase binding)
532internal void Attach(DependencyObject d)
832DependencyObject target = TargetElement;
913internal virtual bool AttachOverride(DependencyObject target, DependencyProperty dp)
1004internal abstract void HandlePropertyInvalidation(DependencyObject d, DependencyPropertyChangedEventArgs args);
1014HandlePropertyInvalidation((DependencyObject)args[0], (DependencyPropertyChangedEventArgs)args[1]);
1055DependencyObject target = TargetElement;
1275DependencyObject target = TargetElement;
1378internal bool ShouldUpdateWithCurrentValue(DependencyObject target, out object currentValue)
1523DependencyObject target = TargetElement;
1636internal void JoinBindingGroup(bool isReflective, DependencyObject contextElement)
1660internal void RejoinBindingGroup(bool isReflective, DependencyObject contextElement)
1690internal BindingGroup FindBindingGroup(bool isReflective, DependencyObject contextElement)
1732DependencyObject groupContextElement = bg.InheritanceContext;
1965internal DependencyObject TargetElement
1971DependencyObject result = _targetElement.Target as DependencyObject;
2046internal void Attach(DependencyObject target, DependencyProperty dp)
2859internal static void InitializeTracing(BindingExpressionBase expr, DependencyObject d, DependencyProperty dp)
2888void ChangeSources(DependencyObject target, DependencyProperty dp, WeakDependencySource[] newSources)
2899DependencyObject sourceDO = newSources[i].DependencyObject;
src\Framework\System\Windows\Data\BindingOperations.cs (14)
73public static BindingExpressionBase SetBinding(DependencyObject target, DependencyProperty dp, BindingBase binding)
103public static BindingBase GetBindingBase(DependencyObject target, DependencyProperty dp)
119public static Binding GetBinding(DependencyObject target, DependencyProperty dp)
134public static PriorityBinding GetPriorityBinding(DependencyObject target, DependencyProperty dp)
149public static MultiBinding GetMultiBinding(DependencyObject target, DependencyProperty dp)
164public static BindingExpressionBase GetBindingExpressionBase(DependencyObject target, DependencyProperty dp)
186public static BindingExpression GetBindingExpression(DependencyObject target, DependencyProperty dp)
207public static MultiBindingExpression GetMultiBindingExpression(DependencyObject target, DependencyProperty dp)
222public static PriorityBindingExpression GetPriorityBindingExpression(DependencyObject target, DependencyProperty dp)
239public static void ClearBinding(DependencyObject target, DependencyProperty dp)
256public static void ClearAllBindings(DependencyObject target)
286public static bool IsDataBound(DependencyObject target, DependencyProperty dp)
404public static ReadOnlyCollection<BindingExpressionBase> GetSourceUpdatingBindings(DependencyObject root)
415public static ReadOnlyCollection<BindingGroup> GetSourceUpdatingBindingGroups(DependencyObject root)
src\Framework\System\Windows\Data\CollectionViewSource.cs (10)
119private static void OnSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
180private static void OnCollectionViewTypeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
299private static void OnIsLiveSortingRequestedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
422private static void OnIsLiveFilteringRequestedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
543private static void OnIsLiveGroupingRequestedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
824internal static CollectionView GetDefaultCollectionView(object source, DependencyObject d, Func<object, object> GetSourceItem=null)
849internal override DependencyObject InheritanceContext
855internal override void AddInheritanceContext(DependencyObject context, DependencyProperty property)
876internal override void RemoveInheritanceContext(DependencyObject context, DependencyProperty property)
1285DependencyObject _inheritanceContext;
src\Framework\System\Windows\Documents\FlowDocument.cs (14)
894DependencyObject parentOfEmbeddedElement;
916parentOfEmbeddedElement = LogicalTreeHelper.GetParent((DependencyObject)element);
1047internal override void OnNewParent(DependencyObject newParent)
1049DependencyObject oldParent = this.Parent;
1204private static void OnTypographyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1247private static void OnPageMetricsChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1274private static void OnMinPageWidthChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1283private static void OnMinPageHeightChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1292private static void OnMaxPageWidthChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1300private static void OnMaxPageHeightChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
1308private static object CoerceMaxPageWidth(DependencyObject d, object value)
1323private static object CoerceMaxPageHeight(DependencyObject d, object value)
1338private static object CoercePageWidth(DependencyObject d, object value)
1364private static object CoercePageHeight(DependencyObject d, object value)
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (12)
594DependencyObject complexProperties = new DependencyObject();
706DependencyObject complexProperties = new DependencyObject();
709WriteInheritablePropertiesForFlowDocument((DependencyObject)((TextPointer)context).Parent, xmlWriter, complexProperties);
735private static void WriteInheritablePropertiesForFlowDocument(DependencyObject context, XmlWriter xmlWriter, DependencyObject complexProperties)
776private static void WriteInheritableProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, bool onlyAffected, DependencyObject complexProperties)
841private static void WriteNoninheritableProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, bool onlyAffected, DependencyObject complexProperties)
921private static void WriteNoninheritableProperty(XmlWriter xmlWriter, DependencyProperty property, object propertyValue, Type propertyOwnerType, bool onlyAffected, DependencyObject complexProperties, object localValue)
961private static void WriteLocallySetProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, DependencyObject complexProperties)
1075private static void WriteComplexProperties(XmlWriter xmlWriter, DependencyObject complexProperties, Type elementType)
1143private static void WriteXamlAtomicElement(DependencyObject element, XmlWriter xmlWriter, bool reduceElement)
1200DependencyObject complexProperties = new DependencyObject();
src\Framework\System\Windows\Documents\Typography.cs (131)
46internal Typography(DependencyObject owner)
384public static void SetStandardLigatures(DependencyObject element, bool value)
399[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
400public static bool GetStandardLigatures(DependencyObject element)
416public static void SetContextualLigatures(DependencyObject element, bool value)
431[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
432public static bool GetContextualLigatures(DependencyObject element)
448public static void SetDiscretionaryLigatures(DependencyObject element, bool value)
463[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
464public static bool GetDiscretionaryLigatures(DependencyObject element)
480public static void SetHistoricalLigatures(DependencyObject element, bool value)
495[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
496public static bool GetHistoricalLigatures(DependencyObject element)
512public static void SetAnnotationAlternates(DependencyObject element, int value)
527[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
528public static int GetAnnotationAlternates(DependencyObject element)
544public static void SetContextualAlternates(DependencyObject element, bool value)
559[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
560public static bool GetContextualAlternates(DependencyObject element)
576public static void SetHistoricalForms(DependencyObject element, bool value)
591[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
592public static bool GetHistoricalForms(DependencyObject element)
608public static void SetKerning(DependencyObject element, bool value)
623[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
624public static bool GetKerning(DependencyObject element)
640public static void SetCapitalSpacing(DependencyObject element, bool value)
655[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
656public static bool GetCapitalSpacing(DependencyObject element)
672public static void SetCaseSensitiveForms(DependencyObject element, bool value)
687[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
688public static bool GetCaseSensitiveForms(DependencyObject element)
704public static void SetStylisticSet1(DependencyObject element, bool value)
719[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
720public static bool GetStylisticSet1(DependencyObject element)
736public static void SetStylisticSet2(DependencyObject element, bool value)
751[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
752public static bool GetStylisticSet2(DependencyObject element)
768public static void SetStylisticSet3(DependencyObject element, bool value)
783[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
784public static bool GetStylisticSet3(DependencyObject element)
800public static void SetStylisticSet4(DependencyObject element, bool value)
815[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
816public static bool GetStylisticSet4(DependencyObject element)
832public static void SetStylisticSet5(DependencyObject element, bool value)
847[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
848public static bool GetStylisticSet5(DependencyObject element)
864public static void SetStylisticSet6(DependencyObject element, bool value)
879[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
880public static bool GetStylisticSet6(DependencyObject element)
896public static void SetStylisticSet7(DependencyObject element, bool value)
911[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
912public static bool GetStylisticSet7(DependencyObject element)
928public static void SetStylisticSet8(DependencyObject element, bool value)
943[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
944public static bool GetStylisticSet8(DependencyObject element)
960public static void SetStylisticSet9(DependencyObject element, bool value)
975[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
976public static bool GetStylisticSet9(DependencyObject element)
992public static void SetStylisticSet10(DependencyObject element, bool value)
1007[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
1008public static bool GetStylisticSet10(DependencyObject element)
1024public static void SetStylisticSet11(DependencyObject element, bool value)
1039[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
1040public static bool GetStylisticSet11(DependencyObject element)
1056public static void SetStylisticSet12(DependencyObject element, bool value)
1071[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
1072public static bool GetStylisticSet12(DependencyObject element)
1088public static void SetStylisticSet13(DependencyObject element, bool value)
1103[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
1104public static bool GetStylisticSet13(DependencyObject element)
1120public static void SetStylisticSet14(DependencyObject element, bool value)
1135[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
1136public static bool GetStylisticSet14(DependencyObject element)
1152public static void SetStylisticSet15(DependencyObject element, bool value)
1167[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
1168public static bool GetStylisticSet15(DependencyObject element)
1184public static void SetStylisticSet16(DependencyObject element, bool value)
1199[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
1200public static bool GetStylisticSet16(DependencyObject element)
1216public static void SetStylisticSet17(DependencyObject element, bool value)
1231[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
1232public static bool GetStylisticSet17(DependencyObject element)
1248public static void SetStylisticSet18(DependencyObject element, bool value)
1263[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
1264public static bool GetStylisticSet18(DependencyObject element)
1280public static void SetStylisticSet19(DependencyObject element, bool value)
1295[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
1296public static bool GetStylisticSet19(DependencyObject element)
1312public static void SetStylisticSet20(DependencyObject element, bool value)
1327[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
1328public static bool GetStylisticSet20(DependencyObject element)
1344public static void SetFraction(DependencyObject element, FontFraction value)
1359[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
1360public static FontFraction GetFraction(DependencyObject element)
1376public static void SetSlashedZero(DependencyObject element, bool value)
1391[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
1392public static bool GetSlashedZero(DependencyObject element)
1408public static void SetMathematicalGreek(DependencyObject element, bool value)
1423[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
1424public static bool GetMathematicalGreek(DependencyObject element)
1440public static void SetEastAsianExpertForms(DependencyObject element, bool value)
1455[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
1456public static bool GetEastAsianExpertForms(DependencyObject element)
1472public static void SetVariants(DependencyObject element, FontVariants value)
1487[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
1488public static FontVariants GetVariants(DependencyObject element)
1504public static void SetCapitals(DependencyObject element, FontCapitals value)
1519[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
1520public static FontCapitals GetCapitals(DependencyObject element)
1536public static void SetNumeralStyle(DependencyObject element, FontNumeralStyle value)
1551[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
1552public static FontNumeralStyle GetNumeralStyle(DependencyObject element)
1568public static void SetNumeralAlignment(DependencyObject element, FontNumeralAlignment value)
1583[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
1584public static FontNumeralAlignment GetNumeralAlignment(DependencyObject element)
1600public static void SetEastAsianWidths(DependencyObject element, FontEastAsianWidths value)
1615[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
1616public static FontEastAsianWidths GetEastAsianWidths(DependencyObject element)
1632public static void SetEastAsianLanguage(DependencyObject element, FontEastAsianLanguage value)
1647[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
1648public static FontEastAsianLanguage GetEastAsianLanguage(DependencyObject element)
1664public static void SetStandardSwashes(DependencyObject element, int value)
1679[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
1680public static int GetStandardSwashes(DependencyObject element)
1696public static void SetContextualSwashes(DependencyObject element, int value)
1711[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
1712public static int GetContextualSwashes(DependencyObject element)
1728public static void SetStylisticAlternates(DependencyObject element, int value)
1743[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
1744public static int GetStylisticAlternates(DependencyObject element)
2246private DependencyObject _owner;
src\Framework\System\Windows\FrameworkElement.cs (79)
179private static void OnStyleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
230private static void OnUseLayoutRoundingChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
258private static void OnThemeStyleKeyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
280internal static void OnThemeStyleChanged(DependencyObject d, object oldValue, object newValue)
490DependencyObject targetObject = null;
570public DependencyObject TemplatedParent
803protected internal DependencyObject GetTemplateChild(string childName)
816return StyleHelper.FindNameInTemplateContent(this, childName, template) as DependencyObject;
900DependencyObject boundaryElement = null;
970DependencyObject boundaryElement = fce.TemplatedParent;
1042DependencyObject boundaryElement,
1171DependencyObject boundaryElement,
1368DependencyObject unlinkedParentAsDO = unlinkedParent as DependencyObject;
1378DependencyObject doParent = GetFrameworkParent(unlinkedParent);
1425internal static object FindTemplateResourceInternal(DependencyObject target, object item, Type templateType)
1485private static object FindTemplateResourceInTree(DependencyObject target, ArrayList keys, int exactMatch, ref int bestMatch)
1760internal static INameScope FindScope(DependencyObject d)
1762DependencyObject scopeOwner;
1767internal static INameScope FindScope(DependencyObject d, out DependencyObject scopeOwner)
1778DependencyObject parent = LogicalTreeHelper.GetParent(d);
2011DependencyObject parentDO = parentFE;
2158(!DependencyObject.IsTreeWalkOperation(e.OperationType) || PotentiallyHasMentees))
2192if (!DependencyObject.IsTreeWalkOperation(e.OperationType))
2283internal static DependencyObject GetFrameworkParent(object current)
2285FrameworkObject fo = new FrameworkObject(current as DependencyObject);
2317internal static bool GetContainingFrameworkElement(DependencyObject current, out FrameworkElement fe, out FrameworkContentElement fce)
2338DependencyObject templatedParent,
2422private static void TextRenderingMode_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
2464protected internal override void OnVisualParentChanged(DependencyObject oldParent)
2466DependencyObject newParent = VisualTreeHelper.GetParentInternal(this);
2513DependencyObject parent = (newParent != null) ? newParent : oldParent;
2741private static void OnDataContextChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
2811protected internal override DependencyObject GetUIParentCore()
2851DependencyObject logicalSource = args.Source as DependencyObject;
2900DependencyObject visualParent = VisualTreeHelper.GetParent(this);
2901DependencyObject modelParent = GetUIParentCore();
2912DependencyObject branchNode = route.PeekBranchNode() as DependencyObject;
2993DependencyObject source = (fe != null) ? (DependencyObject)fe : (DependencyObject)fce;
2996DependencyObject templatedParent = null;
3052DependencyObject source,
3070internal override bool InvalidateAutomationAncestorsCore(Stack<DependencyObject> branchNodeStack, out bool continuePastCoreTree)
3097DependencyObject child = enumerator.Current as DependencyObject;
3111internal bool InvalidateAutomationAncestorsCoreHelper(Stack<DependencyObject> branchNodeStack, out bool continuePastCoreTree, bool shouldInvalidateIntermediateElements)
3116DependencyObject visualParent = VisualTreeHelper.GetParent(this);
3117DependencyObject modelParent = GetUIParentCore();
3119DependencyObject branchNode = branchNodeStack.Count > 0 ? branchNodeStack.Peek() : null;
3161DependencyObject mergePoint,
3162DependencyObject modelTreeNode)
3348private static object GetActualWidth(DependencyObject d, out BaseValueSourceInternal source)
3393private static object GetActualHeight(DependencyObject d, out BaseValueSourceInternal source)
3451private static void OnLayoutTransformChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
3475private static void OnTransformDirty(DependencyObject d, DependencyPropertyChangedEventArgs e)
3662private static object CoerceFlowDirectionProperty(DependencyObject d, object value)
3674private static void OnFlowDirectionChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
3701public static FlowDirection GetFlowDirection(DependencyObject element)
3711public static void SetFlowDirection(DependencyObject element, FlowDirection value)
3884static private void OnCursorChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
3919static private void OnForceCursorChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
3979DependencyObject parentVisual = VisualTreeHelper.GetParent(fe);
4011private static FlowDirection GetFlowDirectionFromVisual(DependencyObject visual)
4015for (DependencyObject v = visual; v != null; v = VisualTreeHelper.GetParent(v))
5330public sealed override DependencyObject PredictFocus(FocusNavigationDirection direction)
5344if (activeElement != null && activeElement != sender && Keyboard.IsFocusable(activeElement as DependencyObject))
5531private static void NumberSubstitutionChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
5549private static object CoerceFontFamily(DependencyObject o, object value)
5560private static object CoerceFontSize(DependencyObject o, object value)
5571private static object CoerceFontStyle(DependencyObject o, object value)
5582private static object CoerceFontWeight(DependencyObject o, object value)
6086DependencyObject mergePoint,
6089DependencyObject modelTreeNode)
6128private bool IsLogicalDescendent(DependencyObject child)
6402internal DependencyObject _templatedParent; // Non-null if this object was created as a result of a Template.VisualTree
src\Framework\System\Windows\FrameworkElementFactory.cs (20)
488private DependencyObject CreateDependencyObject()
495return _knownTypeFactory.Invoke() as DependencyObject;
498return (DependencyObject)Activator.CreateInstance(_type);
659internal DependencyObject InstantiateTree(
661DependencyObject container,
662DependencyObject parent,
663List<DependencyObject> affectedChildren,
664ref List<DependencyObject> noChildIndexChildren,
672DependencyObject treeNode = null;
777noChildIndexChildren = new List<DependencyObject>(4);
911private void AddNodeToParent( DependencyObject parent, FrameworkObject childFrameworkObject )
1034List<DependencyObject> affectedChildren, ref List<DependencyObject> noChildIndexChildren )
1051affectedChildren.Add(treeNodeIsFE ? (DependencyObject)treeNodeFE : (DependencyObject)treeNodeFCE);
1060noChildIndexChildren = new List<DependencyObject>(4);
1063noChildIndexChildren.Add(treeNodeIsFE ? (DependencyObject)treeNodeFE : (DependencyObject)treeNodeFCE);
1111DependencyObject container, bool isContainerAnFE,
1134internal static void AddNodeToLogicalTree( DependencyObject parent, Type type,
src\Framework\System\Windows\FrameworkTemplate.cs (24)
552public DependencyObject LoadContent()
569internal DependencyObject LoadContent(
570DependencyObject container,
571List<DependencyObject> affectedChildren)
724object value, DependencyObject templatedParent)
726DependencyObject dependencyObject = targetObject as DependencyObject;
903private DependencyObject LoadOptimizedTemplateContent(DependencyObject container,
905IStyleConnector styleConnector, List<DependencyObject> affectedChildren, UncommonField<Hashtable> templatedNonFeChildrenField)
911DependencyObject rootObject = null;
1116ref DependencyObject rootObject,
1117DependencyObject container,
1135ref DependencyObject rootObject,
1136DependencyObject container,
1153private static DependencyObject WireRootObjectToParent(object createdObject, DependencyObject rootObject, DependencyObject container, FrameworkElement feContainer, INameScope nameScope)
1155rootObject = createdObject as DependencyObject;
1192private void InvalidatePropertiesOnTemplate(DependencyObject container, Object currentObject)
1196DependencyObject dObject = currentObject as DependencyObject;
1334(element as DependencyObject).SetValue(valueLookup.Property, value); //sharedDp.Dp, value );
1620internal ConditionalWeakTable<DependencyObject,List<DeferredAction>> DeferredActions = null;
src\Framework\System\Windows\Input\KeyboardNavigation.cs (237)
106internal static DependencyObject GetTabOnceActiveElement(DependencyObject d)
111DependencyObject activeElement = weakRef.Target as DependencyObject;
121internal static void SetTabOnceActiveElement(DependencyObject d, DependencyObject value)
129private static DependencyObject GetControlTabOnceActiveElement(DependencyObject d)
134DependencyObject activeElement = weakRef.Target as DependencyObject;
144private static void SetControlTabOnceActiveElement(DependencyObject d, DependencyObject value)
149private DependencyObject GetActiveElement(DependencyObject d)
154private void SetActiveElement(DependencyObject d, DependencyObject value)
167internal static Visual GetVisualRoot(DependencyObject d)
280private static object CoerceShowKeyboardCues(DependencyObject d, object value)
345public static void SetTabIndex(DependencyObject element, int index)
360[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
361public static int GetTabIndex(DependencyObject element)
376public static void SetIsTabStop(DependencyObject element, bool isTabStop)
391[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
392public static bool GetIsTabStop(DependencyObject element)
407public static void SetTabNavigation(DependencyObject element, KeyboardNavigationMode mode)
423[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
424public static KeyboardNavigationMode GetTabNavigation(DependencyObject element)
439public static void SetControlTabNavigation(DependencyObject element, KeyboardNavigationMode mode)
455[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
456public static KeyboardNavigationMode GetControlTabNavigation(DependencyObject element)
471public static void SetDirectionalNavigation(DependencyObject element, KeyboardNavigationMode mode)
487[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
488public static KeyboardNavigationMode GetDirectionalNavigation(DependencyObject element)
503public static void SetAcceptsReturn(DependencyObject element, bool enabled)
518[AttachedPropertyBrowsableForType(typeof(DependencyObject))]
519public static bool GetAcceptsReturn(DependencyObject element)
826DependencyObject parent = ich as DependencyObject;
893Current.ShowFocusVisual(Keyboard.FocusedElement as DependencyObject);
896private void ShowFocusVisual(DependencyObject element)
972internal static void UpdateFocusedElement(DependencyObject focusTarget)
974DependencyObject focusScope = FocusManager.GetFocusScope(focusTarget);
988internal void UpdateActiveElement(DependencyObject activeElement)
997private void UpdateActiveElement(DependencyObject activeElement, DependencyProperty dp)
1000DependencyObject container = GetGroupParent(activeElement);
1004internal void UpdateActiveElement(DependencyObject container, DependencyObject activeElement)
1013private void UpdateActiveElement(DependencyObject container, DependencyObject activeElement, DependencyProperty dp)
1028internal bool Navigate(DependencyObject currentElement, TraversalRequest request)
1036private bool Navigate(DependencyObject currentElement, TraversalRequest request, ModifierKeys modifierKeys, bool fromProcessInputTabKey = false)
1041private bool Navigate(DependencyObject currentElement, TraversalRequest request, ModifierKeys modifierKeys, DependencyObject firstElement, bool fromProcessInputTabKey = false)
1044DependencyObject nextTab = null;
1159private bool NavigateOutsidePresentationSource(DependencyObject currentElement, TraversalRequest request, bool fromProcessInput, ref bool shouldCycle)
1203private bool ShouldNavigateOutsidePresentationSource(DependencyObject currentElement, TraversalRequest request)
1213DependencyObject parent = null;
1279DependencyObject sourceElement = keyEventArgs.OriginalSource as DependencyObject;
1293DependencyObject innerElement = keyEventArgs.KeyboardDevice.Target as DependencyObject;
1333internal static void EnableKeyboardCues(DependencyObject element, bool enable)
1370internal DependencyObject PredictFocusedElement(DependencyObject sourceElement, FocusNavigationDirection direction)
1375internal DependencyObject PredictFocusedElement(DependencyObject sourceElement, FocusNavigationDirection direction, bool treeViewNavigation)
1380internal DependencyObject PredictFocusedElement(DependencyObject sourceElement,
1396internal DependencyObject PredictFocusedElementAtViewportEdge(
1397DependencyObject sourceElement,
1401DependencyObject container)
1420private DependencyObject PredictFocusedElementAtViewportEdgeRecursive(
1421DependencyObject sourceElement,
1425DependencyObject container)
1444DependencyObject result = FindElementAtViewportEdge(sourceElement,
1457DependencyObject groupResult = result;
1483internal bool Navigate(DependencyObject sourceElement, Key key, ModifierKeys modifiers, bool fromProcessInput = false)
1525private static bool IsInNavigationTree(DependencyObject visual)
1541private DependencyObject GetPreviousSibling(DependencyObject e)
1543DependencyObject parent = GetParent(e);
1555return previousElement as DependencyObject;
1571DependencyObject parentAsUIElement = parent as UIElement;
1576DependencyObject elementAsVisual = e as Visual;
1585DependencyObject prev = null;
1588DependencyObject vchild = VisualTreeHelper.GetChild(parentAsUIElement, i);
1599private DependencyObject GetNextSibling(DependencyObject e)
1601DependencyObject parent = GetParent(e);
1615return current as DependencyObject;
1632DependencyObject parentAsUIElement = parent as UIElement;
1637DependencyObject elementAsVisual = e as Visual;
1650DependencyObject vchild = VisualTreeHelper.GetChild(parentAsUIElement, i);
1657DependencyObject visual = VisualTreeHelper.GetChild(parentAsUIElement, i);
1671private DependencyObject FocusedElement(DependencyObject e)
1677DependencyObject focusedElement = FocusManager.GetFocusedElement(e) as DependencyObject;
1711private DependencyObject GetFirstChild(DependencyObject e)
1714DependencyObject focusedElement = FocusedElement(e);
1728return current as DependencyObject;
1741DependencyObject uiElement = e as UIElement;
1750DependencyObject elementAsVisual = e as Visual;
1761DependencyObject visual = VisualTreeHelper.GetChild(elementAsVisual, i);
1766DependencyObject firstChild = GetFirstChild(visual);
1778private DependencyObject GetLastChild(DependencyObject e)
1781DependencyObject focusedElement = FocusedElement(e);
1803return last as DependencyObject;
1807DependencyObject uiElement = e as UIElement;
1815DependencyObject elementAsVisual = e as Visual;
1826DependencyObject visual = VisualTreeHelper.GetChild(elementAsVisual, i);
1831DependencyObject lastChild = GetLastChild(visual);
1842internal static DependencyObject GetParent(DependencyObject e)
1847DependencyObject visual = e;
1864return MS.Internal.Documents.ContentHostHelper.FindContentHost(contentElement) as DependencyObject;
1884private DependencyObject GetNextInTree(DependencyObject e, DependencyObject container)
1889DependencyObject result = null;
1897DependencyObject parent = e;
1900DependencyObject sibling = GetNextSibling(parent);
1922private DependencyObject GetPreviousInTree(DependencyObject e, DependencyObject container)
1927DependencyObject result = GetPreviousSibling(e);
1941private DependencyObject GetLastInTree(DependencyObject container)
1943DependencyObject result;
1956private DependencyObject GetGroupParent(DependencyObject e)
1963private DependencyObject GetGroupParent(DependencyObject e, bool includeCurrent)
1967DependencyObject result = e; // Keep the last non null element
1998private bool IsTabStop(DependencyObject e)
2012private bool IsGroup(DependencyObject e)
2017internal bool IsFocusableInternal(DependencyObject element)
2034private bool IsElementEligible(DependencyObject element, bool treeViewNavigation)
2046private bool IsGroupElementEligible(DependencyObject element, bool treeViewNavigation)
2058private KeyboardNavigationMode GetKeyNavigationMode(DependencyObject e)
2063private bool IsTabStopOrGroup(DependencyObject e)
2068private static int GetTabIndexHelper(DependencyObject d)
2076internal DependencyObject GetFirstTabInGroup(DependencyObject container)
2078DependencyObject firstTabElement = null;
2081DependencyObject currElement = container;
2099private DependencyObject GetNextTabWithSameIndex(DependencyObject e, DependencyObject container)
2102DependencyObject currElement = e;
2115private DependencyObject GetNextTabWithNextIndex(DependencyObject e, DependencyObject container, KeyboardNavigationMode tabbingType)
2119DependencyObject nextTabElement = null;
2120DependencyObject firstTabElement = null;
2125DependencyObject currElement = container;
2156private DependencyObject GetNextTabInGroup(DependencyObject e, DependencyObject container, KeyboardNavigationMode tabbingType)
2171DependencyObject nextTabElement = GetNextTabWithSameIndex(e, container);
2178private DependencyObject GetNextTab(DependencyObject e, DependencyObject container, bool goDownOnly)
2190DependencyObject activeElement = GetActiveElement(container);
2202DependencyObject parentContainer = GetGroupParent(container);
2209DependencyObject loopStartElement = null;
2210DependencyObject nextTabElement = e;
2224DependencyObject firstTabElementInside = GetNextTab(null, nextTabElement, true);
2249internal DependencyObject GetLastTabInGroup(DependencyObject container)
2251DependencyObject lastTabElement = null;
2253DependencyObject currElement = GetLastInTree(container);
2272private DependencyObject GetPrevTabWithSameIndex(DependencyObject e, DependencyObject container)
2275DependencyObject currElement = GetPreviousInTree(e, container);
2287private DependencyObject GetPrevTabWithPrevIndex(DependencyObject e, DependencyObject container, KeyboardNavigationMode tabbingType)
2291DependencyObject lastTabElement = null;
2292DependencyObject nextTabElement = null;
2296DependencyObject currElement = GetLastInTree(container);
2328private DependencyObject GetPrevTabInGroup(DependencyObject e, DependencyObject container, KeyboardNavigationMode tabbingType)
2346DependencyObject nextTabElement = GetPrevTabWithSameIndex(e, container);
2353private DependencyObject GetPrevTab(DependencyObject e, DependencyObject container, bool goDownOnly)
2365DependencyObject activeElement = GetActiveElement(container);
2374DependencyObject firstTabElement = GetNextTabInGroup(null, container, tabbingType);
2407DependencyObject loopStartElement = null;
2408DependencyObject nextTabElement = e;
2428DependencyObject lastTabElementInside = GetPrevTab(null, nextTabElement, true);
2459internal static Rect GetRectangle(DependencyObject element)
2552private Rect GetRepresentativeRectangle(DependencyObject element)
2712private bool IsFocusScope(DependencyObject e)
2717private bool IsAncestorOf(DependencyObject sourceElement, DependencyObject targetElement)
2732internal bool IsAncestorOfEx(DependencyObject sourceElement, DependencyObject targetElement)
2748private bool IsInRange(DependencyObject sourceElement, DependencyObject targetElement, Rect sourceRect, Rect targetRect, FocusNavigationDirection direction, double startRange, double endRange)
2802private DependencyObject GetNextInDirection(DependencyObject sourceElement, FocusNavigationDirection direction)
2807private DependencyObject GetNextInDirection(DependencyObject sourceElement, FocusNavigationDirection direction, bool treeViewNavigation)
2812private DependencyObject GetNextInDirection(DependencyObject sourceElement,
2818DependencyObject targetElement = MoveNext(sourceElement, null, direction, BASELINE_DEFAULT, BASELINE_DEFAULT, treeViewNavigation, considerDescendants);
2887private bool IsEndlessLoop(DependencyObject element, DependencyObject container)
2925private DependencyObject FindNextInDirection(DependencyObject sourceElement,
2927DependencyObject container,
2934DependencyObject result = null;
2938DependencyObject currElement = container;
2982private DependencyObject MoveNext(DependencyObject sourceElement,
2983DependencyObject container,
3030DependencyObject result = FindNextInDirection(sourceElement, sourceRect, container, direction, startRange, endRange, treeViewNavigation, considerDescendants);
3052DependencyObject activeElement = GetActiveElementChain(result, treeViewNavigation);
3058DependencyObject insideElement = MoveNext(null, result, direction, startRange, endRange, treeViewNavigation, considerDescendants:true);
3065private DependencyObject GetActiveElementChain(DependencyObject element, bool treeViewNavigation)
3067DependencyObject validActiveElement = null;
3068DependencyObject activeElement = element;
3082private DependencyObject FindElementAtViewportEdge(
3083DependencyObject sourceElement,
3085DependencyObject container,
3104DependencyObject result = null;
3108DependencyObject partialResult = null;
3112DependencyObject currElement = container;
3117DependencyObject currentRectElement = currElement;
3310EnableKeyboardCues(keyEventArgs.Source as DependencyObject, true);
src\Framework\System\Windows\Markup\BamlRecordReader.cs (33)
744DependencyObject currentParent = GetCurrentObjectData() as DependencyObject;
912ReaderFlags flags = (typeof(DependencyObject).IsAssignableFrom(elementType) ? ReaderFlags.DependencyObject :
960internal void SetDependencyValue(DependencyObject dependencyObject, DependencyProperty dependencyProperty, object value)
977internal virtual void SetDependencyValueCore(DependencyObject dependencyObject, DependencyProperty dependencyProperty, object value)
1282ReaderFlags flags = (elementType.IsAssignableFrom(typeof(DependencyObject)) ?
1335WpfPropertyDefinition propertyDefinition = new WpfPropertyDefinition(this, attributeId, parent is DependencyObject);
1340Debug.Assert(parent is DependencyObject);
1344contentProperty = ((DependencyObject)parent).GetValue(propertyDefinition.DependencyProperty) as IList;
1991WpfPropertyDefinition propertyDefinition = new WpfPropertyDefinition(this, attributeId, element is DependencyObject);
2054xmlSerializable = ((DependencyObject)parent).GetValue(dp) as IXmlSerializable;
2243WpfPropertyDefinition propertyDefinition = new WpfPropertyDefinition(this, attributeId, element is DependencyObject);
2276Debug.Assert(element is DependencyObject, "Guaranteed by PropertyDefinition constructor");
2277SetDependencyValue((DependencyObject)element, propertyDefinition.DependencyProperty, valueObject);
2483WpfPropertyDefinition propertyDefinition = new WpfPropertyDefinition(this, attributeId, element is DependencyObject);
2571Debug.Assert(o is DependencyObject);
2572SetDependencyValue((DependencyObject)o, propertyDefinition.DependencyProperty, value);
2689WpfPropertyDefinition propertyDefinition = new WpfPropertyDefinition(this, attributeId, element is DependencyObject);
2763WpfPropertyDefinition propertyDefinition = new WpfPropertyDefinition(this, attributeId, element is DependencyObject);
2788Debug.Assert(element is DependencyObject);
2791(DependencyObject)element,
3559(DependencyObject)GetParentObjectData(),
3697DependencyProperty dp = currentTarget is DependencyObject ? attribInfo.DP : null;
3749Debug.Assert(currentTarget is DependencyObject);
3750SetDependencyValue((DependencyObject)currentTarget, dp, o);
3974DependencyObject e = CurrentContext.ObjectData as DependencyObject;
4141DependencyObject feOrfceParent = (DependencyObject)stackData.ObjectData;
4513DependencyObject doRoot = element as DependencyObject;
4992DependencyObject dpo = container as DependencyObject;
src\Framework\System\Windows\Media\Animation\Storyboard.cs (59)
37TargetProperty = DependencyProperty.RegisterAttached("Target", typeof(DependencyObject), typeof(Storyboard), targetPropertyMetadata);
83public static void SetTarget(DependencyObject element, DependencyObject value)
98public static DependencyObject GetTarget(DependencyObject element)
101return (DependencyObject)element.GetValue(TargetProperty);
105DependencyObject d,
132public static void SetTargetName(DependencyObject element, String name)
142public static string GetTargetName(DependencyObject element)
162public static void SetTargetProperty(DependencyObject element, PropertyPath path)
172public static PropertyPath GetTargetProperty(DependencyObject element)
187public ObjectPropertyPair(DependencyObject o, DependencyProperty p)
215public DependencyObject DependencyObject { get { return _object; } }
218private DependencyObject _object;
239internal static DependencyObject ResolveTargetName(
242DependencyObject element )
246DependencyObject targetObject = null;
281targetObject = namedObject as DependencyObject;
373DependencyObject containingObject, /* Remains the same through all the recursive calls */
375DependencyObject parentObject,
384DependencyObject targetObject = parentObject;
404DependencyObject localTargetObject = (DependencyObject) currentTimeline.GetValue(TargetProperty);
429DependencyObject mentor = Helper.FindMentor(containingObject);
530private static void ApplyMediaClock( INameScope nameScope, DependencyObject containingObject,
531DependencyObject currentObject, string currentObjectName, MediaClock mediaClock )
538DependencyObject mentor = Helper.FindMentor(containingObject);
740DependencyObject intermediateDO = intermediateObject as DependencyObject;
807private void ProcessComplexPath( HybridDictionary clockMappings, DependencyObject targetObject,
837DependencyObject animatedObject = path.LastItem as DependencyObject;
882animatedObject = path.LastItem as DependencyObject;
929private void VerifyComplexPathSupport( DependencyObject targetObject )
955DependencyObject targetObject,
1197DependencyObject containingObject = this; // Helper.FindMentor(this);
1209internal void BeginCommon( DependencyObject containingObject, INameScope nameScope,
1325private Nullable<Double> GetCurrentGlobalSpeedImpl( DependencyObject containingObject )
1374private Nullable<Int32> GetCurrentIterationImpl( DependencyObject containingObject )
1422private Nullable<Double> GetCurrentProgressImpl( DependencyObject containingObject )
1461private ClockState GetCurrentStateImpl( DependencyObject containingObject )
1510private Nullable<TimeSpan> GetCurrentTimeImpl( DependencyObject containingObject )
1550private bool GetIsPausedImpl( DependencyObject containingObject )
1590private void PauseImpl(DependencyObject containingObject)
1633private void RemoveImpl(DependencyObject containingObject)
1684private void ResumeImpl( DependencyObject containingObject )
1743private void SeekImpl( DependencyObject containingObject, TimeSpan offset, TimeSeekOrigin origin )
1794private void SeekAlignedToLastTickImpl( DependencyObject containingObject, TimeSpan offset, TimeSeekOrigin origin )
1835private void SetSpeedRatioImpl( DependencyObject containingObject, double speedRatio )
1872private void SkipToFillImpl( DependencyObject containingObject )
1909private void StopImpl( DependencyObject containingObject )
1944private Clock GetStoryboardClock(DependencyObject o)
1957private Clock GetStoryboardClock(DependencyObject o, bool throwIfNull, InteractiveOperation operation)
2019private void SetStoryboardClock(DependencyObject o, Clock clock)
2051private static CloneCacheEntry GetComplexPathClone(DependencyObject o, DependencyProperty dp)
2069DependencyObject o,
2119internal ChangeListener( DependencyObject target, Freezable clone, DependencyProperty property, Freezable original )
2165DependencyObject target,
2223DependencyObject _target; // The object to invalidate
src\Framework\System\Windows\StyleHelper.cs (108)
67DependencyObject d = fe;
103DependencyObject d = fe;
296DependencyObject d = fe;
1347DependencyObject container = (fe != null) ? (DependencyObject)fe : (DependencyObject)fce;
1371DependencyObject container,
1412DependencyObject container,
1413DependencyObject child,
1434DependencyObject container,
1484DependencyObject container,
1498DependencyObject container,
1534DependencyObject container,
1535DependencyObject child,
1573DependencyObject target,
1622DependencyObject target,
1771DependencyObject container,
1795List<DependencyObject> affectedChildren = new List<DependencyObject>(lastChildIndex);
1805List<DependencyObject> noChildIndexChildren = null;
1810DependencyObject treeRoot = templateRoot.InstantiateTree(
1854List<DependencyObject> affectedChildren = new List<DependencyObject>(lastChildIndex);
1860DependencyObject treeRoot;
2048DependencyObject container,
2054DependencyObject walkNode = container;
2055DependencyObject nextParent = null;
2142List<DependencyObject> templatedChildren;
2154DependencyObject rootNode = null;
2221List<DependencyObject> templateChain,
2238DependencyObject walk = templateChain[i];
2269DependencyObject walk = templateChain[i];
2332internal static void SpecialDowncastToFEorFCE(DependencyObject d,
2406Helper.DowncastToFEorFCE((DependencyObject)sender, out fe, out fce, false);
2461Helper.DowncastToFEorFCE((DependencyObject)sender, out fe, out fce, false);
2463DependencyObject templatedParent;
2564DependencyObject container,
2618DependencyObject container,
2670DependencyObject sourceNode;
2867DependencyObject container,
2909DependencyObject container,
2918DependencyObject child = null;
3005entry.ResetValue(DependencyObject.ExpressionInAlternativeStore, true);
3006entry.SetExpressionValue(expr.GetValue(child, dp), DependencyObject.ExpressionInAlternativeStore);
3166DependencyObject container = (fe != null) ? (DependencyObject)fe : (DependencyObject)fce;
3248DependencyObject container = (fe != null) ? (DependencyObject)fe : (DependencyObject)fce;
3314DependencyObject container;
3450DependencyObject container,
3491DependencyObject container,
3602internal static void UpdateLoadedFlag( DependencyObject d,
3619internal static void UpdateLoadedFlag( DependencyObject d,
3646DependencyObject container,
3688DependencyObject container,
3707DependencyObject target = child.DO;
3723DependencyObject container,
3762DependencyObject container,
3845DependencyObject target = fo.DO;
4062DependencyObject container,
4067List<DependencyObject> styledChildren = TemplatedFeChildrenField.GetValue(container);
4080DependencyObject child = null;
4131DependencyObject container,
4132DependencyObject child,
4194DependencyObject container,
4302DependencyObject container,
4377DependencyObject container,
4386DependencyObject child = null;
4401List<DependencyObject> styledChildren = TemplatedFeChildrenField.GetValue(container);
4435DependencyObject triggerContainer, BindingBase binding, BindingValueChangedEventArgs bindingChangedArgs,
4472DependencyObject triggerContainer, DependencyProperty changedProperty,
4525DependencyObject triggerContainer = (fe != null) ? (DependencyObject)fe : (DependencyObject)fce;
4555DependencyObject triggerContainer = (fe != null) ? (DependencyObject)fe : (DependencyObject)fce;
4563private static void ExecuteOnApplyEnterExitActionsLoop( DependencyObject triggerContainer, TriggerCollection triggers,
4651bool oldState, bool newState, DependencyObject triggerContainer,
4681TriggerBase triggerBase, DependencyObject triggerContainer,
4709private static bool CanInvokeActionsNow( DependencyObject container,
4757DependencyObject triggerContainer, TriggerActionCollection actions,
4761ConditionalWeakTable<DependencyObject, List<DeferredAction>> deferredActions;
4772deferredActions = new ConditionalWeakTable<DependencyObject, List<DeferredAction>>();
4799internal static void InvokeDeferredActions( DependencyObject triggerContainer,
4825DependencyObject triggerContainer, TriggerActionCollection actions,
4843DependencyObject triggerContainer, DependencyProperty changedProperty, DependencyPropertyChangedEventArgs changedArgs,
4887DependencyObject triggerContainer,
4910DependencyObject triggerContainer, DependencyProperty changedProperty, DependencyPropertyChangedEventArgs changedArgs,
4915DependencyObject evaluationNode = null;
4982DependencyObject triggerContainer,
5132DependencyObject container = bindingExpr.TargetElement;
5169DependencyObject container = bindingExpr.TargetElement;
5212DependencyObject container = bindingExpr.TargetElement;
5247DependencyObject container,
5388DependencyObject container,
5425internal static DependencyObject GetChild(DependencyObject container, int childIndex)
5434internal static DependencyObject GetChild(List<DependencyObject> styledChildren, int childIndex)
5451DependencyObject child = styledChildren[childIndex - 1];
5475DependencyObject.RegisterForAlternativeExpressionStorage(
5481DependencyObject d,
5507DependencyObject d,
5642internal static readonly UncommonField<List<DependencyObject>> TemplatedFeChildrenField = new UncommonField<List<DependencyObject>>();
src\Framework\System\Windows\TreeWalkHelper.cs (24)
40DependencyObject parent,
75DependencyObject d = (fe != null) ? (DependencyObject)fe : (DependencyObject)fce;
166DependencyObject d,
210DependencyObject d,
253DependencyObject d = fe != null ? (DependencyObject)fe : (DependencyObject)fce;
315DependencyObject d,
477DependencyObject d = (fe != null) ? (DependencyObject)fe : (DependencyObject)fce;
502DependencyObject d,
518DependencyObject d,
684DependencyObject d,
746DependencyObject d,
919DependencyObject d = fo.DO;
940DependencyObject d,
966DependencyObject parent = FrameworkElement.GetFrameworkParent(d);
1011DependencyObject logicalParent = LogicalTreeHelper.GetParent(d);
1014DependencyObject visualParent = VisualTreeHelper.GetParent(d);
1102internal static void OnInheritedPropertyChanged(DependencyObject d,
1121DependencyObject d,
src\Framework\System\Windows\Window.cs (42)
604public static Window GetWindow(DependencyObject dependencyObject)
823private static void OnAllowsTransparencyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
827private static object CoerceAllowsTransparency(DependencyObject d, object value)
1500private static object CoerceWindowStyle(DependencyObject d, object value)
1782/// This corresponds to <see cref="OnVisualChildrenChanged(DependencyObject, DependencyObject)"/>.
1785/// need to know which children have changed. Therefore the <see cref="DependencyObject"/>
1786/// parameters of <see cref="OnVisualChildrenChanged(DependencyObject, DependencyObject)"/> are
1824protected internal sealed override void OnVisualParentChanged(DependencyObject oldParent)
2138DependencyObject doContent = Content as DependencyObject;
2163protected internal override void OnVisualChildrenChanged(DependencyObject visualAdded, DependencyObject visualRemoved)
5255private static void _OnIconChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
5281private static void _OnTitleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
5299private static void _OnShowInTaskbarChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
5370private static void _OnWindowStateChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
5507private static void _OnWindowStyleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
5538private static void _OnTopmostChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
5572private static object CoerceVisibility(DependencyObject d, object value)
5596private static void _OnVisibilityChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
5903private static object _SizeToContentGetValueOverride(DependencyObject d)
5914private static void _OnSizeToContentChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
5975private static void _OnHeightChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
6002private static void _OnMinHeightChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
6041private static void _OnMaxHeightChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
6079private static void _OnWidthChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
6100private static void _OnMinWidthChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
6141private static void _OnMaxWidthChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
6346private static object CoerceTop(DependencyObject d, object value)
6383private static void _OnTopChanged (DependencyObject d , DependencyPropertyChangedEventArgs e)
6422private static object CoerceLeft(DependencyObject d, object value)
6458private static void _OnLeftChanged (DependencyObject d, DependencyPropertyChangedEventArgs e)
6543private static void _OnResizeModeChanged (DependencyObject d, DependencyPropertyChangedEventArgs e)
6567private static object VerifyAccessCoercion(DependencyObject d, object value)
6575private static void _OnFlowDirectionChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
6598private static object CoerceRenderTransform(DependencyObject d, object value)
6615private static void _OnRenderTransformChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
6619private static object CoerceClipToBounds(DependencyObject d, object value)
6628private static void _OnClipToBoundsChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
7380if (!PresentationSource.UnderSamePresentationSource(e.OriginalSource as DependencyObject, this))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Selection\PropertySelection.cs (31)
92internal static bool GetIsSelected(DependencyObject obj)
104internal static void SetIsSelected(DependencyObject obj, bool value)
122internal static ISelectionStop GetSelectionStop(DependencyObject obj)
137internal static void SetSelectionStop(DependencyObject obj, ISelectionStop value)
151internal static void ClearSelectionStop(DependencyObject obj)
169internal static bool GetIsSelectionStopDoubleClickTarget(DependencyObject obj)
184internal static void SetIsSelectionStopDoubleClickTarget(DependencyObject obj, bool value)
198internal static void ClearIsSelectionStopDoubleClickTarget(DependencyObject obj)
213private static void OnIsSelectionStopDoubleClickTargetChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
255DependencyObject target = e.OriginalSource as DependencyObject;
297internal static bool GetIsSelectionScope(DependencyObject obj)
312internal static void SetIsSelectionScope(DependencyObject obj, bool value)
329internal static FrameworkElement GetKeyDownTarget(DependencyObject obj)
344internal static void SetKeyDownTarget(DependencyObject obj, FrameworkElement value)
356private static void OnKeyDownTargetChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
414DependencyObject keySender = sender as DependencyObject;
456internal static T FindParentSelectionStop<T>(DependencyObject element) where T : DependencyObject
486internal static T FindNeighborSelectionStop<T>(DependencyObject element, SearchDirection direction) where T : DependencyObject
512DependencyObject parent = element;
588private static DependencyObject GetEligibleParent(DependencyObject element, out int childIndex, out int childrenCount, out int childDepth, out bool isSelectionStop, out bool isSelectionScope)
617private static T FindChildSelectionStop<T>(DependencyObject parent, int leftIndex, int rightIndex, SearchDirection iterationDirection, int maxDepth, MatchDirection matchDirection)
618where T : DependencyObject
632DependencyObject child = VisualTreeHelper.GetChild(parent, index);
676private static bool IsExpanded(DependencyObject element)
685private static bool IsEligibleSelectionStop<T>(DependencyObject element) where T : DependencyObject
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectHelper.cs (17)
52internal static Rect GetAutoConnectHitRect(DependencyObject target)
115internal static Point CalculateDropLocation(Size droppedSize, DependencyObject autoConnectTarget, AutoConnectDirections direction, HashSet<Point> shapeLocations)
176internal static DependencyObject GetShapeContainingPoint(Point point, List<DependencyObject> shapes)
178DependencyObject result = null;
180foreach (DependencyObject shape in shapes)
199internal DependencyObject FindTarget(Point point, DependencyObject dragged, out AutoConnectDirections directions)
202List<DependencyObject> childShapes = this.panel.GetChildShapes(dragged);
203DependencyObject target = GetShapeContainingPoint(point, childShapes);
221DependencyObject currentTarget = this.CurrentTarget;
233DependencyObject draggedView = draggedModelItem != null ? draggedModelItem.View : null;
264private static void RemoveDirectionsInCollision(List<DependencyObject> childShapes, DependencyObject target, List<Rect> hitTestRects, ref AutoConnectDirections directions)
266foreach (DependencyObject shape in childShapes)
304private AutoConnectDirections GetAutoConnectDirections(AutoConnectDirections directions, List<DependencyObject> childShapes, DependencyObject target)