<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Silverlight: GridSplitter with a collapse button (V2)</title>
	<atom:link href="http://shemesh.wordpress.com/2008/12/03/silverlight-gridsplitter-with-a-collapse-button-v2/feed/" rel="self" type="application/rss+xml" />
	<link>http://shemesh.wordpress.com/2008/12/03/silverlight-gridsplitter-with-a-collapse-button-v2/</link>
	<description>Toxicated Flex/Silverlight Blog</description>
	<lastBuildDate>Tue, 10 Nov 2009 18:27:14 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: emma</title>
		<link>http://shemesh.wordpress.com/2008/12/03/silverlight-gridsplitter-with-a-collapse-button-v2/#comment-317</link>
		<dc:creator>emma</dc:creator>
		<pubDate>Tue, 10 Nov 2009 18:27:14 +0000</pubDate>
		<guid isPermaLink="false">http://shemesh.wordpress.com/?p=52#comment-317</guid>
		<description>doesn&#039;t appear to work when converted to 3. Is there an easy &quot;click&quot; solution, without the animation?</description>
		<content:encoded><![CDATA[<p>doesn&#8217;t appear to work when converted to 3. Is there an easy &#8220;click&#8221; solution, without the animation?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcos</title>
		<link>http://shemesh.wordpress.com/2008/12/03/silverlight-gridsplitter-with-a-collapse-button-v2/#comment-266</link>
		<dc:creator>Marcos</dc:creator>
		<pubDate>Thu, 03 Sep 2009 12:41:36 +0000</pubDate>
		<guid isPermaLink="false">http://shemesh.wordpress.com/?p=52#comment-266</guid>
		<description>Hi Mark and  Shemesh.
I need use too GridSplitter_Collapse_V2, but in my app i get AG_E_UNKNOWN_ERROR at runtime. What i need change in my work for the gridsplitter work?
Tks!!</description>
		<content:encoded><![CDATA[<p>Hi Mark and  Shemesh.<br />
I need use too GridSplitter_Collapse_V2, but in my app i get AG_E_UNKNOWN_ERROR at runtime. What i need change in my work for the gridsplitter work?<br />
Tks!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: headbiznatch</title>
		<link>http://shemesh.wordpress.com/2008/12/03/silverlight-gridsplitter-with-a-collapse-button-v2/#comment-263</link>
		<dc:creator>headbiznatch</dc:creator>
		<pubDate>Wed, 29 Jul 2009 06:42:56 +0000</pubDate>
		<guid isPermaLink="false">http://shemesh.wordpress.com/?p=52#comment-263</guid>
		<description>really happy i found this post - was having the exact same issue. building the gridsplitter_collapse project yielded no problems but after moving it into my Prism app, i received those 2 errors. i ended up adding the ExtendedGridSplitter.cs class to an assembly where i put common controls. I added the themes/generic.xaml there and copied in the styles that were in App.xaml of the original solution (make sure to put them BEFORE the existing style definitions in generic.xaml or you get AG_E_UNKNOWN_ERROR at runtime). I made the edit to the click handler and delegate definition and it now works. Will dig into this some more as time permits but hopefully this can help someone else who wants to use this really cool control. btw - thanks for your control, shemesh....</description>
		<content:encoded><![CDATA[<p>really happy i found this post &#8211; was having the exact same issue. building the gridsplitter_collapse project yielded no problems but after moving it into my Prism app, i received those 2 errors. i ended up adding the ExtendedGridSplitter.cs class to an assembly where i put common controls. I added the themes/generic.xaml there and copied in the styles that were in App.xaml of the original solution (make sure to put them BEFORE the existing style definitions in generic.xaml or you get AG_E_UNKNOWN_ERROR at runtime). I made the edit to the click handler and delegate definition and it now works. Will dig into this some more as time permits but hopefully this can help someone else who wants to use this really cool control. btw &#8211; thanks for your control, shemesh&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://shemesh.wordpress.com/2008/12/03/silverlight-gridsplitter-with-a-collapse-button-v2/#comment-256</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Wed, 22 Jul 2009 12:21:53 +0000</pubDate>
		<guid isPermaLink="false">http://shemesh.wordpress.com/?p=52#comment-256</guid>
		<description>I&#039;m dumbfounded as to why it does this, as its exactly how it is in the original source.  However I have found a workaround and that is to pass the RoutedEventArgs as an extra parameter right through into the actual onlclick method as well delegate declaration - it then compiles and runs fine.  I&#039;ve spend the best part of the day on this, thus at this stage I&#039;ll accept a superfluous parameter.  Hopefully this will help anyone else who strikes a similar problem and give them a quick way forward, even if it isn&#039;t perfect.

Thanks

Mark</description>
		<content:encoded><![CDATA[<p>I&#8217;m dumbfounded as to why it does this, as its exactly how it is in the original source.  However I have found a workaround and that is to pass the RoutedEventArgs as an extra parameter right through into the actual onlclick method as well delegate declaration &#8211; it then compiles and runs fine.  I&#8217;ve spend the best part of the day on this, thus at this stage I&#8217;ll accept a superfluous parameter.  Hopefully this will help anyone else who strikes a similar problem and give them a quick way forward, even if it isn&#8217;t perfect.</p>
<p>Thanks</p>
<p>Mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shemesh</title>
		<link>http://shemesh.wordpress.com/2008/12/03/silverlight-gridsplitter-with-a-collapse-button-v2/#comment-255</link>
		<dc:creator>shemesh</dc:creator>
		<pubDate>Wed, 22 Jul 2009 12:13:31 +0000</pubDate>
		<guid isPermaLink="false">http://shemesh.wordpress.com/?p=52#comment-255</guid>
		<description>its very hard to tell, seems like you are doing everything right.
one thing i have noticed in your first response is on &#039;Error 13&#039; it shouts on MainPage.xaml and on your second post you write Page.cs - could be your xaml code and event handler are not on the same page?
other then that i will need to see more of your code.</description>
		<content:encoded><![CDATA[<p>its very hard to tell, seems like you are doing everything right.<br />
one thing i have noticed in your first response is on &#8216;Error 13&#8242; it shouts on MainPage.xaml and on your second post you write Page.cs &#8211; could be your xaml code and event handler are not on the same page?<br />
other then that i will need to see more of your code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://shemesh.wordpress.com/2008/12/03/silverlight-gridsplitter-with-a-collapse-button-v2/#comment-254</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Wed, 22 Jul 2009 09:02:39 +0000</pubDate>
		<guid isPermaLink="false">http://shemesh.wordpress.com/?p=52#comment-254</guid>
		<description>As per orignal in the Page.cs
private void VGridSplitter_ButtonClick(object sender)
{
..
}

and in the Extender Code..

public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();
            VerticalCollapseButton =   this.GetTemplateChild(VerticalCollapseButtonElement) as Button;
            if (VerticalCollapseButton != null)
            {
                VerticalCollapseButton.Click += new RoutedEventHandler(OnCollapseButtonClickEvent);
            }

Event wired as follows...
 public delegate void CollapseButtonClickEventHandler(object sender);
        public event CollapseButtonClickEventHandler CollapseButtonClickEvent;
        void OnCollapseButtonClickEvent(object sender, RoutedEventArgs e)
        {
            if (CollapseButtonClickEvent != null) CollapseButtonClickEvent(sender);
        }

Any ideas?  Have I missed something?  To be honest I&#039;m not that familiar with &#039;Routed Events&#039;.

Regards

Mark</description>
		<content:encoded><![CDATA[<p>As per orignal in the Page.cs<br />
private void VGridSplitter_ButtonClick(object sender)<br />
{<br />
..<br />
}</p>
<p>and in the Extender Code..</p>
<p>public override void OnApplyTemplate()<br />
        {<br />
            base.OnApplyTemplate();<br />
            VerticalCollapseButton =   this.GetTemplateChild(VerticalCollapseButtonElement) as Button;<br />
            if (VerticalCollapseButton != null)<br />
            {<br />
                VerticalCollapseButton.Click += new RoutedEventHandler(OnCollapseButtonClickEvent);<br />
            }</p>
<p>Event wired as follows&#8230;<br />
 public delegate void CollapseButtonClickEventHandler(object sender);<br />
        public event CollapseButtonClickEventHandler CollapseButtonClickEvent;<br />
        void OnCollapseButtonClickEvent(object sender, RoutedEventArgs e)<br />
        {<br />
            if (CollapseButtonClickEvent != null) CollapseButtonClickEvent(sender);<br />
        }</p>
<p>Any ideas?  Have I missed something?  To be honest I&#8217;m not that familiar with &#8216;Routed Events&#8217;.</p>
<p>Regards</p>
<p>Mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shemesh</title>
		<link>http://shemesh.wordpress.com/2008/12/03/silverlight-gridsplitter-with-a-collapse-button-v2/#comment-253</link>
		<dc:creator>shemesh</dc:creator>
		<pubDate>Wed, 22 Jul 2009 07:54:32 +0000</pubDate>
		<guid isPermaLink="false">http://shemesh.wordpress.com/?p=52#comment-253</guid>
		<description>your event handler should look like this:
private void VGridSplitter_ButtonClick(object sender)...</description>
		<content:encoded><![CDATA[<p>your event handler should look like this:<br />
private void VGridSplitter_ButtonClick(object sender)&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://shemesh.wordpress.com/2008/12/03/silverlight-gridsplitter-with-a-collapse-button-v2/#comment-252</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Wed, 22 Jul 2009 07:01:45 +0000</pubDate>
		<guid isPermaLink="false">http://shemesh.wordpress.com/?p=52#comment-252</guid>
		<description>I have downloaded your Gridsplitter and works on its own fine.  However when I attempt to incorporate it I keep getting a compile error..

Error	13	No overload for &#039;VGridSplitter_ButtonClick&#039; matches delegate &#039;CollapseButtonClickEventHandler	D:\Application\MainPage.xaml

and also..Error	14	No overload for &#039;HGridSplitter_ButtonClick&#039; matches delegate &#039;CollapseButtonClickEventHandler....

The Delegate and Event are exactly as per the original.  I just wondered if you knew what may cause this.  As I have spent quite a lot of time trying work out why?

Regards

Mark</description>
		<content:encoded><![CDATA[<p>I have downloaded your Gridsplitter and works on its own fine.  However when I attempt to incorporate it I keep getting a compile error..</p>
<p>Error	13	No overload for &#8216;VGridSplitter_ButtonClick&#8217; matches delegate &#8216;CollapseButtonClickEventHandler	D:\Application\MainPage.xaml</p>
<p>and also..Error	14	No overload for &#8216;HGridSplitter_ButtonClick&#8217; matches delegate &#8216;CollapseButtonClickEventHandler&#8230;.</p>
<p>The Delegate and Event are exactly as per the original.  I just wondered if you knew what may cause this.  As I have spent quite a lot of time trying work out why?</p>
<p>Regards</p>
<p>Mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shemesh</title>
		<link>http://shemesh.wordpress.com/2008/12/03/silverlight-gridsplitter-with-a-collapse-button-v2/#comment-167</link>
		<dc:creator>shemesh</dc:creator>
		<pubDate>Wed, 11 Mar 2009 08:28:46 +0000</pubDate>
		<guid isPermaLink="false">http://shemesh.wordpress.com/?p=52#comment-167</guid>
		<description>Varsha,
&quot;There are 2 significant breaking changes in how you handle the file generic.xaml...&quot; &quot;...The first change is that the file itself has a new location inside the Themes folder...&quot;
http://silverlight.net/blogs/jesseliberty/archive/2008/09/27/skinnable-custom-controls-change-to-generic-xaml.aspx</description>
		<content:encoded><![CDATA[<p>Varsha,<br />
&#8220;There are 2 significant breaking changes in how you handle the file generic.xaml&#8230;&#8221; &#8220;&#8230;The first change is that the file itself has a new location inside the Themes folder&#8230;&#8221;<br />
<a href="http://silverlight.net/blogs/jesseliberty/archive/2008/09/27/skinnable-custom-controls-change-to-generic-xaml.aspx" rel="nofollow">http://silverlight.net/blogs/jesseliberty/archive/2008/09/27/skinnable-custom-controls-change-to-generic-xaml.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Varsha</title>
		<link>http://shemesh.wordpress.com/2008/12/03/silverlight-gridsplitter-with-a-collapse-button-v2/#comment-163</link>
		<dc:creator>Varsha</dc:creator>
		<pubDate>Tue, 10 Mar 2009 11:46:21 +0000</pubDate>
		<guid isPermaLink="false">http://shemesh.wordpress.com/?p=52#comment-163</guid>
		<description>Hi,

I have tried your ExtendedGridSplitter and it works fine. 

I have one query, in your project you have created themes folder which has generic.xaml. When I was trying to add your code in our project (which was having theme folder already)so I added generic.xaml in theme folder but it was not working but when I added that in themes folder it works fine.

What I want to know is where you are setting the path for generic.xaml as it was just a matter of one &quot;s&quot; for folder name.

Can you please tell me so that I can have only one theme folder and not two (theme and themes)

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have tried your ExtendedGridSplitter and it works fine. </p>
<p>I have one query, in your project you have created themes folder which has generic.xaml. When I was trying to add your code in our project (which was having theme folder already)so I added generic.xaml in theme folder but it was not working but when I added that in themes folder it works fine.</p>
<p>What I want to know is where you are setting the path for generic.xaml as it was just a matter of one &#8220;s&#8221; for folder name.</p>
<p>Can you please tell me so that I can have only one theme folder and not two (theme and themes)</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
