Skip to content

Commit 5325a8f

Browse files
authored
Update README.md
1 parent 23fbbae commit 5325a8f

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ Collection of .NET libraries like utilities and controls that target .NET Standa
5252
* [`ValueChangedEventArgs<T>`](https://github.com/BionicCode/BionicCode.Net#valuechangedeventargst)
5353
* [`ValueEventArgs<T>`](https://github.com/BionicCode/BionicCode.Net#valueeventargst)
5454
* ValueConverters
55-
* `BoolToStringConverter`
56-
* `BooleanMultiValueConverter`
55+
* [`BoolToStringConverter`](https://github.com/BionicCode/BionicCode.Net#boolToStringConverter) - Implementation of `IValueConverter` that converts a `bool` to a custom string representation e.g., convert `true` to `"Enabled"`.
56+
* `BooleanMultiValueConverter` - Implementation of `IMultiValueConverter` that checks if all values are `true`.
5757
* `FilePathTruncateConverter`
5858
* `InvertValueConverter`
5959
* Collections
@@ -134,6 +134,24 @@ StringAsyncCommand.Execute("String value");
134134

135135
```
136136

137+
### `BoolToStringConverter`
138+
139+
#### Example
140+
141+
```XAML
142+
<ToggleButton IsChecked="{Binding IsEnabled}">
143+
<ToggleButton.Content>
144+
<Binding Path="IsEnabled">
145+
<Binding.Converter>
146+
<BoolToStringConverter TrueValue="On"
147+
FalseValue="{Binding DisabledText}"
148+
NullValue="Undefined" />
149+
</Binding.Converter>
150+
</Binding>
151+
</ToggleButton.Content>
152+
</ToggleButton>
153+
154+
```
137155
### `Profiler`
138156
Static helper methods to measure performance e.g. the execution time of a code portion.
139157

0 commit comments

Comments
 (0)