I'm exploring the possibility of switching my application from Windows Forms to WPF.
The application in question right now uses the Infragistics UltraWinToolbars Ribbon feature, and we're quite happy with the results. So I'm trying to make it work in WPF and there's one layout I just can't figure out how to reproduce.
In a RibbonGroup in WinForms, you can set the LayoutAlignment property to one of Near, Center, and Far, and the LayoutDirection to Vertical or Horizontal. We have a couple of ribbon groups that use Center for Alignment and Horizontal for Direction to center-align all the tools in it on their respective rows. I can't seem to get that same behavior with the WPF ribbon. It seems my choices are Vertical and Horizontal using the ToolVerticalWrapPanel and the ToolHorizontalWrapPanel. But when I use either of those and attempt to change the horizontal alignment to center, nothing happens. It seems like the ToolHorizontalWrapPanel would be the one to use, but it always left aligns the tools. I want them center-aligned in the group.
How do I do this? Is there a template I should be using instead?
Thanks
Chris
In WPF the Vertical/Horizontal alignment properties control the alignment of the element itself relative to the rect in which the parent element is aligning it so it would not affect the alignment of the children of that element. We would probably have to add a property to the ToolHorizontalWrapPanel (e.g. HorizontalContentAlignment) to provide the functionality that you are looking to duplicate. I would recommend submitting a suggestion for adding this feature.
Is this still the case, or is there a way to do this now?
No features have been added relating to this. You should submit the suggestion as the number of times a feature is suggested has some impact on which features are implemented.