Merge pull request #1250 from unoplatform/dev/dr/feedStyle2

fix: Fix FeedView template not loading on windows
This commit is contained in:
David 2023-03-09 19:02:06 -05:00 коммит произвёл GitHub
Родитель 5864edad2f 44db9ec654
Коммит 3556320c36
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 39 добавлений и 3 удалений

Просмотреть файл

@ -1,10 +1,9 @@
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:toolkit="using:Uno.UI.Toolkit">
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="View/FeedView.xaml" />
<ResourceDictionary Source="ms-appx:///Uno.Extensions.Reactive.UI/View/FeedView.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>

Просмотреть файл

@ -0,0 +1,9 @@
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="ms-appx:///Uno.Extensions.Reactive.WinUI/View/FeedView.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>

Просмотреть файл

@ -13,6 +13,20 @@
</PropertyGroup>
<Import Project="common.props" />
<ItemGroup>
<Page Update="Themes\Generic.UI.xaml" Link="Themes\Generic.xaml" />
<Page Remove="Themes\Generic.WinUI.xaml" />
<None Include="Themes\Generic.WinUI.xaml" />
</ItemGroup>
<Target Name="_RenameGenericXamlFile" BeforeTargets="_CopyOutOfDateSourceItemsToOutputDirectory">
<!-- The generic.xaml file is referenced using a Link, but XAML and XBF files generated by the MarkupCompilePass1 are still named generic.UI.<xaml|xbf>, which causes the _CopyOutOfDateSourceItemsToOutputDirectory to fail. -->
<ItemGroup>
<GenericXamlOutput Include="$(IntermediateOutputPath)\Themes\Generic.UI.*" />
</ItemGroup>
<Copy SourceFiles="@(GenericXamlOutput)" DestinationFiles="@(GenericXamlOutput->Replace('Generic.UI', 'Generic'))" />
</Target>
<ItemGroup>
<PackageReference Include="Uno.UI" />

Просмотреть файл

@ -16,6 +16,20 @@
<Import Project="common.props" />
<ItemGroup>
<Page Update="Themes\Generic.WinUI.xaml" Link="Themes\Generic.xaml" />
<Page Remove="Themes\Generic.UI.xaml" />
<None Include="Themes\Generic.UI.xaml" />
</ItemGroup>
<Target Name="_RenameGenericXamlFile" BeforeTargets="_CopyOutOfDateSourceItemsToOutputDirectory">
<!-- The generic.xaml file is referenced using a Link, but XAML and XBF files generated by the MarkupCompilePass1 are still named generic.WinUI.<xaml|xbf>, which causes the _CopyOutOfDateSourceItemsToOutputDirectory to fail. -->
<ItemGroup>
<GenericXamlOutput Include="$(IntermediateOutputPath)\Themes\Generic.WinUI.*" />
</ItemGroup>
<Copy SourceFiles="@(GenericXamlOutput)" DestinationFiles="@(GenericXamlOutput->Replace('Generic.WinUI', 'Generic'))" />
</Target>
<ItemGroup Condition="'$(_IsWinUI)'=='false'">
<PackageReference Include="Uno.WinUI" />
</ItemGroup>