![](/img/trans.png)
[英]How can I save values from a textbox (input == text) as Currency values in Sharepoint?
[英]How can I save text input when my textbox is in resourcedictionary?
我在解決方案資源管理器中有2個項目。 其中一個資源字典位於名為“ Themes”的文件夾中。 另一個項目設置為主啟動,其中包含MainWindow.xaml和MainWindow.xaml.cs。 我只是想知道是否可以保存將在資源字典中編碼的文本框中輸入的任何文本,並且在下次打開應用程序時仍保存在那里。代碼如下:
<TextBox telerik:PersistenceManager.StorageId="myText"
IsEnabled="{Binding IsEnabled}"
Text="{Binding Notes, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
AcceptsReturn="True"
TextWrapping="Wrap"
BorderThickness="0"
ScrollViewer.VerticalScrollBarVisibility="Auto"
Background="{x:Null}" Foreground="White" />
我試圖將我的resourcedictionary合並到MainWindow.xaml,但是當我在MainWindow.xaml.cs內部編寫代碼時仍然無法訪問文本框。
我應該怎么做? 我不知道該怎么辦。 我將不勝感激。
使用應用程序設置為用戶保留會話之間的數據。 請參閱管理應用程序設置(.NET) 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.