|
34 | 34 | <Brush ux:Property="BorderColor" />
|
35 | 35 | <float ux:Property="FontSize" />
|
36 | 36 | <float4 ux:Property="TextColor" />
|
37 |
| - <Rectangle Layer="Background" ux:Name="bgCol" Fill="{Property self.BackgroundColor}"> |
38 |
| - <Stroke Brush="{Property self.BorderColor}" Width="1" /> |
| 37 | + <Rectangle Layer="Background" ux:Name="bgCol" Fill="{ReadProperty self.BackgroundColor}"> |
| 38 | + <Stroke Brush="{ReadProperty self.BorderColor}" Width="1" /> |
39 | 39 | </Rectangle>
|
40 |
| - <Text Margin="10,0,0,0" Alignment="CenterLeft" Value="{Property self.Text}" FontSize="{Property self.FontSize}" Color="{Property self.TextColor}" /> |
| 40 | + <Text Margin="10,0,0,0" Alignment="CenterLeft" Value="{ReadProperty self.Text}" FontSize="{ReadProperty self.FontSize}" Color="{ReadProperty self.TextColor}" /> |
41 | 41 |
|
42 | 42 | </Panel>
|
43 | 43 |
|
|
49 | 49 | <Brush ux:Property="BorderColor" />
|
50 | 50 | <float ux:Property="FontSize" />
|
51 | 51 | <float4 ux:Property="TextColor" />
|
52 |
| - <Text Margin="10,0,0,0" FontSize="{Property self.FontSize}" Color="{Property self.TextColor}" Alignment="CenterLeft" Value="{Property self.Text}" /> |
| 52 | + <Text Margin="10,0,0,0" FontSize="{ReadProperty self.FontSize}" Color="{ReadProperty self.TextColor}" Alignment="CenterLeft" Value="{ReadProperty self.Text}" /> |
53 | 53 | <Panel Layer="Background">
|
54 |
| - <Rectangle Layer="Background" Fill="{Property self.BackgroundColor}" Height="100%" Alignment="Top"> |
55 |
| - <!--Stroke Brush="{Property self.BorderColor}" Width="1" /--> |
| 54 | + <Rectangle Layer="Background" Fill="{ReadProperty self.BackgroundColor}" Height="100%" Alignment="Top"> |
| 55 | + <!--Stroke Brush="{ReadProperty self.BorderColor}" Width="1" /--> |
56 | 56 | </Rectangle>
|
57 | 57 | </Panel>
|
58 | 58 | </Panel>
|
|
63 | 63 | <Panel Width="200" Height="40">
|
64 | 64 | <DataBinding Target="menu.Selected" Key="selected" />
|
65 | 65 | <Rectangle>
|
66 |
| - <Stroke Brush="{Property menu.BorderColor}" Width="1" /> |
| 66 | + <Stroke Brush="{ReadProperty menu.BorderColor}" Width="1" /> |
67 | 67 | </Rectangle>
|
68 |
| - <DropdownSelectedItem TextColor="{Property menu.TextColor}" FontSize="{Property menu.FontSize}" Text="{selected}" BackgroundColor="{Property menu.BackgroundColor}" BorderColor="{Property menu.BorderColor}" /> |
| 68 | + <DropdownSelectedItem TextColor="{ReadProperty menu.TextColor}" FontSize="{ReadProperty menu.FontSize}" Text="{selected}" BackgroundColor="{ReadProperty menu.BackgroundColor}" BorderColor="{ReadProperty menu.BorderColor}" /> |
69 | 69 | <Clicked>
|
70 | 70 | <Toggle Target="expandDropdown" />
|
71 | 71 | </Clicked>
|
72 | 72 |
|
73 | 73 | <WhileTrue ux:Name="expandDropdown">
|
74 | 74 | <StackPanel Offset="0,40" >
|
75 |
| - <Each Items="{Property menu.ListItems}" > |
76 |
| - <DropdownOption FontSize="{Property menu.FontSize}" TextColor="{Property menu.TextColor}" Text="{name}" BackgroundColor="{Property menu.BackgroundColor}" Clicked="{onSelected}" BorderColor="{Property menu.BorderColor}" /> |
| 75 | + <Each Items="{ReadProperty menu.ListItems}" > |
| 76 | + <DropdownOption FontSize="{ReadProperty menu.FontSize}" TextColor="{ReadProperty menu.TextColor}" Text="{name}" BackgroundColor="{ReadProperty menu.BackgroundColor}" Clicked="{onSelected}" BorderColor="{ReadProperty menu.BorderColor}" /> |
77 | 77 | </Each>
|
78 | 78 | </StackPanel>
|
79 | 79 | </WhileTrue>
|
|
0 commit comments