私が持っているとしましょう:
<TextBlock Text="{Binding MyString}"/>
public class AlanViewModel {
public string MyString {get; set;}
public TextBlock Control { get; set; } //How to bind this to the TextBlock control?
}
コントロールのインスタンスを ViewModel にバインドできますか、それともコード ビハインドのフープをジャンプして結合し続ける必要がありますか?
これが ViewModel を View に結合していることは知っていますが、それには正当な理由があります。