【发布时间】:2013-04-30 17:36:45
【问题描述】:
我正在尝试在下面的链接 http://research.microsoft.com/en-us/um/cambridge/projects/ddd/d3isdk/ 中的 Miscellanous 下重新创建名为“Line Graph legend”的示例
我使用的是 WPF 而不是 silverligth,并且在获取以下 XAML 部分的引用时遇到了问题。
<d3:Chart.LegendContent>
<d3:LegendItemsPanel>
<d3:LegendItemsPanel.Resources>
<DataTemplate x:Key="Microsoft.Research.DynamicDataDisplay.LineGraph">
<StackPanel Orientation="Horizontal">
<CheckBox IsChecked="{Binding Path=Visibility, Converter={StaticResource VisibilityToCheckedConverter}, Mode=TwoWay}"/>
<Line Width="15" Height="15" X1="0" Y1="0" X2="15" Y2="15" Stroke="{Binding Path=Stroke}" StrokeThickness="2"/>
<TextBlock Margin="5,0,0,0" Text="{Binding Path=Description}"/>
</StackPanel>
</DataTemplate>
</d3:LegendItemsPanel.Resources>
</d3:LegendItemsPanel>
</d3:Chart.LegendContent>
谢谢
【问题讨论】:
-
是否可以在 wpf 桌面应用程序中使用 silverlight 控件?
标签: wpf legend dynamic-data-display