Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
475
XamGrid in Expander
posted

I have a XamGrid inside an Expander with the XAML:

<Grid Grid.Column="2" Grid.Row="3" Grid.RowSpan="11" VerticalAlignment="Top" HorizontalAlignment="Left">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="30"/>
<RowDefinition Height="20"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Expander HorizontalAlignment="Left" Grid.Row="0" VerticalAlignment="Top" IsExpanded="True" Style="{StaticResource DetailsExpanderStyle}" Margin="0,5,0,0" >
<ig:XamGrid ItemsSource="{Binding GridViewModel.ItemsLoadedInGrid}" AutoGenerateColumns="False" BorderThickness="0" Margin="15,10,0,0" Background="Transparent" Height="250">

...

...

</Expander>

The Height was set to 'Auto' since it's within an expander. However, I always get a horizontal scrollviewer with a triangle as the image below:

https://ibb.co/dWB5D5

Is there a way to get rid of this? I tried to make the horizontalscrollviewer's visibility as collapsed or hidden but it does not work.