Silverlight Fieldset Control

The free Fieldset control for Microsoft's Silverlight is a collapsable container for other vectorlight.net Controls and standard Silverlight elements such as TextBlocks, Rectanges etc.  The Fieldset control allows related controls to be grouped together in an easy and nicely presentable manner.

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


How to Use the Fieldset Control

In your XAML ensure you have a reference to the Liquid.TreeView.dll in the UserControl tag at the top.  To use it on your Silverlight page:

<UserControl x:Class="FieldSet.Page"
    xmlns="http://schemas.microsoft.com/client/2007"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:liquidTreeView="clr-namespace:Liquid;assembly=Liquid.TreeView"
    Width="400" Height="300">
    <Canvas>
        <ScrollViewer Width="204" Height="250" Canvas.Left="10" Canvas.Top="145">
            <StackPanel Width="204" Orientation="Vertical">
                <liquidTreeView:FieldSet x:Name="skills" Width="174" HorizontalAlignment="Left" IsExpanded="True" Text="Your Skills">
                    <StackPanel>
                        <CheckBox x:Name="aiprogrammer" Content="A.I. Programmer" TabIndex="4" />
                        <CheckBox x:Name="graphicsdesigner" Content="Graphics Designer" TabIndex="5" />
                        <CheckBox x:Name="systemsengineer" Content="Systems Engineer" TabIndex="6" />
                        <CheckBox x:Name="tester" Content="Tester" TabIndex="7" />
                        <CheckBox x:Name="webdeveloper" Content="Web Developer" TabIndex="8" />
                    </StackPanel>
                </liquidTreeView:FieldSet>
                <liquidTreeView:FieldSet x:Name="qualifications" Width="174" IsEnabled="False" HorizontalAlignment="Left" IsExpanded="False" Text="Microsoft Qualifications">
                    <StackPanel>
                        <CheckBox x:Name="mcp" Content="MCP" TabIndex="10"/>
                        <CheckBox x:Name="mvp" Content="MVP" TabIndex="11"/>
                        <CheckBox x:Name="mcad" Content="MCAD" TabIndex="12"/>
                        <CheckBox x:Name="mcsd" Content="MCSD" TabIndex="13"/>
                        <CheckBox x:Name="otherQualification" Content="Other" TabIndex="14"/>
                    </StackPanel>
                </liquidTreeView:FieldSet>
                <liquidTreeView:FieldSet x:Name="interests" Width="174" HorizontalAlignment="Left" IsExpanded="False" Text="Your Interests">
                    <StackPanel>
                        <CheckBox x:Name="cinema" Content="Cinema" TabIndex="10"/>
                        <CheckBox x:Name="football" Content="Football" TabIndex="11"/>
                        <CheckBox x:Name="holidaying" Content="Holidaying" TabIndex="12"/>
                        <CheckBox x:Name="surfing" Content="Surfing" TabIndex="13"/>
                        <CheckBox x:Name="tv" Content="TV" TabIndex="14"/>
                    </StackPanel>
                </liquidTreeView:FieldSet>
                <liquidTreeView:FieldSet x:Name="years" Width="174" HorizontalAlignment="Left" IsExpanded="False" Text="Years experience?">
                    <StackPanel>
                        <RadioButton x:Name="sixmonths" Content="Less Than 1 Year" Cursor="Hand" TabIndex="30" GroupName="years" />
                        <RadioButton x:Name="twoyears" Content="Between 1 and 2 Years" Cursor="Hand" TabIndex="32" GroupName="years" />
                        <RadioButton x:Name="threeyears" Content="More Than 2 Years" Cursor="Hand" TabIndex="33" GroupName="years" />
                    </StackPanel>
                </liquidTreeView:FieldSet>
            </StackPanel>
        </ScrollViewer>
    </Canvas>
</UserControl>


The above example will place a fieldset control and a text label on to your xaml page.  Silverlight elements can be added to the control by setting the Content property.

using System;
using System.Collections.Generic;
using System.Linq;
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;

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


In our C# below we declare some calendar controls and Silverlight labels and add them to our fieldset.  Any standard or vectorlight control can be added, though caution needs to be taken when adding certain standard Microsoft controls such as the Calendar which need a Width and Height setting applied before they are added.

Example FieldSet Control:

Silverlight FieldSet Control

Further Information

Rate this: 

1 Star 2 Star 3 Star 4 Star 5 Star
16 Ratings / 2.8 Average
 
Latest Games
Car Parking
Jan 16, 2016
Plays: 38

Car Parking - Free iPhone, iPad, Android Physics Game ScreenshotGuide the car to its parking space in this fun Car Parking game.

1 Rating / 5 Average
Trash It
Jan 11, 2016
Plays: 61

Trash It - Free iPhone, iPad, Android Physics Game ScreenshotAim for the Trash Can and get the various items of Trash in the bin.

1 Rating / 5 Average
Sky Fly
Jan 11, 2016
Plays: 61

Sky Fly - Free iPhone, iPad, Android Shooting Game ScreenshotFly your plane in this colorful vertical scrolling shoot-em-up. Blast the bad guys and collect any bonus's they leave behind.

1 Rating / 5 Average
Professor Snappy
Jan 11, 2016
Plays: 33

Professor Snappy - Free iPhone, iPad, Android Puzzle Game ScreenshotPop as many bubbles as possible in this fun and colorful bubble popping game. The levels start off easy enough but gradually get harder!

1 Rating / 5 Average
Monster Match Saga
Jan 10, 2016
Plays: 39

Monster Match Saga - Free iPhone, iPad, Android Match 3 Game ScreenshotHere we have a bunch of monsters that need to be matched up. Look out for the bomb and spinning monsters that will cause special damage!

1 Rating / 5 Average
Fly Bird Fly
Jan 10, 2016
Plays: 46

Fly Bird Fly - Free iPhone, iPad, Android Flappy Bird Game ScreenshotGuide your friendly Bird through the maze of pipes and other obstacles collecting the Stars in this cool arcade game inspired by the legendary Flappy Bird.

1 Rating / 5 Average
Life In One
Jan 10, 2016
Plays: 52

Life In One - Free iPhone, iPad, Android Strategy Game ScreenshotYou are stranded on an Alien planet. Your goal is to build a space rocket and escape. Start by building units to create power and mine the metal patches. Build defenses to defend your base from the advancing Aliens and Zombies!

1 Rating / 5 Average
X Pool
Jan 02, 2016
Plays: 106

X Pool - Free iPhone, iPad, Android Game ScreenshotPlay Pool against the computer or battle against your friends in the online mode!

1 Rating / 5 Average
Fruit Slicer
Jan 02, 2016
Plays: 43

Fruit Slicer - Free iPhone, iPad, Android Game ScreenshotSlice the fruit that is thrown up onto the screen. Slice the fruit into multiple pieces for maximum points!

2 Ratings / 5 Average
Alien Defense
Jan 02, 2016
Plays: 57

Alien Defense - Free iPhone, iPad, Android Game ScreenshotDefend against the oncoming waves of enemy alien attack. Place your gun turrets in strategic positions to destroy the attackers!

1 Rating / 5 Average
Car Dodge Extreme
Jan 01, 2016
Plays: 58

Car Dodge Extreme - Free iPhone, iPad, Android Game ScreenshotRace the wrong way up a busy road collecting the Gold and Silver coins whilst dodging the oncoming traffic!

1 Rating / 5 Average
Tic Tac Toe XL
Jan 01, 2016
Plays: 44

Tic Tac Toe XL - Free iPhone, iPad, Android Game ScreenshotPlay the classic game of Tic Tac Toe on your large screen tablet and phones. Play against a skilled computer opponent who will try to beat you at every turn.

2 Ratings / 5 Average
Submit a Game Here!