Blog

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

How to add Styles for Silverlight 3.

Silverlight provides a great set of controls, with which you can capture and display data. While the properties for the controls can be assigned directly to each control, in our .XAML file using attributes, some properties can be duplicated among different controls, causing difficulties in our .XAML maintenance.Here is an example of this issue. <Button x:Name=”btnSubmit” FontFamily=”Arial” FontWeight=”Bold” Width=”100″ Height=”25″ Margin=”10″ /> <Button x:Name=”btnCancel” FontFamily=”Arial” FontWeight=”Bold” Width=”100″ Height=”25″ Margin=”10″ />You can see that both controls define the same value for FontFamily, FontWeight, Width, Height and Margin. Maybe this XAML works...