Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
The RadToggleButton is in example.xaml, how to get the statue of it(ischeck or not) in ViewModel.cs ?
And change the statue of Button in ViewModel.cs?
Thanks~
Hello.
I've attached a simple example.
It displays the status when the toggle button is pressed.
You can control the toggle button via IsChecked.
<telerik:RadToggleButton Content="Click" Height="80" Width="120" IsChecked="{Binding IsChecked}" Command="{Binding OnClickCommand}"/>
private bool isChecked = false; public bool IsChecked { get => isChecked; set { isChecked = value; OnPropertyChanged("IsChecked"); } }
Is this what you want?