window的换行和使用中英文资源是的换行

关于windows下换行


关键的是google  关键字 wpf findResource line break
1 使用场景
先从Resource中获取资源字符串,然后再进行format,这里的format是为了进行动态的对字符串进行改变,以传参数的形式。
问题来了,在资源中的
=====================================================================================资源字符
<sys:String x:Key="TaskDetailVM_ScriptNumWarn">There are {0} script files in this folder 
(including all sub-folders), are you sure to continue?\n\nClick 'OK' to continue and click 
'Cancel' to cancel the process.</sys:String>
=================================================================================应用带代码
if (System.Windows.Forms.MessageBox.Show(string.Format((string)App.Current.FindResource("TaskDetailVM_ScriptNumWarn"), tempCaseList.Count), (string)App.Current.FindResource("TaskDetailVM_Continue"), System.Windows.Forms.MessageBoxButtons.OKCancel, System.Windows.Forms.MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.OK)
                {
                    foreach (var c in tempCaseList)
                    {
                        Cases.Add(c);
                    }
                    RaisePropertyChanged(() => Cases);
                    saveCases();
                }
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值