<?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>VS 2010 and .NET Framework 4.0 Beta1 are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2009/05/21/vs-2010-and-net-framework-4-0-beta1-are-out-now.aspx</link><description>As many of you probably already know, dev10 beta1 is available for public download. Some of the additions to Beta1 on the WPF Controls side include: · MultiTouch · EasingFunctions for animations · DataGrid, Calendar, DatePicker, and VisualStateManager</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>VS 2010 and .NET Framework 4.0 Beta1 are out now! | Microsoft Share Point</title><link>http://blogs.msdn.com/vinsibal/archive/2009/05/21/vs-2010-and-net-framework-4-0-beta1-are-out-now.aspx#9633868</link><pubDate>Thu, 21 May 2009 18:14:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9633868</guid><dc:creator>VS 2010 and .NET Framework 4.0 Beta1 are out now! | Microsoft Share Point</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://microsoft-sharepoint.simplynetdev.com/vs-2010-and-net-framework-40-beta1-are-out-now/"&gt;http://microsoft-sharepoint.simplynetdev.com/vs-2010-and-net-framework-40-beta1-are-out-now/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: VS 2010 and .NET Framework 4.0 Beta1 are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2009/05/21/vs-2010-and-net-framework-4-0-beta1-are-out-now.aspx#9793741</link><pubDate>Sat, 20 Jun 2009 17:18:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9793741</guid><dc:creator>Patrick</dc:creator><description>&lt;p&gt;I have been using the WPF Toolkit datagrid and have now started to use the .NET Framework 4 DataGrid in VS2010. Previously I used the Generic.xaml in my custom DataGrid from the supplied Toolkit source code. Where can I find the Generic.xaml file for the VS2010 implementation?&lt;/p&gt;</description></item><item><title>re: VS 2010 and .NET Framework 4.0 Beta1 are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2009/05/21/vs-2010-and-net-framework-4-0-beta1-are-out-now.aspx#9801409</link><pubDate>Wed, 24 Jun 2009 15:38:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9801409</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Patrick,&lt;/p&gt;
&lt;p&gt;Unfortunately there isn't a Generic.xaml file that is available publically for the framework controls. &amp;nbsp;It is a nice thing to have in the toolkit. &amp;nbsp;There is a way you can get access to the default style programmatically. &amp;nbsp;Note that this is an internal method and undocumented so this can change in the future.&lt;/p&gt;
&lt;p&gt;Here is some example code for retrieving the default style of a button. &amp;nbsp;This can obviously be replaced with any control.&lt;/p&gt;
&lt;p&gt;Button b = new Button();&lt;/p&gt;
&lt;p&gt;Assembly asm = Assembly.GetAssembly(typeof(Button));&lt;/p&gt;
&lt;p&gt;Type styleHelperType = asm.GetType(&amp;quot;System.Windows.StyleHelper&amp;quot;);&lt;/p&gt;
&lt;p&gt;Style style = (Style)styleHelperType.InvokeMember(&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;GetThemeStyle&amp;quot;, &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BindingFlags.NonPublic | BindingFlags.InvokeMethod | BindingFlags.Static, &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;null, &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;null, &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;new object[] { b, null });&lt;/p&gt;
&lt;p&gt; var settings = new XmlWriterSettings();&lt;/p&gt;
&lt;p&gt; settings.Indent = true;&lt;/p&gt;
&lt;p&gt; var sb = new StringBuilder();&lt;/p&gt;
&lt;p&gt; var writer = XmlWriter.Create(sb, settings);&lt;/p&gt;
&lt;p&gt; XamlWriter.Save(style, writer);&lt;/p&gt;
&lt;p&gt; MessageBox.Show(sb.ToString());&lt;/p&gt;
</description></item><item><title>re: VS 2010 and .NET Framework 4.0 Beta1 are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2009/05/21/vs-2010-and-net-framework-4-0-beta1-are-out-now.aspx#9801918</link><pubDate>Wed, 24 Jun 2009 22:30:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9801918</guid><dc:creator>Patrick</dc:creator><description>&lt;p&gt;Thank you very much for the help, it has got me the information I wanted. I understand that parts may change in the future (and most probably will). I will try to keep an eye out for that and cater for that possibility.&lt;/p&gt;
&lt;p&gt;PS I'm sure I've seen similar approaches to this before, but maybe not quite the same. I need to learn a bit more about .NET in this area!&lt;/p&gt;</description></item></channel></rss>