Skip to content

Commit

Permalink
Merge pull request #2199 from unoplatform/dev/ds/maui-namespaces
Browse files Browse the repository at this point in the history
Maui Namespaces
  • Loading branch information
dansiegel authored Mar 13, 2024
2 parents c9e746e + a727d0a commit 38495ed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
<PackageVersion Include="Uno.Core" Version="4.0.1" />
<PackageVersion Include="Uno.Extensions.Logging.OSLog" Version="1.7.0" />
<PackageVersion Include="Uno.Extensions.Logging.WebAssembly.Console" Version="1.7.0" />
<PackageVersion Include="Uno.Extensions.Markup.Generators" Version="5.0.13" />
<PackageVersion Include="Uno.Extensions.Markup.WinUI" Version="5.0.13" />
<PackageVersion Include="Uno.Extensions.Markup.Generators" Version="5.2.0-dev.58" />
<PackageVersion Include="Uno.Extensions.Markup.WinUI" Version="5.2.0-dev.58" />
<PackageVersion Include="Uno.Roslyn" Version="1.3.0-dev.12" />
<PackageVersion Include="Uno.Toolkit" Version="5.0.15" />
<PackageVersion Include="Uno.Toolkit.UI" Version="5.0.15" />
Expand All @@ -53,7 +53,7 @@
<PackageVersion Include="Uno.UI.Runtime.WebAssembly" Version="5.0.19" />
<PackageVersion Include="Uno.UI.RuntimeTests.Engine" Version="0.24.0-dev.95" />
<PackageVersion Include="Uno.WinUI" Version="5.0.19" />
<PackageVersion Include="Uno.WinUI.Markup" Version="5.0.13" />
<PackageVersion Include="Uno.WinUI.Markup" Version="5.2.0-dev.58" />
<PackageVersion Include="Uno.WinUI.MSAL" Version="5.0.19" />
<PackageVersion Include="Uno.WinUI.Runtime.WebAssembly" Version="5.0.19" />
<PackageVersion Include="coverlet.collector" Version="3.1.2" />
Expand Down
2 changes: 2 additions & 0 deletions src/Uno.Extensions.Maui.UI/build/Package.targets
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
<ItemGroup Condition=" '$(ImplicitUsings)' == 'true' OR '$(ImplicitUsings)' == 'enable' ">
<Using Include="Uno.Extensions.Maui" />
<Using Include="Uno.Extensions.Maui.Platform" />
<!-- Removes .NET MAUI usings to avoid Ambiguous references -->
<Using Remove="@(Using->HasMetadata('Sdk')->WithMetadataValue('Sdk', 'Maui'))"/>
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ public static MauiHost Source(this MauiHost host, Action<IDependencyPropertyBuil

[MarkupExtension]
public static MauiHost Source<TSource>(this MauiHost host, Func<TSource> propertyBinding, [CallerArgumentExpression("propertyBinding")]string? propertyBindingExpression = null) =>
host.Source(x => x.Bind(propertyBinding, propertyBindingExpression));
host.Source(x => x.Binding(propertyBinding, propertyBindingExpression));

[MarkupExtension]
public static MauiHost Source<TSource>(this MauiHost host, Func<TSource> propertyBinding, Func<TSource, Type> convertDelegate, [CallerArgumentExpression("propertyBinding")] string? propertyBindingExpression = null) =>
host.Source(x => x.Bind(propertyBinding, propertyBindingExpression).Convert(convertDelegate));
host.Source(x => x.Binding(propertyBinding, propertyBindingExpression).Convert(convertDelegate));
}

0 comments on commit 38495ed

Please sign in to comment.