Good day!
I have such a xaml:
<Window x:Class="CAP.AdminTool.Questions"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Вопросы" Height="700" Width="750" xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Icon="/CAP.AdminTool;component/favicon.ico" FontFamily="Verdana" FontSize="13" Loaded="Window_Loaded" >
<Grid >
<Grid.RowDefinitions>
<RowDefinition Height="Auto" MinHeight="60"></RowDefinition>
<RowDefinition Height="auto" MinHeight="30"></RowDefinition>
<RowDefinition Height="auto" MinHeight="60"></RowDefinition>
<RowDefinition Height="auto" MinHeight="30"></RowDefinition>
</Grid.RowDefinitions>
<telerik:RadGridView Grid.Row="0"
HorizontalAlignment="Left"
Name="grQuestionSets"
VerticalAlignment="Top"
Height="auto"
MinWidth="700"
AutoGenerateColumns="False"
SelectionChanged="grQuestionSets_SelectionChanged" >
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn Header="Раздел вопросов" UniqueName="Name" Width="auto" MinWidth="300"/>
<telerik:GridViewDataColumn Header="Описание" UniqueName="Description" Width="auto" MinWidth="400"/>
</telerik:RadGridView.Columns>
</telerik:RadGridView>
</Grid>
</Window>
I want my RadGridView width to change when I change the width of the window.
How can I do it?
I have such a xaml:
<Window x:Class="CAP.AdminTool.Questions"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Вопросы" Height="700" Width="750" xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Icon="/CAP.AdminTool;component/favicon.ico" FontFamily="Verdana" FontSize="13" Loaded="Window_Loaded" >
<Grid >
<Grid.RowDefinitions>
<RowDefinition Height="Auto" MinHeight="60"></RowDefinition>
<RowDefinition Height="auto" MinHeight="30"></RowDefinition>
<RowDefinition Height="auto" MinHeight="60"></RowDefinition>
<RowDefinition Height="auto" MinHeight="30"></RowDefinition>
</Grid.RowDefinitions>
<telerik:RadGridView Grid.Row="0"
HorizontalAlignment="Left"
Name="grQuestionSets"
VerticalAlignment="Top"
Height="auto"
MinWidth="700"
AutoGenerateColumns="False"
SelectionChanged="grQuestionSets_SelectionChanged" >
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn Header="Раздел вопросов" UniqueName="Name" Width="auto" MinWidth="300"/>
<telerik:GridViewDataColumn Header="Описание" UniqueName="Description" Width="auto" MinWidth="400"/>
</telerik:RadGridView.Columns>
</telerik:RadGridView>
</Grid>
</Window>
I want my RadGridView width to change when I change the width of the window.
How can I do it?