<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Quick WPF Tip: How to bind to WPF application resources and settings?</title>
	<atom:link href="http://khason.net/blog/quick-wpf-tip-how-to-bind-to-wpf-application-resources-and-settings/feed/" rel="self" type="application/rss+xml" />
	<link>http://khason.net/blog/quick-wpf-tip-how-to-bind-to-wpf-application-resources-and-settings/</link>
	<description>Take care of the sense, and the sounds will take care of themselves.</description>
	<lastBuildDate>Sun, 14 Mar 2010 23:34:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Joe</title>
		<link>http://khason.net/blog/quick-wpf-tip-how-to-bind-to-wpf-application-resources-and-settings/comment-page-1/#comment-1328</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Thu, 01 Jan 2009 08:45:23 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/quick-wpf-tip-how-to-bind-to-wpf-application-resources-and-settings/#comment-1328</guid>
		<description>&lt;p&gt;Great stuff.&lt;/p&gt;
&lt;p&gt;On saving the app location - you might want to do a multi-binding with the Screen resolution just in case the user switches from a multi-monitor set-up to a single monitor and the app sits off the screen somewhere.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Great stuff.</p>
<p>On saving the app location &#8211; you might want to do a multi-binding with the Screen resolution just in case the user switches from a multi-monitor set-up to a single monitor and the app sits off the screen somewhere.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://khason.net/blog/quick-wpf-tip-how-to-bind-to-wpf-application-resources-and-settings/comment-page-1/#comment-1327</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Thu, 01 Jan 2009 08:45:22 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/quick-wpf-tip-how-to-bind-to-wpf-application-resources-and-settings/#comment-1327</guid>
		<description>&lt;p&gt;This is a great example of how to bind to settings, but unfortunately it is far from the best way to save and restore your window placement.&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_new&quot; href=&quot;http://msdn2.microsoft.com/en-us/library/aa972163.aspx&quot; rel=&quot;nofollow&quot;&gt;msdn2.microsoft.com/.../aa972163.aspx&lt;/a&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This is a great example of how to bind to settings, but unfortunately it is far from the best way to save and restore your window placement.</p>
<p><a rel="nofollow" target="_new" href="http://msdn2.microsoft.com/en-us/library/aa972163.aspx" rel="nofollow">msdn2.microsoft.com/&#8230;/aa972163.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tamir Khason</title>
		<link>http://khason.net/blog/quick-wpf-tip-how-to-bind-to-wpf-application-resources-and-settings/comment-page-1/#comment-1326</link>
		<dc:creator>Tamir Khason</dc:creator>
		<pubDate>Thu, 01 Jan 2009 08:45:20 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/quick-wpf-tip-how-to-bind-to-wpf-application-resources-and-settings/#comment-1326</guid>
		<description>&lt;p&gt;Andrew, this is only sample how to do it. It is not final implementation. However this is the way how to use application settings and resources by using WPF binding&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Andrew, this is only sample how to do it. It is not final implementation. However this is the way how to use application settings and resources by using WPF binding</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WPF Certification Study Guide « Project Files</title>
		<link>http://khason.net/blog/quick-wpf-tip-how-to-bind-to-wpf-application-resources-and-settings/comment-page-1/#comment-1325</link>
		<dc:creator>WPF Certification Study Guide « Project Files</dc:creator>
		<pubDate>Thu, 01 Jan 2009 08:45:19 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/quick-wpf-tip-how-to-bind-to-wpf-application-resources-and-settings/#comment-1325</guid>
		<description>&lt;p&gt;Pingback from &#160;WPF Certification Study Guide &laquo; Project Files&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Pingback from &nbsp;WPF Certification Study Guide &amp;laquo; Project Files</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tom103</title>
		<link>http://khason.net/blog/quick-wpf-tip-how-to-bind-to-wpf-application-resources-and-settings/comment-page-1/#comment-1324</link>
		<dc:creator>tom103</dc:creator>
		<pubDate>Thu, 01 Jan 2009 08:45:18 +0000</pubDate>
		<guid isPermaLink="false">http://khason.net/blog/quick-wpf-tip-how-to-bind-to-wpf-application-resources-and-settings/#comment-1324</guid>
		<description>&lt;p&gt;This syntax for binding to settings is quite awkward, so I wrote the following class :&lt;/p&gt;
&lt;p&gt;-----------------------------------------------------&lt;/p&gt;
&lt;p&gt; &#160; &#160;public class SettingBindingExtension : Binding&lt;/p&gt;
&lt;p&gt; &#160; &#160;{&lt;/p&gt;
&lt;p&gt; &#160; &#160; &#160; &#160;public SettingBindingExtension()&lt;/p&gt;
&lt;p&gt; &#160; &#160; &#160; &#160;{&lt;/p&gt;
&lt;p&gt; &#160; &#160; &#160; &#160; &#160; &#160;Initialize();&lt;/p&gt;
&lt;p&gt; &#160; &#160; &#160; &#160;}&lt;/p&gt;
&lt;p&gt; &#160; &#160; &#160; &#160;public SettingBindingExtension(string path)&lt;/p&gt;
&lt;p&gt; &#160; &#160; &#160; &#160; &#160; &#160;:base(path)&lt;/p&gt;
&lt;p&gt; &#160; &#160; &#160; &#160;{&lt;/p&gt;
&lt;p&gt; &#160; &#160; &#160; &#160; &#160; &#160;Initialize();&lt;/p&gt;
&lt;p&gt; &#160; &#160; &#160; &#160;}&lt;/p&gt;
&lt;p&gt; &#160; &#160; &#160; &#160;private void Initialize()&lt;/p&gt;
&lt;p&gt; &#160; &#160; &#160; &#160;{&lt;/p&gt;
&lt;p&gt; &#160; &#160; &#160; &#160; &#160; &#160;this.Source = Properties.Settings.Default;&lt;/p&gt;
&lt;p&gt; &#160; &#160; &#160; &#160; &#160; &#160;this.Mode = BindingMode.TwoWay;&lt;/p&gt;
&lt;p&gt; &#160; &#160; &#160; &#160;}&lt;/p&gt;
&lt;p&gt; &#160; &#160;}&lt;/p&gt;
&lt;p&gt;-----------------------------------------------------&lt;/p&gt;
&lt;p&gt;You can use it like this :&lt;/p&gt;
&lt;p&gt;-----------------------------------------------------&lt;/p&gt;
&lt;p&gt;&lt;Window x:Class=&quot;UserSettings.Window1&quot;&lt;/p&gt;
&lt;p&gt; &#160; &#160;xmlns=&quot;&lt;a rel=&quot;nofollow&quot; target=&quot;_new&quot; href=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;&quot; rel=&quot;nofollow&quot;&gt;schemas.microsoft.com/.../presentation&quot;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &#160; &#160;xmlns:x=&quot;&lt;a rel=&quot;nofollow&quot; target=&quot;_new&quot; href=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;&quot; rel=&quot;nofollow&quot;&gt;schemas.microsoft.com/.../xaml&quot;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &#160; &#160;xmlns:my=&quot;clr-namespace:WpfApplication1&quot;&lt;/p&gt;
&lt;p&gt; &#160; &#160;WindowStartupLocation=&quot;Manual&quot;&lt;/p&gt;
&lt;p&gt; &#160; &#160;Title=&quot;Window1&quot;&lt;/p&gt;
&lt;p&gt; &#160; &#160;Height=&quot;{SettingBinding Height}&quot;&lt;/p&gt;
&lt;p&gt; &#160; &#160;Width=&quot;{SettingBinding Width}&quot;&lt;/p&gt;
&lt;p&gt; &#160; &#160;Left=&quot;{SettingBinding Left}&quot;&lt;/p&gt;
&lt;p&gt; &#160; &#160;Top=&quot;{SettingBinding Top}&quot;&gt;&lt;/p&gt;
&lt;p&gt;-----------------------------------------------------&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This syntax for binding to settings is quite awkward, so I wrote the following class :</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p> &nbsp; &nbsp;public class SettingBindingExtension : Binding</p>
<p> &nbsp; &nbsp;{</p>
<p> &nbsp; &nbsp; &nbsp; &nbsp;public SettingBindingExtension()</p>
<p> &nbsp; &nbsp; &nbsp; &nbsp;{</p>
<p> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Initialize();</p>
<p> &nbsp; &nbsp; &nbsp; &nbsp;}</p>
<p> &nbsp; &nbsp; &nbsp; &nbsp;public SettingBindingExtension(string path)</p>
<p> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:base(path)</p>
<p> &nbsp; &nbsp; &nbsp; &nbsp;{</p>
<p> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Initialize();</p>
<p> &nbsp; &nbsp; &nbsp; &nbsp;}</p>
<p> &nbsp; &nbsp; &nbsp; &nbsp;private void Initialize()</p>
<p> &nbsp; &nbsp; &nbsp; &nbsp;{</p>
<p> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;this.Source = Properties.Settings.Default;</p>
<p> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;this.Mode = BindingMode.TwoWay;</p>
<p> &nbsp; &nbsp; &nbsp; &nbsp;}</p>
<p> &nbsp; &nbsp;}</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>You can use it like this :</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>&lt;Window x:Class=&quot;UserSettings.Window1&quot;</p>
<p> &nbsp; &nbsp;xmlns=&quot;<a rel="nofollow" target="_new" href="http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;" rel="nofollow">schemas.microsoft.com/&#8230;/presentation&quot;</a></p>
<p> &nbsp; &nbsp;xmlns:x=&quot;<a rel="nofollow" target="_new" href="http://schemas.microsoft.com/winfx/2006/xaml&quot;" rel="nofollow">schemas.microsoft.com/&#8230;/xaml&quot;</a></p>
<p> &nbsp; &nbsp;xmlns:my=&quot;clr-namespace:WpfApplication1&quot;</p>
<p> &nbsp; &nbsp;WindowStartupLocation=&quot;Manual&quot;</p>
<p> &nbsp; &nbsp;Title=&quot;Window1&quot;</p>
<p> &nbsp; &nbsp;Height=&quot;{SettingBinding Height}&quot;</p>
<p> &nbsp; &nbsp;Width=&quot;{SettingBinding Width}&quot;</p>
<p> &nbsp; &nbsp;Left=&quot;{SettingBinding Left}&quot;</p>
<p> &nbsp; &nbsp;Top=&quot;{SettingBinding Top}&quot;&gt;</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
