<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.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>Did You Know That... you can create Silverlight objects programmatically?</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/01/07/did-you-know-that-you-can-create-silverlight-objects-programmatically.aspx</link><description>In both Silverlight 1.0 and Silverlight 2.0 it is possible to create Silverlight objects programmatically, in the former using JavaScript and in the latter using, for example, C#. Creating objects programmatically in Silverlight 1.0 is non-trivial, as</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>re: Did You Know That&amp;#8230; you can create Silverlight objects &amp;#8230; | My Geek Solutions</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/01/07/did-you-know-that-you-can-create-silverlight-objects-programmatically.aspx#53637</link><pubDate>Fri, 16 May 2008 08:57:23 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:53637</guid><dc:creator>re: Did You Know That… you can create Silverlight objects … | My Geek Solutions</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;re: Did You Know That&amp;amp;#8230; you can create Silverlight objects &amp;amp;#8230; | My Geek Solutions&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=53637" width="1" height="1"&gt;</description></item><item><title>re: Did You Know That... you can create Silverlight objects programmatically?</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/01/07/did-you-know-that-you-can-create-silverlight-objects-programmatically.aspx#53615</link><pubDate>Fri, 16 May 2008 06:41:32 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:53615</guid><dc:creator>erikliffner</dc:creator><description>&lt;p&gt;I have tried the same thing as feddas but without any luck. Is it possible to do this?&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=53615" width="1" height="1"&gt;</description></item><item><title>re: Did You Know That... you can create Silverlight objects programmatically?</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/01/07/did-you-know-that-you-can-create-silverlight-objects-programmatically.aspx#51244</link><pubDate>Mon, 05 May 2008 15:58:43 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:51244</guid><dc:creator>feddas</dc:creator><description>&lt;p&gt;I was working through and up to the dynamic Controls in the tutorial at &lt;a rel="nofollow" target="_new" href="http://silverlight.net/learn/tutorials/controls.aspx"&gt;silverlight.net/.../controls.aspx&lt;/a&gt; .&lt;/p&gt;
&lt;p&gt;I wanted to make the dynamically created controls draggable. &amp;nbsp;I thought this would be easy, I'd simply adjust the dynamically wired events. &amp;nbsp;Yet the events do not fire at all. &amp;nbsp;Does Silverlight not yet allow MouseButtonEvents to be dynamically wired?&lt;/p&gt;
&lt;p&gt;void Another_Click(object sender, RoutedEventArgs e)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; Button b = new Button();&lt;/p&gt;
&lt;p&gt; b.Content = &amp;quot;I live!&amp;quot;;&lt;/p&gt;
&lt;p&gt; b.Width = 100;&lt;/p&gt;
&lt;p&gt; b.Height = 50;&lt;/p&gt;
&lt;p&gt; //the following line was not commented out in the original&lt;/p&gt;
&lt;p&gt; //b.Click += new RoutedEventHandler(new_button_Click);&lt;/p&gt;
&lt;p&gt; //the following 3 lines were added to make the button draggable&lt;/p&gt;
&lt;p&gt; b.MouseLeftButtonDown += new MouseButtonEventHandler(CompositeButton_MouseLeftButtonDown);&lt;/p&gt;
&lt;p&gt; b.MouseMove += new MouseEventHandler(CompositeButton_MouseMove);&lt;/p&gt;
&lt;p&gt; b.MouseLeftButtonUp += new MouseButtonEventHandler(CompositeButton_MouseLeftButtonUp);&lt;/p&gt;
&lt;p&gt; LayoutRoot.Children.Add(b);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=51244" width="1" height="1"&gt;</description></item><item><title>Creating Silverlight Objects Programmatically</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/01/07/did-you-know-that-you-can-create-silverlight-objects-programmatically.aspx#25651</link><pubDate>Tue, 08 Jan 2008 03:37:51 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:25651</guid><dc:creator>DotNetKicks.com</dc:creator><description>&lt;p&gt;You've been kicked (a good thing) - Trackback from DotNetKicks.com&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=25651" width="1" height="1"&gt;</description></item><item><title>re: Did You Know That... you can create Silverlight objects programmatically?</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/01/07/did-you-know-that-you-can-create-silverlight-objects-programmatically.aspx#25646</link><pubDate>Tue, 08 Jan 2008 02:21:49 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:25646</guid><dc:creator>webm0nk3y</dc:creator><description>&lt;p&gt;I'm not sure about 'animosity' but on this matter I have nothing but praise for Microsoft. The development environment is practically perfect.&lt;/p&gt;
&lt;p&gt;I have Expression Blend 2 open (on one monitor) and I have my solution open in vs2008 (on another monitor). The solution has my silverlight component project with it's xaml and codebehind and also a silverlight web project which has a reference to the component's assembly so I can test it. Of course this works great when you have multiple monitors.&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=25646" width="1" height="1"&gt;</description></item><item><title>re: Did You Know That... you can create Silverlight objects programmatically?</title><link>http://blogs.silverlight.net/blogs/jesseliberty/archive/2008/01/07/did-you-know-that-you-can-create-silverlight-objects-programmatically.aspx#25620</link><pubDate>Mon, 07 Jan 2008 22:27:11 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:25620</guid><dc:creator>jackbond</dc:creator><description>&lt;p&gt;For developers arguing for all objects to be declared via code, I'd ask them if in their web pages contained any html, or if they declared all their objects in javascript. There seems to be some animosity/confusion as to role XAML plays in Silverlight/WPF apps. Not sure why.&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=25620" width="1" height="1"&gt;</description></item></channel></rss>