C#WPF初学者 [英] C# WPF Beginner Here

查看:58
本文介绍了C#WPF初学者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计们!

我从老师那里得到了一个练习: 写一个程序来画一个明星。让用户通过文本框确定R,G和B值,这样你的程序就可以用任何颜色绘制星星了!

I got an exercise from my teacher which is: Write a program to draw a star. Let the user determine R, G and B values via text boxes so your program is able to draw the star in any color!

我有这个代码,它画了一个星星,但我不喜欢我不知道如何从TextBox中获取数字来代替R,G和B.

I have this code and it draws a star, but I don't know how to get the numbers from the TextBoxes to replace the R, G and B.

推荐答案

您知道如何使用DataBinding吗?
Do you know how to use DataBinding?


这篇关于C#WPF初学者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆