PrivateSub sortChk_Click(sender AsObject, e As RoutedEventArgs) Handles sortChk.Click
Dim chk = TryCast(sender, CheckBox)
Dim isChked = If(chk.IsChecked, False)
If _flex IsNotNothingThen
_flex.AllowSorting = isChked
EndIfEnd Sub
C#
コードのコピー
privatevoid sortChk_Click(object sender, RoutedEventArgs e)
{
var chk = sender as CheckBox;
var isChked = chk.IsChecked ?? false;
if (_flex != null)
_flex.AllowSorting = isChked;
}