<?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 for Michael Sync</title>
	<atom:link href="http://michaelsync.net/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://michaelsync.net</link>
	<description>Sharing our knowledge</description>
	<pubDate>Sat, 17 May 2008 08:15:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>Comment on All screenshots of New Google Theme by Dan</title>
		<link>http://michaelsync.net/2007/11/29/all-screenshots-of-new-google-theme#comment-63346</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Fri, 16 May 2008 20:30:17 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2007/11/29/all-screenshots-of-new-google-theme#comment-63346</guid>
		<description>I prefer Aja Tiger theme, too. At my office, the collegues are mocking me when then see the little tiger (but i'm proud of it) :)
The Tea House is cool too. My wife loves it.</description>
		<content:encoded><![CDATA[<p>I prefer Aja Tiger theme, too. At my office, the collegues are mocking me when then see the little tiger (but i&#8217;m proud of it) <img src='http://michaelsync.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
The Tea House is cool too. My wife loves it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Silverlight 2 (beta1): User Control Inheritance by Michael Sync</title>
		<link>http://michaelsync.net/2008/03/24/silverlight-2-beta1-user-control-inheritance#comment-63235</link>
		<dc:creator>Michael Sync</dc:creator>
		<pubDate>Fri, 16 May 2008 07:48:50 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/03/24/silverlight-2-beta1-user-control-inheritance#comment-63235</guid>
		<description>&lt;blockquote&gt;did think I read something somewhere in the Silverlight forms that you could add Controls dynamically to the base class (but there was no example).&lt;/blockquote&gt;

Can you please give me the link? Normally, I used to read the most of messages in Silverlight forum.. 

&lt;blockquote&gt;The reason why is because I want to extend the functionality of my UserControl. 
&lt;/blockquote&gt;

As you already know, we can't add XAML in base control. This is the main thing. 

Example #1: 

Let's say you have created one base class that has a function called validatedUser(string,string). Then, you create another class that inherits from base class and you can comsume that functionality. then, it's possible to do in Silverlight.. 

Example #2: 

Let's say you have created one base class that has a button. (You can't have XAML so that it won't show on Designer anyway.) then, you create another class that inherit from that base class.. but the button that you created in Base control won't be shown. that's why I'm wondering why you need to do that.. 

&lt;blockquote&gt;
I have create BaseControl in a silverlight class library,then create a User Control Inheritance from BaseControl ,but the user control is in other project(a silverlight application) who reference to this class library,then we i build the project,VS modify the usercontrol.g.cs change the baseControl back to UserControl…
&lt;/blockquote&gt;

Please check two things

1) 
&lt;BaseControl x:Class="SL2Controls.InheritedControl"
xmlns="http://schemas.microsoft.com/client/2007"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Width="400" Height="300"&gt;
&lt;Grid x:Name="LayoutRoot" Background="Red"&gt;

&lt;/Grid&gt;
&lt;/BaseControl&gt;

You should use BaseControl instead of User Control. 

2) public partial class InheritedControl : BaseControl { 

Your class should be inherited from BaseControl.</description>
		<content:encoded><![CDATA[<blockquote><p>did think I read something somewhere in the Silverlight forms that you could add Controls dynamically to the base class (but there was no example).</p></blockquote>
<p>Can you please give me the link? Normally, I used to read the most of messages in Silverlight forum.. </p>
<blockquote><p>The reason why is because I want to extend the functionality of my UserControl.
</p></blockquote>
<p>As you already know, we can&#8217;t add XAML in base control. This is the main thing. </p>
<p>Example #1: </p>
<p>Let&#8217;s say you have created one base class that has a function called validatedUser(string,string). Then, you create another class that inherits from base class and you can comsume that functionality. then, it&#8217;s possible to do in Silverlight.. </p>
<p>Example #2: </p>
<p>Let&#8217;s say you have created one base class that has a button. (You can&#8217;t have XAML so that it won&#8217;t show on Designer anyway.) then, you create another class that inherit from that base class.. but the button that you created in Base control won&#8217;t be shown. that&#8217;s why I&#8217;m wondering why you need to do that.. </p>
<blockquote><p>
I have create BaseControl in a silverlight class library,then create a User Control Inheritance from BaseControl ,but the user control is in other project(a silverlight application) who reference to this class library,then we i build the project,VS modify the usercontrol.g.cs change the baseControl back to UserControl…
</p></blockquote>
<p>Please check two things</p>
<p>1)<br />
<basecontrol x:Class="SL2Controls.InheritedControl"<br />
xmlns="http://schemas.microsoft.com/client/2007"<br />
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"<br />
Width="400" Height="300"><br />
<grid x:Name="LayoutRoot" Background="Red"></p>
<p></grid><br />
</basecontrol></p>
<p>You should use BaseControl instead of User Control. </p>
<p>2) public partial class InheritedControl : BaseControl { </p>
<p>Your class should be inherited from BaseControl.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Silverlight 2 (beta1): User Control Inheritance by Allan</title>
		<link>http://michaelsync.net/2008/03/24/silverlight-2-beta1-user-control-inheritance#comment-63233</link>
		<dc:creator>Allan</dc:creator>
		<pubDate>Fri, 16 May 2008 07:28:01 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/03/24/silverlight-2-beta1-user-control-inheritance#comment-63233</guid>
		<description>hi,i have same question,

I have create BaseControl in a silverlight class library,then create a User Control Inheritance from BaseControl ,but the user control is in other project(a silverlight application) who reference to this class library,then we i build the project,VS modify the usercontrol.g.cs change the baseControl back to UserControl...</description>
		<content:encoded><![CDATA[<p>hi,i have same question,</p>
<p>I have create BaseControl in a silverlight class library,then create a User Control Inheritance from BaseControl ,but the user control is in other project(a silverlight application) who reference to this class library,then we i build the project,VS modify the usercontrol.g.cs change the baseControl back to UserControl&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Guest Book by dean</title>
		<link>http://michaelsync.net/guest-book#comment-63207</link>
		<dc:creator>dean</dc:creator>
		<pubDate>Fri, 16 May 2008 03:45:05 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/guest-book#comment-63207</guid>
		<description>Hi,Michael!
I have saw this post(http://silverlight.net/forums/p/14362/47303.aspx) you replied about saving control to image.
I know that it doesn't work because of security in SL(by the way,it seem that don't serialize XAML as well in SL),but I do implement this function for requirement.
So what else solution to this problem
I urgently need its solution,thank you very much!

thanks again

dean</description>
		<content:encoded><![CDATA[<p>Hi,Michael!<br />
I have saw this post(http://silverlight.net/forums/p/14362/47303.aspx) you replied about saving control to image.<br />
I know that it doesn&#8217;t work because of security in SL(by the way,it seem that don&#8217;t serialize XAML as well in SL),but I do implement this function for requirement.<br />
So what else solution to this problem<br />
I urgently need its solution,thank you very much!</p>
<p>thanks again</p>
<p>dean</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Silverlight 2 (beta1): User Control Inheritance by Fraser</title>
		<link>http://michaelsync.net/2008/03/24/silverlight-2-beta1-user-control-inheritance#comment-63112</link>
		<dc:creator>Fraser</dc:creator>
		<pubDate>Thu, 15 May 2008 18:18:37 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/03/24/silverlight-2-beta1-user-control-inheritance#comment-63112</guid>
		<description>I knew that you couldn't have a XAML file attached to the base class but I did think I read something somewhere in the Silverlight forms that you could add Controls dynamically to the base class (but there was no example). 

The reason why is because I want to extend the functionality of my UserControl.  I've created a Silverlight application that has a UserControl that has a bunch of child custom UserControls and it does a bunch of things.  I now want to create administration functionality for my application and take that base UserControl and add more functionality and child UserControls to it.
I can't just re-write the UserControl, because the child UserControls depend on the parent being of a specific type with some menthods.  So if I re-write one I have to re-write them all and then I have a lot of duplicated code.</description>
		<content:encoded><![CDATA[<p>I knew that you couldn&#8217;t have a XAML file attached to the base class but I did think I read something somewhere in the Silverlight forms that you could add Controls dynamically to the base class (but there was no example). </p>
<p>The reason why is because I want to extend the functionality of my UserControl.  I&#8217;ve created a Silverlight application that has a UserControl that has a bunch of child custom UserControls and it does a bunch of things.  I now want to create administration functionality for my application and take that base UserControl and add more functionality and child UserControls to it.<br />
I can&#8217;t just re-write the UserControl, because the child UserControls depend on the parent being of a specific type with some menthods.  So if I re-write one I have to re-write them all and then I have a lot of duplicated code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Silverlight 2 (beta1): User Control Inheritance by Michael Sync</title>
		<link>http://michaelsync.net/2008/03/24/silverlight-2-beta1-user-control-inheritance#comment-63102</link>
		<dc:creator>Michael Sync</dc:creator>
		<pubDate>Thu, 15 May 2008 17:23:27 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/03/24/silverlight-2-beta1-user-control-inheritance#comment-63102</guid>
		<description>Why do you want to add the controls dynamically to the base class? As you know, there is no XAML in base class.. so, your control won't be shown anyways..</description>
		<content:encoded><![CDATA[<p>Why do you want to add the controls dynamically to the base class? As you know, there is no XAML in base class.. so, your control won&#8217;t be shown anyways..</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Silverlight 2 (beta1): User Control Inheritance by Fraser</title>
		<link>http://michaelsync.net/2008/03/24/silverlight-2-beta1-user-control-inheritance#comment-63094</link>
		<dc:creator>Fraser</dc:creator>
		<pubDate>Thu, 15 May 2008 16:52:44 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/03/24/silverlight-2-beta1-user-control-inheritance#comment-63094</guid>
		<description>Excellent post, very helpful.

However I have one more question, how can I add the controls dynamically in the base class (BaseControl)?

There isn't a this.Children.Add() as it's a UserControl and I get a null value when I call Application.Current.RootVisual

What am I missing?

Thanks</description>
		<content:encoded><![CDATA[<p>Excellent post, very helpful.</p>
<p>However I have one more question, how can I add the controls dynamically in the base class (BaseControl)?</p>
<p>There isn&#8217;t a this.Children.Add() as it&#8217;s a UserControl and I get a null value when I call Application.Current.RootVisual</p>
<p>What am I missing?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Wordpress Theme: Best of the Best by My-Sohbet</title>
		<link>http://michaelsync.net/2007/04/18/wordpress-theme-best-of-the-best#comment-63049</link>
		<dc:creator>My-Sohbet</dc:creator>
		<pubDate>Thu, 15 May 2008 12:50:24 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2007/04/18/wordpress-theme-best-of-the-best#comment-63049</guid>
		<description>thanks</description>
		<content:encoded><![CDATA[<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Silverlight: The First Rich Text Editor by file extension list</title>
		<link>http://michaelsync.net/2008/04/29/silverlight-the-first-rich-text-editor#comment-63033</link>
		<dc:creator>file extension list</dc:creator>
		<pubDate>Thu, 15 May 2008 11:06:35 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/?p=904#comment-63033</guid>
		<description>[...] editor within the next days. Download RET-Introduction.pdf 140 KB RTE-Binary files.zip 77.6 KB hthttp://michaelsync.net/2008/04/29/silverlight-the-first-rich-text-editorHouse Democrats seek to press ahead with war funding bill Las Vegas SunWed, May 7, 2008 3:17 p.m. [...]</description>
		<content:encoded><![CDATA[<p>[...] editor within the next days. Download RET-Introduction.pdf 140 KB RTE-Binary files.zip 77.6 KB hthttp://michaelsync.net/2008/04/29/silverlight-the-first-rich-text-editorHouse Democrats seek to press ahead with war funding bill Las Vegas SunWed, May 7, 2008 3:17 p.m. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Silverlight Rich Text Editor (Demo) by JLE</title>
		<link>http://michaelsync.net/2008/05/04/silverlight-rich-text-editor-demo#comment-63030</link>
		<dc:creator>JLE</dc:creator>
		<pubDate>Thu, 15 May 2008 10:46:47 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/?p=908#comment-63030</guid>
		<description>Very nice, but no CTRL+Z ?</description>
		<content:encoded><![CDATA[<p>Very nice, but no CTRL+Z ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
