Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 629425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:44:40+00:00 2026-05-13T19:44:40+00:00

Silverlight 3 toolkit charting is awesome. I am using BarSeries and silverlight is showing

  • 0

Silverlight 3 toolkit charting is awesome. I am using BarSeries and silverlight is showing the length of the bar proportional to the value bound. But is there any way to get the actual value on the bar or just next to the bar? Here is my XAML

<chartingToolkit:Chart
                        Grid.Column="1"
                        x:Name="chartEnvironmentStatusGlobal"
                        Title="Environment Status">
                        <chartingToolkit:BarSeries
                            x:Name="chartEnvironmentStatus"
                            Title="Pass"
                            HorizontalAlignment="Stretch"
                            VerticalAlignment="Stretch"
                            Background="Green"
                            IndependentValueBinding="{Binding Path=Instance}"
                            DependentValueBinding="{Binding Path=Count}"
                            AnimationSequence="LastToFirst">
                            </chartingToolkit:BarSeries>
                        <chartingToolkit:BarSeries
                            x:Name="chartEnvironmentStatus1"
                            Title="Fail"
                            HorizontalAlignment="Stretch"
                            VerticalAlignment="Stretch"
                            Background="Red"
                            IndependentValueBinding="{Binding Path=Instance}"
                            DependentValueBinding="{Binding Path=Count}"
                            AnimationSequence="LastToFirst">
                            </chartingToolkit:BarSeries>
                    </chartingToolkit:Chart>

Thank you in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T19:44:40+00:00Added an answer on May 13, 2026 at 7:44 pm

    You will need to create a new template for the BarDataPoint. I’ll not post the whole template here because a) its quite large and b) I’m not sure where I stand on Copyright.

    You can get the existing Template fairly easily if you have blend you should be able to create copy with the tool. Alternatively you can get it from the source code its found in:-

    #someSourceCodeRootFolder\Controls.DataVisualization.Toolkit\Charting\DataPoint\BarDataPoint.xaml
    

    In a resource dictionary create this:-

    <Style x:Key="BarDataPointWithContent" TargetType="charting:BarDataPoint">
      <Setter Property="Template">
        <Setter.Value>
          <Border ... copy from original template... >
             <!-- Wads of original VisualStateManager stuff here -->
             <Grid Background="{TemplateBinding Background}">
               <!-- Original set of Rectangles and Border here -->
               <TextBlock Text="{TemplateBinding FormattedDependentValue}"
                 HorizontalAlignment="Center" />
             </Grid>
             <ToolTipService.ToolTip>
                 <!-- Do something different here perhaps -->
             </ToolTipService.ToolTip>
          </Border>
        </Setter.Value>
      </Setter>
    </Style>
    

    Basically what I’ve done is added that final TextBlock and bound it to the same FormattedDependentValue property that the ToolTip uses in its ContentControl. You could add further styling to the TextBlock to get the appearance that you want, you may also wish to do something different with the tool tip content.

    So with this style hanging about you can do this in the chart itself:-

    <chartingToolkit:BarSeries.DataPointStyle>
      <Style TargetType="BarDataPoint" BasedOn="{StaticResouce BarDataPointWithContent}" >
        <Setter Property="Background" Value="Red" />
      </Style>
    </chartingToolkit:BarSeries.DataPointStyle>
    

    Note to lurking MSofties

    Can you please add the Templates to the documentation somewhere so that we don’t need source code, Blend or Reflector to extract them?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As the title states, I want to group some ColumnSeries, I'm using Silverlight Charting
I'm using the SilverLight Toolkit to implement some drag/drop functionality in a Silverlight 4
I'm using the AutoCompleteBox of the silverlight toolkit in my WP7 application. When the
Is there a way to populate the Silverlight toolkit's WrapPanel via binding to an
Silverlight works on client side so putting any sensitive data like connection strings, passwords
Silverlight v2.0 is getting closer and closer to RTM but I have yet to
Since silverlight does not have any support for DataSets/DataTables, what would be the best
I'm looking for a Silverlight charting library to use in my Windows Phone 7
Is that possible to use themes from Silverlight Toolkit in Windows Phone 7 applications?
I'm having a problem when the Silverlight toolkit's ContextMenu is clicked while it is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.