Blog

Memory Leak with XmlSerializer

By Fernando Mendoza   I coded a windows service application and tested it throughout its development cycle. This windows service it’s doing work all the time. So one day I left it running the whole night and when came back to the office the next day I found that the service had stopped working due to an OutOfMemoryException exception. I thought it was probably something else but then I ran it again this time monitoring it with Process Explorer (a very useful free application available from Microsoft) and saw it was increasing its memory consumption consistently. The graphic in Process Explorer looks like the one below. Note how the memory consumption never stops growing. By trial...

How to create a "Autocomplete in Silverlight Box 3" with MS Expression Blend 3

By Omar L. In this tutorial, I will explain how to easily create an autocomplete with simple steps, with help of Microsoft Expression Blend 3.0 1 – We create a new application type: Silverlight 3 APPLICATION + WEBSITE, WE CLICK THE PATH, where Our solution will stay,  Then we choose the language and press the OK button. 2 – On the project tab, we open the MainPage.xaml archive, where we have the following code.   We now implement a  StackPanel control with the following properties, which will be the container of our Autocomplete control. <Grid x:Name=”LayoutRoot” Background=””>    <StackPanel HorizontalAlignment="Center" Margin="0" Width="400&...

Floating panels with dynamic height in WPF

By Irvin G. When you are working with Windows Presentation Foundation, sooner or later you will find yourself working with floating panels. Once you are there, it will take no time until you need a floating panel that changes its height and/or width according to the area below. This is quite easy to do directly on the XAML, with no need to write a single line of code in C#. Let’s explore how it is done. First, you need to put all the controls you want to cover with your floating panel inside a StackPanel. <StackPanel x:Name="MainContent" Margin="25,50,25,0" VerticalAlignment="Top"> <Grid…> <Grid…> <Grid…> <Grid…> <...