如何在 WPF 中创建具有背景图像和可更改文本的边框区域
我一直在学习一些编码,并在这里收到了一些很好的指导,所以我想我应该问一下我目前的努力。
我目前正在尝试使用 WPF 应用程序,并想尝试创建类似的东西(请原谅配色方案......我只是将其放在一起):
期望的结果是:
- 有一个边框
- 区域边框区域需要背景image
- 以编程方式更改的进度条
- 各个区域中的静态文本
- 以编程方式更改各个区域中的文本
我不知道从哪里开始创建这样的东西。我从像 Paint.Net 这样的图形编辑器的角度来考虑它,我会在其中为每个元素创建图层。这可能是错误的思维方式,但这就是我的处境。
请记住,我是一个新手,所以你需要提供“耐心地向遭受头部创伤的孩子解释”的解释。
谢谢!
I've been learning some coding and have received some great pointers here, so I thought I'd ask about my current endeavor.
I'm currently experimenting with a WPF app and would like to try to create something like this (pardon the color scheme... I just threw this together):
The desired outcome is:
- Have a bordered area
- The bordered area needs a background image
- Programmatically changeable progress bar
- Static text in various areas
- Programmatically changeable text in various areas
I have no idea where to even begin on creating something like this. I'm thinking of it from the perspective of a graphics editor like Paint.Net where I'd create layers for each element. This may be the wrong way of thinking, but that's where I'm at.
Please remember I'm a novice, so you'll want to provide the "patiently explaining to a child who suffered head trauma" explanation.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你好,我做了一个小样本。
这是XAML代码:
这是我使用的背景图片:
Hello I have made a small sample.
Here are the XAML codes:
Here is the background picture I used: