Hello!
I have trouble with the MaxHeight property on XamGrid, it allways blows the height of the xamgrid to its given max regardless of the content.
if i wrap the xamgrid into a scrollviewer and set the scrollviewers maxview it works but this cause performance issuses when dealing with alot of data.
Code :
<Grid x:Name="BottomGrid" Grid.Row="1" Margin="12,0,5,0">
<Grid.RowDefinitions> <RowDefinition Height="*"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions>
<toolkit:WrapPanel x:Name="SummaryPanel" Orientation="horizontal" Grid.Row="0" Margin="-50,0,0,0" Grid.Column="1" HorizontalAlignment="Stretch" >
<StackPanel Margin="50,5,0,0" x:Name="CustomerSummary1" Orientation="vertical" HorizontalAlignment="Left">
<ig:XamGrid MaxHeight="300" ItemsSource="{Binding Items}" RowHover="Row" AutoGenerateColumns="False" HorizontalAlignment="Left" HorizontalContentAlignment="Left" Opacity="{Binding LoadAvtale,Converter={StaticResource boolToOpacity}}" Visibility="{Binding ShowSummary,Converter={StaticResource boolToVisibility}}"> <i:Interaction.Triggers> <i:EventTrigger EventName="SelectedRowsCollectionChanged" > <my:InvokeDelegateCommandAction Command="{Binding CommandSelectAvtale}" CommandParameter="{Binding InvokeParameter, RelativeSource={RelativeSource Self}}" /> </i:EventTrigger> </i:Interaction.Triggers> <ig:XamGrid.SelectionSettings> <ig:SelectionSettings CellClickAction="SelectRow" RowSelection="Multiple" /> </ig:XamGrid.SelectionSettings> <ig:XamGrid.Columns> <ig:TextColumn HeaderText="Date" Key="date" HorizontalContentAlignment="Left" ValueConverter="{StaticResource DateConverter}"/> </ig:XamGrid.Columns> </ig:XamGrid> </StackPanel>
<StackPanel Margin="50,5,0,0" x:Name="CustomerSummary2" Orientation="vertical" HorizontalAlignment="Left">
<ig:XamGrid MaxHeight="300" ItemsSource="{Binding Items}" RowHover="Row" AutoGenerateColumns="False" HorizontalAlignment="Left" HorizontalContentAlignment="Left" Opacity="{Binding LoadAvtale,Converter={StaticResource boolToOpacity}}" Visibility="{Binding ShowSummary,Converter={StaticResource boolToVisibility}}"><i:Interaction.Triggers><i:EventTrigger EventName="SelectedRowsCollectionChanged" ><my:InvokeDelegateCommandAction Command="{Binding CommandSelectAvtale}" CommandParameter="{Binding InvokeParameter, RelativeSource={RelativeSource Self}}" /></i:EventTrigger></i:Interaction.Triggers><ig:XamGrid.SelectionSettings><ig:SelectionSettings CellClickAction="SelectRow" RowSelection="Multiple" /></ig:XamGrid.SelectionSettings><ig:XamGrid.Columns><ig:TextColumn HeaderText="Name" Key="name" HorizontalContentAlignment="Left" ValueConverter="{StaticResource DateConverter}"/></ig:XamGrid.Columns></ig:XamGrid></StackPanel>
</toolkit:WrapPanel>
</Grid>
Hello,
I am just checking if you require any further assistance on the matter.