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;}
0 comments:
Post a Comment