![]() |
1
0
您需要在循环中添加一个readline:
但更好的方法是:
|
![]() |
2
0
您不需要在循环中更新“文本”—只需要在循环中添加text=sr.readline();这样可以避免while循环永远持续下去! 也就是说,您可以只使用file.readalllines()。- https://docs.microsoft.com/en-us/dotnet/api/system.io.file.readalllines?view=netframework-4.7.2 |
|
Sei · Avalonia/WPF将路由器传递到控制模板 5 月前 |
![]() |
Barta · WPF MVVM不更新视图 6 月前 |
![]() |
Denis Ivanov · WPF控件在属性更改时不会更新 6 月前 |
![]() |
codymanix · WPF:TextBlock周围可见小边框? 6 月前 |
![]() |
Nostromo · 来自背景对象的工具提示 10 月前 |
![]() |
Nuvolari · 从可观测集合添加/删除时出现对象处理异常 1 年前 |
![]() |
CCarter · 只能在设计器中DependencyObject的DependencyProperty上设置显示“Binding”的WPF ICommand DependencyProperties[重复] 1 年前 |
![]() |
Thern · 在UI线程(WPF)上的void方法中调用异步函数 1 年前 |