or
| IsHighlightedProperty = RadProperty.Register("IsHighlighted", typeof(bool), typeof(RadListBoxItem), new RadElementPropertyMetadata(false, ElementPropertyOptions.AffectsDisplay)); |
| <XmlPropertySettingGroup> |
| <PropertySettings> |
| <XmlPropertySetting Property="Telerik.WinControls.Primitives.FillPrimitive.GradientStyle" Value="Linear" /> |
| <XmlPropertySetting Property="Telerik.WinControls.Primitives.FillPrimitive.NumberOfColors" Value="4" /> |
| <XmlPropertySetting Property="Telerik.WinControls.Primitives.FillPrimitive.GradientAngle" Value="90" /> |
| <XmlPropertySetting Property="Telerik.WinControls.Primitives.FillPrimitive.GradientPercentage" Value="0.5015975" /> |
| <XmlPropertySetting Property="Telerik.WinControls.Primitives.FillPrimitive.GradientPercentage2" Value="0.5623003" /> |
| <XmlPropertySetting Property="Telerik.WinControls.RadElement.Visibility" Value="Visible" /> |
| <XmlAnimatedPropertySetting EndValue="White" Property="Telerik.WinControls.VisualElement.BackColor" Value="" /> |
| <XmlAnimatedPropertySetting EndValue="255, 235, 173" Property="Telerik.WinControls.Primitives.FillPrimitive.BackColor2" Value="" /> |
| <XmlAnimatedPropertySetting EndValue="255, 215, 106" Property="Telerik.WinControls.Primitives.FillPrimitive.BackColor3" Value="" /> |
| <XmlAnimatedPropertySetting EndValue="255, 213, 156" Property="Telerik.WinControls.Primitives.FillPrimitive.BackColor4" Value="" /> |
| </PropertySettings> |
| <Selectors> |
| <XmlClassSelector ElementClass="ListBoxItemSelectionFill" AutoUnapply="False"> |
| <Condition xsi:type="XmlSimpleCondition" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| <Setting Property="Telerik.WinControls.UI.RadListBoxItem.IsHighlighted" Value="True" /> |
| </Condition> |
| </XmlClassSelector> |
| </Selectors> |
| </XmlPropertySettingGroup> |
| class MyObject |
| { |
| public double Number { get; set; } |
| public string Title { get; set; } |
| } |
| public Form1() |
| { |
| MyObject myObject = new MyObject() { Number = 5, Title = "Hello" }; |
| RadTextBox textBox = new RadTextBox(); |
| textBox.DataBindings.Add(new Binding("Text", myObject, "Title")); |
| Controls.Add(textBox); |
| } |
| class MyObject |
| { |
| public double Number { get; set; } |
| public string Title { get; set; } |
| } |
| public Form1() |
| { |
| MyObject myObject = new MyObject() { Number = 5, Title = "Hello" }; |
| RadTextBoxElement textBox = new RadTextBoxElement() { MinSize = new Size(200, 0) }; |
| textBox.DataBindings.Add(new Binding("Text", myObject, "Title")); |
| RadPanel elementsContainer = new RadPanel(); |
| elementsContainer.PanelElement.Children.Add(textBox); |
| Controls.Add(elementsContainer); |
| } |
| public Form1() |
| { |
| StackLayoutPanel panel = new StackLayoutPanel(); |
| panel.Orientation = Orientation.Horizontal; |
| panel.AutoSize = true; |
| panel.Children.Add(new TextPrimitive() { Text = "Color:" }); |
| panel.Children.Add(new RadTextBoxElement() { Text = "Purple" }); |
| RadPanel elementsContainer = new RadPanel(); |
| elementsContainer.ThemeName = "Desert"; |
| elementsContainer.PanelElement.Children.Add(panel); |
| Controls.Add(elementsContainer); |
| } |
Please ignore this post , I had it answered in another post.
| +--------------+--------------+--------------+----- |
| | | Height | Width | Etc... |
| header: + Product Name +-------+------+-------+------+------ |
| | | Value | Unit | Value | Unit | |
| +--------------+-------+------+-------+------+-------- |
| row: | Monitor | 30 | cm | 1.2 | m | |
| +--------------+-------+------+-------+------+-------- |
| +--------------+--------------+--------------+----- |
| | | Height | Width | Etc... |
| header: +--------------+-------+------+-------+------+------ |
| | Product Name | Value | Unit | Value | Unit | |
| +--------------+-------+------+-------+------+-------- |
| row: | Monitor | 30 | cm | 1.2 | m | |
| +--------------+-------+------+-------+------+-------- |