Settings aren't saving in WPF?
Posted
by JOSH
on Stack Overflow
See other posts from Stack Overflow
or by JOSH
Published on 2010-04-05T04:27:14Z
Indexed on
2010/04/05
4:33 UTC
Read the original article
Hit count: 288
I'm using the registry Settings.settings thingymabob
I'm doing the following in my XAML:
<TextBox x:Name="textBoxUsername"
Text="{Binding Source={x:Static prop:Settings.Default},
Path=Username, Mode=TwoWay}"></TextBox>
This is loading the settings fine. Now in my Window's Closing
event I have the following:
Properties.Settings.Default.Save();
But it wont save settings?
© Stack Overflow or respective owner