canton7 / Stylet

A very lightweight but powerful ViewModel-First MVVM framework for WPF for .NET Framework and .NET Core, inspired by Caliburn.Micro.
MIT License
995 stars 144 forks source link

Chinese garbled characters #392

Closed Ann520 closed 5 months ago

Ann520 commented 5 months ago

In XAML documents, different writing styles will display different content

屏幕截图 2024-06-17 153037 As shown in the figure, the second content displays an error and is not in Chinese

canton7 commented 5 months ago

I don't think this is anything to do with Stylet? I suspect you will have the same issue in a plain WPF project without Stylet.

Ann520 commented 5 months ago

抱歉,我刚刚在项目里把stylet删了,又显示正常了,如图所示,我的stylet版本是1.3.4,.NET4.5.2

I hope you can try multiple times The code is as follows:                 <Label             Grid.Row="7"             Grid.Column="0"             Content="直门" />         <TextBox             Grid.Row="7"             Grid.Column="1"             Text="直门-_" />

------------------ 原始邮件 ------------------ 发件人: "Antony @.>; 发送时间: 2024年6月17日(星期一) 下午3:46 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [canton7/Stylet] Chinese garbled characters (Issue #392)

I don't think this is anything to do with Style? I suspect you will have the same issue in a plain WPF project without Stylet.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

canton7 commented 5 months ago

Stylet does not do anything which might affect how a Label or TextBox works. I can't see how this can possibly be a problem with Stylet.

Ann520 commented 5 months ago

抱歉,我已经找到原因了,是metro引用资源文件的原因,感谢你的耐心回答~

------------------ 原始邮件 ------------------ 发件人: "Antony @.>; 发送时间: 2024年6月17日(星期一) 下午4:35 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [canton7/Stylet] Chinese garbled characters (Issue #392)

Stylet does not do anything which might affect how a Label or TextBox works. I can't see how this can possibly be a problem with Stylet.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

canton7 commented 5 months ago

I'm glad you fixed it!