Silverlight Fieldset Control
The VectorLight.Net 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.
You need to login to Download the FieldSet example, If you do not have a login you can register for free!
How to Use the Fieldset Control
In your XAML ensure you have a reference to the Liquid.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:liquid="clr-namespace:Liquid;assembly=Liquid"
Width="400" Height="300">
<Canvas>
<liquid:FieldSet x:Name="testFieldSet" ExpandedHeight="150" Width="150" Text="Lots of options">
<liquid:FieldSet.Children>
<StackPanel>
<liquid:CheckBoxPlus Label="Option 1" />
<liquid:CheckBoxPlus Label="Option 2" />
<liquid:CheckBoxPlus Label="Option 3" />
<liquid:CheckBoxPlus Label="Option 4" />
<liquid:CheckBoxPlus Label="Option 5" />
<liquid:CheckBoxPlus Label="Option 6" />
</StackPanel>
</liquid:FieldSet.Children>
</liquid:FieldSet>
</Canvas>
</UserControl>
You will need to include the following using statement in order to reference the Vectorlight controls:
using Liquid.Core.Controls;
The above example will place a fieldset control and a text label on to your xaml page. Controls (both Vectorlight and Silverlight) can then be added to the fieldset by calling the AddChild() method.
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.
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();
}
}
}
Example VectorLight.Net FieldSet Control:
- Written in Client-Side C# .NET 3.5
- Microsoft Silverlight Only
- Easy to Add Child Elements
- Customizable Visual Feel
The screenshot above demonstrates the Fieldset control containing other VectorLight.Net controls such as TextBox, DropDown and CheckBox controls.
Your Comments and Questions Answered
You are not logged in. You need to login to post new messages, if you do not have a login you can register for free!
dan
Jan, 12 2008 - 14:11
Hi Tom,
We aim to get Version 2.2 out for the 16th, if not earlier. We will drop you an email at the address you provided below when it's ready.
Tom2Net
Jan, 12 2008 - 05:27
Hi Dan,
Thanks for the infos.
Do you have a planned date for version 2.2 ? :)
Bye
Tom
dan
Jan, 11 2008 - 23:55
Hi Tom,
You're right, it is a bug, the text does render but in White! Which is not much good on a White background, It's on the list for Version 2.2 to give some options to control the text color/font etc from the control but for now this property can be left empty and a seperate TextBlock used.
Sorry about this, most of this code came straight from our CMS demo which has Black backgrounds and for some reason never changed. A fix is on the way...
Tom2Net
Jan, 11 2008 - 10:21
Hi Dan,
Thanks for the example. I've having a little issue with the control. If I try to set the property Text (this is the one used for the Header if I'm right), nothing appears (like on your screenshot). Is it normal ? Is it a known bug ?
Thanks !
dan
Jan, 11 2008 - 15:59
I've just finished an example for this control, it should be easy to modify to embed your textboxes. As in the above example these should be added programically in the Page_Loaded event.
As ever, we are slowly in the process of getting examples of all these controls on to the site as soon as possible.
Tom2Net
Jan, 11 2008 - 02:26
Hello Dan,
Can you provide an example on how to use this control ? I've version 2.1 of the library but I've not been able o used it: every time I try, nothing appears :(
I'm trying to use this control to "embed" a textbox and 2 buttons.
You can reply me here or by mail (if you can as I'm prefered this way): lebrun_thomas@hotmail.com@nospam (remove @nospam)
Thanks !
dan
Jan, 03 2008 - 12:57
All the controls can be downloaded by clicking on the Downloads menu option at the top of the screen. You need to be logged in to download the controls, the Liquid.dll is included in the download zip file and should be copied to the ClientBin folder of your Silverlight application.
jf
Jan, 01 2008 - 19:54
Free DownLoad,Where??????
this 'Liquid.dll' source file??