首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > CAD教程 >

问一个控件样式里面的值怎么绑定到控件的属性

2013-03-01 
问一个控件样式里面的值如何绑定到控件的属性dxc:ChartControl NameMyChartControldxc:ChartControl

问一个控件样式里面的值如何绑定到控件的属性
<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?
[解决办法]
本来想进来作答  ...你自己解决了
[解决办法]
进来学习学习
[解决办法]
好吧,你散分吧

热点排行