<?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: Bug in Button sample from Silverlight.Samples.Controls</title><link>http://forums.silverlight.net/forums/thread/3004.aspx</link><pubDate>Fri, 18 May 2007 19:24:46 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:3004</guid><dc:creator>StephenL</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/3004.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=3004</wfw:commentRss><description>&lt;p&gt;That did fix it.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Stephen&lt;/p&gt;</description></item><item><title>Re: Bug in Button sample from Silverlight.Samples.Controls</title><link>http://forums.silverlight.net/forums/thread/2973.aspx</link><pubDate>Fri, 18 May 2007 18:27:55 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:2973</guid><dc:creator>Vivek Dalvi</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/2973.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=2973</wfw:commentRss><description>&lt;p&gt;It seems one of the rectangle in button.xaml is not getting resized as part of UpdateLayout. I tried this changes and now it seems to work for me&lt;/p&gt;
&lt;p&gt;Declare member variable in button.cs&lt;/p&gt;&lt;font color="#2b91af" size="2"&gt;
&lt;p&gt;Rectangle&lt;/font&gt;&lt;font size="2"&gt; outlinehighlight;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;A&lt;/font&gt;&lt;font size="2"&gt;dd this line in constructor of button&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;
&lt;p&gt;outlinehighlight = FindName(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;outlineHighlight&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;) &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;as&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;Rectangle&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Update UpdateLayout function as follows...&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;
&lt;p&gt;outlinehighlight.Height = Height;&lt;/p&gt;
&lt;p&gt;outlinehighlight.Width = Width;&lt;/p&gt;
&lt;p&gt;outlinehighlight.RadiusX = outline.RadiusX;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Bug in Button sample from Silverlight.Samples.Controls</title><link>http://forums.silverlight.net/forums/thread/2940.aspx</link><pubDate>Fri, 18 May 2007 14:26:02 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:2940</guid><dc:creator>StephenL</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/2940.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=2940</wfw:commentRss><description>&lt;p&gt;I am using the button from the sample controls in the SDK ( See &lt;a href="http://silverlight.net/GetStarted/"&gt;http://silverlight.net/GetStarted/&lt;/a&gt;&amp;nbsp;) and found that for a small button (in my case Width = 25) it incorrectly gets mouse enter events when the mouse is far to the right of the button. Besides being annoying, it causes problems for me since I have the button on top of another control that then doesnt get the events it should. To see the bug add the following two lines to the Page.xaml file of the test app included with the controls. You should see the hand cursor over the entire green rectangle except for when the mouse is directly over the button. Because of the bug you will see the arrow cursor for a big distance to the right of the button as well.&lt;/p&gt;
&lt;p&gt;&amp;lt;Rectangle Canvas.Top=&amp;quot;30&amp;quot; Width=&amp;quot;150&amp;quot; Height=&amp;quot;50&amp;quot; Fill=&amp;quot;green&amp;quot; Cursor=&amp;quot;hand&amp;quot;/&amp;gt;&lt;br /&gt;&amp;lt;uicontrol:Button Canvas.Top=&amp;quot;30&amp;quot; Canvas.Left=&amp;quot;0&amp;quot; Text=&amp;quot;1&amp;quot; Click=&amp;quot;ClickHandler&amp;quot; Width=&amp;quot;25&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;I tried a few fixes on the button code but couldnt figure it out.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any ideas?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Stephen&lt;/p&gt;</description></item></channel></rss>