Working with Data in WPF Applications in the Visual Studio 2010 and .NET Framework 4.0 CTP Forum© 2009 Microsoft Corporation. All rights reserved.Wed, 20 May 2009 19:18:49 Z1d28e4b7-2c1e-4b2a-bc9d-0d79f699984chttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/a8818430-db85-4e1a-bc96-06c3c161512fhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/a8818430-db85-4e1a-bc96-06c3c161512fAlicia Caleshttp://social.msdn.microsoft.com/Profile/en-US/?user=Alicia%20CalesFORUM LOCKED: Please use the Visual Studio 2010 & .NET Framework 4 Beta 1 Forums<p class=MsoNormal style="margin:0in 0in 0pt 0.25in"><span style="font-size:small;font-family:Calibri">Thank you for visiting Visual Studio 2010 .Net 4 CTP forums.   Since the Beta1 is now available we <span style="color:#1f497d">are </span>closing down the CTP forums and encourage you to visit the new</span><span style="font-size:8pt;color:black;font-family:'Verdana','sans-serif'"> </span><strong><a href="http://social.msdn.microsoft.com/Forums/en-US/category/VSPreRelease,netdevelopmentprerelease,visualstudioprerelease,vstsprerelease"><span style="font-size:small;font-family:Calibri">Visual Studio 2010 &amp; .NET Framework 4 Beta 1</span></a><span style="font-size:small;font-family:Calibri"> </span></strong><span style="font-size:small;font-family:Calibri">forums. </span></p> <p class=MsoNormal style="margin:0in 0in 0pt 0.25in"><span style="font-size:small;font-family:Calibri"><br/>Thanks, </span></p> <p class=MsoNormal style="margin:0in 0in 0pt 0.25in"><span style="font-size:small;font-family:Calibri">Charles Sterling</span></p> <p class=MsoNormal style="margin:0in 0in 0pt 0.25in"><span style="font-size:small;font-family:Calibri">Program Manager Visual Studio </span></p><hr class="sig">Program Manager, Server and Tools Online Operations TeamWed, 20 May 2009 19:17:55 Z2009-05-20T19:18:49Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/dad3e688-5aca-4840-842b-7189c426d83chttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/dad3e688-5aca-4840-842b-7189c426d83cnarmishabahttp://social.msdn.microsoft.com/Profile/en-US/?user=narmishabaHow can I focus a particular item in ListBox in WPFHi,<br/><br/>  I have a listBox whose elements are binded using <strong>ItemsSouce. <br/></strong>Now in the code behind I want to move the focus to the 3rd item in the listbox.<br/>Can somone tell me as to how can I acheive this?<br/>I think that once we get the access to listboxItem than we can easily set the focus by calling &lt;listboxitem&gt;.Focus(). But now the question is how can I get a particular ListBoxItem object for a binded ListBox?<br/><br/>Even though it looked quite obvious to me, I didnt found a solution.Wed, 20 May 2009 09:59:20 Z2009-05-20T09:59:20Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/ab97358e-df84-4c13-bb4c-85e0843e4653http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/ab97358e-df84-4c13-bb4c-85e0843e4653narmishabahttp://social.msdn.microsoft.com/Profile/en-US/?user=narmishabaHow to debug XamlParseException in WPF?Hi,<br><br>  I am getting XamlParseException for one of my xamls which reads somethign like this. This xaml is for Usercontrol.<br><br><b><i>&quot;Cannot assign root instance of type &lt;class name of xaml.cs&gt; to &lt;class name of xaml.cs&gt;&quot;. And it is showing error occured at Line 0 and Position 0.</i></b><br><br>I looked at the Debug -&gt; Output window to find some more exceptions but unfortunately I couldn't found any other than the <b>XamlParseException. <br><br>Can someone please help me in figuring out the exact issue?<br><br>Thanks,<br>shaba.</b>Mon, 02 Mar 2009 13:53:18 Z2009-05-07T13:17:19Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/d069f435-8694-44a4-933b-6fb8f0215e65http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/d069f435-8694-44a4-933b-6fb8f0215e65The_Gaelhttp://social.msdn.microsoft.com/Profile/en-US/?user=The_GaelWill the new .NET Framework 4.0 include alternative font rendering?Hi,<br/><br/>The latest version of .NET (3.5) does not have alternative font rendering or anti-aliasing fonts. Will these be implemented into the 3.5 or will they be included in 4.0?<br/><br/>Thanks and kind regards<br/><br/>Martin  - southcountWed, 01 Apr 2009 10:13:04 Z2009-04-01T10:13:06Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/e1207b7a-d3c3-4ea2-8925-4994f4d3c10dhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/e1207b7a-d3c3-4ea2-8925-4994f4d3c10dThe_Gaelhttp://social.msdn.microsoft.com/Profile/en-US/?user=The_GaelWill the new .NET Framework 4.0 include alternative font rendering?Hi,<br/><br/>The latest version of .NET (3.5) does not have alternative font rendering or anti-aliasing fonts. Will these be implemented into the 3.5 or will they be included in 4.0?<br/><br/>Thanks and kind regards<br/><br/>Martin  - southcountWed, 01 Apr 2009 09:21:51 Z2009-04-01T09:21:52Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/bc69704a-7d10-43ae-bf35-d3b3c08bf583http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/bc69704a-7d10-43ae-bf35-d3b3c08bf583narmishabahttp://social.msdn.microsoft.com/Profile/en-US/?user=narmishabaWhy source property need not be a dependency property in data binding in WPF?Hi,<br><br>    I am very much confused with one fact in WPF Data Binding. WPF says that in data binding, where we bind source property to some target property, target property should be dependency property but source property need not be dependency property. But it appears reverse to me, reason being as follows.<br><br>   Binding means that when ever the value of source changes than target value should be updated. <br><br>Now I ahve 2 questions<br>1. If the source property is not a dependency property than how does change notification goes from source property to target property.<br>2. I dont understand the need for target to be dependency property in binding?<br><br>I think I am definitely missing something here. Can someone please clear my confusion?<br><br><br>Thanks,<br>shaba.Sat, 07 Mar 2009 22:01:37 Z2009-03-07T22:01:40Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/3c6da626-12d6-4d2a-aeb1-17c5e750fef8http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/3c6da626-12d6-4d2a-aeb1-17c5e750fef8narmishabahttp://social.msdn.microsoft.com/Profile/en-US/?user=narmishabaHow to debug XamlParseException in WPF?Hi,<br><br>  I am getting XamlParseException for one of my xamls which reads somethign like this. This xaml is for Usercontrol.<br><br><strong><em>&quot;Cannot assign root instance of type &lt;class name of xaml.cs&gt; to &lt;class name of xaml.cs&gt;&quot;. And it is showing error occured at Line 0 and Position 0.</em></strong><br><br>I looked at the Debug -&gt; Output window to find some more exceptions but unfortunately I couldn't found any other than the <strong>XamlParseException. <br><br>Can someone please help me in figuring out the exact issue?<br><br>Thanks,<br>shaba.</strong>Mon, 02 Mar 2009 13:47:52 Z2009-03-02T13:47:53Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/f3bb79eb-b978-48dc-89df-43a797d67a0bhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/f3bb79eb-b978-48dc-89df-43a797d67a0bvinothkumarvhttp://social.msdn.microsoft.com/Profile/en-US/?user=vinothkumarvrlated to wpf---its very urgent could anyone help?hi please copy and paste the below code and it has xml file also that file data i listed below the link , and please have a look at also.<br><br>&lt;Window x:Class=&quot;WpfApplication4.Window1&quot;<br>    xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;<br>    xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;<br>    Title=&quot;List_View Example&quot; Height=&quot;301&quot; Width=&quot;361&quot; WindowStartupLocation=&quot;Manual&quot;<br>         xmlns:sys=&quot;clr-namespace:System;assembly=mscorlib&quot; &gt;<br>        <br>    &lt;Window.Resources&gt;<br>        &lt;XmlDataProvider x:Key=&quot;employee_DS&quot; Source=&quot;data.xml&quot;<br>                     x:Name=&quot;empdata&quot; /&gt;<br>        &lt;Style x:Key=&quot;{x:Type Button }&quot; TargetType=&quot;{x:Type Button}&quot;&gt;<br>            &lt;Setter Property=&quot;FontFamily&quot; Value=&quot;Tahoma&quot; /&gt;<br>            &lt;Setter Property=&quot;FontSize&quot; Value=&quot;10&quot; /&gt;<br>            &lt;Setter Property=&quot;Height&quot; Value=&quot;65&quot; /&gt;<br>            &lt;Setter Property=&quot;Margin&quot; Value=&quot;20,20,20,0&quot; /&gt;<br>        &lt;/Style&gt;<br>      <br>    &lt;/Window.Resources&gt;<br>    &lt;Window.Background&gt;<br>        &lt;!-- background gradient --&gt;<br>        &lt;LinearGradientBrush StartPoint=&quot;0,0&quot; EndPoint=&quot;0,1&quot;&gt;<br>            &lt;LinearGradientBrush.GradientStops&gt;<br>                &lt;GradientStop Color=&quot;Aqua&quot; Offset=&quot;0&quot; /&gt;<br>                &lt;GradientStop Color=&quot;BlanchedAlmond&quot; Offset=&quot;0.5&quot; /&gt;<br>                &lt;GradientStop Color=&quot;Chocolate&quot; Offset=&quot;0.9&quot; /&gt;<br>                &lt;GradientStop Color=&quot;DarkOrange&quot; Offset=&quot;1&quot; /&gt;<br>            &lt;/LinearGradientBrush.GradientStops&gt;<br>        &lt;/LinearGradientBrush&gt;<br>    &lt;/Window.Background&gt;<br><br><br>    &lt;StackPanel &gt;<br>      <br>        &lt;Grid&gt;<br>           <br>            &lt;ListView Name=&quot;lstvwEmployees&quot; Margin=&quot;25,0,21,-156&quot; ItemTemplate=&quot;{DynamicResource EmployeeTemplate}&quot; <br>                  ItemsSource=&quot;{Binding Source={StaticResource employee_DS}, <br>            XPath=/wipro_employee/employee}&quot; SelectionChanged=&quot;ListView_SelectionChanged&quot; Cursor=&quot;Hand&quot; MouseEnter =&quot;lstvwEmployees_MouseEnter&quot;  Height=&quot;99&quot; VerticalAlignment=&quot;Bottom&quot;&gt;<br>            &lt;!-- for mouse enter event ,it triggers the scaletransform--&gt;<br>                &lt;ListView.ItemContainerStyle&gt;<br><br>                    &lt;Style TargetType=&quot;ListViewItem&quot;&gt;<br><br>                        &lt;Style.Triggers&gt;<br><br>                            &lt;Trigger Property=&quot;IsMouseOver&quot; Value=&quot;True&quot;&gt;<br><br>                                &lt;Setter Property=&quot;Panel.ZIndex&quot; Value=&quot;{x:Static sys:Int32.MaxValue}&quot;/&gt;<br><br>                                &lt;Setter Property=&quot;RenderTransform&quot;&gt;<br><br>                                    &lt;Setter.Value&gt;<br><br>                                        &lt;ScaleTransform ScaleX=&quot;1&quot; ScaleY=&quot;1&quot;/&gt;<br><br>                                    &lt;/Setter.Value&gt;<br><br>                                &lt;/Setter&gt;<br><br>                                &lt;Trigger.EnterActions&gt;<br><br>                                    &lt;BeginStoryboard&gt;<br><br>                                        &lt;Storyboard&gt;<br><br>                                            &lt;ParallelTimeline BeginTime=&quot;0:0:0&quot;&gt;<br><br>                                                &lt;DoubleAnimation Duration=&quot;00:00:00.3000000&quot; To=&quot;1.5&quot; Storyboard.TargetProperty=&quot;RenderTransform.(ScaleTransform.ScaleY)&quot;/&gt;<br><br>                                                &lt;DoubleAnimation Duration=&quot;00:00:00.3000000&quot; To=&quot;1.5&quot; Storyboard.TargetProperty=&quot;RenderTransform.(ScaleTransform.ScaleX)&quot;/&gt;<br><br>                                            &lt;/ParallelTimeline&gt;<br><br>                                        &lt;/Storyboard&gt;<br><br>                                    &lt;/BeginStoryboard&gt;<br><br>                                &lt;/Trigger.EnterActions&gt;<br><br>                                &lt;Trigger.ExitActions&gt;<br><br>                                    &lt;BeginStoryboard&gt;<br><br>                                        &lt;Storyboard&gt;<br><br>                                            &lt;ParallelTimeline BeginTime=&quot;0:0:0&quot;&gt;<br><br>                                                &lt;DoubleAnimation Duration=&quot;00:00:00.3000000&quot; To=&quot;2&quot; Storyboard.TargetProperty=&quot;RenderTransform.(ScaleTransform.ScaleY)&quot;/&gt;<br><br>                                                &lt;DoubleAnimation Duration=&quot;00:00:00.3000000&quot; To=&quot;2&quot; Storyboard.TargetProperty=&quot;RenderTransform.(ScaleTransform.ScaleX)&quot;/&gt;<br><br>                                            &lt;/ParallelTimeline&gt;<br><br>                                        &lt;/Storyboard&gt;<br><br>                                    &lt;/BeginStoryboard&gt;<br><br>                                &lt;/Trigger.ExitActions&gt;<br><br>                            &lt;/Trigger&gt;<br><br>                        &lt;/Style.Triggers&gt;<br><br>                    &lt;/Style&gt;<br><br>                &lt;/ListView.ItemContainerStyle&gt;<br><br>                &lt;!-- for listview to show animation as outer glow effect--&gt; <br>                &lt;ListView.BitmapEffect&gt;<br>                    &lt;BitmapEffectGroup&gt;<br>                        &lt;OuterGlowBitmapEffect GlowColor=&quot;CornflowerBlue&quot;  GlowSize=&quot;15&quot;/&gt;<br>                        &lt;DropShadowBitmapEffect ShadowDepth=&quot;10&quot; Softness=&quot;5&quot;/&gt;<br>                        &lt;BevelBitmapEffect BevelWidth=&quot;15&quot;/&gt;<br>                    &lt;/BitmapEffectGroup&gt;<br>                &lt;/ListView.BitmapEffect&gt;<br>                <br>                    &lt;ListView.View&gt;<br>                    &lt;GridView &gt;<br>                    &lt;GridViewColumn Header=&quot;Code&quot; Width=&quot;50&quot; DisplayMemberBinding=&quot;{Binding XPath=Code}&quot; /&gt;<br>                    &lt;GridViewColumn Header=&quot;Name&quot; Width=&quot;100&quot; DisplayMemberBinding=&quot;{Binding XPath=Name}&quot;/&gt;<br>                    &lt;GridViewColumn Header=&quot;Country&quot; DisplayMemberBinding=&quot;{Binding XPath=Country}&quot;/&gt;<br>                &lt;/GridView&gt;<br>               &lt;/ListView.View&gt;<br>                <br>        &lt;/ListView&gt;<br>            &lt;Button Height=&quot;34&quot; Name=&quot;button1&quot; Width=&quot;77&quot; HorizontalAlignment=&quot;Right&quot; Margin=&quot;0,0,21,-201&quot; VerticalAlignment=&quot;Bottom&quot; Click=&quot;button1_Click&quot;&gt;Close Window&lt;/Button&gt;<br>        &lt;/Grid&gt;<br>        &lt;!-- button to show animation as outer glow effect--&gt;<br><br><br>        &lt;Popup Placement=&quot;Mouse&quot; Name=&quot;popup&quot;  DataContext=&quot;{StaticResource employee_DS}&quot; AllowsTransparency=&quot;True&quot;&gt;<br><br><br><br>            &lt;Grid Name=&quot;grid1&quot; Background=&quot;Gray&quot;  DataContext=&quot;{Binding}&quot;&gt;<br>                &lt;TextBlock Margin=&quot;20,27,10,22&quot; &gt;Details of the Employee&lt;/TextBlock&gt;<br>                &lt;Label Margin=&quot;20,48,172,0&quot; Content=&quot;Code&quot; Height=&quot;24&quot; VerticalAlignment=&quot;Top&quot;&gt;&lt;/Label&gt;<br>                &lt;Label Content=&quot;Name&quot; Margin=&quot;20,86,0,132&quot; HorizontalAlignment=&quot;Left&quot; Width=&quot;43&quot;&gt;&lt;/Label&gt;<br>                &lt;Label Content=&quot;Country&quot; Margin=&quot;20,124,0,106&quot; HorizontalAlignment=&quot;Left&quot; Width=&quot; 50&quot;&gt;&lt;/Label&gt;<br>                &lt;Button Background=&quot;ForestGreen&quot; Margin=&quot;0,0,10,0&quot; Name=&quot;ex&quot; Content=&quot;Exit&quot; Click=&quot;Button_Click_1&quot; HorizontalAlignment=&quot;Right&quot; Width=&quot;69&quot; Height=&quot;26&quot; VerticalAlignment=&quot;Bottom&quot;&gt;&lt;/Button&gt;<br>                &lt;TextBox Text=&quot;{Binding XPath=Code}&quot; Height=&quot;26&quot; Margin=&quot;108,54,32,0&quot; Name=&quot;textBox1&quot; VerticalAlignment=&quot;Top&quot;/&gt;<br>                &lt;TextBox Text=&quot;{Binding XPath=Name}&quot; Height=&quot;26&quot; Margin=&quot;108,89,32,0&quot; Name=&quot;textBox2&quot; VerticalAlignment=&quot;Top&quot;/&gt;<br>                &lt;TextBox Text=&quot;{Binding XPath=Country}&quot; Height=&quot;27&quot; Margin=&quot;107,124,32,0&quot; Name=&quot;textBox3&quot; VerticalAlignment=&quot;Top&quot;/&gt;<br>                &lt;Label HorizontalAlignment=&quot;Left&quot; Margin=&quot;20,158,0,142&quot; Name=&quot;Label1&quot; Width=&quot;83&quot;&gt;Age&lt;/Label&gt;<br>                &lt;TextBox Text=&quot;{Binding XPath=age}&quot; Margin=&quot;107,164,32,139&quot; Name=&quot;textBox4&quot; /&gt;<br>                &lt;Label Height=&quot;32&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;21,0,0,90&quot; Name=&quot;label2&quot; VerticalAlignment=&quot;Bottom&quot; Width=&quot;94&quot;&gt;Job Status&lt;/Label&gt;<br>                &lt;TextBox Text=&quot;{Binding XPath=job}&quot; Height=&quot;25&quot; Margin=&quot;107,0,30,95&quot; Name=&quot;textBox5&quot; VerticalAlignment=&quot;Bottom&quot; /&gt;<br>                &lt;Label Height=&quot;32&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;21,0,0,30&quot; Name=&quot;label3&quot; VerticalAlignment=&quot;Bottom&quot; Width=&quot;83&quot;&gt;Details&lt;/Label&gt;<br>                &lt;Label Content=&quot;{Binding XPath=details}&quot; Height=&quot;63&quot; Margin=&quot;93,0,18,22&quot; Name=&quot;label4&quot; VerticalAlignment=&quot;Bottom&quot;&gt;&lt;/Label&gt;<br>            &lt;/Grid&gt;<br>        &lt;/Popup&gt;<br><br>        &lt;Grid&gt;<br>            &lt;Grid.Triggers&gt;<br>&lt;!-- story board for mouse enter animation--&gt;<br>     &lt;EventTrigger RoutedEvent='Rectangle.MouseEnter' Storyboard.TargetName=&quot;popup&quot; Storyboard.TargetProperty=&quot;(Popup.IsOpen)&quot;&gt;<br>                    &lt;EventTrigger.Actions&gt;<br>                        &lt;BeginStoryboard&gt;<br>                            &lt;Storyboard&gt;<br>                                &lt;DoubleAnimation <br>                Storyboard.TargetName=&quot;lstvwEmployees&quot;<br>                Storyboard.TargetProperty=&quot;Opacity&quot;<br>                To=&quot;1.0&quot; Duration=&quot;0:0:1&quot;/&gt;<br>                            &lt;/Storyboard&gt;<br>                        &lt;/BeginStoryboard&gt;<br>                    &lt;/EventTrigger.Actions&gt;<br>                &lt;/EventTrigger&gt;<br><br>                &lt;EventTrigger RoutedEvent='Rectangle.MouseLeave'&gt;<br>                    &lt;EventTrigger.Actions&gt;<br>                        &lt;BeginStoryboard&gt;<br>                            &lt;Storyboard&gt;<br>                                &lt;DoubleAnimation <br>                Storyboard.TargetName=&quot;lstvwEmployees&quot;<br>                Storyboard.TargetProperty=&quot;Opacity&quot;<br>                To=&quot;0.3&quot; Duration=&quot;0:0:2&quot;/&gt;<br>                            &lt;/Storyboard&gt;<br>                        &lt;/BeginStoryboard&gt;<br>                    &lt;/EventTrigger.Actions&gt;<br>                &lt;/EventTrigger&gt;<br><br>            &lt;/Grid.Triggers&gt;<br><br>        &lt;/Grid&gt;<br>        <br>       <br>    &lt;/StackPanel&gt;<br>    &lt;!-- <br>                &lt;Style TargetType=&quot;ListViewItem&quot;&gt;<br><br>                    &lt;Style.Triggers&gt;<br><br>                        &lt;Trigger Property=&quot;IsMouseOver&quot; Value=&quot;True&quot;&gt;<br><br>                            &lt;Setter Property=&quot;Panel.ZIndex&quot; Value=&quot;{x:Static sys:Int32.MaxValue}&quot;/&gt;<br><br>                            &lt;Setter Property=&quot;RenderTransform&quot;&gt;<br><br>                                &lt;Setter.Value&gt;<br><br>                                    &lt;ScaleTransform ScaleX=&quot;1&quot; ScaleY=<br>    &quot;1&quot;/&gt;<br><br>                                &lt;/Setter.Value&gt;<br><br>                            &lt;/Setter&gt;<br><br>                            &lt;Trigger.EnterActions&gt;<br><br>                                &lt;BeginStoryboard&gt;<br><br>                                    &lt;Storyboard&gt;<br><br>                                        &lt;ParallelTimeline BeginTime=&quot;0:0:0&quot;&gt;<br><br>                                            &lt;DoubleAnimation Duration=&quot;00:00:00.2000000&quot; To=&quot;1.5&quot; Storyboard.TargetProperty=&quot;RenderTransform.(ScaleTransform.ScaleY)&quot;/&gt;<br><br>                                            &lt;DoubleAnimation Duration=&quot;00:00:00.2000000&quot; To=&quot;1.5&quot; Storyboard.TargetProperty=&quot;RenderTransform.(ScaleTransform.ScaleX)&quot;/&gt;<br><br>                                        &lt;/ParallelTimeline&gt;<br><br>                                    &lt;/Storyboard&gt;<br><br>                                &lt;/BeginStoryboard&gt;<br><br>                            &lt;/Trigger.EnterActions&gt;<br><br>                            &lt;Trigger.ExitActions&gt;<br><br>                                &lt;BeginStoryboard&gt;<br><br>                                    &lt;Storyboard&gt;<br><br>                                        &lt;ParallelTimeline BeginTime=&quot;0:0:0&quot;&gt;<br><br>                                            &lt;DoubleAnimation Duration=&quot;00:00:00.2000000&quot; To=&quot;1&quot; Storyboard.TargetProperty=&quot;RenderTransform.(ScaleTransform.ScaleY)&quot;/&gt;<br><br>                                            &lt;DoubleAnimation Duration=&quot;00:00:00.2000000&quot; To=&quot;1&quot; Storyboard.TargetProperty=&quot;RenderTransform.(ScaleTransform.ScaleX)&quot;/&gt;<br><br>                                        &lt;/ParallelTimeline&gt;<br><br>                                    &lt;/Storyboard&gt;<br><br>                                &lt;/BeginStoryboard&gt;<br><br>                            &lt;/Trigger.ExitActions&gt;<br><br>                        &lt;/Trigger&gt;<br><br>                    &lt;/Style.Triggers&gt;<br><br>                &lt;/Style&gt;<br>    <br>    --&gt;<br>    &lt;/Window&gt; <br>   <br><br>and my data.xml file is ;<br><br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;wipro_employee&gt;<br>  &lt;employee emp_id=&quot;0&quot;&gt;<br>    &lt;Code&gt;c1&lt;/Code&gt;<br>    &lt;Name&gt;vinoth&lt;/Name&gt;<br>    &lt;Country&gt;india&lt;/Country&gt;<br>    &lt;age&gt;20&lt;/age&gt;<br>    &lt;job&gt;working&lt;/job&gt;<br>    &lt;details&gt;<br>     This is with respect to the details of<br>     Employee vinoth,code no 1 and his residence in India&lt;/details&gt;<br>  &lt;/employee&gt;<br>  &lt;employee emp_id=&quot;1&quot;&gt;<br>    &lt;Code&gt;c2&lt;/Code&gt;<br>    &lt;Name&gt;kumar&lt;/Name&gt;<br>    &lt;Country&gt;United Kingdom&lt;/Country&gt;<br>    &lt;age&gt;28&lt;/age&gt;<br>    &lt;job&gt;working&lt;/job&gt;<br>    &lt;details&gt;<br>      This is with respect to the details of<br>      Employee kumar,code no 2 and his residence in United Kingdom<br>    &lt;/details&gt;<br>  &lt;/employee&gt;<br>  &lt;employee emp_id=&quot;2&quot;&gt;<br>    &lt;Code&gt;c3&lt;/Code&gt;<br>    &lt;Name&gt;vinothkumar&lt;/Name&gt;<br>    &lt;Country&gt;Spain&lt;/Country&gt;<br>    &lt;age&gt;27&lt;/age&gt;<br>    &lt;job&gt;working&lt;/job&gt;<br>    &lt;details&gt;<br>      This is with respect to the details of<br>      Employee vinothkumar,code no 3 and his residence in Spain<br>    &lt;/details&gt;<br>  &lt;/employee&gt;<br>  &lt;employee emp_id=&quot;3&quot;&gt;<br>    &lt;Code&gt;c4&lt;/Code&gt;<br>    &lt;Name&gt;veluswamy&lt;/Name&gt;<br>    &lt;Country&gt;england&lt;/Country&gt;<br>    &lt;age&gt;23&lt;/age&gt;<br>    &lt;job&gt;working&lt;/job&gt;<br>    &lt;details&gt;<br>      This is with respect to the details of<br>      Employee veluswamy,code no 4 and his residence in England<br>    &lt;/details&gt;<br>  &lt;/employee&gt;<br><br>&lt;/wipro_employee&gt;<br><br><br>please bind this xml file with the listview and run this code.<br><br>on clicking the listviewitem ,the selected item is not showing any color on single click, but double click the listviewitem, now the selected item can be seen by the default blue color, please help me , i need to fix this issue,, on jus clicking the listviewitem, i need to set the selected item to some color so that the user will come to know which item does he selected.<br><br>thanks in advance to all and help me to fix this problem,, am i left any code in that?<br><br>its very urgent please reply for my post,,, <br><br>regards<br>vinoth<br>Thu, 19 Feb 2009 14:37:45 Z2009-02-21T14:12:17Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/6ae17a25-6649-4f28-84f2-992c217cb58fhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/6ae17a25-6649-4f28-84f2-992c217cb58fEduMarqueshttp://social.msdn.microsoft.com/Profile/en-US/?user=EduMarquesnews applications (novas aplicações)<div dir=ltr style="text-align:left">Hello, <br><br>the new visual studio will have applications to create cloud computer? <br><br>What are the news? <br><br>thanks.</div> <br>-------------------------------------------------------------------------------------------<br><br>Ola , <br><br>o novo visual studio vai ter aplicativos para criar cloud computer ?<br><br>Quais serão as novidades ?<br><br>obrigado.<hr class="sig">Eduardo - Asp.Net - Web developer - SQLFri, 13 Feb 2009 13:20:12 Z2009-02-13T13:20:14Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/bf515307-cabe-4cea-aaa6-96d28cb36119http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/bf515307-cabe-4cea-aaa6-96d28cb36119Schwartzenberghttp://social.msdn.microsoft.com/Profile/en-US/?user=Schwartzenbergdata virtualization via a ListView<p> I presented the below query on the WPF forum, but it might get more mileage on this network since it has to do with &quot;Data and WPF&quot; - and it could be i'd need to move to VS 2010 to better be able to do what i am asking below.... </p> <p> </p> <p> I  have a collection that i bind to my WPF ListView.  It is (what i call) a &quot;data window&quot; to the larger mass of data that i access via a webservice.  I think i'll write my own bindable custom collection, deriving from ObservableCollection&lt;T&gt; or alternatively a collection that implements IList and INotifyCollectionChanged.   So when my &quot;data window&quot; changes the ListView gets its data automatically.   I have have found a few links on this challenge, <a href="http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/45887010-2cb4-49d4-b9b2-33789a66ee36"><font color="#0072bc">here</font></a>, <a href="http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/f975adcc-af0d-4565-b448-9bbffbe1d643/"><font color="#0072bc">here</font></a>, <a href="http://blog.quantumbitdesigns.com/2008/07/22/wpf-cross-thread-collection-binding-part-4-the-grand-solution/"><font color="#0072bc">here</font></a>, <a href="http://jerryclin.wordpress.com/2008/02/06/making-a-virtualizing-wrappanel/3/"><font color="#0072bc">here</font></a>, and <a href="http://blogs.msdn.com/dancre/archive/2006/02/06/implementing-a-virtualized-panel-in-wpf-avalon.aspx"><font color="#0072bc">here</font></a>, on the basis i which i could formulate the following three questions.</p><br><br> <p>(a) Which custom collection way should i go?  Either way will dynamically update my ListView.  I am refactoring my current collection List&lt;T&gt; that i tweaked so it Sorts real fast.  But i can write a good Sort() method for either of the two refactoring ways.</p> <p>(b) I'd like the scrollbar in my ListView to emulate that it is viewing much larger data than the Collection to which the ListView is actually binded.<br>Suggestion for this?</p> <p>(c) How to get events from the scrollbar, like when scrolling to an area of data i have not yet downloaded?  <br>I'd need this to decide when to update the collection i binded to or alternatively rebind the ListView.<br> <br>The above points (b) and (c) concerns lazy loading of data - i hope it has someones interest!</p> <p>Please note that i am aware that my ListView does UI virtualization via its viewport of the data it is already binded too.  I am looking to implement data virtualization that augments the already existing UI virtualization.   It is a new requirement that my ListView be used to view online data.  I would like the scrollbar to represent the range of data available.  As the user scrolls, the data is brought in, in &quot;chuncks&quot;, thus lazy loading.</p> <p>Thanks,<br></p> <hr class=sig> PaulThu, 29 Jan 2009 14:02:54 Z2009-01-29T14:03:58Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/8c72e5de-f597-46bc-b429-59ec73fe830chttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/8c72e5de-f597-46bc-b429-59ec73fe830cKarthikeyanManickamhttp://social.msdn.microsoft.com/Profile/en-US/?user=KarthikeyanManickamHow to set the Visibility of an control from Resources.resx file?Hi,<br><br>I'm trying to get the visibility value of a button from the resources.resx file. I'm getting error as &quot;Cannot convert the string value to Visibility.Collapsed&quot; . Here my code as follows,<br><br>XAML Code:-<br><font color="#a31515" size=2> <p><font color="#0000ff" size=2></p> <p>&lt;</font><font color="#a31515" size=2>Button</font><font color="#ff0000" size=2> Margin</font><font color="#0000ff" size=2>=&quot;64,110,69,123&quot;</font><font color="#ff0000" size=2> Name</font><font color="#0000ff" size=2>=&quot;button2&quot;</font><font color="#ff0000" size=2> Content</font><font color="#0000ff" size=2>=&quot;{</font><font color="#a31515" size=2>x</font><font color="#0000ff" size=2>:</font><font color="#a31515" size=2>Static</font><font color="#ff0000" size=2> properties</font><font color="#0000ff" size=2>:</font><font color="#ff0000" size=2>Resource1</font><font color="#0000ff" size=2>.MainButtonContent}&quot;</font><font size=2> </font><font color="#ff0000" size=2>Visibility</font><font color="#0000ff" size=2>=&quot;{x:Static properties:Resource1.MainButtonVisibility}&quot; /&gt;<br><br>Resources.resx Code:-<br><br><font color="#000000">Name                    Value</font><br>MainButtonVisibility Collapsed <br><br><font color="#000000">In the Output window the control should not appear, as per the above code. But the button is appearing in the window. As well as in the above code i have done for the Content of the Button its working fine for me.<br></font><br><font color="#000000"> But the Visibility is not working, or am I did any mistakes on the code. Please correct me if I'm wrong.<br> I have tried so many ways to resolve the above issue. but I couldn't Please any can give me the guidence or code samples would be greatly appericiate.<br><br>Please let me know if more inputs required for the same.<br></font><br>Thanks and Best Regards,<br>Karthikeyan Manickam.<br></p></font></font>Tue, 16 Dec 2008 10:21:37 Z2008-12-29T06:17:02Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/1bf80bc3-4da5-453a-8357-c819fa7d4952http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/1bf80bc3-4da5-453a-8357-c819fa7d4952KarloX2http://social.msdn.microsoft.com/Profile/en-US/?user=KarloX2WPF Designer: Property editor does not allow to choose from NewItemTypesAttribute'd listHello,<br><br>in the WPF designer VS2010 CTP, the property editor of a control does not allow to make a choice between different classes for a property, when different possible classes are defined using the NewItemTypes attribute.<br><br>In VS2008, a combo box would appear and allow to make a choice. In Vs2010, no such choice is possible any more but the text &quot;Value must be set in XAML&quot; is displayed.<br><br>Will this feature be available again?<br><br>Thanks<br>KarloMon, 22 Dec 2008 16:09:14 Z2008-12-22T16:09:40Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/87fe391f-1b99-403f-b069-387d3901280ahttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/87fe391f-1b99-403f-b069-387d3901280aKarloX2http://social.msdn.microsoft.com/Profile/en-US/?user=KarloX2Data Sources Wizard and objects, sample app<p>Hello,</p> <p>my main interest in evaluating the VS2010CTP is the Data Sources Wizard for WPF pages and how it can be used with object data provider source.</p> <p>I have done some tests and found a few issues and I have also a number of proposals for the Data Sources Wizard for WPF.</p> <p>I've put together a repro-sample and I have documented the issues in a word document along with a number of screen shots.</p> <p>However, for some legal reasons I cannot post this sample app in this public forum. I can however send it to microsoft by private email directly. Can you please contact me and tell me the appropriate email address, either here or by sending a mail to <a href="mailto:info@ait-software.de">info@ait-software.de</a></p> <p>Here's the summary from the 6-pages document this I'd like to send you along with the sample project:<br><br><u><font face="'Arial','sans-serif'" size=3><font style="font-size:12px" face=Verdana>Summary of my requests and wishes in the order of importance:</font></font></u></p> <p style="margin:0cm 0cm 0pt"><u><font face="'Arial','sans-serif'" size=3><font style="text-decoration:none"><font style="font-size:12px"></font></font></u> <p></p></p> <p style="margin:0cm 0cm 0pt 36pt"><font face="'Arial','sans-serif'" size=3><font style="font-size:12px"><font face=Verdana><font>1.<font style="font-weight:normal;font-size:7pt;line-height:normal;font-style:normal;font-variant:normal" face="'Times New Roman'">    </font></font><font face="'Arial','sans-serif'" size=3>Allow to access Sources from static resources that are declared in App.xaml in &lt;Application.Resources&gt;.</font></font></font> <p></p></p> <p style="margin:0cm 0cm 0pt 36pt"><font face="'Arial','sans-serif'" size=3><font style="font-size:12px"><font face=Verdana><font>2.<font style="font-weight:normal;font-size:7pt;line-height:normal;font-style:normal;font-variant:normal" face="'Times New Roman'">    </font></font><font face="'Arial','sans-serif'" size=3>Allow customization of the properties being offered as path segments. Allow to hide properties, even when inherited from a base class.</font></font></font> <p></p></p> <p style="margin:0cm 0cm 0pt 36pt"><font face="'Arial','sans-serif'" size=3><font style="font-size:12px"><font face=Verdana><font>3.<font style="font-weight:normal;font-size:7pt;line-height:normal;font-style:normal;font-variant:normal" face="'Times New Roman'">    </font></font><font face="'Arial','sans-serif'" size=3>Support a path syntax like this “FirstLevel[1].SecondLevel[0].Something” to address specific instances within lists.</font></font></font> <p></p></p> <p style="margin:0cm 0cm 0pt 36pt"><font face="'Arial','sans-serif'" size=3><font style="font-size:12px"><font face=Verdana><font>4.<font style="font-weight:normal;font-size:7pt;line-height:normal;font-style:normal;font-variant:normal" face="'Times New Roman'">    </font></font><font face="'Arial','sans-serif'" size=3>Support value converter selection and parameterization in a convenient way, at least by displaying short descriptions about the syntax or – better – by allowing some sort of customization to build the syntax of the ConverterParameter.</font></font></font> <p></p></p> <p style="margin:0cm 0cm 0pt 36pt"><font face="'Arial','sans-serif'" size=3><font style="font-size:12px"><font face=Verdana><font>5.<font style="font-weight:normal;font-size:7pt;line-height:normal;font-style:normal;font-variant:normal" face="'Times New Roman'">    </font></font><font face="'Arial','sans-serif'" size=3>Offer a test function to allow the user to test a ValueConverter with some sample data.</font></font></font> <p></p></p> <p style="margin:0cm 0cm 0pt 36pt"><font face="'Arial','sans-serif'" size=3><font style="font-size:12px"><font face=Verdana><font>6.<font style="font-weight:normal;font-size:7pt;line-height:normal;font-style:normal;font-variant:normal" face="'Times New Roman'">    </font></font><font face="'Arial','sans-serif'" size=3>Make resizing the Wizard window easier. Make it keep the size when the user resized it.<br>7. Show tooltip information about the segmens of a path including the data type (e.g. &quot;System.Int32&quot; or &quot;List&quot;) and either the documentation summary or the text from a DescriptionAttribute.<br></font></font></font> <p></p> <p></p></font></p> <p style="margin:0cm 0cm 0pt 36pt"> <p></p></font></p> <p style="margin:0cm 0cm 0pt 36pt"> <p></p></font></p> <p style="margin:0cm 0cm 0pt 36pt"> <p></p></font></p> <p style="margin:0cm 0cm 0pt 36pt"> <p></p></font></p> <p style="margin:0cm 0cm 0pt 36pt"> <p></p></font></p> <p style="margin:0cm 0cm 0pt"> <p></p></font></u></p> <p><br>Thanks<br>Karlo</p>Thu, 27 Nov 2008 12:04:59 Z2008-12-03T10:54:35Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/9cf100eb-4c83-414e-8362-6b3d219c44e5http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/9cf100eb-4c83-414e-8362-6b3d219c44e5rakesh.nitwhttp://social.msdn.microsoft.com/Profile/en-US/?user=rakesh.nitwSetting binding Path in XAMLIn XAML, how do I bind a property to keyed item in a KeyedCollection and how to typecast the typecast the value?<br><br>I have been trying all the different ways mentioned in MSDN but none seem to work.Wed, 03 Dec 2008 00:03:51 Z2008-12-03T00:03:52Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/4edd6d5e-d714-48dc-8724-45bbbc13edcchttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/4edd6d5e-d714-48dc-8724-45bbbc13edccOrion5http://social.msdn.microsoft.com/Profile/en-US/?user=Orion5WPF using the "Data Sources Window"Hi,<br><br>From the CTP, it seems the designer support for WPF data binding is based on the same old Data Sources Window used for WinForms. drag-and-drop data binding is an incredibly useful feature, but the Data Sources Window has some annoying limitations that make it very hard to use effectively in a real world application. <br><br>Since WPF came along a few years ago, I figured it was hopeless to try to get these limitations addressed because Microsoft is not going to invest heavily in the old WinForms. Now that WPF uses the same window, any chance of improving the Data Sources Window for the VS2010 release?<br><br>Some examples of missing extensibility options-<br><blockquote dir=ltr style="margin-right:0px"> <ul><li> <div align=left>An ability to filter what is displayed in the data tree itself. For example, if all our business object have &quot;Min&quot; and &quot;Max&quot; property, I'd like to be able to let the tree ignore these.</div> </li><li> <div align=left>An ability to capture the drag and drop operation from the tree, get the full path to the key that was dragged, and let me handle creating the controls instead of the built-in mechanism. This will be useful in order to create multiple custom controls, do post processing to &quot;patch up&quot; some properties to be suitable for our application, or just about anything else we'll need.<br></div> </li><li> <div align=left>Ability to attach custom controls to specific types of enums. For example, attach a specific &quot;OnOffEnum&quot; to a specific custom control, instead of just mapping all enums to the same.</div></li></ul></blockquote>Thanks!<br>Sat, 08 Nov 2008 16:31:25 Z2008-11-29T15:49:45Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/98c39253-bfd2-4a71-b812-f894bf8ea96dhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/98c39253-bfd2-4a71-b812-f894bf8ea96dParagShttp://social.msdn.microsoft.com/Profile/en-US/?user=ParagSHow to change tab header color on an custom event in WPF? Hello,<br>I have a tab control in WPF. In it, I have one of the tab item as Alarms.<br><br>I want to change the tab header color of alarms tab on an event which is generated in WPF code behind.<br><br>How to achieve it?<br><br>Best Regards,<br>ParagS.Wed, 26 Nov 2008 05:41:00 Z2008-11-27T01:17:01Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/8593ce84-25d5-4620-9b42-5dc38934dd8dhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/8593ce84-25d5-4620-9b42-5dc38934dd8dPCSQL66http://social.msdn.microsoft.com/Profile/en-US/?user=PCSQL66What happens to the WPF 3.5 SP1 ItemsControl properties AlternationCount and AlternationIndex?<p> I'm trying to upgrade VS2008 SP1 solution.   The new WPF 3.5 SP1 properties for the ItemsControl: AlternationCount and AlternationIndex seem to be gone.   Are there any equivalent properties?<br>Does the current .NET 4 include the new WPF features from .NET 3.5 SP1?</p> <p>Thanks.</p>Tue, 11 Nov 2008 19:46:05 Z2008-11-27T01:11:14Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/22a36663-744e-439e-92e2-3959619051a0http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/22a36663-744e-439e-92e2-3959619051a0malcolmxuhttp://social.msdn.microsoft.com/Profile/en-US/?user=malcolmxuhow to publish a wpf browser in a new mathine without VS Hi<br><br>I have one WCF service and WPF browser, in my develop mathine, I have edit endpoint address and publish wpf to my IIS by using VS.<br><br>right now I wanna install all of this in a new mathine,<br><br>1. Do I have to hard code wcf endpoint address to be new mathines IP first? any other way to change it not in VS?<br><br>2. how to publish wpf browser to new IIS without VS?<br><br>ThanksFri, 21 Nov 2008 21:00:14 Z2008-12-04T14:35:23Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/819fcd38-5106-4c57-962e-30026b3fe3bfhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/819fcd38-5106-4c57-962e-30026b3fe3bfMuruganas81http://social.msdn.microsoft.com/Profile/en-US/?user=Muruganas81Xbap Page Mouse move, mouse leave event is not working HI <br>  I am developing  screen saver application in Xbap, so when the screen saver came i just move with mouse it is go to the Log in Page . here the page having mouse events <br>but it is not firing when we move the mouse or click it in page . <br><br>How to achive this one <br><br><br>Regards <br>Murugan<br>Sun, 09 Nov 2008 07:47:36 Z2008-12-02T21:32:35Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/1311b66f-64e3-4793-b6ee-876bd45e2688http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/1311b66f-64e3-4793-b6ee-876bd45e2688TheSorcererhttp://social.msdn.microsoft.com/Profile/en-US/?user=TheSorcererDifferents template for different rows in a ListViewHi,<br><br>I have a listview that shows a list of elements of two types, files and folders. This listview has 4 columns ( Name, Data, Size and Icon ). For files, all columns has sense but not for folders ( they only have Name field ). So I would like to use a different template for folders ( like a RowSpan for 4 columns o something like this )<br><br>My ideas started using a ListBox instead of a ListView but, I loose column resizing. I'm thinking in it but I have no idea.<br><br>Any help?<br><br>Thanks.<br> Thu, 06 Nov 2008 15:23:55 Z2008-11-14T17:38:59Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/477579fa-6219-4200-8608-4cf67cdaef0ahttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/477579fa-6219-4200-8608-4cf67cdaef0aOrion5http://social.msdn.microsoft.com/Profile/en-US/?user=Orion5Using the Designer to Bind WPF Controls to ObjectsHi,<br><br>I couldn't find an option to data-bind WPF Controls to plain Objects using the designer, it seems to require an &quot;entity data model&quot; or a dataset. <br><br>Binding to objects is possible with WinForms using the Data Sources Window. I'd like to be able to easily bind to data without requiring a database. Is this possible for WPF with the CTP? Is it planned for the vs2010 release?<br> Sat, 08 Nov 2008 16:19:24 Z2008-11-13T14:56:11Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/0c1224f3-0967-49ec-a2b7-f47cef0a3da5http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/0c1224f3-0967-49ec-a2b7-f47cef0a3da5TexAhmedhttp://social.msdn.microsoft.com/Profile/en-US/?user=TexAhmed(Wrong Forum) - Data Validation on Page FunctionI have a page function to enter data tied to an object.<br><br>It has bunch of Textboxes and &quot;Accept&quot; Button<br><br>I am using ValidationRules to validate TextBoxes.  This works correctly and when I enter Invalid data the textbox turns to invalid state.  However the underlying value of object property does not change. <br><br>   &lt;TextBox Name=&quot;txtPrice&quot; VerticalAlignment=&quot;Center&quot;  Grid.Row=&quot;1&quot; Grid.Column=&quot;2&quot; <br>                    Style=&quot;{StaticResource textBoxInError}&quot;<br>                 &gt;<br>            <br>                    &lt;TextBox.Text&gt;<br>                        &lt;Binding Path=&quot;Price&quot;<br>                            UpdateSourceTrigger=&quot;PropertyChanged&quot; &gt;<br>                            &lt;Binding.ValidationRules&gt;<br>                                &lt;local:ValidatePrice /&gt;<br>                            &lt;/Binding.ValidationRules&gt;<br>                        &lt;/Binding&gt;<br>                    &lt;/TextBox.Text&gt;<br><br><br><br>                &lt;/TextBox&gt;<br><br><br><br><br>Should I be using : IDataErrorInfo or ValidationRules? <br><br>How can I validate all text boxes when clicking &quot;Accept&quot; ?     <br><br>How to disable Accept button when there is validation error on any of the text boxes<br><br><br><br><br><br><br><br> Fri, 07 Nov 2008 19:47:26 Z2008-11-08T00:40:38Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/2d607efc-0c96-4578-b013-c3d29a9d50a6http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/2d607efc-0c96-4578-b013-c3d29a9d50a6Vipin Varghesehttp://social.msdn.microsoft.com/Profile/en-US/?user=Vipin%20VargheseContinuously clicking on a dynamically created usercontrol its throwing an error and close the application. Hello my dear friends,<br>                    Plz help me.. its too urgent.I 'd created a kiosk application with WPF and in each page <br>i am dynamically creating user controls to bind the data.When clicking to user control it moves to the<br>corresponding page which also carries dynamically created user controls.The controls that I am creating<br>using xml files too. In usual case it 'll work fine.Clicking slowly it 'll move to the corresponding pages and all.<br><br>             The problem happened when a person tries to continuosly click on the user control more than <br>4 or 5 times one MS error is throughing and application get closed.<br><br>         i think, why its happening is when clicking 4 or 5 times my navigations pages are getting over.<br>Is it possible for me to control the click events of mouse or finger click only once in each page?<br><br>               Thanking You<br><br>Regards<br>VipinThu, 06 Nov 2008 15:03:27 Z2008-11-06T15:03:27Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/c32cf16f-15b1-4670-b01f-44483c2da489http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/c32cf16f-15b1-4670-b01f-44483c2da489Jesicahttp://social.msdn.microsoft.com/Profile/en-US/?user=JesicaWant to know the "color palette" properties Hi,<br>    I need to create a color palette in WPF, like the palette available in office 2007 with  the same look and feel.So, want to know the properties and events related to the color palette.How can i know it?<br><br><br>regards,<br>Jesica.Tue, 04 Nov 2008 09:01:59 Z2008-11-10T23:48:36Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/6bbac6ca-6d4e-48b1-8e23-06e8dc9f77b0http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/6bbac6ca-6d4e-48b1-8e23-06e8dc9f77b0Sriram Vedanthamhttp://social.msdn.microsoft.com/Profile/en-US/?user=Sriram%20VedanthamSupressing the Download Dialog box while opening Word Document in Web Browser ControlHi,<br> <br>I want a solution to suppress the download dialog box while opening Word document in web browser contro. <br><br>Following are the things i've done<br><br>1. Have created a use control that contains the browser control to invoke from any project of my solution.<br><br>2. Opening the file that is passed to this user control.<br><br>The user controls opens the PDF and other files with out any problem. But the open dialog box is displayed for Microsoft files such as &quot;Word and Excel&quot; etc. Is there any work around to suppress this. Do let me know the solution for this. Thanks in advance.<br><br>Following is the code am using to open a file inthe web browser control.<br><br><font size=2> <p></font><font color="#0000ff" size=2>public</font> <font color="#0000ff" size=2>void</font><font size=2> Open(</font><font color="#0000ff" size=2>string</font><font size=2> stPath)</p> <p>{</p> <p></font><font color="#0000ff" size=2>try</p></font><font size=2> <p>{</p> <p></font><font color="#0000ff" size=2>if</font><font size=2> (winBrowser.IsDisposed)</p> <p>{</p> <p>winBrowser = </font><font color="#0000ff" size=2>new</font><font size=2> System.Windows.Forms.</font><font color="#2b91af" size=2>WebBrowser</font><font size=2>();</p> <p>winFormsHost.Child = winBrowser;</p> <p>}</p> <p></p> <p>winBrowser.Url = </font><font color="#0000ff" size=2>new</font> <font color="#2b91af" size=2>Uri</font><font size=2>(stPath); </p> <p>}</p> <p></font><font color="#0000ff" size=2>catch</font><font size=2> (</font><font color="#2b91af" size=2>Exception</font><font size=2> ex)</p> <p>{</p> <p></font><font color="#0000ff" size=2>throw</font> <font color="#0000ff" size=2>new</font> <font color="#2b91af" size=2>Exception</font><font size=2>(ex.Message.ToString());</p> <p>}</p> <p></p> <p>}<br><br>Thanks in advance<br><br>Sriram..</p></font>Tue, 28 Oct 2008 08:23:24 Z2008-11-10T23:48:05Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/0edaee04-1160-4917-b488-3c2693d24e58http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/0edaee04-1160-4917-b488-3c2693d24e58Milind Lele [MSFT]http://social.msdn.microsoft.com/Profile/en-US/?user=Milind%20Lele%20%5bMSFT%5dWalkthrough: Using the Designer to Bind WPF Controls to Data in an Entity Data Model<p>This walkthrough describes how to create a WPF application that contains data-bound controls. The controls are bound to Entities in an Entity Data Model generated from the Northwind database on SQL Server.<br><br>Please let us know what you think of the improvements we have made for WPF data binding and EDM in this CTP of Visual Studio. <br><br>Thanks.<br><br>Milind Lele<br>PM, Visual Studio<br><a href="http://blogs.msdn.com/vsdata">http://blogs.msdn.com/vsdata</a></p>Fri, 24 Oct 2008 23:06:06 Z2008-10-24T23:06:06Zhttp://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/0b65f16d-5661-440d-8f94-c694b0468e81http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwpfdata/thread/0b65f16d-5661-440d-8f94-c694b0468e81Milind Lele [MSFT]http://social.msdn.microsoft.com/Profile/en-US/?user=Milind%20Lele%20%5bMSFT%5dWalkthrough: Using the Designer to Bind WPF Controls to Data in a DataSet<p>This walkthrough describes how to create a WPF application that contains data-bound controls. The controls are bound to a typed dataset generated from the Northwind database on SQL Server.<br><br>Please let us know what you think of the improvements we have made for WPF data binding in this CTP of Visual Studio. <br><br>Thanks.<br><br>Milind Lele<br>PM, Visual Studio<br><a href="http://blogs.msdn.com/vsdata">http://blogs.msdn.com/vsdata</a></p>Fri, 24 Oct 2008 23:03:17 Z2008-10-24T23:03:17Z