[英].NET MAUI; Button font color bug?
So when I am using Button's, I get a weird result.所以当我使用 Button 时,我得到了一个奇怪的结果。 If I make a button or use the maui sample project, the font colorwill always be black.
如果我制作一个按钮或使用 maui 示例项目,字体颜色将始终为黑色。 So lets break it down:
那么让我们分解一下:
Am I missing something in my buttons?我的按钮中是否遗漏了什么? Does anybody else experience this?
还有其他人遇到过这个吗?
public MainPage()
{
Title = "Button test";
StackLayout stackLayout = new StackLayout { Margin = new Thickness(20) };
Label label = new Label()
{
Text = "Button test."
};
Button button = new Button
{
Text = "click here.",
};
stackLayout.Add(label);
stackLayout.Add(button);
Content = stackLayout;
}
That seems an issue that RadioButtonExtensions.UpdateTextColor applies to not only radiobutton but all the button.And as you can see here https://github.com/do.net/maui/pull/4998 .这似乎是 RadioButtonExtensions.UpdateTextColor 不仅适用于单选按钮而且适用于所有按钮的问题。正如您在此处看到的那样 https://github.com/do.net/maui/pull/4998 。 this issue will be fixed.
这个问题将得到解决。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.