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

推荐订阅源

IT之家
IT之家
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
美团技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园_首页
MyScale Blog
MyScale Blog
N
Netflix TechBlog - Medium
I
InfoQ
Jina AI
Jina AI
Martin Fowler
Martin Fowler
Recent Announcements
Recent Announcements
量子位
月光博客
月光博客
罗磊的独立博客
雷峰网
雷峰网
The Cloudflare Blog
V
V2EX
小众软件
小众软件
人人都是产品经理
人人都是产品经理
博客园 - Franky
T
Tailwind CSS Blog
有赞技术团队
有赞技术团队
S
SegmentFault 最新的问题

博客园 - 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"];