InkToolbar.ActiveToolChanged Kejadian
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Terjadi ketika fitur yang saat ini dipilih dalam grup RadioButtondari InkToolbar diubah. Kejadian ini menyediakan akses ke objek berikut:
- InkToolbarBallpointPenButton
- InkToolbarPencilButton
- InkToolbarEraserButton
- InkToolbarHighlighterButton
- InkToolbarCustomPenButton
- InkToolbarCustomToolButton
Fitur dalam grup ini saling eksklusif: memilih fitur membatalkan pilihan fitur yang saat ini aktif.
Catatan
Objek InkToolbarRulerButton dan InkToolbarCustomToggleButton bekerja bersama dengan fitur aktif dan tidak terekspos ke peristiwa ActiveToolChanged.
// Register
event_token ActiveToolChanged(TypedEventHandler<InkToolbar, IInspectable const&> const& handler) const;
// Revoke with event_token
void ActiveToolChanged(event_token const* cookie) const;
// Revoke with event_revoker
InkToolbar::ActiveToolChanged_revoker ActiveToolChanged(auto_revoke_t, TypedEventHandler<InkToolbar, IInspectable const&> const& handler) const;
public event TypedEventHandler<InkToolbar,object> ActiveToolChanged;
function onActiveToolChanged(eventArgs) { /* Your code */ }
inkToolbar.addEventListener("activetoolchanged", onActiveToolChanged);
inkToolbar.removeEventListener("activetoolchanged", onActiveToolChanged);
- or -
inkToolbar.onactivetoolchanged = onActiveToolChanged;
Public Custom Event ActiveToolChanged As TypedEventHandler(Of InkToolbar, Object)
Jenis Acara
TypedEventHandler<InkToolbar,IInspectable>
Berlaku untuk
Lihat juga
- Interaksi pena dan stylus
- Menambahkan InkToolbar ke aplikasi Platform Windows Universal (UWP)
- Tutorial Memulai: Tinta dukungan di aplikasi UWP Anda
- ActiveTool
- Sampel tinta sederhana (C#/C++)
- Sampel tinta kompleks (C++)
- Tutorial Memulai: Tinta dukungan di aplikasi UWP Anda
- Sampel buku mewarnai
- Sampel catatan keluarga