Controls



  • 1 comments   /   posted by   Matt Perdeck  on  Jul 23, 2008 (10 hours ago)

    Reusable code to do narrow data columns with navigation buttons, such as address lists.

    Download Source code

    Contents

    • Introduction
    • Requirements
    • Installation
    • TallColumns Project
    • TallColumnsManager Project
    • Db Project
    • WrapPanel Project
    • GroupHeader Project

    Introduction

    When it comes to presenting data, there is a lot of emphasis on grids that present data in a single wide column, showing lots of fields horizontally.

    However, some data tend to be presented in narrow columns, such as address lists and book indices...



  • 0 comments   /   posted by   Denislav Savkov  on  Jul 17, 2008 (6 days ago)

    Introduction

    We’ve introduced you to the basics of Custom Controls in our previous article. Now we will give another example this time involving the Visual States Manager. We will create a templatable ContentControl that uses animations on its Content and the States & Parts model proposed by Microsoft.

    Dowload source code

    Parts & States Model

    The idea behind the States & Parts is to separate better the logic from the visual appearance and thus to allow better flexibility for both.

  • 1 comments   /   posted by   david  on  Jul 08, 2008 (2 weeks ago)

    Note: This article is submitted by David for Silverlight Contest: Write and Win.Thanks a lot, David! Hello All, Please drop a comment if you like it.

    Silverlight sure has come a long way since the days of “WPF/E.” With its most recent release, Silverlight 2 Beta 2, it has truly proven itself to be one of the best toolsets for Rich Internet Applications, and has effectively achieved its original goal of being an Internet version of WPF. The power and possibilities behind Silverlight are endless. However, with the continuous stream of alpha and beta releases, there are many breaking changes that appear. Newcomers to Silverlight and developers upgrading to the newest versions may have trouble learning all the ropes of the new 2 Beta 2 version.

    Source Code: VideoPlayer.zip

  • 4 comments   /   posted by   Emil Stoychev  on  Jun 25, 2008 (4 weeks ago)

    Are you a fan of Twitter? Personally I'm, but I'm also a fan of Silverlight. Twitter has a couple of Flash and HTML badges (a.k.a widgets) you can get and put on your blog to let your visitors know what you are up to in the moment. However, Twitter does not have a Silverlight widget. What negligence! :) If you are like me and want not a Flash, but a Silverlight widget on your blog go ahead and read on how you can build one by yourself or just copy the text below to use it.

  • 0 comments   /   posted by   Martin Mihaylov  on  Jun 23, 2008 (1 month ago)

    Introduction

    Last week I’ve published the first part of this article about the Shape controls in Silverlight 2. Now it’s time for the second. We will focus on the Polygon, the Polyline and the Path. Although these controls look more complicated than the first three, still the most important thing is to use your imagination.

    Polygon

    To create a Polygon we use the Points property of the control to define the positions of the polygon’s points. Each point has X and Y value separated with spaces.

  • 2 comments   /   posted by   Emil Stoychev  on  Jun 20, 2008 (1 month ago)

    Introduction

    In Silverlight there is a TextBlock control that is used to display simple text. However in many cases you need to display hyperlinks in the text. This article focuses on how to build such control and provides full source code for it.

    LinkLabel source code

    Overview

    In this article I take for granted that you have basic understandings how to build a custom control in Silverlight. I described the main flow in a previous post so go read it if you need to fill some gaps.

  • 0 comments   /   posted by   Nikolay Raychev  on  Jun 12, 2008 (1 month ago)

    Introduction

    The RepeatButton is a Silverlight control which does an action repeatedly from the time a user presses it till the time it is released.

    See also: 
    Button Controls Article
    Button Article
    HyperlinkButton Article
    ToggleButton Article

    Overview

    To demonstrate the common use of the RepeatButton I’ll give an example:

    When we press the RepeatButton the TextBlock starts showing the current time.

  • 0 comments   /   posted by   Martin Mihaylov  on  Jun 10, 2008 (1 month ago)

    Introduction

    In this article we are going to focus on the shape controls in Silverlight 2. These controls are very simple but they provide almost unlimited style possibilities, so make your imagination work and use them in a very creative and interactive way in every Silverlight application. There are six shape controls – the ellipse, the rectangle, the line, the polyline, the path and the polygon. In this article I’ll examine the first three of them, namely the ellipse, the rectangle and the line.

  • 4 comments   /   posted by   Martin Mihaylov  on  Jun 09, 2008 (1 month ago)

    Introduction

    The theme of this article is the ToolTip control. It can be very useful as it enhances our application’s user interface.

    Using the ToolTip Control

    The ToolTipService class must be used along with the ToolTip control in order to display a tooltip to our control.  For the example I will use an image control, but the following can be applied to each of the controls.

  • 0 comments   /   posted by   Nikolay Raychev  on  Jun 04, 2008 (1 month ago)

    Update: The source codes and the information in this article are compatible with Silverlight 2 Beta 2.

    Introduction

    The ToggleButton is a Silverlight control which allows the user to change its state. It is the base class for CheckBox and RadioButton controls but it can also be used as a standalone control.

    See also:
    Button Controls Article
    Button Article
    HyperlinkButton Article
    RepeatButton Article

    Overview

    To demonstrate the use of the ToggleButton I’ll give an example:

    XAML:

    Update: The namespaces in Silverlight 2 beta 2 are changed:

    <UserControl x:Class="TestToggleButton.Page"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         Width="200" Height="100">