惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

aimingoo的专栏
aimingoo的专栏
雷峰网
雷峰网
博客园 - 叶小钗
V
V2EX
博客园 - Franky
博客园_首页
小众软件
小众软件
Microsoft Security Blog
Microsoft Security Blog
The GitHub Blog
The GitHub Blog
A
About on SuperTechFans
H
Hackread – Cybersecurity News, Data Breaches, AI and More
阮一峰的网络日志
阮一峰的网络日志
WordPress大学
WordPress大学
Blog — PlanetScale
Blog — PlanetScale
J
Java Code Geeks
T
The Blog of Author Tim Ferriss
U
Unit 42
Microsoft Azure Blog
Microsoft Azure Blog
月光博客
月光博客
S
SegmentFault 最新的问题
B
Blog RSS Feed
博客园 - 【当耐特】
D
Docker
N
Netflix TechBlog - Medium

博客园 - stone

release 版本dll的调试 dead lock in thread pool Excel C# Automation 如何让iframe 自动适应窗口的高度 二叉树算法题 How to do live debug the Managed code in Windows Phone 7 单链表操作相关算法 BUG: "Old format or invalid type library" error when automating Excel on 64 bit server 2008 - stone enable Assembly Load Trace 不合法的XML字符必须被替换为相应的实体 - stone - 博客园 如何修改 VS 自动生成的 COM interop dll VS中Sos调试扩展简介 (转帖) Sql server 2005 connection string - stone Get depth of BTree Quick sort C# code(2) Quick sort C# code use the network trace, from msdn. - stone 字节流编码获取原来这么复杂,但也很简单 通过DataTable获得表的主键 让IE支持自己的协议
自定义Silverlight toolkit 里面的 Column Chart 的data point
stone · 2010-12-07 · via 博客园 - stone

<Style x:Key="DataPointStyle1" TargetType="toolkit:ColumnDataPoint">
          <Setter Property="Width" Value="10"/>
          <Setter Property="Template">
              <Setter.Value>
                  <ControlTemplate TargetType="toolkit:ColumnDataPoint">
                      <Grid>
                          <Rectangle
                                  Fill="{TemplateBinding Background}"
                                  Stroke="Black"/>
                          <Grid Background="Transparent"  Margin="0" HorizontalAlignment="Center" VerticalAlignment="Top">
                              <TextBlock  Text="{TemplateBinding FormattedDependentValue}"  FontWeight="Bold"  Margin="0,-20,0,0" VerticalAlignment="Bottom"   HorizontalAlignment="Center" />
                          </Grid>

                          <TextBlock  Text="{TemplateBinding FormattedIndependentValue}"  FontWeight="Bold"  Margin="0,-20,0,0" VerticalAlignment="Bottom"   HorizontalAlignment="Center" />

                      </Grid>
                  </ControlTemplate>
              </Setter.Value>
          </Setter>
      </Style>

In Code Behind:

line.DataPointStyle = (Style)Resources["DataPointStyle1"];