-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data Binding Support #19
Comments
I was not aware that there was a use case for generating the layout of the Ribbon dynamically. I appreciate the information you've provided about DevExpress's approach...I can't make any promises regarding results, but I will look into this at some point. Could you elaborate on why one might want to generate the Ribbon's content dynamically in this way? |
Thank you for your fast answer! I come from the side where everything is defined and xaml without bindings, and after a certain size it is a mess to maintain and my proposal is a way to reduce friction. Here are some use cases which I really like to solve with this feature:
I think a similiar big control which I would expect to have this flexability is a dock-layout manager. From Code with bindings you have the freedom to simply create views by adding it to the viewmodel and not calling the view and break mvvm patterns. |
Not a problem :D
You raise a very good point. I hadn't considered any of these things...I'll see what I can do.
Okay, that doesn't seem quite right - Contextual tabs in Microsoft Office (and other Ribbon apps) aren't just bog-standard Ribbon tabs made visible only when needed - they're placed into groups...and from my understanding, it's the visibility of those groups that changes, not that of the individual tabs within them. In fact, such Contextual tab groups are already implemented on this very repository's ...or have I misunderstood what you were referring to about "Context-dependent visibility"?
I'm not quite sure what you mean by "dock-layout manager"...but I am curious now. Also, does DevExpress's WPF Ribbon have a Quick Access Toolbar? And if so...are you at all familiar with how it manages adding/removing and saving/loading items in that Quick Access Toolbar? |
Unfortunatly I cannot answer this, as I have almost no experience with the microsoft ribbon, only DevExpress. That's why I have added this point too. At least it would be great to have short examples for that in the documentation, then it maybe would be clearer if that really replace the original requirement.
Something like this: Dock Layout Manager DevExpress
Yes it has, see here. I did not took a look into the source code but I guess they solved it because they have a custom ribbon window. As far as I have read this control has this also? So you can add this the same way by having a Dependency Property to bind a list of e.g. QuickToolBarButtons to the Window? |
That's fine. Looks like my implementation isn't as far off from theirs as I would've expected. I will be adding proper documentation once the in-development features are...well, closer to stable/finalized.
Oh THAT...okay, that makes more sense now. Thanks.
Hm...well, mine has a custom window as well, though it's more for sake of convenience than a necessity. I'd imagine theirs is a similar deal, with the Quick Access Toolbar being in the titlebar and all that. So who is in charge of saving whatever is in the Quick Access Toolbar, and loading it again the next time the application is opened? Is that built into the DevExpress Ribbon, or up to the application developer to implement? |
Yes, you have not any other good options to customize windows :-), perfect fit to implement it in that way. |
As far as I can see there is no support to populate the ribbon with MVVM? I mean creating pages, groups & items like buttons using viewmodels would be a great addition. I really like the way DevExpress support in their WPF solution:
View:
ViewModels:
This would make this solution great for a lot of general purpose cases!
The text was updated successfully, but these errors were encountered: