The default behavior of filling elements in UniformGrid is left to right. But you can fill them in right to left fashion. To do this, set the FlowDirection property to RightToLeft (the default is LeftToRight), as shown in the following snippet:
<UniformGrid FlowDirection="RightToLeft"> <Label Content="Cell 1" Background="Yellow" /> <Label Content="Cell 2" Background="YellowGreen" /> <Label Content="Cell 3" Background="Orange" /> <Label Content="Cell 4" Background="OrangeRed" /> <Label Content="Cell 5" Background="Violet" /> <Label Content="Cell 6" Background="DeepSkyBlue" /> <Label Content="Cell 7" Background="SkyBlue" /> </UniformGrid>
When you run the preceding code, you will see a UI similar to the following screenshot...