Good day!
I have such a form:
and I put there a RadGridView using xaml.cs file:
So I make my xaml dynamically.
Is it possible to make someting like such structure usin dinamic xaml
<telerikGridView:GridViewDataColumn Header="Варианты ответа" UniqueName="Name" MinWidth="300" MaxWidth="2000">
<telerikGridView:GridViewDataColumn.CellTemplate>
<DataTemplate>
<RadioButton Content="{Binding Text}" FontFamily="Verdana" FontSize="13" Foreground="#FF170000" />
</DataTemplate>
</telerikGridView:GridViewDataColumn.CellTemplate>
</telerikGridView:GridViewDataColumn>
?
I have such a form:
<Grid x:Name="LayoutRoot"> <StackPanel x:Name="spQuestions" Orientation="Vertical" Grid.Column="1" Grid.Row="8" Grid.ColumnSpan="3" HorizontalAlignment="Left"> </StackPanel> </Grid> |
and I put there a RadGridView using xaml.cs file:
RadGridView gridView = new RadGridView(); gridView.ItemsSource = question.Answers; gridView.AutoGenerateColumns = false; gridView.ScrollMode = Telerik.Windows.Controls.GridView.ScrollUpdateMode.RealTime;gridView.ShowGroupPanel = false; spQuestions.Children.Add(gridView); |
So I make my xaml dynamically.
Is it possible to make someting like such structure usin dinamic xaml
<telerikGridView:GridViewDataColumn Header="Варианты ответа" UniqueName="Name" MinWidth="300" MaxWidth="2000">
<telerikGridView:GridViewDataColumn.CellTemplate>
<DataTemplate>
<RadioButton Content="{Binding Text}" FontFamily="Verdana" FontSize="13" Foreground="#FF170000" />
</DataTemplate>
</telerikGridView:GridViewDataColumn.CellTemplate>
</telerikGridView:GridViewDataColumn>
?