Public Class BooleanWrapper Implements ComponentModel.INotifyPropertyChanged Public Event PropertyChanged As ComponentModel.PropertyChangedEventHandler Implements ComponentModel.INotifyPropertyChanged.PropertyChanged Private _IsScrollList As Boolean Public Property IsScrollList As Boolean Get Return _IsScrollList End Get Set(value As Boolean) If _IsScrollList <> value Then _IsScrollList = value End If RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs("IsScrollList")) MsgBox(IsScrollList) End Set End Property End Class
<ToggleButton x:Name="TglBtn" DataContext="BooleanWrapper" IsChecked="{Binding IsScrollList}"/>
PropertyChanged
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)