We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to set ButtonAdv as Default button in a dialog?

Thread ID:

Created:

Updated:

Platform:

Replies:

128454 Jan 24,2017 02:30 AM Jan 25,2017 03:59 AM WPF 1
loading
Tags: ButtonAdv
Amir Oveisi
Asked On January 24, 2017 02:30 AM

i have two ButtonAdv in my window and want to set one of them as Default and the other as CancelButton. how can i do this?
Thanks

Keerthana Jegannathan [Syncfusion]
Replied On January 25, 2017 03:59 AM

 
Hi Amir, 
 
Thank you for contacting Syncfusion support. 
 
In our ButtonAdv control, at present we don’t have default support to achieve it as Cancel button and Default button. We have prepared a workaround sample in which we have invoked the Click event of specific button on the “PreviewKeyDown” event of window. Also, we have inherited the style of ButtonAdv in “App.xaml” and applied Border color for the Button to get selected at the time of loading. Please refer the below sample 
 
 
Regards, 
Keerthana J 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;