forked from dotnet/maui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Control Gallery to WinUI solution (dotnet#737)
* WinUI CG * - checkpoint compile 1 * - CG Core * - compatibility tests * - fix namespaces * - compile gallery * - Fix WinUI quirks * - GetForCurrentView * - fix some more MG * - fix up UI tests * - fix winui tests to start up window and then locate top window manually * - Namespaces
- Loading branch information
Showing
375 changed files
with
779 additions
and
310 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
165 changes: 165 additions & 0 deletions
165
src/Compatibility/ControlGallery/src/Core/Compatibility.ControlGallery.Core-net6.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,165 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<AssemblyName>Microsoft.Maui.Controls.Compatibility.ControlGallery</AssemblyName> | ||
<RootNamespace>Microsoft.Maui.Controls.Compatibility.ControlGallery</RootNamespace> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<XFDisableTargetsValidation>True</XFDisableTargetsValidation> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DefineConstants>TRACE;DEBUG;PERF;APP</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<NoWarn>0114;0108;0109;4014;0649;0169;0472;0414;0168;0219;0429</NoWarn> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DefineConstants>TRACE;APP</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<NoWarn>0114;0108;0109;4014;0649;0169;0472;0414;0168;0219;0429</NoWarn> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="$(TargetFramework.StartsWith('uap10.0'))"> | ||
<DefineConstants>$(DefineConstants);__UWP__</DefineConstants> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<None Remove="BuildNumber.txt" /> | ||
<None Remove="Fonts\CuteFont-Regular.ttf" /> | ||
<None Remove="Fonts\Dokdo-Regular.ttf" /> | ||
<None Remove="Fonts\fa-regular-400.ttf" /> | ||
<None Remove="Fonts\PTM55FT.ttf" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<EmbeddedResource Remove="GalleryPages\DateTimePickerGalleries\DatesPage.xaml" /> | ||
<EmbeddedResource Remove="GalleryPages\DateTimePickerGalleries\MainTabbedPage.xaml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<EmbeddedResource Include="BuildNumber.txt" /> | ||
<EmbeddedResource Include="GalleryPages\crimson.jpg" /> | ||
<EmbeddedResource Include="coffee.png" /> | ||
<PackageReference Include="System.Threading.Thread" Version="4.3.0" /> | ||
<PackageReference Include="NUnit" Version="3.13.1" /> | ||
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" /> | ||
<PackageReference Include="Xam.Plugin.DeviceInfo" Version="3.0.2" /> | ||
<EmbeddedResource Include="Fonts\CuteFont-Regular.ttf"> | ||
<SubType></SubType> | ||
<Generator></Generator> | ||
</EmbeddedResource> | ||
<EmbeddedResource Include="Fonts\Dokdo-Regular.ttf"> | ||
<SubType></SubType> | ||
<Generator></Generator> | ||
</EmbeddedResource> | ||
<EmbeddedResource Include="Fonts\fa-regular-400.ttf"> | ||
<SubType></SubType> | ||
<Generator></Generator> | ||
</EmbeddedResource> | ||
<EmbeddedResource Include="Fonts\PTM55FT.ttf"> | ||
<SubType></SubType> | ||
<Generator></Generator> | ||
</EmbeddedResource> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<EmbeddedResource Update="GalleryPages\CollectionViewGalleries\DataTemplateSelectorGalleries\VariedSizeDataTemplateSelectorGallery.xaml"> | ||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | ||
</EmbeddedResource> | ||
<EmbeddedResource Update="GalleryPages\CollectionViewGalleries\ItemSizeGalleries\ChatExample.xaml"> | ||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | ||
</EmbeddedResource> | ||
<EmbeddedResource Update="GalleryPages\DragAndDropGalleries\DragAndDropBetweenLayouts.xaml"> | ||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | ||
</EmbeddedResource> | ||
<EmbeddedResource Update="GalleryPages\DragAndDropGalleries\DragPaths.xaml"> | ||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | ||
</EmbeddedResource> | ||
<EmbeddedResource Update="GalleryPages\RadioButtonGalleries\ContentProperties.xaml"> | ||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | ||
</EmbeddedResource> | ||
<EmbeddedResource Update="GalleryPages\RadioButtonGalleries\RadioButtonGroupBindingGallery.xaml"> | ||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | ||
</EmbeddedResource> | ||
<EmbeddedResource Update="GalleryPages\RadioButtonGalleries\RadioButtonGroupGallery.xaml"> | ||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | ||
</EmbeddedResource> | ||
<EmbeddedResource Update="GalleryPages\RadioButtonGalleries\RadioButtonGroupGalleryPage.xaml"> | ||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | ||
</EmbeddedResource> | ||
<Compile Update="GalleryPages\CollectionViewGalleries\ItemSizeGalleries\ChatExample.xaml.cs"> | ||
<DependentUpon>ChatExample.xaml</DependentUpon> | ||
</Compile> | ||
<Compile Update="GalleryPages\RadioButtonGalleries\RadioButtonGroupGallery.xaml.cs"> | ||
<DependentUpon>RadioButtonGroupGallery.xaml</DependentUpon> | ||
</Compile> | ||
<Compile Update="TabIndexTest\DaysOfWeekView.xaml.cs"> | ||
<DependentUpon>DaysOfWeekView.xaml</DependentUpon> | ||
</Compile> | ||
<Compile Update="GalleryPages\IndicatorViewGalleries\IndicatorGalleries.cs"> | ||
<SubType></SubType> | ||
</Compile> | ||
<Compile Update="XamStore\Controls\FlyoutFooter.xaml.cs"> | ||
<DependentUpon>FlyoutFooter.xaml</DependentUpon> | ||
</Compile> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<EmbeddedResource Update="GalleryPages\RadioButtonGalleries\ScatteredRadioButtonGallery.xaml"> | ||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | ||
</EmbeddedResource> | ||
<EmbeddedResource Update="GalleryPages\RadioButtonGalleries\TemplateFromStyle.xaml"> | ||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | ||
</EmbeddedResource> | ||
<EmbeddedResource Update="TabIndexTest\DayView.xaml"> | ||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | ||
</EmbeddedResource> | ||
<EmbeddedResource Update="TabIndexTest\TabIndex.xaml"> | ||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | ||
</EmbeddedResource> | ||
<EmbeddedResource Update="TabIndexTest\DaysOfWeekView.xaml"> | ||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | ||
</EmbeddedResource> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\..\..\Controls\tests\CustomAttributes\Controls.CustomAttributes.csproj" /> | ||
<ProjectReference Include="..\..\..\..\Controls\Maps\src\Controls.Maps-net6.csproj" /> | ||
<ProjectReference Include="..\..\..\..\Controls\src\Core\Controls.Core-net6.csproj" /> | ||
<ProjectReference Include="..\..\..\..\Controls\src\Xaml\Controls.Xaml-net6.csproj" /> | ||
<ProjectReference Include="..\..\..\..\Core\src\Core-net6.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<EmbeddedResource Update="GalleryPages\GradientGalleries\LinearGradientPointsGallery.xaml"> | ||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | ||
</EmbeddedResource> | ||
<EmbeddedResource Update="GalleryPages\TwoPaneViewGalleries\GridUsingDualScreenInfo.xaml"> | ||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | ||
</EmbeddedResource> | ||
<EmbeddedResource Update="GalleryPages\TwoPaneViewGalleries\OpenCompactWindow.xaml"> | ||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | ||
</EmbeddedResource> | ||
<EmbeddedResource Update="GalleryPages\TwoPaneViewGalleries\TwoPanePropertiesGallery.xaml"> | ||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | ||
</EmbeddedResource> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Update="GalleryPages\AppThemeGalleries\AppThemeCodeGallery.cs"> | ||
<SubType></SubType> | ||
</Compile> | ||
<Compile Condition=" '$(EnableDefaultCompileItems)' == 'true' " Update="GalleryPages\AppThemeGalleries\AppThemeGallery.cs"> | ||
<SubType>Code</SubType> | ||
</Compile> | ||
<Compile Update="GalleryPages\AppThemeGalleries\AppThemeGallery.cs"> | ||
<SubType></SubType> | ||
</Compile> | ||
<Compile Update="GalleryPages\AppThemeGalleries\OSThemesGallery.cs"> | ||
<SubType></SubType> | ||
</Compile> | ||
</ItemGroup> | ||
<Target Name="CreateControllGalleryConfig" BeforeTargets="Build"> | ||
<CreateItem Include="blank.config"> | ||
<Output TaskParameter="Include" ItemName="ConfigFile" /> | ||
</CreateItem> | ||
<Copy SourceFiles="@(ConfigFile)" DestinationFiles="controlgallery.config" Condition="!Exists('controlgallery.config')" /> | ||
</Target> | ||
|
||
<Import Project="..\Issues.Shared\Compatibility.ControlGallery.Issues.Shared.projitems" Label="Shared" /> | ||
|
||
</Project> |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
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
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
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
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
6 changes: 3 additions & 3 deletions
6
....ControlGallery.WindowsUniversal/App.xaml → ...ibility/ControlGallery/src/WinUI/App.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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<Application | ||
x:Class="Xamarin.Forms.ControlGallery.WindowsUniversal.App" | ||
x:Class="Microsoft.Maui.Controls.Compatibility.ControlGallery.WinUI.App" | ||
xmlns="http:https://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http:https://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:WinUI3Desktop"> | ||
|
||
<Application.Resources> | ||
<ResourceDictionary> | ||
<ResourceDictionary.MergedDictionaries> | ||
<ResourceDictionary Source="ms-appx:https:///Xamarin.Forms.Platform.UAP/Resources.xbf" /> | ||
<ResourceDictionary Source="ms-appx:https:///Microsoft.Maui.Controls.Compatibility/WinUI/Resources.xbf" /> | ||
</ResourceDictionary.MergedDictionaries> | ||
</ResourceDictionary> | ||
</Application.Resources> | ||
</Application.Resources> | ||
|
||
</Application> |
Oops, something went wrong.