UIElement.IsStylusDirectlyOver Свойство
Определение
Возвращает значение, указывающее, соответствует ли позиция пера результатам проверки нажатия, при которой учитывается компоновка элемента.Gets a value that indicates whether the stylus position corresponds to hit test results, which take element compositing into account. Это свойство зависимостей.This is a dependency property.
public:
property bool IsStylusDirectlyOver { bool get(); };
public bool IsStylusDirectlyOver { get; }
member this.IsStylusDirectlyOver : bool
Public ReadOnly Property IsStylusDirectlyOver As Boolean
Значение свойства
Значение true
, если указатель пера находится над тем же элементом, что и результат проверки нажатия; в противном случае — значение false
.true
if the stylus pointer is over the same element result as a hit test; otherwise, false
. Значение по умолчанию — false
.The default is false
.
Реализации
Комментарии
В отличие от IsStylusOverэто свойство true
только в том случае, если перо находится над элементом.Unlike IsStylusOver, this property is only true
if the stylus is over the element. Если перо вместо дочернего элемента или над элементами, которые являются частью более глубокой компоновки элемента (визуальное дерево), это свойство будет false
.If the stylus is instead over a child element or over elements that are part of an element's deeper compositing (the visual tree), this property will be false
.
Если вы не знакомы с составным элементом управления (например, это свойство можно использовать в пользовательском шаблоне элемента управления для определяемого элемента управления), это свойство может возвращать непредвиденные результаты.Unless you know how a control is composited (for example, you use this property in a custom control template for a control that you define), this property might return unexpected results. В большинстве случаев, когда вы не создаете элементы управления, используйте вместо этого IsStylusOver.For most scenarios where you are not authoring controls, use IsStylusOver instead.
Если этот элемент имеет захват пера и это свойство true
во время записи, это свойство остается true
до тех пор, пока перо не будет потеряно и перо не поверх границ.If this element has stylus capture and this property is true
at the time of capture, this property remains true
until stylus capture is lost and the stylus is not over its bounds.
Ввод с помощью сенсорного ввода, мыши и пера существует в определенной связи.Touch, mouse, and stylus input exist in a particular relationship. Дополнительные сведения см. в разделе Общие сведения о входных данных.For more information, see Input Overview.
Сведения о свойстве зависимостейDependency Property Information
Поле идентификатораIdentifier field | IsStylusDirectlyOverProperty |
Для свойств метаданных задано значение true Metadata properties set to true |
ОтсутствуютNone |