Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Interpolate every pixel on IntensityGraph (WPF)

Solved!
Go to solution

Hi, Paul!

 

Is it possible to have color scale control at regular Graph? I made graph with 2 intensity plots which does work nicely, but color scale is missing.

 

Alternatively, is it possible to have IntensityGraph with 2 plots (and different color coding)?

0 Kudos
Message 11 of 12
(2,815 Views)

Yes, you can render the color scale control like this. It's not pretty, but NI is working on a better way I believe.

 

xmlns:ni="http://schemas.ni.com/controls/2009/xaml/presentation"
xmlns:niPrimitives="http://schemas.ni.com/controls/2009/xaml/presentation/primitives"

 

<niPrimitives:RegionPanel Margin="7,2,0,17">
 <niPrimitives:RegionPanel.LayoutDefinitions>
  <niPrimitives:ContentDefinition Name="uxColorScaleContent" />
  <niPrimitives:EdgeDefinition Name="uxEdgeDefinition"
          Parent="uxColorScaleContent"
          From="0,0"
          To="1,1"
          />
 </niPrimitives:RegionPanel.LayoutDefinitions>

 <niPrimitives:ScalePresenter niPrimitives:RegionPanel.Region="uxEdgeDefinition"
         niPrimitives:RegionPanel.RelativeWidth="1"
         niPrimitives:LayeredGraph.TargetLocation="Far"
         Owner="{Binding ElementName=uxGraph}"
         x:Name="uxColorScale">
 </niPrimitives:ScalePresenter>
</niPrimitives:RegionPanel>

 

<ni:Graph x:Name="uxGraph"/>

 

0 Kudos
Message 12 of 12
(2,812 Views)