When the years of Java Learn from C++, I did not have a good chance and a good reason to turn to Java, I think it was my BIG BIG Bad luck in my life. so, through so many years, I am keeping on the Microsoft technologies. When I first time study computer development, I [Read More ...]
We have a web application which developed using ASP.NET 4.0 (Web Forms), Silverlight 4.0 and WCF 4.0. Brief information about our application: 1: We use WCF to provide all data to clients, some data are from database, another part of data are from a real time data resource; 2: We use self host for the [Read More ...]
On MSDN there are several helpful article about how to animate an object along a path for WPF 4 (Unfortunately we tried some code, they do not work for Silverlight or part of them work): 1: How to: Animate an Object Along a Path (Double Animation); 2: How to: Animate an Object Along a Path [Read More ...]
Now WCF Web API changed to ASP.NET Web API. ASP.NET Web API has the feature of self-host. In Microsoft official site, they also provides two simples ASP.NET Web API self-host samples. However, they are so simple and actually they looks like the “same” one because these 2 simples are Console applications and use very similar [Read More ...]
IT world is changing fast. There are always new tech everyday. Especially after HTML5 came, looks like lots of existing tech have been affected what ever how they were great. such as Flash, Silverlight… So the question is whether Microsoft is still working on the new versions of WPF and Silverlight ? We have watched [Read More ...]
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 ...]
Actually, there is no big different if you want to programmatically click a button in either WPF or Windows Form. They might have slightly different approach. Click: Button1.RaiseEvent(new RoutedEventArgs(Button.ClickEvent)); Press: typeof(Button).GetMethod("set_IsPressed", BindingFlags.Instance | BindingFlags.NonPublic).Invoke(Button1, new object[] { true }); Unpress: typeof(Button).GetMethod("set_IsPressed", BindingFlags.Instance | BindingFlags.NonPublic).Invoke(Button1, new object[] { false }); Other solution is just ButtonAutomationPeer: Please [Read More ...]
You can use either of code behind or XAML to implement data binding in WPF: 1: Code behind binding: There are MultiBinding and Binding (single) 2 types: //binding background color MultiBinding multiBinding = new MultiBinding(); multiBinding.Converter = new ViewModels.DeviceIOViewModel.TypeAndStatusToColorConverter(); multiBinding.Bindings.Add(new Binding { Source = DeviceIODataList.DeviceList[this.DeviceIndex], //this.IODataSource, Path = new PropertyPath("DeviceType") }); multiBinding.Bindings.Add(new Binding { Source [Read More ...]
In a multithread WPF project, we got program crash, but actually WPF did not give us any help or error information on the screen, then we tried to debug using steps, finally we got the following error information on a line of code with adding related variable in this line of code into Watch window: [Read More ...]