开发者

WPF Layout/Map/Maze Generator

开发者 https://www.devze.com 2023-03-02 09:35 出处:网络
I\'m trying to give a user controls for generating a layout of boxes in WPF. I\'d like to be able to add/remove rows and columns and set each box to be rotated at either 0 or 45 degrees. The result wo

I'm trying to give a user controls for generating a layout of boxes in WPF. I'd like to be able to add/remove rows and columns and set each box to be rotated at either 0 or 45 degrees. The result would be a sort of honeycomb of squares. I was thinking of approaching this with a ListBox and WrapPanel but after thinking about it, I thin开发者_如何学编程k a Canvas may be better. Is there any easy methodology I could follow or will it just be trial and error with canvas positions?


This wasn't nearly as difficult as I thought it would be. Using a Canvas as a ListBox's ItemsPanel was relatively easy.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号