How can I set my TextBox text as the value in the App.config file
my App.config:
<appSettings>
<add key="Hours" value="12"/>
<add key="Minutes" value="00"/>
</appSettings>
How can set the value of Minutes
as the TextBox text and make it update whenever the value of Minutes
update
<TextBox x:Name="Minutes_Top" Text="00"/>
I tried adding this Line in the top:
xmlns:properties="clr-namespace:_10KHours.Properties"
And add this line in the TextBox
Text="{Binding Source={x:Static properties:Settings.Default}, Mode=OneWay}"
But it didn't work, the text is "_10KHours.Properties.Settings"
I want that the text In Minutes_Top will be 00 like the value in the App.config
and change when the value change (when The value in the App.config change or the text change so the App.config value will be change)