105 references to PlacementMode
PresentationFramework (104)
MS\Internal\Documents\DocumentGridContextMenu.cs (1)
102
contextMenu.Placement =
PlacementMode
.RelativePoint;
MS\Internal\Documents\DocumentViewerHelper.cs (1)
425
cm.Placement =
PlacementMode
.Relative;
System\Windows\Controls\ContextMenu.cs (2)
238
public
PlacementMode
Placement
240
get { return (
PlacementMode
) GetValue(PlacementProperty); }
System\Windows\Controls\ContextMenuService.cs (5)
237
typeof(
PlacementMode
), // Type
239
new FrameworkPropertyMetadata(
PlacementMode
.MousePoint)); // Default Value
247
public static
PlacementMode
GetPlacement(DependencyObject element)
250
return (
PlacementMode
)element.GetValue(PlacementProperty);
258
public static void SetPlacement(DependencyObject element,
PlacementMode
value)
System\Windows\Controls\PopupControlService.cs (2)
1016
cm.Placement =
PlacementMode
.Center;
1021
cm.Placement =
PlacementMode
.MousePoint;
System\Windows\Controls\Primitives\Popup.cs (83)
446
typeof(
PlacementMode
),
449
PlacementMode
.Bottom,
457
public
PlacementMode
Placement
459
get { return (
PlacementMode
) GetValue(PlacementProperty); }
468
internal
PlacementMode
PlacementInternal
472
PlacementMode
placement = Placement;
473
bool isMouseMode = (placement ==
PlacementMode
.Mouse || placement ==
PlacementMode
.MousePoint);
476
placement =
PlacementMode
.Bottom;
495
PlacementMode
value = (
PlacementMode
)o;
496
return value ==
PlacementMode
.Absolute
497
|| value ==
PlacementMode
.AbsolutePoint
498
|| value ==
PlacementMode
.Bottom
499
|| value ==
PlacementMode
.Center
500
|| value ==
PlacementMode
.Mouse
501
|| value ==
PlacementMode
.MousePoint
502
|| value ==
PlacementMode
.Relative
503
|| value ==
PlacementMode
.RelativePoint
504
|| value ==
PlacementMode
.Right
505
|| value ==
PlacementMode
.Left
506
|| value ==
PlacementMode
.Top
507
|| value ==
PlacementMode
.Custom;
1943
private static bool IsAbsolutePlacementMode(
PlacementMode
placement)
1947
case
PlacementMode
.MousePoint:
1948
case
PlacementMode
.Mouse:
1949
case
PlacementMode
.AbsolutePoint:
1950
case
PlacementMode
.Absolute:
2005
PlacementMode
placement = PlacementInternal;
2029
if (placement ==
PlacementMode
.Custom)
2058
if (placement ==
PlacementMode
.Custom)
2118
if ((bestIndex >= 2) && (placement ==
PlacementMode
.Right || placement ==
PlacementMode
.Left))
2225
PlacementMode
placement = PlacementInternal;
2285
private Point[] GetPlacementTargetInterestPoints(
PlacementMode
placement)
2305
if (placement ==
PlacementMode
.Mouse || placement ==
PlacementMode
.MousePoint)
2337
if (placement !=
PlacementMode
.Relative && placement !=
PlacementMode
.RelativePoint)
2373
private Point[] GetChildInterestPoints(
PlacementMode
placement)
2468
private static int GetNumberOfCombinations(
PlacementMode
placement)
2472
case
PlacementMode
.Bottom:
2473
case
PlacementMode
.Top:
2474
case
PlacementMode
.Mouse:
2477
case
PlacementMode
.Right:
2478
case
PlacementMode
.Left:
2479
case
PlacementMode
.RelativePoint:
2480
case
PlacementMode
.MousePoint:
2481
case
PlacementMode
.AbsolutePoint:
2484
case
PlacementMode
.Custom:
2487
case
PlacementMode
.Absolute:
2488
case
PlacementMode
.Relative:
2489
case
PlacementMode
.Center:
2496
private PointCombination GetPointCombination(
PlacementMode
placement, int i, out PopupPrimaryAxis axis)
2504
case
PlacementMode
.Bottom:
2505
case
PlacementMode
.Mouse:
2520
case
PlacementMode
.Top:
2535
case
PlacementMode
.Right:
2536
case
PlacementMode
.Left:
2540
if ((dropFromRight && placement ==
PlacementMode
.Right) ||
2541
(!dropFromRight && placement ==
PlacementMode
.Left))
2557
case
PlacementMode
.Relative:
2558
case
PlacementMode
.RelativePoint:
2559
case
PlacementMode
.MousePoint:
2560
case
PlacementMode
.AbsolutePoint:
2578
case
PlacementMode
.Center:
2582
case
PlacementMode
.Absolute:
2583
case
PlacementMode
.Custom:
2593
private static PopupPrimaryAxis GetPrimaryAxis(
PlacementMode
placement)
2597
case
PlacementMode
.Right:
2598
case
PlacementMode
.Left:
2601
case
PlacementMode
.Bottom:
2602
case
PlacementMode
.Top:
2603
case
PlacementMode
.RelativePoint:
2604
case
PlacementMode
.AbsolutePoint:
2607
case
PlacementMode
.Relative:
2608
case
PlacementMode
.Mouse:
2609
case
PlacementMode
.MousePoint:
2610
case
PlacementMode
.Center:
2611
case
PlacementMode
.Absolute:
2612
case
PlacementMode
.Custom:
2697
private Rect GetMouseRect(
PlacementMode
placement)
2701
if (placement ==
PlacementMode
.Mouse)
System\Windows\Controls\Slider.cs (1)
851
_autoToolTip.Placement =
PlacementMode
.Custom;
System\Windows\Controls\ToolTip.cs (2)
299
public
PlacementMode
Placement
301
get { return (
PlacementMode
) GetValue(PlacementProperty); }
System\Windows\Controls\ToolTipService.cs (5)
230
typeof(
PlacementMode
), // Type
232
new FrameworkPropertyMetadata(
PlacementMode
.Mouse)); // Default Value
240
public static
PlacementMode
GetPlacement(DependencyObject element)
243
return (
PlacementMode
)element.GetValue(PlacementProperty);
251
public static void SetPlacement(DependencyObject element,
PlacementMode
value)
System\windows\Documents\TextEditorContextMenu.cs (1)
168
contextMenu.Placement =
PlacementMode
.RelativePoint;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (1)
3256
bamlMember.TypeConverterType = typeof(System.Windows.Controls.Primitives.
PlacementMode
);
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
1278
_popup.Placement =
PlacementMode
.Top;