lunes, 28 de marzo de 2011

Multitargeting of WPF and Silverlight using PRISM

In my last job, I had change to lead a multitargeting project from an existing Silverlight solution to WPF one working together. Then, I will try to arrange all useful info that I needed regarding all this.

lunes, 14 de marzo de 2011

Brainstorming gold rules

I would like to elaborate a gold rules to manage a very constructive brainstorming that I has been able to take along all my experience. I see a brainstorming like an evolutive algorithm where all individuals have an initial knowledge and its own reality and all of them mix its vision along an iteration. Little a little, they will give better ideas because they will be involving.

miércoles, 9 de marzo de 2011

Performance decalogue for Silverlight

This guide has been done following my experience in Silverlight regarding the most useful gaps that I have had to use to make better Silverlight applications.

jueves, 17 de febrero de 2011

Strikethrough effect for TextBlock in Silverlight

Here, I would like to introduce a new control for TextBlock to add new text effects. Concretely, the Strikethrough effect that Silverlight does not support.

miércoles, 26 de enero de 2011

Silverlight Right Mouse Button

In Silverlight 4, there is a new feature very useful for so many scenarios. This is the right mouse button characteristic that you normally use to show a context menu. But there are some things that you have to take into account.

martes, 25 de enero de 2011

Retrieve items elements within ListBox control

In this post, I will show a simple method in order to retrieve the container items elements in a ListBox control by using ItemContainerGenerator.

foreach (var item in this.listBox.Items)
{
      var container = this.listBox.ItemContainerGenerator.ContainerFromItem(item) as ListBoxItem;
      if (container != null)
      {
           VisualStateManager.GoToState(container, "Highlighted", true);
       }
}

As you can see, in container element, you will receive the ListBoxItem (or the container that you are using). This is a very simple operation in comparison with some other that you can find by web where you may read that you need to use VisualTreeHelper or navigate among elements until find the container or some other things.

miércoles, 24 de noviembre de 2010

Scroll Decoupled Behavior for Silverlight

This post introduces the creation of a behavior in order to have a decoupled scroll with separated buttons for moving to the left or right the ScrollViewer and also a separated Thumb element. At the end of this post, I have pasted all the code.