|
48 | 48 | <TextBlock.Foreground>
|
49 | 49 | <MultiBinding Converter="{x:Static wpf:RatingBar+TextBlockForegroundConverter.Instance}">
|
50 | 50 | <Binding Path="Tag" RelativeSource="{RelativeSource Self}" />
|
51 |
| - <Binding Path="Orientation" RelativeSource="{RelativeSource FindAncestor, AncestorType=wpf:RatingBar}" /> |
52 |
| - <Binding Path="InvertDirection" RelativeSource="{RelativeSource FindAncestor, AncestorType=wpf:RatingBar}" /> |
53 |
| - <Binding Path="Value" RelativeSource="{RelativeSource FindAncestor, AncestorType=wpf:RatingBar}" /> |
| 51 | + <Binding Path="RatingBar.Orientation" RelativeSource="{RelativeSource TemplatedParent}" /> |
| 52 | + <Binding Path="RatingBar.InvertDirection" RelativeSource="{RelativeSource TemplatedParent}" /> |
| 53 | + <Binding Path="RatingBar.Value" RelativeSource="{RelativeSource TemplatedParent}" /> |
54 | 54 | <Binding Path="Value" RelativeSource="{RelativeSource TemplatedParent}" />
|
55 | 55 | </MultiBinding>
|
56 | 56 | </TextBlock.Foreground>
|
|
70 | 70 | <MultiBinding Converter="{x:Static wpf:RatingBar+PreviewIndicatorTransformXConverter.Instance}">
|
71 | 71 | <Binding Path="ActualWidth" RelativeSource="{RelativeSource TemplatedParent}" />
|
72 | 72 | <Binding ElementName="previewValueHorizontal" Path="ActualWidth" />
|
73 |
| - <Binding Path="Orientation" RelativeSource="{RelativeSource FindAncestor, AncestorType=wpf:RatingBar}" /> |
74 |
| - <Binding Path="InvertDirection" RelativeSource="{RelativeSource FindAncestor, AncestorType=wpf:RatingBar}" /> |
75 |
| - <Binding Path="IsFractionalValueEnabled" RelativeSource="{RelativeSource FindAncestor, AncestorType=wpf:RatingBar}" /> |
76 |
| - <Binding Path="PreviewValue" RelativeSource="{RelativeSource FindAncestor, AncestorType=wpf:RatingBar}" /> |
| 73 | + <Binding Path="RatingBar.Orientation" RelativeSource="{RelativeSource TemplatedParent}" /> |
| 74 | + <Binding Path="RatingBar.InvertDirection" RelativeSource="{RelativeSource TemplatedParent}" /> |
| 75 | + <Binding Path="RatingBar.IsFractionalValueEnabled" RelativeSource="{RelativeSource TemplatedParent}" /> |
| 76 | + <Binding Path="RatingBar.PreviewValue" RelativeSource="{RelativeSource TemplatedParent}" /> |
77 | 77 | <Binding Path="Value" RelativeSource="{RelativeSource TemplatedParent}" />
|
78 | 78 | <Binding Path="IsMouseOver" RelativeSource="{RelativeSource TemplatedParent}" />
|
79 | 79 | </MultiBinding>
|
|
82 | 82 | <MultiBinding Converter="{x:Static wpf:RatingBar+PreviewIndicatorTransformYConverter.Instance}">
|
83 | 83 | <Binding Path="ActualHeight" RelativeSource="{RelativeSource TemplatedParent}" />
|
84 | 84 | <Binding ElementName="previewValueHorizontal" Path="ActualHeight" />
|
85 |
| - <Binding Path="Orientation" RelativeSource="{RelativeSource FindAncestor, AncestorType=wpf:RatingBar}" /> |
86 |
| - <Binding Path="InvertDirection" RelativeSource="{RelativeSource FindAncestor, AncestorType=wpf:RatingBar}" /> |
87 |
| - <Binding Path="IsFractionalValueEnabled" RelativeSource="{RelativeSource FindAncestor, AncestorType=wpf:RatingBar}" /> |
88 |
| - <Binding Path="PreviewValue" RelativeSource="{RelativeSource FindAncestor, AncestorType=wpf:RatingBar}" /> |
| 85 | + <Binding Path="RatingBar.Orientation" RelativeSource="{RelativeSource TemplatedParent}" /> |
| 86 | + <Binding Path="RatingBar.InvertDirection" RelativeSource="{RelativeSource TemplatedParent}" /> |
| 87 | + <Binding Path="RatingBar.IsFractionalValueEnabled" RelativeSource="{RelativeSource TemplatedParent}" /> |
| 88 | + <Binding Path="RatingBar.PreviewValue" RelativeSource="{RelativeSource TemplatedParent}" /> |
89 | 89 | <Binding Path="Value" RelativeSource="{RelativeSource TemplatedParent}" />
|
90 | 90 | <Binding Path="IsMouseOver" RelativeSource="{RelativeSource TemplatedParent}" />
|
91 | 91 | </MultiBinding>
|
|
123 | 123 | <MultiBinding Converter="{x:Static wpf:RatingBar+PreviewIndicatorTransformXConverter.Instance}">
|
124 | 124 | <Binding Path="ActualWidth" RelativeSource="{RelativeSource TemplatedParent}" />
|
125 | 125 | <Binding ElementName="previewValueVertical" Path="ActualWidth" />
|
126 |
| - <Binding Path="Orientation" RelativeSource="{RelativeSource FindAncestor, AncestorType=wpf:RatingBar}" /> |
127 |
| - <Binding Path="InvertDirection" RelativeSource="{RelativeSource FindAncestor, AncestorType=wpf:RatingBar}" /> |
128 |
| - <Binding Path="IsFractionalValueEnabled" RelativeSource="{RelativeSource FindAncestor, AncestorType=wpf:RatingBar}" /> |
129 |
| - <Binding Path="PreviewValue" RelativeSource="{RelativeSource FindAncestor, AncestorType=wpf:RatingBar}" /> |
| 126 | + <Binding Path="RatingBar.Orientation" RelativeSource="{RelativeSource TemplatedParent}" /> |
| 127 | + <Binding Path="RatingBar.InvertDirection" RelativeSource="{RelativeSource TemplatedParent}" /> |
| 128 | + <Binding Path="RatingBar.IsFractionalValueEnabled" RelativeSource="{RelativeSource TemplatedParent}" /> |
| 129 | + <Binding Path="RatingBar.PreviewValue" RelativeSource="{RelativeSource TemplatedParent}" /> |
130 | 130 | <Binding Path="Value" RelativeSource="{RelativeSource TemplatedParent}" />
|
131 | 131 | <Binding Path="IsMouseOver" RelativeSource="{RelativeSource TemplatedParent}" />
|
132 | 132 | </MultiBinding>
|
|
135 | 135 | <MultiBinding Converter="{x:Static wpf:RatingBar+PreviewIndicatorTransformYConverter.Instance}">
|
136 | 136 | <Binding Path="ActualHeight" RelativeSource="{RelativeSource TemplatedParent}" />
|
137 | 137 | <Binding ElementName="previewValueVertical" Path="ActualHeight" />
|
138 |
| - <Binding Path="Orientation" RelativeSource="{RelativeSource FindAncestor, AncestorType=wpf:RatingBar}" /> |
139 |
| - <Binding Path="InvertDirection" RelativeSource="{RelativeSource FindAncestor, AncestorType=wpf:RatingBar}" /> |
140 |
| - <Binding Path="IsFractionalValueEnabled" RelativeSource="{RelativeSource FindAncestor, AncestorType=wpf:RatingBar}" /> |
141 |
| - <Binding Path="PreviewValue" RelativeSource="{RelativeSource FindAncestor, AncestorType=wpf:RatingBar}" /> |
| 138 | + <Binding Path="RatingBar.Orientation" RelativeSource="{RelativeSource TemplatedParent}" /> |
| 139 | + <Binding Path="RatingBar.InvertDirection" RelativeSource="{RelativeSource TemplatedParent}" /> |
| 140 | + <Binding Path="RatingBar.IsFractionalValueEnabled" RelativeSource="{RelativeSource TemplatedParent}" /> |
| 141 | + <Binding Path="RatingBar.PreviewValue" RelativeSource="{RelativeSource TemplatedParent}" /> |
142 | 142 | <Binding Path="Value" RelativeSource="{RelativeSource TemplatedParent}" />
|
143 | 143 | <Binding Path="IsMouseOver" RelativeSource="{RelativeSource TemplatedParent}" />
|
144 | 144 | </MultiBinding>
|
|
243 | 243 | <TextBlock.Foreground>
|
244 | 244 | <MultiBinding Converter="{x:Static wpf:RatingBar+TextBlockForegroundConverter.Instance}">
|
245 | 245 | <Binding Path="Tag" RelativeSource="{RelativeSource Self}" />
|
246 |
| - <Binding Path="Orientation" RelativeSource="{RelativeSource FindAncestor, AncestorType=wpf:RatingBar}" /> |
247 |
| - <Binding Path="InvertDirection" RelativeSource="{RelativeSource FindAncestor, AncestorType=wpf:RatingBar}" /> |
248 |
| - <Binding Path="Value" RelativeSource="{RelativeSource FindAncestor, AncestorType=wpf:RatingBar}" /> |
| 246 | + <Binding Path="RatingBar.Orientation" RelativeSource="{RelativeSource TemplatedParent}" /> |
| 247 | + <Binding Path="RatingBar.InvertDirection" RelativeSource="{RelativeSource TemplatedParent}" /> |
| 248 | + <Binding Path="RatingBar.Value" RelativeSource="{RelativeSource TemplatedParent}" /> |
249 | 249 | <Binding Path="Value" RelativeSource="{RelativeSource TemplatedParent}" />
|
250 | 250 | </MultiBinding>
|
251 | 251 | </TextBlock.Foreground>
|
|
0 commit comments