-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from BurkusCat/changelog
Fix misc issues and update CHANGELOG.md
- Loading branch information
Showing
6 changed files
with
50 additions
and
25 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
namespace Burkus.Mvvm.Maui; | ||
|
||
public class ResolveBindingContext<T> : IMarkupExtension<T> | ||
where T : class | ||
/// <summary> | ||
/// This is a dummy MarkupExtension to workaround bug https://github.com/BurkusCat/Burkus.Mvvm.Maui/issues/13. | ||
/// Please don't use this class. | ||
/// </summary> | ||
public class ResolveBindingContext : IMarkupExtension | ||
{ | ||
public object ProvideValue(IServiceProvider serviceProvider) | ||
{ | ||
return ServiceResolver.Resolve<T>(); | ||
} | ||
public object TypeArguments { get; set; } | ||
|
||
T IMarkupExtension<T>.ProvideValue(IServiceProvider serviceProvider) | ||
public object ProvideValue(IServiceProvider serviceProvider) | ||
{ | ||
return ServiceResolver.Resolve<T>(); | ||
return null; | ||
} | ||
} |
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,15 @@ | ||
namespace Burkus.Mvvm.Maui; | ||
|
||
public class ResolveBindingContext<T> : IMarkupExtension<T> | ||
where T : class | ||
{ | ||
public object ProvideValue(IServiceProvider serviceProvider) | ||
{ | ||
return ServiceResolver.Resolve<T>(); | ||
} | ||
|
||
T IMarkupExtension<T>.ProvideValue(IServiceProvider serviceProvider) | ||
{ | ||
return ServiceResolver.Resolve<T>(); | ||
} | ||
} |