Latest News

  • Super Tower Defense 2 Game
    Sep 03, 2010

    New to the games section is Super Tower Defense 2. Featuring more maps, new units and bigger explosions.

  • Super Cards Online Multiplayer Game
    Aug 13, 2010

    Released today in the games section is the new Super Cards multiplayer card game. The aim of the game is to get rid of all your playing cards before your opposition.

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

Silverlight ItemViewer

This free Silverlight ItemViewer allows you to group similar items together in an area that will automatically wrap when resized and 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 ItemViewer control you will need to add a reference to Liquid.dll in your project.


How to Use the ItemViewer Control

To use the ItemViewer on your Silverlight page:

<UserControl x:Class="ItemViewer.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">
    <liquid:ItemViewer x:Name="myList" Width="400" Height="300" DoubleClick="Items_DoubleClick">
        <liquid:ItemViewer.Items>
            <liquid:FileItem Text="My File.pdf" OtherText="300KB" Icon="images/large/pdf.png" />
            <liquid:FileItem Text="My File 2.doc" OtherText="360KB" Icon="images/large/doc.png" />
            <liquid:FileItem Text="My File 3.xls" OtherText="100KB" Icon="images/large/xls.png" />
            <liquid:FileItem Text="My File 4.xaml" OtherText="40KB" Icon="images/large/xaml.png" />
            <liquid:FileItem Text="My File 5.jpg" OtherText="167KB" Icon="images/large/jpg.png" />
            <liquid:FileItem Text="My File 6.mp3" OtherText="96KB" Icon="images/large/mp3.png" />
        </liquid:ItemViewer.Items>
    </liquid:ItemViewer>
</UserControl>


The ItemViewer can render controls that derive from the base ItemViewerItem class such as the included FileItem control which, in conjunction with the TreeView control, allows you to build complex file explorer components with relatively small amounts of code.

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 ItemViewer
{
    public partial class Page : UserControl
    {
        public Page()
        {
            InitializeComponent();
        }

        private void Items_DoubleClick(object sender, EventArgs e)
        {
            FileItem selected = myList.Selected;

            // Process your double-click action here
        }
    }
}


Example Silverlight ItemViewer Control:

Silverlight ItemViewer 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.

facos posted on DropDown AutoClose

hi dan,


would it be possible to include the automatic closing of the dropdown when clicking outside or losing the focus within the library as an option? it would help to avoid a lot of repetitive code...


best regards...

kieran@serif.net posted on ItemViewer items_ItemSelected

Sorry guys,


I answered the problem by looking into this a little further.  I had seen the solution many times but thought it was looking at the treeview not the itemview....


Anyway, here it is:


private void items_ItemSelected(object sender, EventArgs e)

        {

            deleteName.Text = items.Selected.LiquidTag.ToString();

            deleteFile.IsEnabled = true;

        }


Sorry again and keep up the good work!

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!

Rate this page: 

1 Star 2 Star 3 Star 4 Star 5 Star
13 Ratings / 2.7 Average

Ultimate Gamers

  • 1 Gh0sT
  • 2 stig
  • 3 dhoz
  • 4 seyhmusss
  • 5 RadiateLogic
  • 6 bigblue531
  • 7 janso
  • 8 DutchRemco
  • 9 Gendibal
  • 10 dan

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