<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Programming with .NET - General</title><link>http://forums.silverlight.net/forums/17.aspx</link><description>General discussions around authoring Silverlight .NET applications.</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: How to bind a Binding or a ValueConverter?</title><link>http://forums.silverlight.net/forums/thread/225289.aspx</link><pubDate>Wed, 27 May 2009 16:20:31 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:225289</guid><dc:creator>davidezordan</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/225289.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=225289</wfw:commentRss><description>&lt;p&gt;Have you downloaded Prism? &lt;a href="http://compositewpf.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=23450"&gt;http://compositewpf.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=23450&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After installed, you can find some examples in the &amp;quot;QuickStart&amp;quot; folder.&lt;/p&gt;</description></item><item><title>Re: How to bind a Binding or a ValueConverter?</title><link>http://forums.silverlight.net/forums/thread/221767.aspx</link><pubDate>Tue, 19 May 2009 16:26:08 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:221767</guid><dc:creator>FuryDiamond</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/221767.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=221767</wfw:commentRss><description>&lt;p&gt;You can bind the object (rather than the individual values) and have the converter parse the needed values.&lt;/p&gt;</description></item><item><title>Re: How to bind a Binding or a ValueConverter?</title><link>http://forums.silverlight.net/forums/thread/221750.aspx</link><pubDate>Tue, 19 May 2009 15:53:03 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:221750</guid><dc:creator>EliteMike</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/221750.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=221750</wfw:commentRss><description>&lt;p&gt;Anytime i need extra data in the value convertor, I use the converterparameter and pass an object in. &lt;/p&gt;</description></item><item><title>Re: How to bind a Binding or a ValueConverter?</title><link>http://forums.silverlight.net/forums/thread/221696.aspx</link><pubDate>Tue, 19 May 2009 14:12:08 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:221696</guid><dc:creator>stefancr@scip.be</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/221696.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=221696</wfw:commentRss><description>&lt;p&gt;Thanks Davide.I know all the basics about binding, valueconverters and static resources, but I&amp;#39;m looking for a way to pass extra data to a value converter. So I was hoping that there would a way to bind a Binding object or a ValueConverter object.&lt;/p&gt;&lt;p&gt;e.g. a Binding object and a ValueConverter object are created in run-time and set in the code behind of the XAML file.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;var myConverter = new ComboBoxLookupValueConverter(customers);&lt;br /&gt; customerCombo.Binding.Converter = myConverter;&lt;br /&gt;&lt;br /&gt;var myBinding = new Binding()&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Source = customer,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Path = new PropertyPath(&amp;quot;CustomerId&amp;quot;),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Converter = new ComboBoxLookupValueConverter(customers)&lt;br /&gt;&amp;nbsp;&amp;nbsp; };&lt;/p&gt;&lt;p&gt;customerCombo.Binding = myBinding ; &lt;/p&gt;&lt;p&gt;This works fine but I&amp;#39;m using a ViewModel so I would like to bind these objects via public properties. Something like&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;dataControls:DataFormComboBoxField &lt;br /&gt;&amp;nbsp;&amp;nbsp; Binding=&amp;quot;{Binding CustomerId, Mode=TwoWay, Converter={Binding MyConverter}}&amp;quot;&lt;br /&gt;&amp;lt;/dataControls:DataFormComboBoxField&amp;gt;&lt;br /&gt;&lt;br /&gt;Or &lt;br /&gt;&lt;br /&gt;&amp;lt;dataControls:DataFormComboBoxField &lt;br /&gt;&amp;nbsp;&amp;nbsp; Binding=&amp;quot;{Binding MyBindingWithConverter}&amp;quot;&lt;br /&gt;&amp;lt;/dataControls:DataFormComboBoxField&amp;gt; &lt;/p&gt;&lt;p&gt;Is there a way to do this? Or could I use static resources and use bindings in these resources? Or has anyone created a derived Binding object which has dependency properties for extra parameters?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: How to bind a Binding or a ValueConverter?</title><link>http://forums.silverlight.net/forums/thread/221168.aspx</link><pubDate>Mon, 18 May 2009 13:06:24 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:221168</guid><dc:creator>davidezordan</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/221168.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=221168</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;these articles can help you:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Value converters - &lt;a href="http://www.jeff.wilcox.name/2008/07/visibility-type-converter/"&gt;http://www.jeff.wilcox.name/2008/07/visibility-type-converter/&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Static resources - &lt;a href="http://skysigal.xact-solutions.com/Blog/tabid/427/EntryId/799/Silverlight-DataBinding-to-a-static-resource.aspx"&gt;http://skysigal.xact-solutions.com/Blog/tabid/427/EntryId/799/Silverlight-DataBinding-to-a-static-resource.aspx&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;</description></item><item><title>How to bind a Binding or a ValueConverter?</title><link>http://forums.silverlight.net/forums/thread/221134.aspx</link><pubDate>Mon, 18 May 2009 11:29:28 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:221134</guid><dc:creator>stefancr@scip.be</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/221134.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=221134</wfw:commentRss><description>&lt;p&gt;I’m always struggling with ValueConverters because the ConvertParameter is not a dependency property and so it doesn’t support databinding.&lt;br /&gt;&lt;br /&gt;I was trying to solve my problem by creating a derived ValueConverter with some extra properties. The ValueConverter is created in code (in a ViewModel class) and the extra properties are initialized.&lt;br /&gt;&lt;br /&gt;Because I’m using the M-V-VM pattern I would like to bind the new converter to an existing binding or create a binding in run-time and bind it to a UI element. Something like this:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;dataControls:DataFormComboBoxField &lt;br /&gt;&amp;nbsp;&amp;nbsp; Binding=&amp;quot;{Binding Id, Mode=TwoWay, Convert={Binding MyConverter}}&amp;quot;&lt;br /&gt;&amp;lt;/dataControls:DataFormComboBoxField&amp;gt;&lt;br /&gt;&lt;br /&gt;Or &lt;br /&gt;&lt;br /&gt;&amp;lt;dataControls:DataFormComboBoxField &lt;br /&gt;&amp;nbsp;&amp;nbsp; Binding=&amp;quot;{Binding MyBindingWithConverter}&amp;quot;&lt;br /&gt;&amp;lt;/dataControls:DataFormComboBoxField&amp;gt;&lt;br /&gt;&lt;br /&gt;Is there a way to bind a Binding or a ValueConverter in XAML? Can binding be used in static resources? &lt;br /&gt;&lt;br /&gt;All tips and ideas are appreciated.&lt;br /&gt;&lt;br /&gt;Stefan&lt;/p&gt;</description></item></channel></rss>