Brockmann: "Creating Rich Web
Applications Gets a Ton Easier"

e-grou chooses Visual WebGui
over standard ASP.NET

Quick migration of VB 6.0
Applications to the Web

Try the revolutionary Studio
the all-new 6.4 beta is here

Fully functional software versions
for 30 days evaluation period

Download the free edition of the
Visual WebGui Studio
 

Tutorials

Eyal.Albert posted on April 16, 2009 :: 3489 Views :: User Rating:Article Rating
Share |

In this How to we are going to learn the basic usage of Visual WebGui RIA Platform Theme & Control designer.
The Theme & Control designers are some of the new features that will be introduced in version 6.4. The new visual designers enable developers to create or edit a control skin and make custom themes. The Control designer consolidates all the resources that build the control into one place.

In this How to we will show how to edit images that make up a standard button and quickly transform it to Mac styled buttom.

Let’s open Visual studio and create a new Visual WebGui application.

image   imageimage

Now let’s add a few controls to our main form. Open form1 in design mode and add a few controls.

 

Next add a new Visual WebGui Control Library project named MyTheme.

NewVwgControlLibrary_VS2005

Right click on the project in the Solution explorer to add a new item and select the Visual WebGui Theme item from dialog.

NewVwgTheme_VS2005 

   image

Let’s close all open windows in Visual Studio, build the ‘MyTheme’ project and open Theme1 file in design-view to see the theme designer.

What you see on the left side of the screen is a list of all the controls that have skins that inherit from ControlSkin. By default a new Theme project template has a reference to Gizmox.WebGUI.Forms dll and you see the 58 out-of-the-box controls that we have in Visual WebGui int the tree. You can add reference to more dlls that have controls with skins defined and edit them.

The controls are sorted by name and grouped by inheritance or by containment (Data grid view columns can be used only within a data grid view hens appear underneath it.)

image

On the right side you can see the files that are associated with the control sorted by type. The files are sorted into seven groups that you can select by using the tool bar.

image 

image            image 

Let’s select the Button and see the images that build the button controls. The button control is built from a set on images the complete the button that you see. There are 9 images for each button state (Enabled, Disables, Pressed, Hover…). The image below displays a few of the images that are used for the button control.

image

As you can see each one of the images is marked with an icon image. This icon means that the resource is referenced and not a local resource. This means that this resource belongs to the parent control or that belong to the default theme of the control. You can view the resource but can edit it until you convert the resource to a local resource. So lets right click on one of the images and select the override option this will create the resource as a local resource.

image           image

Now we can edit the image. Double click on the image to open it in an edit mode you can set what will be the default editor of a specific file type. In the theme project click on the expend sign next to the theme and see the local resource that was created for the image. Next right click on the image and select the Open with option and then you can select the program to use. I’ve selected Paint.Net but you can use windows paint or any other image processing program.

image         image

image 

Now double click on the image and edit it by changing the color or changing the corner to a round corner. Once you are done just save the image and you will see the update in the theme designer.

image  image

You can go over all the images in the Button to change all of them. If edited all of them and saved them in a different folder but with the same names. Now I can just take the image and drop them in the theme designer and override all the images.

image         image  

image 

Now we will see the effect of our changes on the label. First add to our project a reference to the theme right click on the project and select add reference. Then select the project tab and select our theme and press ok.

image         image

Next let’s open the property page of our application and select our new theme as the application default theme. Right click on the project and select the properties. In the property page select the registration tab.

image                   image

In the theme section press 'Add new theme' and select the theme we created. The theme selection dialog displays all the themes that a referenced to the project.
Once you select the theme you want to add press ok and see the theme in the project registered theme. To set the default theme check the checkbox next to it.

image

image

Now let’s run the application and see the difference

The default Theme: 

image

Our new theme:

image image

To summarize:
We have just seen how to edit resources in a control and use the new theme we created in our application. Remember that you can edit every resource that the control includes such as css files xslt or xaml. This ability gives you the power to create new rich UIs for your web applications with Visual WebGui's simplicity.

Related links:

 
 
Posted in: Theme Designer
5 Users Rated: Article Rating
# Visualizer
Verry nice!
Posted by Visualizer on Sunday, April 19, 2009 5:32 AM
# Anonymous
New cutting-edge web applications design / development patterns
Posted by Anonymous on Thursday, April 23, 2009 6:36 AM
# Anonymous
A peek at the new Visual WebGui web design tool themes
Posted by Anonymous on Wednesday, May 06, 2009 1:02 PM
Only registered users may post comments.
Most promising startups
Top 3 most promising startups in 2009
   AJAX Framework | Web Development | Cloud applications | RIA Development | Silverlight Applications | Legacy Migration
The most popular open source Ajax applications framework for enterprises | Sitemap | Terms Of Use | Privacy Statement
Copyright © 2005-2009 Visual WebGui®    Design By: Template World
   
Visual Studio Partners