<?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: Re: Re: Inheritance limitation (FrameworkElement &amp; DependencyObject)</title><link>http://forums.silverlight.net/forums/thread/204978.aspx</link><pubDate>Sat, 11 Apr 2009 09:26:55 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:204978</guid><dc:creator>joji777</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/204978.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=204978</wfw:commentRss><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;See &amp;quot;odegaard&amp;quot; post of this date &lt;/p&gt;
&lt;div class="threadDate"&gt;09-11-2008 7:36 PM &lt;/div&gt;
&lt;div class="threadDate"&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="threadDate"&gt;in my post, in given code,,,, checck page.Dispathcer..................&lt;/div&gt;</description></item><item><title>Re: Re: Re: Inheritance limitation (FrameworkElement &amp; DependencyObject)</title><link>http://forums.silverlight.net/forums/thread/204901.aspx</link><pubDate>Sat, 11 Apr 2009 02:07:12 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:204901</guid><dc:creator>SharpGIS</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/204901.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=204901</wfw:commentRss><description>Errrrr and that has what to do with the DepedencyObject constructor was internal at the beta release (ie. can&amp;#39;t inherit from it) ?</description></item><item><title>Re: Re: Inheritance limitation (FrameworkElement &amp; DependencyObject)</title><link>http://forums.silverlight.net/forums/thread/204894.aspx</link><pubDate>Sat, 11 Apr 2009 01:40:32 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:204894</guid><dc:creator>joji777</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/204894.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=204894</wfw:commentRss><description>&lt;p&gt;Well I am using SL2 and it is not working. I can see at front of my eyes. What I am trying to do its,&lt;/p&gt;
&lt;p&gt;I have a Page class, then I created another class which has method to create a button and on that button click you select a file to upload on my server, all this functionality in my Uploader class, this also update the progress of uploading. This Uploader class has 2 public methods, one creates button and other creates a text block (its text i want to update to show progress.)&lt;/p&gt;
&lt;p&gt;I call this create button and create text method in Page by creating instance of Uploader class in a for loop and create 4 buttons and text blocks for each button. Now in uploader class i have to write following code&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;private&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;static&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;Page&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; page = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;Page&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;();&lt;br /&gt;&lt;font size="2"&gt;page.Dispatcher.BeginInvoke(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;Action&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(() =&amp;gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;{&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;var&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; textBlock = page.mygrid&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;.FindName(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;uploading_grid_textblok_1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;) &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;as&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;TextBlock&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;br /&gt;textBlock.Text = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Empty;&lt;br /&gt;textBlock.Text += statusstring;&lt;br /&gt;}));&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;This does not work, I tried all possible ways, and it does not work, now i am working on another way which works partialy but still not reliable. Above mentioned code will give you different errors on different changes.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Re: Inheritance limitation (FrameworkElement &amp; DependencyObject)</title><link>http://forums.silverlight.net/forums/thread/204893.aspx</link><pubDate>Sat, 11 Apr 2009 01:27:41 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:204893</guid><dc:creator>SharpGIS</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/204893.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=204893</wfw:commentRss><description>How can this be a limitation for you, when this limitation has been removed since SL2 was released in its final state? This is an old beta issue.</description></item><item><title>Re: Inheritance limitation (FrameworkElement &amp; DependencyObject)</title><link>http://forums.silverlight.net/forums/thread/204875.aspx</link><pubDate>Sat, 11 Apr 2009 00:44:03 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:204875</guid><dc:creator>joji777</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/204875.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=204875</wfw:commentRss><description>&lt;p&gt;I am also badly stuck because of this problem, and so far I spent more than 3 days tpo find a solution and unable to find one. I am in great favor to finish this limitation and inheritance should be allowed.&lt;/p&gt;</description></item><item><title>Re: Inheritance limitation (FrameworkElement &amp; DependencyObject)</title><link>http://forums.silverlight.net/forums/thread/197298.aspx</link><pubDate>Sat, 28 Mar 2009 17:09:27 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:197298</guid><dc:creator>SharpGIS</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/197298.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=197298</wfw:commentRss><description>It was an SL2 beta issue, and has been possible since Silverlight 2RTW.</description></item><item><title>Re: Inheritance limitation (FrameworkElement &amp; DependencyObject)</title><link>http://forums.silverlight.net/forums/thread/197258.aspx</link><pubDate>Sat, 28 Mar 2009 13:33:08 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:197258</guid><dc:creator>avbersSL</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/197258.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=197258</wfw:commentRss><description>&lt;p&gt;Is this allowed in SL3 now??&lt;/p&gt;</description></item><item><title>Re: Inheritance limitation (FrameworkElement &amp; DependencyObject)</title><link>http://forums.silverlight.net/forums/thread/90240.aspx</link><pubDate>Thu, 11 Sep 2008 23:36:38 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:90240</guid><dc:creator>Odegaard</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/90240.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=90240</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;ll cast a vote as well !&lt;/p&gt;&lt;p&gt;I&amp;#39;m currently working on an API and there are sooo many cases where i&amp;#39;d like to use dependency object.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Right now I have two options:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Just create a class (not inheriting). This has the downside of not being able to use FindName on the object and modify it at runtime.&lt;/li&gt;&lt;li&gt;Inherit from control. This confuses the developer because he gets a zillion properties that have absolutely no effect.&lt;/li&gt;&lt;/ol&gt;Both options are really poor solutions for a good API.&lt;br /&gt;</description></item><item><title>Re: Inheritance limitation (FrameworkElement &amp; DependencyObject)</title><link>http://forums.silverlight.net/forums/thread/74672.aspx</link><pubDate>Fri, 25 Jul 2008 15:11:45 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:74672</guid><dc:creator>asterite</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/74672.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=74672</wfw:commentRss><description>&lt;p&gt;I want to add my vote for this. I need to do an animation on one of my objects, which is *not* visible in the UI. This object implements INotifyPropertyChanged and listeners are registered to that which do update the UI. I really can&amp;#39;t understand why DependencyObject can&amp;#39;t be subclassed by us.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: Inheritance limitation (FrameworkElement &amp;amp;amp; DependencyObject)</title><link>http://forums.silverlight.net/forums/thread/58959.aspx</link><pubDate>Mon, 09 Jun 2008 20:27:33 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:58959</guid><dc:creator>xiard</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/58959.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=58959</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ll go ahead and add my vote as well to allow inheritance from DependencyObject a la WPF.&amp;nbsp; I&amp;#39;m trying to create a custom class that will be used in an IEnumerable to bind to a DataGrid.&amp;nbsp; The columns of the DataGrid would bind to the DependencyProperties I create in this custom class.&amp;nbsp; Essentially, the custom DependencyObject subclass would be the DataContext of the items bound via the DataGrid ItemsSource property.&amp;nbsp; Since I would obviously have one instance of my custom class per row in the DataGrid, I want the rows to be as light-weight as possible.&amp;nbsp; I&amp;#39;m going to go ahead and derive my subclass from Control and see how far I get, but I certainly was surprised to find out that I couldn&amp;#39;t derive from DependencyObject.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;David Cater&lt;/p&gt;</description></item><item><title>Re: Re: Inheritance limitation (FrameworkElement &amp;amp;amp; DependencyObject)</title><link>http://forums.silverlight.net/forums/thread/57637.aspx</link><pubDate>Fri, 06 Jun 2008 06:36:11 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:57637</guid><dc:creator>Kevmeister</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/57637.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=57637</wfw:commentRss><description>&lt;p&gt;I have only just run into this problem myself (wanting to derive from DependencyObject, to use the dependency properties system).&lt;/p&gt;
&lt;p&gt;I also vote that it should be possible to derive from DependencyObject.&lt;/p&gt;</description></item><item><title>Re: Re: Inheritance limitation (FrameworkElement &amp;amp;amp; DependencyObject)</title><link>http://forums.silverlight.net/forums/thread/55650.aspx</link><pubDate>Tue, 27 May 2008 21:07:18 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:55650</guid><dc:creator>PatriceVB</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/55650.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=55650</wfw:commentRss><description>&lt;p&gt;Common Guy! You may be&amp;nbsp;right about the frameworkelement but what about the DependencyObject but do you think that it is normal to have to inherit from the control class to be able to implement dependency properties? We should at least be able to inherits from dependency objects to gain the ability to use the features provided by Silverlight like the animations without having to create a control for that like what we can do in WPF :)&lt;/p&gt;</description></item><item><title>Re: Re: Inheritance limitation (FrameworkElement &amp;amp;amp; DependencyObject)</title><link>http://forums.silverlight.net/forums/thread/55647.aspx</link><pubDate>Tue, 27 May 2008 20:59:29 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:55647</guid><dc:creator>Eric Willeke</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/55647.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=55647</wfw:commentRss><description>&lt;p&gt;The biggest thing I&amp;#39;ve wanted to do was to define a data object that can host Dependency Properties that can then easily participate in data binding. The specific design case isn&amp;#39;t the strongest currently, but it&amp;#39;s a pattern that I&amp;#39;ve used consistently in WPF applications to great effect. As it stands, I&amp;#39;m approximating it through post-construction assignment. &lt;/p&gt;&lt;p&gt;Having dug into it more than I had when I originally posted this comment, I&amp;#39;m not entirely sure the current data binding support handles the cases that I was attempting to pursue anyway, but in the long run this would be useful.&lt;/p&gt;&lt;p&gt;Clarification, I was attempting to subclass DependencyObject, not FrameworkElement. Also, making OnPropertyChanged &amp;quot;internal protected virtual&amp;quot; would open up a lot of the event handling and abstraction I was also hoping to accomplish with using DependencyObject.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Re: Inheritance limitation (FrameworkElement &amp;amp;amp; DependencyObject)</title><link>http://forums.silverlight.net/forums/thread/55642.aspx</link><pubDate>Tue, 27 May 2008 20:36:02 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:55642</guid><dc:creator>Dave Relyea</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/55642.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=55642</wfw:commentRss><description>&lt;p&gt;What sorts of things do you want to do with your subclasses? Note that subclassing&amp;nbsp;FrameworkElement is not all that useful, because we don&amp;#39;t support low-level drawing primitives, so you have to encapsulate other elements.&lt;/p&gt;</description></item><item><title>Re: Re: Inheritance limitation (FrameworkElement &amp;amp;amp; DependencyObject)</title><link>http://forums.silverlight.net/forums/thread/54620.aspx</link><pubDate>Wed, 21 May 2008 20:27:49 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:54620</guid><dc:creator>tonypujals</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/54620.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=54620</wfw:commentRss><description>&lt;p&gt;I want to cast my vote for removing the limitation as well.&lt;/p&gt;</description></item></channel></rss>