<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx</link><description>In my last post on this subject I explored creating WPF UI's dynamically using XML literals. The one part that bugged me a bit was that even though the UI was dynamic, we were using a fixed object model of our customer (using LINQ to SQL classes). I wanted</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Beth Massi - Sharing the goodness that is VB : Dynamic UI with WPF and LINQ</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#8649477</link><pubDate>Wed, 25 Jun 2008 01:38:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8649477</guid><dc:creator>Beth Massi - Sharing the goodness that is VB : Dynamic UI with WPF and LINQ</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/bethmassi/archive/2008/06/12/dynamic-ui-with-wpf-and-linq.aspx"&gt;http://blogs.msdn.com/bethmassi/archive/2008/06/12/dynamic-ui-with-wpf-and-linq.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#8678079</link><pubDate>Tue, 01 Jul 2008 21:11:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8678079</guid><dc:creator>Joel</dc:creator><description>&lt;p&gt;Great stuff. &amp;nbsp;One of the great challenges of a UI is validating the data entered. &amp;nbsp;Not just that it fits in the data table, but that it falls within guidelinles. &amp;nbsp;Have you considered using real-time compilation of .NET code for validation? &amp;nbsp;&lt;/p&gt;
</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#8700967</link><pubDate>Mon, 07 Jul 2008 11:19:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8700967</guid><dc:creator>mahmoud</dc:creator><description>&lt;p&gt;hi can u help &amp;nbsp;to make crystal report&lt;/p&gt;
</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#8721875</link><pubDate>Fri, 11 Jul 2008 22:12:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8721875</guid><dc:creator>dceanes</dc:creator><description>&lt;p&gt;Great stuff Beth!!!&lt;/p&gt;
&lt;p&gt;Call me lazy, but is there any similar C# code around????&lt;/p&gt;
</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#8740805</link><pubDate>Thu, 17 Jul 2008 01:44:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8740805</guid><dc:creator>LarryC</dc:creator><description>&lt;p&gt;Very cool, I added this to get images (say from Categories)&lt;/p&gt;
&lt;p&gt;			Case &amp;quot;image&amp;quot;&lt;/p&gt;
&lt;p&gt;				Return &amp;lt;Image&lt;/p&gt;
&lt;p&gt;								 Height=&amp;quot;150&amp;quot;&lt;/p&gt;
&lt;p&gt;								 Width=&amp;quot;150&amp;quot;&lt;/p&gt;
&lt;p&gt;								 Stretch=&amp;quot;Fill&amp;quot;&lt;/p&gt;
&lt;p&gt;								 HorizontalAlignment=&amp;quot;Left&amp;quot;&lt;/p&gt;
&lt;p&gt;								 Name=&amp;lt;%= &amp;quot;img&amp;quot; &amp;amp; columnInfo.ColumnName %&amp;gt;&lt;/p&gt;
&lt;p&gt;								 Source=&amp;lt;%= &amp;quot;{Binding Path=&amp;quot; &amp;amp; columnInfo.ColumnName &amp;amp; &amp;quot;}&amp;quot; %&amp;gt;/&amp;gt;&lt;/p&gt;
</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#8761854</link><pubDate>Mon, 21 Jul 2008 18:59:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8761854</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi dceanes,&lt;/p&gt;
&lt;p&gt;XML literals are not supported in C# so the code would be different. You'd have to build the XAML manually using the LINQ to XML API directly.&lt;/p&gt;
&lt;p&gt;-B &lt;/p&gt;
</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#8761856</link><pubDate>Mon, 21 Jul 2008 18:59:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8761856</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi LarryC,&lt;/p&gt;
&lt;p&gt;Cool! Thanks for posting that.&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#8761868</link><pubDate>Mon, 21 Jul 2008 19:03:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8761868</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Joel,&lt;/p&gt;
&lt;p&gt;That is definitely one way to run managed code business rules dynamically. It works well if the code changes often. But if you have set validation rules (phone number, SSN, common validators, etc.) and just need a way to hook them up and call them then in WPF you can also take a look at the ValidationRules collection. And in Visual Basic you can also look at the CallByName method.&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>基于WPF LINQ的动态数据模型</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#8960997</link><pubDate>Mon, 22 Sep 2008 12:15:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8960997</guid><dc:creator>Joycode@Ab110.com</dc:creator><description>&lt;p&gt;[原文作者]： Beth Massi [原文链接]： Dynamic Data Entry with WPF and LINQ 上一节我讲到用XML编写动态WPF UI， 尽管这里的UI是动态生成的，但仍有一处不尽人意的地方&lt;/p&gt;
</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#8995867</link><pubDate>Sat, 11 Oct 2008 16:20:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8995867</guid><dc:creator>khamil from Morroco</dc:creator><description>&lt;p&gt;All of tutorials af Beth Massi are very very cool. I wish to be a very good programmer like Her. I'm autodidact and I try...&lt;/p&gt;
&lt;p&gt;this is my Email : khami_med@hotmail.com&lt;/p&gt;
</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#9563130</link><pubDate>Wed, 22 Apr 2009 23:43:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9563130</guid><dc:creator>Railton</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have tried loading this project into my environment but when I try to run it I get a large SQL error message that starts:&lt;/p&gt;
&lt;p&gt;System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible.&lt;/p&gt;
&lt;p&gt;When executing the following line in Window2.xaml.vb:&lt;/p&gt;
&lt;p&gt;taSchema.Fill(Me.TableSchema, Me.TableName)&lt;/p&gt;
&lt;p&gt;I can see the NorthwindDataSet in the data sources and I can preview the data.&lt;/p&gt;
&lt;p&gt;I am using Visual Basic 2008 Express Edition and SQL &amp;nbsp;Server 2008 Compact Edition.&lt;/p&gt;
&lt;p&gt;Any idea's on what the issue is?&lt;/p&gt;
&lt;p&gt;Thanks in advance for any help.&lt;/p&gt;
&lt;p&gt;Railton.&lt;/p&gt;</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#9563145</link><pubDate>Wed, 22 Apr 2009 23:48:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9563145</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Railton,&lt;/p&gt;
&lt;p&gt;Did you download and install the Northwind database first? &lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=06616212-0356-46A0-8DA2-EEBC53A68034&amp;amp;displaylang=en"&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=06616212-0356-46A0-8DA2-EEBC53A68034&amp;amp;displaylang=en&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#9563417</link><pubDate>Thu, 23 Apr 2009 01:41:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9563417</guid><dc:creator>Railton</dc:creator><description>&lt;p&gt;Hi Beth,&lt;/p&gt;
&lt;p&gt;I tried the download but I am not able to use the NORTHWND.MDF in my environment, I get a similar error to the one I mentioned before when testing the connection. &amp;nbsp;Could this be because I only have SQL Server 2008 Compact Edition installed?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Railton&lt;/p&gt;</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#9563433</link><pubDate>Thu, 23 Apr 2009 01:50:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9563433</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Railton,&lt;/p&gt;
&lt;p&gt;Ah, yes. You need SQL Server or the free SQL Server Express edition: &lt;a rel="nofollow" target="_new" href="http://www.microsoft.com/express/sql/"&gt;http://www.microsoft.com/express/sql/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#9563453</link><pubDate>Thu, 23 Apr 2009 01:59:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9563453</guid><dc:creator>Railton</dc:creator><description>&lt;p&gt;Ok, thanks.&lt;/p&gt;
&lt;p&gt;Quick question. &amp;nbsp;Is it possible to use this technique on the compact edition?&lt;/p&gt;
&lt;p&gt;I am writing an application which uses the compact edition database and I need a dynamic UI for editing the table data because columns on the tables will not always be the same and I don't want to have to modify the application each time. &amp;nbsp;Your code did exactly what I need so was hoping I could use it.&lt;/p&gt;
&lt;p&gt;Thanks again for your help.&lt;/p&gt;
&lt;p&gt;Railton&lt;/p&gt;</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#9563681</link><pubDate>Thu, 23 Apr 2009 03:59:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9563681</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Railton,&lt;/p&gt;
&lt;p&gt;The only thing that won't work with SQL Compact is the GetTableSchema stored procedure. SQL Compact doesn't support stored procs so you'll need another way to get the metadata, like storing it in another table. &lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#9564158</link><pubDate>Thu, 23 Apr 2009 10:29:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9564158</guid><dc:creator>Railton</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the steer, however I don't think my skill are deep enough to convert your code :(&lt;/p&gt;
&lt;p&gt;Thanks again,&lt;/p&gt;
&lt;p&gt;Railton&lt;/p&gt;</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#9565101</link><pubDate>Thu, 23 Apr 2009 20:13:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9565101</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Railton,&lt;/p&gt;
&lt;p&gt;Just create a table that contains the metadata you need, i.e. TableName, ColumnName, Type, Length, IsPrimaryKey and fill it with the information about each table. Then just query that instead. It's more maintance becuause you need to make sure the schema and the metadata are in sync but it's the easiest approach for SQL Compact. &lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#9569047</link><pubDate>Sun, 26 Apr 2009 12:32:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9569047</guid><dc:creator>Railton</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the reply, I'm Ok with the concept of storing meta-data in my own tables and retrieving it via sql. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Looking at the code there are quite a few references to the stored procedure and its result set, the area I think I will struggle is converting these references to use the data returned from the SQL. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hope this makes sense! :)&lt;/p&gt;
&lt;p&gt;Railton.&lt;/p&gt;</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#9571272</link><pubDate>Mon, 27 Apr 2009 19:47:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9571272</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Railton,&lt;/p&gt;
&lt;p&gt;There should only be one reference to the GetTableSchema stored proc. All you need to do is change the query on the TableAdapter on the TableSchema dataset. Just right-click and select Configure and then you can change the query to select from your metadata table instead. For more info on configuring TableAdapter queries: &lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/kda44dwy.aspx"&gt;http://msdn.microsoft.com/en-us/library/kda44dwy.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#9583954</link><pubDate>Sat, 02 May 2009 23:32:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9583954</guid><dc:creator>Railton</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I've just got round to looking at this again. &amp;nbsp;I have managed to get it to work but I had to create a new tableadapter and change the declarations so they included ce for example sqlcedataadapter.&lt;/p&gt;
&lt;p&gt;I also found that I get an error on the XamlReader.Load if the column names have a space in them.&lt;/p&gt;
&lt;p&gt;Thanks again for your help.&lt;/p&gt;
&lt;p&gt;Railton.&lt;/p&gt;</description></item><item><title>re: Dynamic Data Entry with WPF and LINQ</title><link>http://blogs.msdn.com/bethmassi/archive/2008/06/24/dynamic-data-entry-with-wpf-and-linq.aspx#9918800</link><pubDate>Fri, 06 Nov 2009 20:53:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9918800</guid><dc:creator>Gilbert</dc:creator><description>&lt;p&gt;Hello! Beth Massi. I really appreciate all your efforts for helping us to learn in vb. Actually I'm just new in wpf and the two wpf video series help me a lot to learn on it. May i request if you could upload your video more on wpf same as the previous with 26 video. Many Thanks!!&lt;/p&gt;
</description></item></channel></rss>