pub struct ContentDialogButtonClickEventArgs { /* private fields */ }Expand description
Arguments of a command button’s click, raised before the dialog closes. A handler that decides later keeps them and takes a deferral.
Implementations§
Source§impl ContentDialogButtonClickEventArgs
impl ContentDialogButtonClickEventArgs
Sourcepub fn set_cancel(&self, cancel: bool)
pub fn set_cancel(&self, cancel: bool)
Sets Cancel.
Sourcepub fn get_deferral(
&self,
) -> Result<ContentDialogButtonClickDeferral, DeferralCompleted>
pub fn get_deferral( &self, ) -> Result<ContentDialogButtonClickDeferral, DeferralCompleted>
GetDeferral: the dialog reads Cancel, and closes, once the deferral is complete.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ContentDialogButtonClickEventArgs
impl !RefUnwindSafe for ContentDialogButtonClickEventArgs
impl !Send for ContentDialogButtonClickEventArgs
impl !Sync for ContentDialogButtonClickEventArgs
impl !UnwindSafe for ContentDialogButtonClickEventArgs
impl Forget for ContentDialogButtonClickEventArgs
impl Move for ContentDialogButtonClickEventArgs
impl Unpin for ContentDialogButtonClickEventArgs
impl UnsafeUnpin for ContentDialogButtonClickEventArgswhere
*const RcInner<DeferralManager> is !null: UnsafeUnpin,
PhantomData<RcInner<DeferralManager>>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more