Mouse.XButton1 Property
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.
Gets the state of the first extended button.
public:
static property System::Windows::Input::MouseButtonState XButton1 { System::Windows::Input::MouseButtonState get(); };
public static System.Windows.Input.MouseButtonState XButton1 { get; }
static member XButton1 : System.Windows.Input.MouseButtonState
Public Shared ReadOnly Property XButton1 As MouseButtonState
Property Value
The state of the first extended mouse button.
Examples
The following example shows how to determine whether the first extended mouse button is pressed by checking if the state of XButton1 is equal to the MouseButtonState enumeration value Pressed. If the button is pressed, a method is called which updates display elements in the sample.
if (Mouse.XButton1 == MouseButtonState.Pressed)
{
UpdateSampleResults("First Extended Button Pressed");
}
If Mouse.XButton1 = MouseButtonState.Pressed Then
UpdateSampleResults("First Extended Button Pressed")
End If
Applies to
See also
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για