<?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>Silverlight Controls and Silverlight Toolkit</title><link>http://forums.silverlight.net/forums/35.aspx</link><description>Discussions around using and developing Silverlight controls and the Silverlight Toolkit</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Re: Re: Re: Theming. Two Button Styles. How?</title><link>http://forums.silverlight.net/forums/thread/241085.aspx</link><pubDate>Thu, 02 Jul 2009 23:06:49 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:241085</guid><dc:creator>maxima120</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/241085.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=241085</wfw:commentRss><description>&lt;p&gt;would be there another suggestions? Am I the only one who need it?&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Theming. Two Button Styles. How?</title><link>http://forums.silverlight.net/forums/thread/240935.aspx</link><pubDate>Thu, 02 Jul 2009 18:05:05 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:240935</guid><dc:creator>maxima120</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/240935.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=240935</wfw:commentRss><description>&lt;p&gt;Update. I could manage to load my new Button1 type but&amp;nbsp;ImplicitStyleManager still doesnt work. No exceptions just no effect.&lt;/p&gt;
&lt;p&gt;element.SetValue(ExternalResourceDictionaryProperty, value); &amp;lt;-- this doesnt make visual difference&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Theming. Two Button Styles. How?</title><link>http://forums.silverlight.net/forums/thread/240924.aspx</link><pubDate>Thu, 02 Jul 2009 17:28:16 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:240924</guid><dc:creator>maxima120</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/240924.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=240924</wfw:commentRss><description>&lt;p&gt;OK, it doesnt work out of the box, ImplicitStyleManager throws silent exception &amp;quot;Invalid attribute value local:Button1 for property TargetType&amp;quot;&lt;/p&gt;
&lt;p&gt;It seems I need to roll the sleeves and dig into the manager code to make it load my types somehow... &lt;/p&gt;</description></item><item><title>Re: Re: Theming. Two Button Styles. How?</title><link>http://forums.silverlight.net/forums/thread/240903.aspx</link><pubDate>Thu, 02 Jul 2009 16:57:14 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:240903</guid><dc:creator>maxima120</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/240903.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=240903</wfw:commentRss><description>&lt;p&gt;it makes sense. I am going to test and report.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Should work I suppose&amp;nbsp;(if toolkit manager will not override my efforts :))&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank you!&lt;/p&gt;</description></item><item><title>Re: Theming. Two Button Styles. How?</title><link>http://forums.silverlight.net/forums/thread/240894.aspx</link><pubDate>Thu, 02 Jul 2009 16:45:10 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:240894</guid><dc:creator>Ken Tucker</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/240894.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=240894</wfw:commentRss><description>Maybe create a class named OtherButtonStyle and have it inherit from button.&amp;nbsp; Add a theme in this type.&amp;nbsp; Use an OtherButtonStyle control in your form instead of a button where you need the other style.&amp;nbsp; (untested)&lt;br /&gt;</description></item><item><title>Theming. Two Button Styles. How?</title><link>http://forums.silverlight.net/forums/thread/240801.aspx</link><pubDate>Thu, 02 Jul 2009 13:03:34 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:240801</guid><dc:creator>maxima120</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/240801.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=240801</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have few different styles for buttons. Say ButtonStyle1 and ButtonStyle2. And I use them &amp;lt;Button Style=&amp;quot;{StaticResource ButtonStyle1...&lt;/p&gt;
&lt;p&gt;I would like to add theming to my application. So the ButtonStyle1 could be of different colours.&lt;/p&gt;
&lt;p&gt;I could manage to use implicit style manager in a prototype&amp;nbsp;to apply different themes at runtime using code:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ImplicitStyleManager.SetResourceDictionaryUri(this, uri);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ImplicitStyleManager.SetApplyMode(this, ImplicitStylesApplyMode.Auto);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ImplicitStyleManager.Apply(this);&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However the manager applies&amp;nbsp;by type. If there is a style with target type = Button it will be applied to a button control. &lt;/p&gt;
&lt;p&gt;How can I use toolkit theming to have different styles within different themes. Say ThemeOrange.ButtonStyle1 and 2; ThemeGreen.ButtonStyle1 and 2&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>