问一个控件样式里面的值如何绑定到控件的属性
<dxc:ChartControl Name="MyChartControl" >
<dxc:ChartControl.Legend>
<dxc:Legend>
<dxc:Legend.Template>
<ControlTemplate TargetType="dxc:Legend">
<Border Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}"
BorderBrush="{TemplateBinding BorderBrush}" Padding="{TemplateBinding Padding}">
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" >
<dxc:LegendItemsControl ItemTemplate="{TemplateBinding ItemTemplate}"
ItemsSource="{Binding Path=Items, RelativeSource={RelativeSource TemplatedParent}}">
<dxc:LegendItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="?" />
</ItemsPanelTemplate>
</dxc:LegendItemsControl.ItemsPanel>
</dxc:LegendItemsControl>
</ScrollViewer>
</Border>
</ControlTemplate>
</dxc:Legend.Template>
</dxc:Legend>
</dxc:ChartControl.Legend>
--------------
中间的 <StackPanel Orientation="?" />这个要怎么写才能绑定到ChartControl.Legend.Orientation?
[解决办法]
本来想进来作答 ...你自己解决了
[解决办法]
进来学习学习
[解决办法]
好吧,你散分吧