Latest News

  • Super Tower Defense Game
    Mar 10, 2010

    New to the games section is the new Super Tower Defense game. Defend your base from the ever advancing army of tanks, buggies...

  • New Rich Text Editor User Control
    Feb 19, 2010

    By popular request, here we present a re-usable User Control containing the Liquid RichTextBox along with the most common formatting functions included.

  • Silverlight 3 Controls V5.2.7 Released
    Feb 19, 2010

    This release includes several fixes for issues raised in the forum. The main improvement is to the RichTextBox which now provides access and methods to the document elements allowing...

  • Super Shoot Em Up Game
    Feb 04, 2010

    Added to the games section is the new Super Shoot 'Em Up game. Take control of a tank with your aim being to blow up your opposing tanks and collect all the powerups.

  • Silverlight 3 Controls V5.2.6 Released
    Feb 04, 2010

    This release includes some minor fixes for several forum posts. Please see the notes on the download page for full details on what has changed.

Silverlight Popup Bubble

This free Silverlight Popup Bubble 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 Popup Bubble control you will need to add a reference to Liquid.Popup.dll in your project.


How to Use the Popup Bubble Control

To use the Popup Bubble on your Silverlight page:

<UserControl x:Class="Bubble.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:liquidPopup="clr-namespace:Liquid;assembly=Liquid.Popup"
    Width="400" Height="300">
    <Canvas x:Name="LayoutRoot" Background="White">
        <Button x:Name="showDialog" Canvas.Left="20" Canvas.Top="20" Content="Show Dialog" Width="100" Height="20" Click="Bubble_ButtonClick" />
        <liquidPopup:Bubble x:Name="bubblePopup" Canvas.Left="50" Canvas.Top="50" Width="300" Height="120" Lip="BottomLeft">
            <StackPanel>
                <TextBlock Width="300" TextWrapping="Wrap" Padding="10" Text="This is a Liquid bubble popup! It will close in 15 seconds or when you click the Close button!" />
                <Button Content="Close" Click="BubbleClose_Click" HorizontalAlignment="Right" Margin="10" />
            </StackPanel>
        </liquidPopup:Bubble>
    </Canvas>
</UserControl>


In your C# code behind file you can refer to the Bubble using bubblePopup.  In this example we create a simple popup bubble containing a Close button with some text, to show the dialog click the 'Show Bubble' button.

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;

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

            bubblePopup.IsTimerEnabled = true;
            bubblePopup.TimeUntilClose = new TimeSpan(0, 0, 15);
        }

        private void Bubble_ButtonClick(object sender, RoutedEventArgs e)
        {
            bubblePopup.Show();
        }

        private void BubbleClose_Click(object sender, RoutedEventArgs e)
        {
            bubblePopup.Close();
        }
    }
}


If you display the bubble without clicking the Close button, the bubble will close automatically after 15 seconds.  This timeout and close feature is present on all the Liquid Popup dialogs.

Example Silverlight Popup Bubble Control:

Silverlight Popup Bubble 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.

magicrat posted on How to get a Yes No Message Box

Hello, brand new here...


I am just working with teh Message Box and want ot show more than one button for a yes no type of message box.  How do I do this in code?  I need this message box to change depending on the reson it is shown so I have to change the buttons before I show it.  Also how do I hide the X close button?


Thanks in advance!

Hi,


You can control the minimized position by using the Minimizing and Minimized events.  Please see the main controls demo to see how these event handlers are implemented.  You can customize this quite easily to have them stack vertically instead of horizontally, the methods you need are:


Dialog_Minimizing

Dialog_Minimized

Dialog_Restoring


The demo can be downloaded from:


http://www.vectorlight.net/demos/silverlight_controls_demo.aspx


Thanks!

Sorry I posted this in the wrong forum.  I've copied it over to the Liquid.Menu forum.

Hi


I have been looking at your components for possible inclusion in a Silverlight Application our company is planning in the near future, specfically the functionality for non-modal windows.  When playing about with your online demo I noticed that if you minimize a maximized window, when it is restored, the min, max, close buttons are reset so that you can not return back to the normal size (before maximization took place). In my opinion the window should be returned to the maximized state.


A greater problem, however, is the fact that the Scroller Control Dialog seems to retain it's Maximize button when it is Minimized, and when it is clicked it seems to cause some particularly strange behave where the Dialog shifts it's idea of the bounds of the Silverlight App so that when it is Maximized in future, it is in completely the wrong position.


Richard Ellis

Hi,


At the moment the MessageBox content will not scroll.  It will display a simple block of text.  To implement scrollable I would recommend you use the regular Popup Dialog, this will allow you to specify any content such as a ScrollViewer containing a TextBlock.


Thanks!

Hi,


You can constrain the minimum and maximum draggable points of a dialog using the TopLeft and BottomRight properties.  You should also ensure that your Canvas has Width and Height properties set.


Thanks!

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