Bagikan melalui


InkToolbar.ActiveToolChanged Kejadian

Definisi

Terjadi ketika fitur yang saat ini dipilih dalam grup RadioButtondari InkToolbar diubah. Kejadian ini menyediakan akses ke objek berikut:

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

Berlaku untuk

Lihat juga