Hello again,
how can we hide the Buttons from the GraphInteractionPalette?
Like set in the Graph, we just want "ZoomHorizontal, PanHorizontal" (with ZoomToFit)
![GraphInteractionPalette_Buttons.png GraphInteractionPalette_Buttons.png]()
<ni:Graph x:Name="niGraph" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="1" Grid.RowSpan="2"
VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
DataSource="{Binding Data}" FontWeight="Bold" FontSize="15"
local:GraphExtensions.AxesSource="{Binding Axes}" local:GraphExtensions.PlotsSource="{Binding Plots}"
niPrimitives:GraphConfiguration.ProcessAllAsynchronousUpdates="False"
niPrimitives:GraphConfiguration.UseBackgroundProcessing="True"
niPrimitives:GraphConfiguration.UseBackgroundRendering="False"
Interactions="ZoomHorizontal, PanHorizontal"></ni:Graph><Expander Grid.Column="1" Grid.Row="0" Grid.RowSpan="2" ExpandDirection="Left" IsExpanded="False"
VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Header="{Binding}"><Expander.HeaderTemplate><DataTemplate><Grid VerticalAlignment="{Binding VerticalAlignment, RelativeSource={RelativeSource AncestorType=ContentPresenter}, Mode=OneWayToSource}"><Grid.RowDefinitions><RowDefinition Height="Auto" /><RowDefinition Height="*" /><RowDefinition Height="Auto" /></Grid.RowDefinitions><ni:GraphInteractionPalette Grid.Row="2" Graph="{Binding ElementName=niGraph}"
Orientation="Vertical" /><!--<TextBlock Grid.Row="1" Text="T" />--><TextBlock Grid.Row="0" Text="Legende" HorizontalAlignment="Center"><TextBlock.LayoutTransform><TransformGroup><RotateTransform Angle="-90"/></TransformGroup></TextBlock.LayoutTransform></TextBlock></Grid></DataTemplate></Expander.HeaderTemplate><Expander.Content><ni:Legend ItemsSource="{Binding ElementName=niGraph, Path=Plots}"/></Expander.Content></Expander>.NET-Framework 4.7.2 and 4.8
Measurement Studio 2019
Edition: Enterprise
Integration Version: 19.0.4.49154