I have what seems like a very simple question but I haven't been able to find a good answer.
I'm building an application in WPF which uses Microsoft's Ribbon controls (defined in the System.Windows.Controls.Ri
bbon namespace). In quite a few places I have multiple 'RibbonComboBox'-es or 'RibbonTextBox'-es stacked one on top of the other inside a RibbonGroup. But they don't look very nice because they don't align with each other. Like show below:
Notice how because the label lengths are different, the start and end points of the controls don't align and it just doesn't look very nice. I'm trying to make it so that either both the start and end of the controls align or at last just the ends align.
I took that above image from another article where someone had the same problem:
The answer given there is the only one I've been able to find: making a Grid with two columns and putting a TextBlock in one column and the ribbon control in the other. It does work, but it requires quite a bit of extra code and I wan't to know if there is an easier way to do it.
Note that I am using the official ribbon control from Microsoft, not a third-party one. Is there any other way to fix this problem?