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.
Syncfusion Feedback

How to set ButtonAdv as Default button in a dialog?

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 08:59 AM UTC

 
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.

Warning Icon 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.Close Icon

;