first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

WPF XAML: Reading Properties.Settings Data

<Window x­mlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" x­mlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

x­mlns:c=&quot;clr-namespace:My.WpfApp&quot;

x:Class=&quot;My.WpfApp.Client&quot;

Name=&quot;MyWindow&quot;

> <Window.Resources> <ObjectDataProvider x:Key="appSettings" ObjectType="{x:Type c:Properties.Settings}"> </ObjectDataProvider> </Window.Resources>

&lt;Grid&gt;
    &lt;TextBlock
        Text=&quot;{Binding Source={StaticResource appSettings}, Path=Default.Test}&quot;
        /&gt;
&lt;/Grid&gt;

</Window>

mod date: 2007-05-15T19:36:01.000Z