InkCanvas.EditingModeChanged Event
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.
Occurs when the EditingMode property of an InkCanvas object has been changed.
public:
event System::Windows::RoutedEventHandler ^ EditingModeChanged;
public event System.Windows.RoutedEventHandler EditingModeChanged;
member this.EditingModeChanged : System.Windows.RoutedEventHandler
Public Custom Event EditingModeChanged As RoutedEventHandler
Event Type
Examples
The following example checks whether the EditingMode property is set to Ink or Select.
void inkCanvas1_EditingModeChanged(object sender, EventArgs e)
{
if (inkCanvas1.EditingMode == InkCanvasEditingMode.Ink)
{
modeLabel.Text = "Ink";
}
else if (inkCanvas1.EditingMode == InkCanvasEditingMode.Select)
{
modeLabel.Text = "select";
}
}
Private Sub inkCanvas1_EditingModeChanged(ByVal sender As Object, ByVal e As RoutedEventArgs)
If inkCanvas1.EditingMode = InkCanvasEditingMode.Ink Then
modeLabel.Text = "Ink"
ElseIf inkCanvas1.EditingMode = InkCanvasEditingMode.Select Then
modeLabel.Text = "select"
End If
End Sub
Remarks
This event occurs after the editing mode has been changed; the changes are reflected in the EditingMode property of the InkCanvas.
Routed Event Information
Identifier field | EditingModeChangedEvent |
Routing strategy | Bubbling |
Delegate | RoutedEventHandler |
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.