<?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"
	>
<channel>
	<title>Comments on: Silverlight 2 (beta1) Known Issues and workarounds (if any)</title>
	<atom:link href="http://michaelsync.net/2008/04/01/silverlight-2-beta1-known-issues-and-workarounds-if-any/feed" rel="self" type="application/rss+xml" />
	<link>http://michaelsync.net/2008/04/01/silverlight-2-beta1-known-issues-and-workarounds-if-any</link>
	<description>Sharing our knowledge</description>
	<pubDate>Wed, 08 Oct 2008 00:07:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: DrGriff</title>
		<link>http://michaelsync.net/2008/04/01/silverlight-2-beta1-known-issues-and-workarounds-if-any#comment-107368</link>
		<dc:creator>DrGriff</dc:creator>
		<pubDate>Mon, 22 Sep 2008 16:42:37 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/04/01/silverlight-2-beta1-known-issues-and-workarounds-if-any#comment-107368</guid>
		<description>Using 2 beta 2

My main page contains a TabControl.  The TabControl has a single customer UserControl (as TabItem) loaded.  This UserControl has two ListBoxes.  The User selects an item in ListBoxA and ListBoxB populates.  The user then clicks an item on ListBoxB and the page loads a new customer control as a tabItem in the TabControl.  Only, it doesn't, it errors.

The new custom control can be loaded directly and it loads fine, but if loaded as the result of this list box being selected, then it falls over.

Am more than happy to share my project if that helps...

Error is as follows:

Message: Unhandled Error in Silverlight 2 Application Value does not fall within the expected range.   at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
   at System.Windows.DependencyObject.MethodPack(IntPtr objectPtr, String methodName, Object[] rawData)
   at System.Windows.DependencyObject.MethodPack(String methodName, Object[] rawData)
   at System.Windows.UIElement.TransformToVisual(UIElement visual)
   at System.Windows.Controls.ListBox.IsOnCurrentPage(Object item, Rect&#38; itemsHostRect, Rect&#38; listBoxItemRect)
   at System.Windows.Controls.ListBox.ScrollIntoView(Object item)
   at System.Windows.Controls.ListBox.NotifyListItemClicked(ListBoxItem listBoxItem)
   at System.Windows.Controls.ListBoxItem.OnMouseLeftButtonDown(MouseButtonEventArgs e)
   at System.Windows.Controls.ListBoxItem.b__0(Object sender, MouseButtonEventArgs e)
   at System.Windows.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)
Line: 1
Char: 1
Code: 0
URI: http://localhost:3082/MyApplicationWeb/MyApplicationTestPage.aspx</description>
		<content:encoded><![CDATA[<p>Using 2 beta 2</p>
<p>My main page contains a TabControl.  The TabControl has a single customer UserControl (as TabItem) loaded.  This UserControl has two ListBoxes.  The User selects an item in ListBoxA and ListBoxB populates.  The user then clicks an item on ListBoxB and the page loads a new customer control as a tabItem in the TabControl.  Only, it doesn&#8217;t, it errors.</p>
<p>The new custom control can be loaded directly and it loads fine, but if loaded as the result of this list box being selected, then it falls over.</p>
<p>Am more than happy to share my project if that helps&#8230;</p>
<p>Error is as follows:</p>
<p>Message: Unhandled Error in Silverlight 2 Application Value does not fall within the expected range.   at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)<br />
   at System.Windows.DependencyObject.MethodPack(IntPtr objectPtr, String methodName, Object[] rawData)<br />
   at System.Windows.DependencyObject.MethodPack(String methodName, Object[] rawData)<br />
   at System.Windows.UIElement.TransformToVisual(UIElement visual)<br />
   at System.Windows.Controls.ListBox.IsOnCurrentPage(Object item, Rect&amp; itemsHostRect, Rect&amp; listBoxItemRect)<br />
   at System.Windows.Controls.ListBox.ScrollIntoView(Object item)<br />
   at System.Windows.Controls.ListBox.NotifyListItemClicked(ListBoxItem listBoxItem)<br />
   at System.Windows.Controls.ListBoxItem.OnMouseLeftButtonDown(MouseButtonEventArgs e)<br />
   at System.Windows.Controls.ListBoxItem.b__0(Object sender, MouseButtonEventArgs e)<br />
   at System.Windows.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)<br />
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)<br />
Line: 1<br />
Char: 1<br />
Code: 0<br />
URI: <a href="http://localhost:3082/MyApplicationWeb/MyApplicationTestPage.aspx" rel="nofollow">http://localhost:3082/MyApplicationWeb/MyApplicationTestPage.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lilach</title>
		<link>http://michaelsync.net/2008/04/01/silverlight-2-beta1-known-issues-and-workarounds-if-any#comment-98207</link>
		<dc:creator>lilach</dc:creator>
		<pubDate>Sun, 31 Aug 2008 08:55:26 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/04/01/silverlight-2-beta1-known-issues-and-workarounds-if-any#comment-98207</guid>
		<description>I have a strange problem with textboxes in silverlight 2 beta2.
When I do textbox.Focus() the caret dissapears and I even clicking on the textbox with the mouse doesn't get it back. It does show if I switch between applications.

any idea???</description>
		<content:encoded><![CDATA[<p>I have a strange problem with textboxes in silverlight 2 beta2.<br />
When I do textbox.Focus() the caret dissapears and I even clicking on the textbox with the mouse doesn&#8217;t get it back. It does show if I switch between applications.</p>
<p>any idea???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lilach</title>
		<link>http://michaelsync.net/2008/04/01/silverlight-2-beta1-known-issues-and-workarounds-if-any#comment-98206</link>
		<dc:creator>lilach</dc:creator>
		<pubDate>Sun, 31 Aug 2008 08:55:25 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/04/01/silverlight-2-beta1-known-issues-and-workarounds-if-any#comment-98206</guid>
		<description>I have a strange problem with textboxes in silverlight 2 beta2.
When I do textbox.Focus() the caret dissapears and I even clicking on the textbox with the mouse doesn't get it back. It does show if I switch between applications.

any idea???</description>
		<content:encoded><![CDATA[<p>I have a strange problem with textboxes in silverlight 2 beta2.<br />
When I do textbox.Focus() the caret dissapears and I even clicking on the textbox with the mouse doesn&#8217;t get it back. It does show if I switch between applications.</p>
<p>any idea???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Sync</title>
		<link>http://michaelsync.net/2008/04/01/silverlight-2-beta1-known-issues-and-workarounds-if-any#comment-85206</link>
		<dc:creator>Michael Sync</dc:creator>
		<pubDate>Wed, 23 Jul 2008 02:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/04/01/silverlight-2-beta1-known-issues-and-workarounds-if-any#comment-85206</guid>
		<description>Hello Neeta,

Please use Silverlight 2 beta2. SL2b1 is obsolete now.</description>
		<content:encoded><![CDATA[<p>Hello Neeta,</p>
<p>Please use Silverlight 2 beta2. SL2b1 is obsolete now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neeta</title>
		<link>http://michaelsync.net/2008/04/01/silverlight-2-beta1-known-issues-and-workarounds-if-any#comment-85113</link>
		<dc:creator>Neeta</dc:creator>
		<pubDate>Tue, 22 Jul 2008 19:45:44 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/04/01/silverlight-2-beta1-known-issues-and-workarounds-if-any#comment-85113</guid>
		<description>Hi,
Another issue with Silverlight 2 beta 1 is that it is not Firefox 2 compatible.
I am using Firefox 2.0.0.16 an dfacing many issues.

One of the strangest thing is the silverlight control works in my test application but not the actual application
(I am using silverlight control in my ASP .Net web site)

Any help will be appreciated

Thanks,
Neeta</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Another issue with Silverlight 2 beta 1 is that it is not Firefox 2 compatible.<br />
I am using Firefox 2.0.0.16 an dfacing many issues.</p>
<p>One of the strangest thing is the silverlight control works in my test application but not the actual application<br />
(I am using silverlight control in my ASP .Net web site)</p>
<p>Any help will be appreciated</p>
<p>Thanks,<br />
Neeta</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sucata Mihnea</title>
		<link>http://michaelsync.net/2008/04/01/silverlight-2-beta1-known-issues-and-workarounds-if-any#comment-69224</link>
		<dc:creator>Sucata Mihnea</dc:creator>
		<pubDate>Fri, 06 Jun 2008 12:38:10 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/04/01/silverlight-2-beta1-known-issues-and-workarounds-if-any#comment-69224</guid>
		<description>Hi everyone,

I'm not sure if this issue was notified before, but:

Step 1. Create one control C1 that contains a check box.
Step 2. Inside the main page for example, create an instance of C1 on Loaded, then execute the following code on a button click:

LayoutRoot.Children.Clear()
LayoutRoot.Children.Add(instanceOfC1)

Step 3. Run the application. 
Step 4. Click the button to add the control.
Step 5. Check the check box inside instanceOfC1
Step 6. Click the button again. The same instance will be re-added to LayoutRoot.Children.
Step 7. Try to uncheck the check box.

Result -&#62; the state remains checked, but the check box has actually become unchecked. 

Enabled/Disabled items also behave awkwardly in this setup.

Thanks,
Sucata Mihnea</description>
		<content:encoded><![CDATA[<p>Hi everyone,</p>
<p>I&#8217;m not sure if this issue was notified before, but:</p>
<p>Step 1. Create one control C1 that contains a check box.<br />
Step 2. Inside the main page for example, create an instance of C1 on Loaded, then execute the following code on a button click:</p>
<p>LayoutRoot.Children.Clear()<br />
LayoutRoot.Children.Add(instanceOfC1)</p>
<p>Step 3. Run the application.<br />
Step 4. Click the button to add the control.<br />
Step 5. Check the check box inside instanceOfC1<br />
Step 6. Click the button again. The same instance will be re-added to LayoutRoot.Children.<br />
Step 7. Try to uncheck the check box.</p>
<p>Result -&gt; the state remains checked, but the check box has actually become unchecked. </p>
<p>Enabled/Disabled items also behave awkwardly in this setup.</p>
<p>Thanks,<br />
Sucata Mihnea</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Stockton</title>
		<link>http://michaelsync.net/2008/04/01/silverlight-2-beta1-known-issues-and-workarounds-if-any#comment-64207</link>
		<dc:creator>John Stockton</dc:creator>
		<pubDate>Tue, 20 May 2008 17:12:36 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/04/01/silverlight-2-beta1-known-issues-and-workarounds-if-any#comment-64207</guid>
		<description>Michael, 

I should have sent this one to you a while back to add to the list.  (http://tocode.blogspot.com/2008/04/silverlight-2-textblock-responds-to.html) Basically if you have text that overflows a TextBlock and is visually truncated by a Height or MaxHeight, the overflow area still throws mouse events. A workaround is to add a clip to a bounding object.

It has been verified by Joe Stegman to be a real bug but is supposedly fixed in Beta 2.

Thanks,
John Stockton</description>
		<content:encoded><![CDATA[<p>Michael, </p>
<p>I should have sent this one to you a while back to add to the list.  (http://tocode.blogspot.com/2008/04/silverlight-2-textblock-responds-to.html) Basically if you have text that overflows a TextBlock and is visually truncated by a Height or MaxHeight, the overflow area still throws mouse events. A workaround is to add a clip to a bounding object.</p>
<p>It has been verified by Joe Stegman to be a real bug but is supposedly fixed in Beta 2.</p>
<p>Thanks,<br />
John Stockton</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Sync</title>
		<link>http://michaelsync.net/2008/04/01/silverlight-2-beta1-known-issues-and-workarounds-if-any#comment-56924</link>
		<dc:creator>Michael Sync</dc:creator>
		<pubDate>Tue, 22 Apr 2008 15:29:42 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/04/01/silverlight-2-beta1-known-issues-and-workarounds-if-any#comment-56924</guid>
		<description>&gt;&gt;What ever I do with silverlight, however trivial I manage to find show stopping bugs

haha. Yes. I'm also facing a lot of problems with Silverlight.. This beta1 is kinda buggy.. I have 8 or 9 new bugs to add to this list but a lot of works to do these days..</description>
		<content:encoded><![CDATA[<p>>>What ever I do with silverlight, however trivial I manage to find show stopping bugs</p>
<p>haha. Yes. I&#8217;m also facing a lot of problems with Silverlight.. This beta1 is kinda buggy.. I have 8 or 9 new bugs to add to this list but a lot of works to do these days..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: memals</title>
		<link>http://michaelsync.net/2008/04/01/silverlight-2-beta1-known-issues-and-workarounds-if-any#comment-56915</link>
		<dc:creator>memals</dc:creator>
		<pubDate>Tue, 22 Apr 2008 15:08:03 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/04/01/silverlight-2-beta1-known-issues-and-workarounds-if-any#comment-56915</guid>
		<description>another known issue this time with sound.

When you try to play a sound multiple times, first time it works fine, but then MediaElement won't play the first short period of sound. Unfortunately currently there's no good workaround...

http://silverlight.net/forums/p/14406/47949.aspx

What ever I do with silverlight, however trivial I manage to find show stopping bugs :(</description>
		<content:encoded><![CDATA[<p>another known issue this time with sound.</p>
<p>When you try to play a sound multiple times, first time it works fine, but then MediaElement won&#8217;t play the first short period of sound. Unfortunately currently there&#8217;s no good workaround&#8230;</p>
<p><a href="http://silverlight.net/forums/p/14406/47949.aspx" rel="nofollow">http://silverlight.net/forums/p/14406/47949.aspx</a></p>
<p>What ever I do with silverlight, however trivial I manage to find show stopping bugs <img src='http://michaelsync.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: memals</title>
		<link>http://michaelsync.net/2008/04/01/silverlight-2-beta1-known-issues-and-workarounds-if-any#comment-56522</link>
		<dc:creator>memals</dc:creator>
		<pubDate>Mon, 21 Apr 2008 15:48:29 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/04/01/silverlight-2-beta1-known-issues-and-workarounds-if-any#comment-56522</guid>
		<description>#6 work around 1 setting isDisabled to true gives me a "greyed out" button which is no good.
Work around 2 setting Width and Height to 0 (by default) results in a tiny button.
I had to set the buttons MinHeight and MinWidth to 0 before work around 2 would work.
Incidentally, I set Cursor="Hand" on the button and even after it is set to a 0 size the mouse pointer is still updated when hovering over the area it used to occupy.</description>
		<content:encoded><![CDATA[<p>#6 work around 1 setting isDisabled to true gives me a &#8220;greyed out&#8221; button which is no good.<br />
Work around 2 setting Width and Height to 0 (by default) results in a tiny button.<br />
I had to set the buttons MinHeight and MinWidth to 0 before work around 2 would work.<br />
Incidentally, I set Cursor=&#8221;Hand&#8221; on the button and even after it is set to a 0 size the mouse pointer is still updated when hovering over the area it used to occupy.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
