I would like declare in the XAML file a container that when I add any component to i it will behave like JPanel
with GridLayout
in Java. That means every component in that container will be the same size no matter I do.
You can use UniformGrid in WPF
<UniformGrid>
<Button Content="Hello1"/>
<Button Content="Hello2"/>
<Button Content="Hello3"/>
<Button Content="Hello4"/>
<Button Content="Hello5"/>
<Button Content="Hello6"/>
</UniformGrid>
More info about UniformGrid here
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.