سلام بر تمامی برنامه نویسان سی شارپ 😉 در این مطلب کد انتخاب کردن RadioButton با کدنویسی با IsChecked=true در #C را آماده کردم. انشاالله که این کد سی شارپ براتون مفید باشد.
خروجی این کد:
کد انتخاب کردن RadioButton با کدنویسی با IsChecked=true در #C :
<Window x:Class="SimpleStyles.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="SimpleStyles"
Background=''"RadioButton">
<RadioButton Margin="8">Normal</RadioButton>
<RadioButton Margin="8" IsChecked="true">Checked</RadioButton>
<RadioButton Margin="8">Normal</RadioButton>
</HeaderedItemsControl>
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="SimpleStyles"
Background=''"RadioButton">
<RadioButton Margin="8">Normal</RadioButton>
<RadioButton Margin="8" IsChecked="true">Checked</RadioButton>
<RadioButton Margin="8">Normal</RadioButton>
</HeaderedItemsControl>