-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
113 additions
and
7 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
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,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Diagnostics; | ||
using System.IO; | ||
using System.Reflection; | ||
using System.Threading.Tasks; | ||
using Microsoft.Extensions.Logging; | ||
using Microsoft.Maui.Graphics; | ||
|
||
[assembly: Microsoft.Maui.Controls.XmlnsDefinition( | ||
xmlNamespace: "http://example.com/maui-controls", clrNamespace: "Microsoft.Maui.Controls", | ||
AssemblyName = "Microsoft.Maui.Controls")] | ||
|
||
namespace Microsoft.Maui.Controls.ControlGallery | ||
{ | ||
public class App : Application | ||
{ | ||
public const string AppName = "CompatibilityGalleryControls"; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/Controls/tests/Xaml.UnitTests.ExternalAssembly/AppResources.xaml
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,7 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<ResourceDictionary | ||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"> | ||
<Color x:Key="notBlue">Red</Color> | ||
<Color x:Key="AccentColor">#FF4B14</Color> | ||
</ResourceDictionary> |
29 changes: 29 additions & 0 deletions
29
...ols/tests/Xaml.UnitTests.ExternalAssembly/Controls.Xaml.UnitTests.ExternalAssembly.csproj
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,29 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>$(_MauiDotNetTfm)</TargetFramework> | ||
<AssemblyName>Microsoft.Maui.Controls.Xaml.UnitTests.ExternalAssembly</AssemblyName> | ||
<IsPackable>false</IsPackable> | ||
<NoWarn>0114;0672;0108;0067;0168;0169;0219;0612;0618;1998;4014</NoWarn> | ||
<RootNamespace>Controls.Xaml.UnitTests.ExternalAssembly</RootNamespace> | ||
</PropertyGroup> | ||
|
||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\..\Controls\Maps\src\Controls.Maps.csproj" /> | ||
<ProjectReference Include="..\..\..\Controls\src\Core\Controls.Core.csproj" /> | ||
<ProjectReference Include="..\..\..\Controls\src\Xaml\Controls.Xaml.csproj" /> | ||
<ProjectReference Include="..\..\..\Core\maps\src\Maps.csproj" /> | ||
<ProjectReference Include="..\..\..\Core\src\Core.csproj" /> | ||
<ProjectReference Include="..\..\..\Essentials\src\Essentials.csproj" /> | ||
<ProjectReference Include="..\..\..\TestUtils\src\TestUtils\TestUtils.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="..\..\..\Core\tests\UnitTests\TestClasses\DispatcherStub.cs" Link="TestClasses\DispatcherStub.cs" /> | ||
</ItemGroup> | ||
|
||
|
||
<Import Project="$(MauiSrcDirectory)Maui.InTree.props" Condition=" '$(UseMaui)' != 'true' " /> | ||
|
||
</Project> |
5 changes: 5 additions & 0 deletions
5
src/Controls/tests/Xaml.UnitTests.ExternalAssembly/Directory.Build.targets
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,5 @@ | ||
<Project> | ||
<Import Project="$(MauiSrcDirectory)Maui.InTree.targets" Condition=" '$(UseMaui)' != 'true' " /> | ||
<Import Project="$(MauiSrcDirectory)Microsoft.Maui.Controls.Debug.targets" /> | ||
<Import Project="$(MauiRootDirectory)Directory.Build.targets" /> | ||
</Project> |
14 changes: 14 additions & 0 deletions
14
src/Controls/tests/Xaml.UnitTests.ExternalAssembly/Issue3076Button.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,14 @@ | ||
namespace Microsoft.Maui.Controls.ControlGallery | ||
{ | ||
public class Issue3076Button : Button | ||
{ | ||
public static readonly BindableProperty HorizontalContentAlignmentProperty = | ||
BindableProperty.Create("HorizontalContentAlignemnt", typeof(TextAlignment), typeof(Issue3076Button), TextAlignment.Center); | ||
|
||
public TextAlignment HorizontalContentAlignment | ||
{ | ||
get { return (TextAlignment)GetValue(HorizontalContentAlignmentProperty); } | ||
set { SetValue(HorizontalContentAlignmentProperty, value); } | ||
} | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
src/Controls/tests/Xaml.UnitTests.ExternalAssembly/Issues/Maui14158/Attributes.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,4 @@ | ||
using Microsoft.Maui.Controls; | ||
|
||
[assembly: XmlnsDefinition("http://schemas.microsoft.com/dotnet/2021/maui/xaml/tests", "Microsoft.Maui.Controls.Xaml.UnitTests.Issues.Maui14158")] | ||
[assembly: XmlnsDefinition("http://schemas.microsoft.com/dotnet/2021/maui/xaml/tests", "Microsoft.Maui.Controls.Xaml.UnitTests.Issues.Maui14158", AssemblyName = "Microsoft.Maui.Controls.Xaml.UnitTests.InternalsHiddenAssembly")] |
13 changes: 13 additions & 0 deletions
13
src/Controls/tests/Xaml.UnitTests.ExternalAssembly/Issues/Maui14158/PublicTypes.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,13 @@ | ||
using System.ComponentModel; | ||
using Microsoft.Maui.Controls; | ||
|
||
namespace Microsoft.Maui.Controls.Xaml.UnitTests.Issues.Maui14158; | ||
|
||
[Description("Microsoft.Maui.Controls.Xaml.UnitTests.ExternalAssembly")] | ||
public class PublicInExternal : Button { } | ||
|
||
[Description("Microsoft.Maui.Controls.Xaml.UnitTests.ExternalAssembly")] | ||
internal class PublicInHidden : Button { } | ||
|
||
[Description("Microsoft.Maui.Controls.Xaml.UnitTests.ExternalAssembly")] | ||
internal class PublicInVisible : Button { } |
7 changes: 7 additions & 0 deletions
7
src/Controls/tests/Xaml.UnitTests.ExternalAssembly/Issues/Maui14158/WithSuffix.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,7 @@ | ||
using System.ComponentModel; | ||
using Microsoft.Maui.Controls; | ||
|
||
namespace Microsoft.Maui.Controls.Xaml.UnitTests.Issues.Maui14158; | ||
|
||
[Description("Microsoft.Maui.Controls.Xaml.UnitTests.ExternalAssembly")] | ||
public class PublicWithSuffix : Button { } |
12 changes: 12 additions & 0 deletions
12
src/Controls/tests/Xaml.UnitTests.ExternalAssembly/Issues/Maui16923/Gh16923Library.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,12 @@ | ||
namespace Microsoft.Maui.Controls.Xaml.UnitTests.ExternalAssembly | ||
{ | ||
public static class Gh16923Library | ||
{ | ||
public const string LibraryConstant = nameof(LibraryConstant); | ||
|
||
public static class Nested | ||
{ | ||
public const string NestedLibraryConstant = nameof(NestedLibraryConstant); | ||
} | ||
} | ||
} |
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