Skip to content

Commit f40b0a9

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

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

README.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ StringAsyncCommand.Execute("String value");
134134

135135
```
136136

137+
----
137138
### `BoolToStringConverter`
138139

139140
#### Example
@@ -152,6 +153,7 @@ StringAsyncCommand.Execute("String value");
152153
</ToggleButton>
153154

154155
```
156+
----
155157
### `Profiler`
156158
Static helper methods to measure performance e.g. the execution time of a code portion.
157159

@@ -171,6 +173,7 @@ List<TimeSpan> elapsedTime = Profiler.LogTimes(() => ReadFromDatabase(), 1000);
171173
TimeSpan elapsedTime = Profiler.LogTime(() => ReadFromDatabase());
172174
```
173175

176+
----
174177
### `ValueChangedEventArgs<T>`
175178
Generic `EventArgs` implementation that provides value change information like `OldValue` and `NewValue`.
176179

@@ -198,6 +201,7 @@ private void OnCompleted(object sender, ValueChangedEventArgs<(bool HasError, st
198201
}
199202
```
200203

204+
----
201205
### `ValueEventArgs<T>`
202206
Generic `EventArgs` implementation that provides to carry a value.
203207

@@ -220,6 +224,7 @@ private void OnCompleted(object sender, ValueEventArgs<int> e)
220224
}
221225
```
222226

227+
----
223228
### `AppSettingsConnector`
224229
A static default API to the AppSettings that provides strongly typed reading and writing (e.g. `boo`, `int`, `double`, `string`) of key-value pair values.
225230

@@ -236,6 +241,7 @@ if (TryReadInt("mruCount", out int mruCount))
236241
}
237242
```
238243

244+
----
239245
### MRU (Most Recently Used) file manager
240246
The `MruManager` maintains a collection of `MostRecentlyUsedFileItem` elrecentlyements that map to a recently used file. Once the max number of recently used files is reached and a new file is added, the `MruManager` automatically removes the least used file to free the MRU table.
241247

@@ -273,6 +279,7 @@ MostRecentlyUsedFileItem lastUsedFile = mruManager.MostRecentlyUsedFile;
273279
ReadOnlyObservableCollection<MostRecentlyUsedFileItem> mruList = mruManager.MostRecentlyUsedFiles;
274280
```
275281

282+
----
276283
### `EventAggregator`
277284
Dynamic implementation of the EventAggregator design pattern. Listen to events broadcasted by a specific type or by a specific event.
278285

@@ -375,6 +382,8 @@ class MainWindowViewModel : INotifyPropertyChanged
375382
protected virtual void OnItemCreated() => this.ItemCreated?.Invoke(this, EventArgs.Empty);
376383
}
377384
```
385+
386+
----
378387
### MVVM Dialog attached behavior
379388
Provides a clean way to show dialogs that are requested by view models. This apporach uses dialog view models that are templated by specific `DataTemplate` definitions, This templates are rendered as content of native dialog `Window` instances.
380389

@@ -735,9 +744,13 @@ Application x:Class="BionicCode.BionicNuGetDeploy.Main.App"
735744
</Window>
736745
```
737746

747+
----
738748

739-
## InvertExtension
749+
### InvertExtension
750+
`MarkupExtension`that inverts a value provided locally or by any `MarkupExtension` e.g., `Binding`.
751+
Setting the `Invert.ValueInverter` property (similar to `Binding.Converter`) allows to specify a custom inversion logic and conversion type support.
740752

753+
#### Example
741754

742755
```XAML
743756

@@ -747,8 +760,8 @@ Application x:Class="BionicCode.BionicNuGetDeploy.Main.App"
747760
<!-- Returns: -12 -->
748761
<TextBlock Text="{Invert Value=1.2}"/>
749762

750-
<!-- Returns: 0.12 -->
751-
<TextBlock Text="{Invert -0.12}"/>
763+
<!-- Provide a custom implementation of IValueInverter. Returns: 0.12 -->
764+
<TextBlock Text="{Invert -0.12, ValueInverter={StaticResource CustomValueInverter}"/>
752765

753766
<!-- Returns: Visibility.Collapsed -->
754767
<TextBlock Text="{Invert {x:Static Visibility.Visible}}"/>
@@ -758,8 +771,10 @@ Application x:Class="BionicCode.BionicNuGetDeploy.Main.App"
758771

759772
```
760773

761-
## EnumExtension
774+
### EnumExtension
775+
`MarkupExtension` to display return a collection of enumeration values of a specific `enum` type.
762776

777+
#### Example
763778

764779
```XAML
765780

0 commit comments

Comments
 (0)