Hi Team,
i have problem while resizing the window. I have a window inside that i have a grid inside that im using a user control. when im resizing the window the user control content tables and buttons on xamdatagrid are not resizing automatically.
I tried with the below code and it is not working.
1) This is in the window
<window>
<Grid> <Views:InstrumentPickerView x:Name="InstrumentPicker"/> </Grid></Window>
2) This is in the user control
<StackPanel>
<StackPanel Orientation="Horizontal"> <igDP:XamDataGrid Theme="Aero" x:Name="XamDataPresenter1" Height="160" DataSource="{Binding user, Mode=OneWay}" Grid.Row="0" Margin="5" Grid.Column="1" GroupByAreaLocation="None" ActiveDataItem="{Binding Selecteuser}">
</StackPanel>
is there anything im missing here.
If i vertically resize the main window the user control remains same not resizes along with the main window , but if i resizes the window horizontally the user control works fine and resizes according to the main window.
Hello Ram,
Thank you for the update. In post where you shared more code you are still setting a fixed width for the height of the XamDataGrid. If you want to grid to resize its height when you resize the container you will have to not set the height on the grid.
Hi Mike,
If i removed the height in the XamDataGrid still it i am facing the issue on vertical stretch of the main window the grid in the usercontrol remains same and on Horizontal stretch the grid resizes according to the main window.
Thank you for the update. Can you please attach a sample so I can do some testing/debugging of it locally to see what is remaining that is preventing you from having the grid auto-resize vertically?
AutoFit mode property is working fine and for the vertical resize i added the scroll bar property to the grid.