Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
progessBar があるとしましょう。カウンターを使用せずにバーの進行状況を知るにはどうすればよいでしょうか。
研究のためだけに。
MVVM を使用した WPF:
あなたのプロパティをViewModelのプロパティにDatabindingバインドするためにあなたを使用してくださいProgressBarValue
Databinding
ProgressBar
Value
MVVM とFormsのない WPF :
ProgressBar次のように(たとえば、名前でProgressBar1)アクセスします。
ProgressBar1
var currentvalue = ProgressBar1.Value;