<?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: Custom button ovverrides OnClick</title><link>http://forums.silverlight.net/forums/thread/239659.aspx</link><pubDate>Tue, 30 Jun 2009 12:20:48 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:239659</guid><dc:creator>MurDoGG</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/239659.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=239659</wfw:commentRss><description>&lt;p&gt;Thx for your response, think i have found a possibilty to do what i want. I i think i don&amp;#39;t need t override OnClick. I inherited from Button and add a property, which i set in Constructor. And in the RoutetdEventHandler i get this property and make my choice what to do.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Perhaps, but i don&amp;#39;t rely know, the Action&amp;lt;T&amp;gt; class could help in this scenarios?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Custom button ovverrides OnClick</title><link>http://forums.silverlight.net/forums/thread/239639.aspx</link><pubDate>Tue, 30 Jun 2009 11:52:29 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:239639</guid><dc:creator>jay nanavati</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/239639.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=239639</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Create a custom control that inherits from Button and overrides its Click event.&lt;/p&gt;&lt;p&gt;for creating custom control:&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.silverlightshow.net/items/Creating-a-Silverlight-Custom-Control-The-Basics.aspx"&gt;&amp;nbsp;http://www.silverlightshow.net/items/Creating-a-Silverlight-Custom-Control-The-Basics.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;for creating custom event args:&lt;/p&gt;&lt;a href="http://silverlight.net/forums/t/7756.aspx"&gt;http://silverlight.net/forums/t/7756.aspx&lt;/a&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Custom button ovverrides OnClick</title><link>http://forums.silverlight.net/forums/thread/239634.aspx</link><pubDate>Tue, 30 Jun 2009 11:34:31 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:239634</guid><dc:creator>MurDoGG</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/239634.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=239634</wfw:commentRss><description>&lt;p&gt;Hi guys,&lt;/p&gt;&lt;p&gt;&amp;nbsp; I generate buttons in code behind, don&amp;#39;t know what to preform at develope time so i have to choose at runtime. So my idea was to create a new button control inherits the UIElement.Button and override OnClick event with my own EventHandlerArguments, so i can pass data to the event handler and choose there at runtime what to do, dependent at the data in my own EventHandlerArguments. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Have somebody i idea how to implement or know a best practise to do what i want. Use onClick event with my own EventArgs?!&lt;/p&gt;&lt;p&gt;Thanks for your help.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Mfg&amp;nbsp;&lt;/p&gt;&lt;p&gt;MurDoGG &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>