Skip to content

Commit 6341855

Browse files
authored
Update SelectionView.md
1 parent e8ea141 commit 6341855

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

docs/en/components/controls/SelectionView.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -145,26 +145,26 @@ SelectionView can be divided into multiple columns. This property defines the nu
145145

146146
SelectionView items can be disabled individually. This property defines the name of the property that is used to disable the control. Default value is `IsDisabled`.
147147

148-
```csharp
149-
public class MainViewModel
150-
{
151-
public ObservableCollection<Product> Items { get; set; }
148+
```csharp
149+
public class MainViewModel
150+
{
151+
public ObservableCollection<Product> Items { get; set; }
152152

153-
public class Product
154-
{
155-
public string Name { get; set; }
156-
public bool OutOfStock { get; set; }
157-
public override string ToString() => Name;
158-
}
153+
public class Product
154+
{
155+
public string Name { get; set; }
156+
public bool OutOfStock { get; set; }
157+
public override string ToString() => Name;
159158
}
160-
```
159+
}
160+
```
161161

162-
```xml
163-
<input:SelectionView
164-
IsDisabledPropertyName="OutOfStock"
165-
ItemsSource="{Binding Items}"
166-
ColumnNumber="1"/>
167-
```
162+
```xml
163+
<input:SelectionView
164+
IsDisabledPropertyName="OutOfStock"
165+
ItemsSource="{Binding Items}"
166+
ColumnNumber="1"/>
167+
```
168168

169169
![maui selectionview radiobutton disabled options](../../images/selectionview-isdisabledpropertyname.gif)
170170

0 commit comments

Comments
 (0)