How to change control properties?

Aug 15, 2008 at 4:51 AM
Hi there!

i liked you aproach to charts here...

is it possible to change the charts x/y titles?
Aug 26, 2008 at 7:52 AM
Edited Aug 26, 2008 at 8:07 AM


1. How to add the chart as a control to the toolbox.

  1. Open any XAML designer window and its toolbox panel.
  2. In the context menu of the toolbox click command Choose items...
  3. In the appeared Choose Toolbox Items window go to WPF Components tab.
  4. Use Browse... button to find the DynamicDataDisplay.dll assembly.
  5. All available components from the specified assembly are added to the list and selected by default. If the first thing you do is click on a check box of any of selected items in the list, you will deselect them all. That is the thing you should do, because you really need only one control in the toolbox: it is the ChartPlotter. So, now find it and check.
  6. Click OK and the control is in the toolbox.

2. How to change x/y title?

In the XAML designer window, drag the control ChartPlotter to the form and then use attached properties VerticalAxisTitle and HorizontalAxisTitle: 

<d3:ChartPlotter Name="plotter">
        <TextBlock HorizontalAlignment="Center" FontSize="20">Very simple cosine plot</TextBlock>
    <d3:VerticalAxisTitle>Cosine value</d3:VerticalAxisTitle>
    <d3:HorizontalAxisTitle>Cosine argument</d3:HorizontalAxisTitle>

(This code is from the sample HelloWorldSample, which is a part of the release)