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 ...]

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 ...]

This is a learning notes. We are not going to tell more knowledge about WPF multiple threads, we just give some samples which we practiced. There are different solutions to implement multiple threads in WPF: 1: The Task: We firstly introduce the task is because it is recommended in .NET 4, it is a newer [Read More ...]

Silverlight Pixel shaders can manipulate pixels for different effects. There are different shaders: blur and drop shadow. The following is a blur sample: <UserControl x:Class="SilverlightApplication2.MainPage"     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     xmlns:d="http://schemas.microsoft.com/expression/blend/2008"     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"     mc:Ignorable="d"     d:DesignHeight="300" d:DesignWidth="400">     <Grid x:Name="LayoutRoot" Background="White">         <StackPanel Orientation="Horizontal" >         <Image Source="/SilverlightApplication2;component/Images/Koala.jpg" Width="200" Margin="3" >             <Image.Effect>                 [Read More ...]

Do you know how big size of a Silverlight Application’s isolated storage? We know the default isolated storage space for a Silverlight application is 1MB. But how do you make sure it and check it? Go to your web browser and open a website which includes a Silverlight video and right mouse click the video, [Read More ...]

We often see the modal child window when we visit some websites. The modal child window will disable all other content on screen but just activate current child window. In Silverlight, we are able to use modal child window feature now. In Visual Studio 2010, create a new Silverlight application, and named the project “SLModalWindow”: [Read More ...]

Here are 3 sample code to descript new data binding features in Silverlight 4: <TextBox Text="{Binding myValue, StringFormat=’###.##’, TargetNullValue=’Value is Null’, FallbackValue=’Value Not Found’}" /> <TextBox Text="{Binding myValue2, StringFormat=’c’}" /> <TextBox Text="{Binding myValue3, StringFormat=’yyyy-mm-dd’, , TargetNullValue=’Value is Null’}" />

Most of time we bind a collection of data to a ListBox or DataGrid in Silverlight or WPF, the 1st class for data is List class. But the problem if using List class is that List does not have built-in change notifications for the collection. So if the data collection keeps changing, for update DataGrid [Read More ...]

How did you use a checkbox’s checked status to enable or disable a button? Normally, in real project, we do not enable or disable a single button but a group of buttons or controls, here we just use a single button to descript our case. There is a feature named “Element to Element Binding” which [Read More ...]

© 2012 CodeEase.com Suffusion theme by Sayontan Sinha