Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ComboBox"/> class.
        /// </summary>
        /// <param name="uv">The Ultraviolet context.</param>
        /// <param name="name">The element's identifying name within its namescope.</param>
        public ComboBox(UltravioletContext uv, String name)
            : base(uv, name)
        {
            visualClone = new VisualClone(uv);

            VisualStateGroups.Create("common", new[] { "normal", "hover", "disabled" });
            VisualStateGroups.Create("opened", new[] { "closed", "open" });
        }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ToggleButton"/> class.
 /// </summary>
 /// <param name="uv">The Ultraviolet context.</param>
 /// <param name="name">The element's identifying name within its namescope.</param>
 public ToggleButton(UltravioletContext uv, String name)
     : base(uv, name)
 {
     VisualStateGroups.Create("checkstate", new[] { "unchecked", "checked", "indeterminate" });
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Thumb"/> class.
 /// </summary>
 /// <param name="uv">The Ultraviolet context.</param>
 /// <param name="name">The element's identifying name within its namescope.</param>
 public Thumb(UltravioletContext uv, String name)
     : base(uv, name)
 {
     VisualStateGroups.Create("common", new[] { "normal", "hover", "pressed", "disabled" });
 }