This is a migrated thread and some comments may be shown as answers.

Set ButtonsVisibilityMode in code

2 Answers 81 Views
Wizard
This is a migrated thread and some comments may be shown as answers.
Ricardo
Top achievements
Rank 1
Ricardo asked on 11 May 2018, 03:24 PM

Hello,

 

I'm developing a new App using telerik wizard.

 

I'm currently exploring the possibility to add dynamic wizard pages, but i need to change the ButtonsVisibilityMode in the source code, i.e.,

 

<p>using xaml it would be like:</p><p></p><p>ButtonsVisibilityMode="Cancel,Next"</p>

 

Does anyone know how i can do this in c#?

 

I have tried:

<p> WizardPage wizardPage = new WizardPage()<br> {</p><p>     ButtonsVisibilityMode = "Next, Cancel"</p><p>};</p>

 

But I'm getting the following error: cannot convert 'string' to WizardPageButtonsDisplayMode.

Can anyone help me?

 

Regards

 

 

2 Answers, 1 is accepted

Sort by
0
Ricardo
Top achievements
Rank 1
answered on 15 May 2018, 10:48 AM

Solution found:

 

WizardPage.ButtonsVisibilityMode = WizardPageButtonsDisplayMode.Next | WizardPageButtonsDisplayMode.Cancel;

0
Dinko | Tech Support Engineer
Telerik team
answered on 15 May 2018, 01:26 PM
Hello Ricardo,

I am happy to hear that you manage to found a solution for your case. If you have any other questions you can open a new thread with your questions inside.

Have a great day.

Regards,
Dinko
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
Wizard
Asked by
Ricardo
Top achievements
Rank 1
Answers by
Ricardo
Top achievements
Rank 1
Dinko | Tech Support Engineer
Telerik team
Share this question
or