When you use Visual Studio 2010, you will find there is no a WPF chart control in toolbox. The WPF chart control does not followed with .NET 4.0 release, It is still in .NET 3.5 WPFtoolkit.  You might have to download the WPF toolkit and install it. But please check before you download and install, [Read More ...]

There was a windows form application based on .NET 4.0 and Visual Studio 2010, it was working well on a PC which we developed it. when we move its debug folder which including generated executable files, it crashed (We use Windows 7): We expanded “Show problem details” button and saw the following information: Description: Stopped [Read More ...]

Most of time when we want to run Visual Studio 2010 as Administrator role, we can right click the Visual Studio short cut in start menu and choose “Run as administrator”; Sometimes if you forgot to choose “Run as administrator” and open a project which need administrator permission, you have to restart Visual Studio. So [Read More ...]

We have a WCF application with Silverlight 4.0 client application. The system worked well but just sometimes we got the following error: The HTTP request to http://xxx has exceeded the allotted timeout. The time allotted to this operation may have been a portion of a longer timeout. We traced the bug using Visual Studio 2010 [Read More ...]

I found Mike Taulty’s blog today. I feel it is very helpful and there are great article to learn Microsoft stuff. From his blog, I think Mike Taulty is a Microsoft UK employee. What ever, recently our team is working on a  Silverlight project, so we can focus on Mike’s Silverlight series video and article. [Read More ...]

Sample 1: public string MyText {get;set;} the binding is {Binding MyText , RelativeSource={RelativeSource FindAncestor, AncestorType=Window}} Or  <Window Name="MyWindow" …   <TextBlock Text="{Binding Text, ElementName=MyWindow}"/> Sample 2: <Window DataContext={Binding RelativeSource={RelativeSource Self}}> then the binding is   {Binding Text}

Find Child Control in WPF 1: Link1 2: Link2 Other: Automatic vertical scroll bar in WPF TextBlock? Bind to WPF style  (link 2)

You have multiple ways to wrap text in a button. Here some sample code: <Button>    <TextBlock>Two<LineBreak/>Lines</TextBlock>  </Button> Button button = new Button {     Content = new TextBlock { Inlines = { "Two", new LineBreak(), "Lines" } } };

The sample is from MSDN <Window.Resources>   <c:AsyncDataSource SlowestDP="Slowest Value" SlowerDP="Slower Value"                      FastDP="Fast Value" x:Key="AsyncDS" /> </Window.Resources>     <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center"   DataContext="{Binding Source={StaticResource AsyncDS}}">   <TextBlock FontSize="18" FontWeight="Bold" Margin="10"     HorizontalAlignment="Center">Priority Binding</TextBlock>   <TextBlock Background="Honeydew" Width="100" HorizontalAlignment="Center">     <TextBlock.Text>       <PriorityBinding FallbackValue="defaultvalue">         <Binding Path="SlowestDP" IsAsync="True"/>         <Binding Path="SlowerDP" IsAsync="True"/>         <Binding Path="FastDP" [Read More ...]

If you use LINQ, and consider Transaction, you might choose either explicit transaction or no. Because, due to MSDN, LINQ to SQL supports 3 distinct transaction models: 1: Explicit Local Transaction 2: Explicit Distributable Transaction 3: Implicit Transaction. About Implicit transaction, because when you call SubmitChanges, LINQ to SQL will automatically starts a local transaction [Read More ...]

© 2012 CodeEase.com Suffusion theme by Sayontan Sinha