Latest News

  • Silverlight Online Chat
    Jul 24, 2010

    Today we launch the new Silverlight Live Chat application demonstrating the Liquid RichTextBox and Emoticon replacements.

  • New Super Shoot Em Up 2 Game
    Jun 29, 2010

    Added to the Games section is the new Super Shoot 'Em Up 2 game. Take control of your tank with the aim to defeat the computer controlled opponents. Features all new weapons, levels and Battle Mode!

  • Silverlight 4 Controls V5.3.2 Released
    Jun 28, 2010

    This release contains several fixes raised in the forums.

  • New Sandmania Puzzle Game
    Jun 18, 2010

    Sandmania is the latest game from vectorlight, the aim of this game is to guide sand from the top of the screen to the various colored containers below.

  • New Moon Tower Defense Game
    May 29, 2010

    Added to the Games section is the new Moon Tower Defense game. Defend the Moon from the circling Aliens and Humans.

Silverlight Color Selector Control

This free Silverlight Color Selector Control is easy to implement on your Silverlight driven website and is also customizable to provide a visual feel suitable for any site design.

To use the Color Selector control you will need to add a reference to Liquid.dll in your project.

How to Use the Color Selector Control

To use the Color Selector on your Silverlight page:

<UserControl x:Class="ColorSelector.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:liquid="clr-namespace:Liquid;assembly=Liquid"
    Width="400" Height="300">
    <Grid x:Name="LayoutRoot" Background="White">
        <liquid:ColorSelector x:Name="selectColor" SelectionChanged="selectColor_SelectionChanged" />
    </Grid>
</UserControl>


using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

using Liquid;

namespace ColorSelector
{
    public partial class Page : UserControl
    {
        public Page()
        {
            InitializeComponent();
        }

        private void selectColor_SelectionChanged(object sender, EventArgs e)
        {
            LayoutRoot.Background = new SolidColorBrush(selectColor.Selected);
        }
    }
}


In this example we create a single Color Selector named selectColor, with this created we attach an event handler to the SelectionChanged event, this is handled in the C# below.

In the above C# we set the background color when the SelectionChanged event of the Color Selector occurs.

Example Silverlight Color Selector Control:

Latest Forum Posts

Here are latest posts from around the forums, if you have a question about any of the Liquid controls you can get your answers in the Forum.

stefanHauck posted on Viewer Problem

Hi,

I use the viewer inside a tab control and get during design time very often the following error:


InnerException: reference not set to an instance of an object

NullReferenceException: reference not set to an instance of an object


StackTrace

at MS.Internal.XcpImports.MethodEx(InPtr ptr, String name, CValue[] cvDate)

at MS.Internal.XcpImports.MethodEx(DependencyObject obj, String name)

at MS.Internal.XcpImports.FrameworkElement_ApplyTemplate(FramerworkElement frameworkElement)

at System.Windows.Controls.Control.ApplyTemplate()


After I change something in the code and switch bacl to design view, it mostly work until I close and reopen the page again.

What can I check to make it working?


Stefan

dan posted on FileUpload

Hi,


There is no limit to the size that can be uploaded and the upload size of this component has nothing to do with the web.config settings.  When uploading a file it is broken up into small chuncks usually around 30k in size and sent to the server.  There is a bug in version 5.3.2 and below that can cause a memory leak, this is being fixed and will be implemneted in the next version.


Thanks!

jstangwh posted on DropDown small change

very good

dan posted on Scroller Speed

Hi,


There isn't a separate property to control speed.  However you can simply use larger directional values:


myScorller.Direction = new Point(2,0);


The above will scroll 2 pixels to the right per frame.


Thanks!

Downloaded liquid 5.3.1 and copied the example but when selected an item a NullReferenceException error ocurred.


regards

Hi Massimiliano,


Thanks for reporting this, I have added this to the fix list and it will be fixed in the next version.


Thanks!

Rate this page: 

1 Star 2 Star 3 Star 4 Star 5 Star
17 Ratings / 3.2 Average

Ultimate Gamers

  • 1 stig
  • 2 Gh0sT
  • 3 dhoz
  • 4 janso
  • 5 gaaslin
  • 6 RadiateLogic
  • 7 dan
  • 8 Haroldo
  • 9 bigblue531
  • 10 oussama

  • See the full chart here!

Silverlight Controls

  • Rich TextBox

    Create and edit rich content with this slick and expandable Rich TextBox...

  • TreeView

    This easy to use TreeView comes with drag and drop, sorting, searching and much more...

  • Context Menu

    You too can have cool popup context menus in your Silverlight applications...

  • Resizable Dialog

    Draggable and resizable popup dialogs are what serious Silverlight developers need...

  • Spell Checker

    Real-time spell checking in Silverlight? We did it first here...