105 references to PlacementMode
PresentationFramework (104)
MS\Internal\Documents\DocumentGridContextMenu.cs (1)
95
Placement =
PlacementMode
.RelativePoint,
MS\Internal\Documents\DocumentViewerHelper.cs (1)
423
cm.Placement =
PlacementMode
.Relative;
System\Windows\Controls\ContextMenu.cs (2)
230
public
PlacementMode
Placement
232
get { return (
PlacementMode
) GetValue(PlacementProperty); }
System\Windows\Controls\ContextMenuService.cs (5)
233
typeof(
PlacementMode
), // Type
235
new FrameworkPropertyMetadata(
PlacementMode
.MousePoint)); // Default Value
243
public static
PlacementMode
GetPlacement(DependencyObject element)
246
return (
PlacementMode
)element.GetValue(PlacementProperty);
254
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)
435
typeof(
PlacementMode
),
438
PlacementMode
.Bottom,
446
public
PlacementMode
Placement
448
get { return (
PlacementMode
) GetValue(PlacementProperty); }
457
internal
PlacementMode
PlacementInternal
461
PlacementMode
placement = Placement;
462
bool isMouseMode = (placement ==
PlacementMode
.Mouse || placement ==
PlacementMode
.MousePoint);
465
placement =
PlacementMode
.Bottom;
484
PlacementMode
value = (
PlacementMode
)o;
485
return value ==
PlacementMode
.Absolute
486
|| value ==
PlacementMode
.AbsolutePoint
487
|| value ==
PlacementMode
.Bottom
488
|| value ==
PlacementMode
.Center
489
|| value ==
PlacementMode
.Mouse
490
|| value ==
PlacementMode
.MousePoint
491
|| value ==
PlacementMode
.Relative
492
|| value ==
PlacementMode
.RelativePoint
493
|| value ==
PlacementMode
.Right
494
|| value ==
PlacementMode
.Left
495
|| value ==
PlacementMode
.Top
496
|| value ==
PlacementMode
.Custom;
1952
private static bool IsAbsolutePlacementMode(
PlacementMode
placement)
1956
case
PlacementMode
.MousePoint:
1957
case
PlacementMode
.Mouse:
1958
case
PlacementMode
.AbsolutePoint:
1959
case
PlacementMode
.Absolute:
2014
PlacementMode
placement = PlacementInternal;
2038
if (placement ==
PlacementMode
.Custom)
2067
if (placement ==
PlacementMode
.Custom)
2127
if ((bestIndex >= 2) && (placement ==
PlacementMode
.Right || placement ==
PlacementMode
.Left))
2234
PlacementMode
placement = PlacementInternal;
2294
private Point[] GetPlacementTargetInterestPoints(
PlacementMode
placement)
2314
if (placement ==
PlacementMode
.Mouse || placement ==
PlacementMode
.MousePoint)
2346
if (placement !=
PlacementMode
.Relative && placement !=
PlacementMode
.RelativePoint)
2382
private Point[] GetChildInterestPoints(
PlacementMode
placement)
2477
private static int GetNumberOfCombinations(
PlacementMode
placement)
2481
case
PlacementMode
.Bottom:
2482
case
PlacementMode
.Top:
2483
case
PlacementMode
.Mouse:
2486
case
PlacementMode
.Right:
2487
case
PlacementMode
.Left:
2488
case
PlacementMode
.RelativePoint:
2489
case
PlacementMode
.MousePoint:
2490
case
PlacementMode
.AbsolutePoint:
2493
case
PlacementMode
.Custom:
2496
case
PlacementMode
.Absolute:
2497
case
PlacementMode
.Relative:
2498
case
PlacementMode
.Center:
2505
private PointCombination GetPointCombination(
PlacementMode
placement, int i, out PopupPrimaryAxis axis)
2513
case
PlacementMode
.Bottom:
2514
case
PlacementMode
.Mouse:
2529
case
PlacementMode
.Top:
2544
case
PlacementMode
.Right:
2545
case
PlacementMode
.Left:
2549
if ((dropFromRight && placement ==
PlacementMode
.Right) ||
2550
(!dropFromRight && placement ==
PlacementMode
.Left))
2566
case
PlacementMode
.Relative:
2567
case
PlacementMode
.RelativePoint:
2568
case
PlacementMode
.MousePoint:
2569
case
PlacementMode
.AbsolutePoint:
2587
case
PlacementMode
.Center:
2591
case
PlacementMode
.Absolute:
2592
case
PlacementMode
.Custom:
2602
private static PopupPrimaryAxis GetPrimaryAxis(
PlacementMode
placement)
2606
case
PlacementMode
.Right:
2607
case
PlacementMode
.Left:
2610
case
PlacementMode
.Bottom:
2611
case
PlacementMode
.Top:
2612
case
PlacementMode
.RelativePoint:
2613
case
PlacementMode
.AbsolutePoint:
2616
case
PlacementMode
.Relative:
2617
case
PlacementMode
.Mouse:
2618
case
PlacementMode
.MousePoint:
2619
case
PlacementMode
.Center:
2620
case
PlacementMode
.Absolute:
2621
case
PlacementMode
.Custom:
2707
private Rect GetMouseRect(
PlacementMode
placement)
2711
if (placement ==
PlacementMode
.Mouse)
System\Windows\Controls\Slider.cs (1)
841
Placement =
PlacementMode
.Custom,
System\Windows\Controls\ToolTip.cs (2)
286
public
PlacementMode
Placement
288
get { return (
PlacementMode
) GetValue(PlacementProperty); }
System\Windows\Controls\ToolTipService.cs (5)
225
typeof(
PlacementMode
), // Type
227
new FrameworkPropertyMetadata(
PlacementMode
.Mouse)); // Default Value
235
public static
PlacementMode
GetPlacement(DependencyObject element)
238
return (
PlacementMode
)element.GetValue(PlacementProperty);
246
public static void SetPlacement(DependencyObject element,
PlacementMode
value)
System\windows\Documents\TextEditorContextMenu.cs (1)
166
contextMenu.Placement =
PlacementMode
.RelativePoint;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (1)
3375
TypeConverterType = typeof(System.Windows.Controls.Primitives.
PlacementMode
)
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
1275
_popup.Placement =
PlacementMode
.Top;