ToolTipService.SetPlacement(DependencyObject, PlacementMode) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the ToolTipService.Placement XAML attached property value for the specified target element.
public:
static void SetPlacement(DependencyObject ^ element, PlacementMode value);
static void SetPlacement(DependencyObject const& element, PlacementMode const& value);
public static void SetPlacement(DependencyObject element, PlacementMode value);
function setPlacement(element, value)
Public Shared Sub SetPlacement (element As DependencyObject, value As PlacementMode)
Parameters
- element
- DependencyObject
The target element for the attached property value.
- value
- PlacementMode
One of the PlacementMode values, which specifies where the tooltip should appear relative to the control that is the placement target.
Remarks
This method supports the ToolTipService.Placement attached property usage for Extensible Application Markup Language (XAML). The target element is not necessarily a ToolTip, it might be an element that owns an inferred tooltip through usage of ToolTipService APIs. Also, the target element is not necessarily the final placement target, because that can be reset by setting the ToolTipService.PlacementTarget attached property.
Applies to
See also
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin