VisualElement.SetStyle Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetStyle(BindableObject, String) |
Sets the style on a visual element. |
SetStyle(IPlatformElementConfiguration<Tizen,VisualElement>, String) |
Sets the style on a visual element. |
SetStyle(BindableObject, String)
- Source:
- VisualElement.cs
- Source:
- VisualElement.cs
Sets the style on a visual element.
public:
static void SetStyle(Microsoft::Maui::Controls::BindableObject ^ element, System::String ^ value);
public static void SetStyle (Microsoft.Maui.Controls.BindableObject element, string value);
static member SetStyle : Microsoft.Maui.Controls.BindableObject * string -> unit
Public Sub SetStyle (element As BindableObject, value As String)
Parameters
- element
- BindableObject
The visual element whose style to set.
- value
- String
The new style value.
Applies to
SetStyle(IPlatformElementConfiguration<Tizen,VisualElement>, String)
- Source:
- VisualElement.cs
- Source:
- VisualElement.cs
Sets the style on a visual element.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::Tizen ^, Microsoft::Maui::Controls::VisualElement ^> ^ SetStyle(Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::Tizen ^, Microsoft::Maui::Controls::VisualElement ^> ^ config, System::String ^ value);
public static Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Tizen,Microsoft.Maui.Controls.VisualElement> SetStyle (this Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Tizen,Microsoft.Maui.Controls.VisualElement> config, string value);
static member SetStyle : Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Tizen, Microsoft.Maui.Controls.VisualElement> * string -> Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Tizen, Microsoft.Maui.Controls.VisualElement>
<Extension()>
Public Function SetStyle (config As IPlatformElementConfiguration(Of Tizen, VisualElement), value As String) As IPlatformElementConfiguration(Of Tizen, VisualElement)
Parameters
The platform configuration for the visual element whose style to set.
- value
- String
The new style value.
Returns
A fluent object on which the developer may make further method calls.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.