How to draw on a Window in WPF (best practice)?

前端 未结 5 519
无人及你
无人及你 2021-02-01 04:01

I am trying to write a small interactive game-like application, where I need to have a Draw method that\'s gonna draw on screen, but can\'t figure out how to struct

5条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-01 04:17

    Yow should add a Canvas (or change the Grid for a Canvas) and then draw over it. Here is Microsoft tut on drawing over a canvas

    Also, I don't know how related is this other question to yours, but you might want to check it out.

提交回复
热议问题