1
如何綁定我的TextBox
的文本屬性從源讀取,但它會將其值存儲到不同的目標? 比方說 我有一個文本框,這是債券的路徑在CollectionViewSource
wpf源碼和目標綁定在兩個不同的路徑
<Window>
<Window.Resources>
<CollectionViewSource Source="{Binding Source={StaticResource ProgramView}, Path='FK_LevelList_ProgramList'}" x:Key="LevelLookupView" />
</Window.Resources>
<TextBox Name="FeePerTermTextbox" Text="{Binding Source={StaticResource LevelLookupView}, Path='FeePerTerm', Mode=OneWay, StringFormat=c2}"/>
</Window>
當執行保存時,TextBox
的值將存儲到另一種模式是從CollectionViewSource
感謝
不同