Search
Control.theme Property
See Also
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: None Language Filter: C# Language Filter: Visual Basic Language Filter: Java Language Filter: JavaScript Language Filter: C++ Language Filter: XAML
C#
Visual Basic
Java
JavaScript
C++
XAML
Introduction
General Information
What's New In This Release
Version History
Getting Started
Code Completion With VSDoc IntelliSense
Programming Interface Overview
Tutorials
Reference
MindFusion.Common
Control Class
Control Members
Control Constructor
Control Methods
Control Properties
bounds Property
cssClass Property
data Property
element Property
enabled Property
height Property
left Property
licenseLocation Property
loaded Property
rect Property
theme Property
top Property
visible Property
width Property
Control Events
DateFormats Class
DateSettings Class
EventDispatcher Class
IdGenerator Class
Locale Class
NotifyCollectionChangedAction Class
NotifyCollectionChangedEventArgs Class
NotifyCollectionChangingEventArgs Class
PropertyEventArgs Class
UIControl Class
Unit Class
UnitType Enumeration
MindFusion.Common.Collections
MindFusion.Controls
MindFusion.Scheduling
Licensing
Online Resources
Technical Support
MindFusion Products

Gets or sets the current theme of the control.

Namespace: MindFusion.Common
Assembly: Control.js

## Syntax

JavaScript Copy Code
get theme() {}

### Property Value

String. The current theme.

## Example

The following code assigns the "gray" theme to a ListView:

JavaScript Copy Code
var ui = MindFusion.UI; var listView; var host; var theme = "gray"; document.addEventListener("DOMContentLoaded", function () { listView = new ui.ListView(document.getElementById("listView")); listView.width = listView.height = ui.Unit.percentage(100); listView.theme = theme; listView.itemSize = ui.Unit.pixel(100); listView.itemDoubleClick.addEventListener(handleItemDoubleClick); .......................................... .......................................... }

## See Also

Control Members
Control Class
MindFusion.Common Namespace