Monday, January 28, 2008

Custom Pinnies Affordable

Applying styles with Infragistics AppStylist

Infragistics NetAdvantage for. NET is a complete and comprehensive suite of ASP development. NET, which includes new controls for use in forms, new components and tools . NET platform. Particularly is the collection of controls that I like about all existing (other than ToolkitPro of Codejock Software Xtreme), although their implementation within our applications can be quite complex.
One of the most attractive of NetAdvantage for. NET is AppStylist for Windows Forms. With this you can customize the look of our applications giving them a truly professional look, a la Office 2007. We must not forget that personalization will only affect the controls included in NetAdvantage suite, and not belonging to Visual Studio or other developers.
Continue Reading ...
Its use is quite simple, allowing both colors set the display styles. Once modified the desired properties (in most cases simply select a color palette and leave the rest to the application), we can save the newly created style in a file and subsequently used to provide the definitive look at our application .
is where we'll hand the program to insert lines of code appropriate.
[Example in Visual Basic]

Public Sub New ()
MyBase . New ()

'Windows Form Designer requires the following line of code.

InitializeComponent ()

' The stylization of the application begins when the library of styles

' is loaded by calling the Load method of StyleManager. This

'normally occurs during the startup of the application.

Infragistics.Win.AppStyling.StyleManager.Load ( "MiEstilo.isl" )

'Inside the library there will be a marked style style

' defect. In addition there may be other styles marked by default for

'specific types of components such as ultragrid, Ultracomb, etc.

'In the following example, we do not use the default style for

' UltraToolbarsManager component, but specific one, for what that

'change the value of the property StyleSetName, name

' desired style.



I . UltraToolbarsManager1.StyleSetName = "EstiloDeComponente"

'In the event that no any style we wanted to assign a component

'deactivate your ability to stylization.

I . UltraButton1.UseAppStyling = False

End Sub

[Example in C #]

public MainForm () {

/ / Windows Form Designer requires the following line code.

InitializeComponent ();

/ / The stylization of the application begins when the library

/ / style is loaded by calling the Load method of l

/ / StyleManager. This typically occurs during the startup of the

/ / application.

Infragistics.Win.AppStyling.StyleManager.Load ( "MiEstilo.isl" )

/ / Inside the library there will be a marked style style

/ / default. addition there may be other styles marked by default for

/ / specific types of components such as ultragrid, Ultracomb, etc.

/ / In the following example, we do not use the default style for

/ / component UltraToolbarsManager, but other specific so

/ / change the value of the property StyleSetName, name

/ / the desired style.

this . UltraToolbarsManager1.StyleSetName = "EstiloDeComponente" ;

/ / If we do not want to assign any style

/ / component, d esactivaríamos styling ability.

this . UltraButton1.UseAppStyling = false;}

And here, with these few lines of code, we managed to provide a unique look at the forms and components of our application.
Hope you liked it.
A greeting and to another.

0 comments:

Post a Comment