The problem is that the DXGrid
has an infinite height.
To fix, set the height to something non-infinite.
Snoop is absolutely invaluable for this:
If the "Height" for the XAML element is infinite (i.e. 0
or NaN
), you can set it using one of the following:
- Option 1:
Height="{Binding Path=ActualHeight, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=UIElement}}"
- Option 2:
VerticalAlignment="Stretch"
- Option 3:
Height="Auto"
Hint: Use VerticalAlignment="Stretch"
if you are a child of a Grid
with a <RowDefinition Height="*">
, and the Binding RelativeSource...
elsewhere if that doesn't work.