spiegelp / MaterialDesignExtensions

Material Design Extensions is based on Material Design in XAML Toolkit to provide additional controls and features for WPF apps
https://spiegelp.github.io/MaterialDesignExtensions/
MIT License
762 stars 122 forks source link

Dynamically create StepButtonBar #61

Closed enrmadriv closed 4 years ago

enrmadriv commented 5 years ago

I'm implementing your stepper controll on my project.

I need to create a my custom StepButtonBar depending of some binding data. I'm trying to create the StepButtonBar object but can't figure out how to add it to Step interface.

I will appreciate your help.

spiegelp commented 4 years ago

@enrmadriv I would suggest to place your button bar inside the template for the step. There you could use a ContentControl with a TemplateSelector or implement your own converters to control the visibiliy of controls depending on your binding data.

enrmadriv commented 4 years ago

I will try it. Your project are awesome

Thanks for your suggestions 👍