-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the usage experience with CompareConverter in XAML (#1841)
* Add additional generic type definition to allow for the ComparingValue to be defined * Update the sample application to make use of the ability to simplify XAML usage * Remove broken cref in xml docs --------- Co-authored-by: Shaun Lawrence <17139988+bijington@users.noreply.github.com> Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
- Loading branch information
1 parent
4f999c1
commit bcd463e
Showing
3 changed files
with
28 additions
and
9 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
samples/CommunityToolkit.Maui.Sample/Converters/CompareDoubleToColorConverter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using CommunityToolkit.Maui.Converters; | ||
|
||
namespace CommunityToolkit.Maui.Sample.Converters; | ||
|
||
/// <summary> | ||
/// Compares a double value against the ComparingValue property | ||
/// and returns a <see cref="Color"/> based on the comparison. | ||
/// </summary> | ||
public sealed class CompareDoubleToColorConverter : CompareConverter<double, Color> | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters