20 WPF格式化綁定數據

數據綁定回顧 見601頁。 數據轉換 使用StringFormat屬性 StringFormat屬性適用於顯示數字爲文本。 使用Binding對象的StringFormat屬性,可以將綁定對象的屬性轉化爲指定格式的文本: <TextBox Margin="5" Grid.Row="2" Grid.Column="1" Text="{Binding Path=UnitCost, StringFor
相關文章
相關標籤/搜索