1: <?xml version="1.0" encoding="utf-8" ?>
2: <ModelFragment
3: xmlns="http://schemas.microsoft.com/LightSwitch/2010/xaml/model"
4: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
5:
6: <Control
7: Name="XamNumericSliderControl"
8: BaseControl="RootValueControl"
9: SupportedContentItemKind="Value"
10: DesignerImageResource="XamNumericSliderImages::XamNumericSliderControl" >
11: <Control.Attributes>
12: <DisplayName Value="$(XamNumericSliderControl_DisplayName)" />
13: </Control.Attributes>
14: <Control.SupportedDataTypes>
15: <SupportedDataType DataType="Decimal"/>
16: <SupportedDataType DataType="Int16"/>
17: <SupportedDataType DataType="Int32"/>
18: <SupportedDataType DataType="Int64"/>
19: <SupportedDataType DataType="Double"/>
20: </Control.SupportedDataTypes>
21:
22: <!-- Property overrides -->
23: <Control.PropertyOverrides>
24:
25: <!-- ContentSizingMode override -->
26: <ControlPropertyOverride
27: Property="Microsoft.LightSwitch:RootControl/Properties[ContentSizingMode]"
28: EditorVisibility="NotDisplayed">
29: <ControlPropertyOverride.DefaultValueSource>
30: <ScreenExpressionTree>
31: <ChainExpression>
32: <ConstantExpression ResultType="Microsoft.LightSwitch:String" Value="Text" />
33: </ChainExpression>
34: </ScreenExpressionTree>
35: </ControlPropertyOverride.DefaultValueSource>
36: </ControlPropertyOverride>
37:
38: <!-- ContentSize override -->
39: <ControlPropertyOverride
40: Property="Microsoft.LightSwitch:RootControl/Properties[ContentSize]"
41: EditorVisibility="PropertySheet">
42: <ControlPropertyOverride.DefaultValueSource>
43: <ScreenExpressionTree>
44: <ChainExpression>
45: <ConstantExpression ResultType="Microsoft.LightSwitch:String" Value="Auto" />
46: </ChainExpression>
47: </ScreenExpressionTree>
48: </ControlPropertyOverride.DefaultValueSource>
49: </ControlPropertyOverride>
50:
51: </Control.PropertyOverrides>
52:
53: <!-- XamNumericSliderControl Properties -->
54: <Control.Properties>
55:
56: <!-- XamNumericSliderControl MinValue Property -->
57: <ControlProperty Name="MinValue"
58: PropertyType="Microsoft.LightSwitch:Double"
59: IsReadOnly="False"
60: CategoryName="XamNumericSlider Properties"
61: EditorVisibility="PropertySheet">
62: <ControlProperty.Attributes>
63: <DisplayName Value="$(XamNumericSliderControl_MinValue_DisplayName)"/>
64: <Description Value="$(XamNumericSliderControl_MinValue_Description)"/>
65: </ControlProperty.Attributes>
66: </ControlProperty>
67:
68: <!-- XamNumericSliderControl MaxValue Property -->
69: <ControlProperty Name="MaxValue"
70: PropertyType="Microsoft.LightSwitch:Double"
71: IsReadOnly="False"
72: CategoryName="XamNumericSlider Properties"
73: EditorVisibility="PropertySheet">
74: <ControlProperty.Attributes>
75: <DisplayName Value="$(XamNumericSliderControl_MaxValue_DisplayName)"/>
76: <Description Value="$(XamNumericSliderControl_MaxValue_Description)"/>
77: </ControlProperty.Attributes>
78: </ControlProperty>
79:
80: <!--NumberOfTickMarks-->
81: <ControlProperty Name="NumberOfTickMarks"
82: PropertyType="Microsoft.LightSwitch:Int32"
83: IsReadOnly="False"
84: CategoryName="XamNumericSlider Properties"
85: EditorVisibility="PropertySheet">
86: <ControlProperty.Attributes>
87: <DisplayName Value="$(XamNumericSliderControl_NumberOfTickMarks_DisplayName)"/>
88: <Description Value="$(XamNumericSliderControl_NumberOfTickMarks_Description)"/>
89: </ControlProperty.Attributes>
90: </ControlProperty>
91:
92: </Control.Properties>
93:
94: </Control>
95: </ModelFragment>