<
DataTemplate x:Key="RowItemDataTemplate">
<CheckBox x:Name="rowCheckbox" Margin="2,2"
Command="{Binding Path=DataContext.RowCheckCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ItemsControl}}}"
Content="{Binding Path=RowName}"
IsChecked="{Binding Path=IsSelected, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
</DataTemplate>
<
ComboBox Grid.Row="0" Grid.Column="2" x:Name="cboRows" Style="{DynamicResource ValidatingComboBox}"
ItemsSource="{Binding RowItems}"
ItemTemplate="{StaticResource RowItemDataTemplate}"
Text="{Binding SelectedRowsText}"
IsEditable="True" Margin="5,0,0,0"
IsReadOnly="True"
MaxDropDownHeight="140"/>
public
ICommand RowCheckCommand
{
get
{
if (_rowCheckCommand == null)
{
_rowCheckCommand =
new RelayCommand(
param => RowCheckBoxChanged(),
param =>
true
);
}
return _rowCheckCommand;
}
}
public
void RowCheckBoxChanged()
{
NotifySelectedRowsText();
}
var headerStyle = new Style(typeof(GridViewHeaderCell));headerStyle.Setters.Add(new Setter(GridViewHeaderCell.ToolTipProperty,new Binding("HeaderToolTip") { Source = columnModel }));column.HeaderCellStyle = headerStyle;private void FVSdValue_ValueChanged(object sender, RadRangeBaseValueChangedEventArgs e) { HSdValue.Value = 0.2 * FVSdValue.Value; }