diff --git a/src/SamplesApp/UITests.Shared/Windows_Media/MediaPlayerTests.xaml b/src/SamplesApp/UITests.Shared/Windows_Media/MediaPlayerTests.xaml index 97f7b5991fd0..c29790e1b529 100644 --- a/src/SamplesApp/UITests.Shared/Windows_Media/MediaPlayerTests.xaml +++ b/src/SamplesApp/UITests.Shared/Windows_Media/MediaPlayerTests.xaml @@ -3,13 +3,14 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:UITests.Windows_Media" + xmlns:not_mux="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:valueConverters="using:UITests.ValueConverters" mc:Ignorable="d" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> - - diff --git a/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Avi_Extension.xaml b/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Avi_Extension.xaml index d65409c309fb..3ba04a544772 100644 --- a/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Avi_Extension.xaml +++ b/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Avi_Extension.xaml @@ -1,10 +1,11 @@  - diff --git a/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Flv_Extension.xaml b/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Flv_Extension.xaml index 2744e25804eb..068c949d235b 100644 --- a/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Flv_Extension.xaml +++ b/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Flv_Extension.xaml @@ -1,10 +1,11 @@  - diff --git a/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Full.xaml b/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Full.xaml index 23ee5397881d..efb46cae8e00 100644 --- a/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Full.xaml +++ b/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Full.xaml @@ -1,6 +1,7 @@  + xmlns:not_mux="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> @@ -8,7 +9,7 @@ - - + diff --git a/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Minimal.xaml b/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Minimal.xaml index 119c0cf44492..e5c865336d77 100644 --- a/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Minimal.xaml +++ b/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Minimal.xaml @@ -1,10 +1,11 @@  - + - - + diff --git a/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Mkv_Extension.xaml b/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Mkv_Extension.xaml index 139e3a4da0d0..197f4859cb7e 100644 --- a/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Mkv_Extension.xaml +++ b/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Mkv_Extension.xaml @@ -1,10 +1,11 @@  - diff --git a/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Mov_Extension.xaml b/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Mov_Extension.xaml index 16647b4e9e31..61f9a02a893e 100644 --- a/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Mov_Extension.xaml +++ b/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Mov_Extension.xaml @@ -1,10 +1,11 @@  - diff --git a/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Ogg_Extension.xaml b/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Ogg_Extension.xaml index 26bd6dd192b1..6e6903b38736 100644 --- a/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Ogg_Extension.xaml +++ b/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Ogg_Extension.xaml @@ -1,10 +1,11 @@  - diff --git a/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Original.xaml b/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Original.xaml index 8e232155ca25..0d4e9a3e63b5 100644 --- a/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Original.xaml +++ b/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Original.xaml @@ -1,10 +1,11 @@  - diff --git a/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Sources.xaml b/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Sources.xaml index 6a5ba9c396b1..9e942e9a2e27 100644 --- a/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Sources.xaml +++ b/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Sources.xaml @@ -2,6 +2,7 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:UITests.Windows_UI_Xaml_Controls.MediaPlayerElement" + xmlns:not_mux="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" @@ -22,7 +23,7 @@ - diff --git a/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Sources.xaml.cs b/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Sources.xaml.cs index a5e885860f17..b5c22874a4e4 100644 --- a/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Sources.xaml.cs +++ b/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Sources.xaml.cs @@ -29,6 +29,7 @@ public MediaPlayerElement_Sources() private void UpdateButton_Click(object sender, RoutedEventArgs e) { +#if !HAS_UNO_WINUI var uri = SourceTextBox.Text; if (!string.IsNullOrEmpty(uri)) @@ -39,6 +40,7 @@ private void UpdateButton_Click(object sender, RoutedEventArgs e) { Mpe.Source = null; } +#endif } } } diff --git a/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Stretch_Fill.xaml b/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Stretch_Fill.xaml index 4da7b4fe6223..6679b4b84fca 100644 --- a/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Stretch_Fill.xaml +++ b/src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/MediaPlayerElement/MediaPlayerElement_Stretch_Fill.xaml @@ -2,9 +2,10 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:not_mux="http://schemas.microsoft.com/winfx/2006/xaml/presentation" mc:Ignorable=""> - diff --git a/src/SolutionTemplate/Uno.ProjectTemplates.Dotnet/content/unoapp-winui/UnoWinUIQuickStart.Windows.Desktop/Properties/PublishProfiles/win10-arm64.pubxml b/src/SolutionTemplate/Uno.ProjectTemplates.Dotnet/content/unoapp-winui/UnoWinUIQuickStart.Windows.Desktop/Properties/PublishProfiles/win10-arm64.pubxml index f8763fd5f51c..c2f2c73110af 100644 --- a/src/SolutionTemplate/Uno.ProjectTemplates.Dotnet/content/unoapp-winui/UnoWinUIQuickStart.Windows.Desktop/Properties/PublishProfiles/win10-arm64.pubxml +++ b/src/SolutionTemplate/Uno.ProjectTemplates.Dotnet/content/unoapp-winui/UnoWinUIQuickStart.Windows.Desktop/Properties/PublishProfiles/win10-arm64.pubxml @@ -4,13 +4,16 @@ https://go.microsoft.com/fwlink/?LinkID=208121. --> - FileSystem - arm64 - win10-arm64 - bin\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\publish\ - true - False - True + FileSystem + arm64 + win10-arm64 + bin\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\publish\ + true + False + True + - \ No newline at end of file + diff --git a/src/SolutionTemplate/Uno.ProjectTemplates.Dotnet/content/unoapp-winui/UnoWinUIQuickStart.Windows.Desktop/Properties/PublishProfiles/win10-x64.pubxml b/src/SolutionTemplate/Uno.ProjectTemplates.Dotnet/content/unoapp-winui/UnoWinUIQuickStart.Windows.Desktop/Properties/PublishProfiles/win10-x64.pubxml index 9341269df3c7..d04e723ca30f 100644 --- a/src/SolutionTemplate/Uno.ProjectTemplates.Dotnet/content/unoapp-winui/UnoWinUIQuickStart.Windows.Desktop/Properties/PublishProfiles/win10-x64.pubxml +++ b/src/SolutionTemplate/Uno.ProjectTemplates.Dotnet/content/unoapp-winui/UnoWinUIQuickStart.Windows.Desktop/Properties/PublishProfiles/win10-x64.pubxml @@ -4,13 +4,16 @@ https://go.microsoft.com/fwlink/?LinkID=208121. --> - FileSystem - x64 - win10-x64 - bin\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\publish\ - true - False - True + FileSystem + x64 + win10-x64 + bin\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\publish\ + true + False + True + - \ No newline at end of file + diff --git a/src/SolutionTemplate/Uno.ProjectTemplates.Dotnet/content/unoapp-winui/UnoWinUIQuickStart.Windows.Desktop/Properties/PublishProfiles/win10-x86.pubxml b/src/SolutionTemplate/Uno.ProjectTemplates.Dotnet/content/unoapp-winui/UnoWinUIQuickStart.Windows.Desktop/Properties/PublishProfiles/win10-x86.pubxml index 6ec2ebadf523..6bcf3bb29bc4 100644 --- a/src/SolutionTemplate/Uno.ProjectTemplates.Dotnet/content/unoapp-winui/UnoWinUIQuickStart.Windows.Desktop/Properties/PublishProfiles/win10-x86.pubxml +++ b/src/SolutionTemplate/Uno.ProjectTemplates.Dotnet/content/unoapp-winui/UnoWinUIQuickStart.Windows.Desktop/Properties/PublishProfiles/win10-x86.pubxml @@ -4,13 +4,16 @@ https://go.microsoft.com/fwlink/?LinkID=208121. --> - FileSystem - x86 - win10-x86 - bin\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\publish\ - true - False - True + FileSystem + x86 + win10-x86 + bin\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\publish\ + true + False + True + - \ No newline at end of file + diff --git a/src/SolutionTemplate/Uno.ProjectTemplates.Dotnet/content/unoapp-winui/UnoWinUIQuickStart.Windows.Desktop/UnoWinUIQuickStart.Windows.Desktop.csproj b/src/SolutionTemplate/Uno.ProjectTemplates.Dotnet/content/unoapp-winui/UnoWinUIQuickStart.Windows.Desktop/UnoWinUIQuickStart.Windows.Desktop.csproj index 6c32746c74c8..24a631d9b65d 100644 --- a/src/SolutionTemplate/Uno.ProjectTemplates.Dotnet/content/unoapp-winui/UnoWinUIQuickStart.Windows.Desktop/UnoWinUIQuickStart.Windows.Desktop.csproj +++ b/src/SolutionTemplate/Uno.ProjectTemplates.Dotnet/content/unoapp-winui/UnoWinUIQuickStart.Windows.Desktop/UnoWinUIQuickStart.Windows.Desktop.csproj @@ -11,11 +11,11 @@ - + - + diff --git a/src/SolutionTemplate/Uno.ProjectTemplates.Dotnet/content/unoapp-winui/UnoWinUIQuickStart.Windows.Package/UnoWinUIQuickStart.Windows.Package.wapproj b/src/SolutionTemplate/Uno.ProjectTemplates.Dotnet/content/unoapp-winui/UnoWinUIQuickStart.Windows.Package/UnoWinUIQuickStart.Windows.Package.wapproj index 7208fe4c4aa8..3a49338d1c7f 100644 --- a/src/SolutionTemplate/Uno.ProjectTemplates.Dotnet/content/unoapp-winui/UnoWinUIQuickStart.Windows.Package/UnoWinUIQuickStart.Windows.Package.wapproj +++ b/src/SolutionTemplate/Uno.ProjectTemplates.Dotnet/content/unoapp-winui/UnoWinUIQuickStart.Windows.Package/UnoWinUIQuickStart.Windows.Package.wapproj @@ -63,11 +63,6 @@ Properties\PublishProfiles\win10-$(Platform).pubxml - - - - - diff --git a/src/SolutionTemplate/Uno.ProjectTemplates.Dotnet/content/unoapp-winui/UnoWinUIQuickStart.Windows.Package/build/Microsoft.WinUI.AppX.targets b/src/SolutionTemplate/Uno.ProjectTemplates.Dotnet/content/unoapp-winui/UnoWinUIQuickStart.Windows.Package/build/Microsoft.WinUI.AppX.targets index e72ab35c59a2..40bf52e40f2a 100644 --- a/src/SolutionTemplate/Uno.ProjectTemplates.Dotnet/content/unoapp-winui/UnoWinUIQuickStart.Windows.Package/build/Microsoft.WinUI.AppX.targets +++ b/src/SolutionTemplate/Uno.ProjectTemplates.Dotnet/content/unoapp-winui/UnoWinUIQuickStart.Windows.Package/build/Microsoft.WinUI.AppX.targets @@ -207,20 +207,23 @@ - - - - - - + Add a dependency for the app against VCLibs.Desktop, which contains the CRT DLLs that WinUI 3 is linked against. --> + - + + + + + + + + true + + + + net5.0-windows$(TargetPlatformVersion) + + + + + + + diff --git a/src/Uno.UI.FluentTheme/Resources/PriorityDefault/MediaTransportControls_themeresources.xaml b/src/Uno.UI.FluentTheme/Resources/PriorityDefault/MediaTransportControls_themeresources.xaml index 937512d85b79..c9c6eae6a3e4 100644 --- a/src/Uno.UI.FluentTheme/Resources/PriorityDefault/MediaTransportControls_themeresources.xaml +++ b/src/Uno.UI.FluentTheme/Resources/PriorityDefault/MediaTransportControls_themeresources.xaml @@ -1,6 +1,7 @@  @@ -20,9 +21,9 @@ - + diff --git a/src/Uno.UI.FluentTheme/themeresources.xaml b/src/Uno.UI.FluentTheme/themeresources.xaml index 117b08b4c410..d47a73cd3b2f 100644 --- a/src/Uno.UI.FluentTheme/themeresources.xaml +++ b/src/Uno.UI.FluentTheme/themeresources.xaml @@ -1,4 +1,4 @@ - + @@ -14854,8 +14854,8 @@ - + - + diff --git a/src/Uno.UI.Tests/Windows_UI_Xaml/Given_Implicit_Style.cs b/src/Uno.UI.Tests/Windows_UI_Xaml/Given_Implicit_Style.cs index e6161388e1fb..d416658cd44c 100644 --- a/src/Uno.UI.Tests/Windows_UI_Xaml/Given_Implicit_Style.cs +++ b/src/Uno.UI.Tests/Windows_UI_Xaml/Given_Implicit_Style.cs @@ -238,8 +238,10 @@ public void Verify_Framework_DefaultStyleKeys() AssertDefaultStyleKey(); #endif AssertDefaultStyleKey(); +#if !HAS_UNO_WINUI AssertDefaultStyleKey(); AssertDefaultStyleKey(); +#endif AssertDefaultStyleKey(); AssertDefaultStyleKey(); AssertDefaultStyleKey(); diff --git a/src/Uno.UI/Microsoft/UI/Xaml/Controls/Expander/ExpanderCollapsedEventArgs.cs b/src/Uno.UI/Microsoft/UI/Xaml/Controls/Expander/ExpanderCollapsedEventArgs.cs index 751d5f8d22c0..a6119dfbebdf 100644 --- a/src/Uno.UI/Microsoft/UI/Xaml/Controls/Expander/ExpanderCollapsedEventArgs.cs +++ b/src/Uno.UI/Microsoft/UI/Xaml/Controls/Expander/ExpanderCollapsedEventArgs.cs @@ -6,7 +6,7 @@ namespace Microsoft.UI.Xaml.Controls { - public class ExpanderCollapsedEventArgs : EventArgs + public partial class ExpanderCollapsedEventArgs : EventArgs { } } diff --git a/src/Uno.UI/Microsoft/UI/Xaml/Controls/Expander/ExpanderExpandingEventArgs.cs b/src/Uno.UI/Microsoft/UI/Xaml/Controls/Expander/ExpanderExpandingEventArgs.cs index 9ab9fadad255..649414e0105a 100644 --- a/src/Uno.UI/Microsoft/UI/Xaml/Controls/Expander/ExpanderExpandingEventArgs.cs +++ b/src/Uno.UI/Microsoft/UI/Xaml/Controls/Expander/ExpanderExpandingEventArgs.cs @@ -6,7 +6,7 @@ namespace Microsoft.UI.Xaml.Controls { - public class ExpanderExpandingEventArgs : EventArgs + public partial class ExpanderExpandingEventArgs : EventArgs { } } diff --git a/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaPlayerElement.cs b/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaPlayerElement.cs index 39b645f4b821..f558fd7d95b1 100644 --- a/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaPlayerElement.cs +++ b/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaPlayerElement.cs @@ -1,4 +1,4 @@ -#if __IOS__ || __ANDROID__ || __MACOS__ +#if !HAS_UNO_WINUI && (__IOS__ || __ANDROID__ || __MACOS__) using System; using Uno.Extensions; using Windows.Media.Playback; diff --git a/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaPlayerElement.net.cs b/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaPlayerElement.net.cs index 36da5c7b97d8..1278c97566f4 100644 --- a/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaPlayerElement.net.cs +++ b/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaPlayerElement.net.cs @@ -1,4 +1,5 @@ -using System; +#if !HAS_UNO_WINUI +using System; using System.Collections.Generic; using System.Text; @@ -12,3 +13,4 @@ public MediaPlayerElement() } } } +#endif diff --git a/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaPlayerPresenter.Android.cs b/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaPlayerPresenter.Android.cs index 19d1591e2fb6..ef5861d8676b 100644 --- a/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaPlayerPresenter.Android.cs +++ b/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaPlayerPresenter.Android.cs @@ -1,3 +1,4 @@ +#if !HAS_UNO_WINUI using System; using Android.Views; using Uno.Media.Playback; @@ -49,3 +50,4 @@ internal void ApplyStretch() } } } +#endif diff --git a/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaPlayerPresenter.Others.cs b/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaPlayerPresenter.Others.cs index d9cb1c96ffff..95eb811f190e 100644 --- a/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaPlayerPresenter.Others.cs +++ b/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaPlayerPresenter.Others.cs @@ -1,4 +1,4 @@ -#if !__ANDROID__ && !__IOS__ && !__MACOS__ +#if !HAS_UNO_WINUI && !__ANDROID__ && !__IOS__ && !__MACOS__ using System; using Windows.Foundation; using Windows.Media.Playback; diff --git a/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaPlayerPresenter.cs b/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaPlayerPresenter.cs index 380eb0b5457f..18ca09669788 100644 --- a/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaPlayerPresenter.cs +++ b/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaPlayerPresenter.cs @@ -1,4 +1,4 @@ -#if __ANDROID__ || __IOS__ || __MACOS__ +#if !HAS_UNO_WINUI && (__ANDROID__ || __IOS__ || __MACOS__) using System; using Windows.Foundation; using Windows.Media.Playback; diff --git a/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaPlayerPresenter.iOSmacOS.cs b/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaPlayerPresenter.iOSmacOS.cs index d53826b22f48..c4ed95c41ac5 100644 --- a/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaPlayerPresenter.iOSmacOS.cs +++ b/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaPlayerPresenter.iOSmacOS.cs @@ -1,3 +1,4 @@ +#if !HAS_UNO_WINUI using System; using AVFoundation; using Uno.Extensions; @@ -52,3 +53,4 @@ internal void ApplyStretch() } } } +#endif diff --git a/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaTransportControls.MediaPlayer.cs b/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaTransportControls.MediaPlayer.cs index 11e2a7ef24f5..30620a60ff30 100644 --- a/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaTransportControls.MediaPlayer.cs +++ b/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaTransportControls.MediaPlayer.cs @@ -1,4 +1,4 @@ -#if __ANDROID__ || __IOS__ || NET461 || __MACOS__ +#if !HAS_UNO_WINUI && (__ANDROID__ || __IOS__ || NET461 || __MACOS__) using System; using System.Timers; diff --git a/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaTransportControls.Properties.cs b/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaTransportControls.Properties.cs index be3944f4cb4f..3555ee84b43f 100644 --- a/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaTransportControls.Properties.cs +++ b/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaTransportControls.Properties.cs @@ -1,4 +1,4 @@ -#if __ANDROID__ || __IOS__ || __MACOS__ +#if !HAS_UNO_WINUI && (__ANDROID__ || __IOS__ || __MACOS__) using System; using Windows.Media.Playback; @@ -7,7 +7,7 @@ namespace Windows.UI.Xaml.Controls { public partial class MediaTransportControls { - #region IsFullWindowButtonVisible Property +#region IsFullWindowButtonVisible Property public bool IsFullWindowButtonVisible { @@ -22,9 +22,9 @@ public bool IsFullWindowButtonVisible typeof(MediaTransportControls), new FrameworkPropertyMetadata(true)); - #endregion +#endregion - #region IsPlaybackRateEnabled Property +#region IsPlaybackRateEnabled Property public bool IsPlaybackRateEnabled { @@ -39,9 +39,9 @@ public bool IsPlaybackRateEnabled typeof(MediaTransportControls), new FrameworkPropertyMetadata(true)); - #endregion +#endregion - #region IsFastRewindEnabled Property +#region IsFastRewindEnabled Property public bool IsFastRewindEnabled { @@ -56,9 +56,9 @@ public bool IsFastRewindEnabled typeof(MediaTransportControls), new FrameworkPropertyMetadata(true)); - #endregion +#endregion - #region IsFastRewindButtonVisible Property +#region IsFastRewindButtonVisible Property public bool IsFastRewindButtonVisible { @@ -73,9 +73,9 @@ public bool IsFastRewindButtonVisible typeof(MediaTransportControls), new FrameworkPropertyMetadata(true)); - #endregion +#endregion - #region IsFullWindowEnabled Property +#region IsFullWindowEnabled Property public bool IsFullWindowEnabled { @@ -90,9 +90,9 @@ public bool IsFullWindowEnabled typeof(MediaTransportControls), new FrameworkPropertyMetadata(true)); - #endregion +#endregion - #region IsFastForwardEnabled Property +#region IsFastForwardEnabled Property public bool IsFastForwardEnabled { @@ -107,9 +107,9 @@ public bool IsFastForwardEnabled typeof(MediaTransportControls), new FrameworkPropertyMetadata(true)); - #endregion +#endregion - #region IsCompact Property +#region IsCompact Property public bool IsCompact { @@ -124,9 +124,9 @@ public bool IsCompact typeof(MediaTransportControls), new FrameworkPropertyMetadata(false, OnIsCompactChanged)); - #endregion +#endregion - #region IsSeekEnabled Property +#region IsSeekEnabled Property public bool IsSeekEnabled { @@ -141,9 +141,9 @@ public bool IsSeekEnabled typeof(MediaTransportControls), new FrameworkPropertyMetadata(true, OnIsSeekEnabledChanged)); - #endregion +#endregion - #region IsStopEnabled Property +#region IsStopEnabled Property public bool IsStopEnabled { @@ -158,9 +158,9 @@ public bool IsStopEnabled typeof(MediaTransportControls), new FrameworkPropertyMetadata(true)); - #endregion +#endregion - #region IsFastForwardButtonVisible Property +#region IsFastForwardButtonVisible Property public bool IsFastForwardButtonVisible { @@ -175,9 +175,9 @@ public bool IsFastForwardButtonVisible typeof(MediaTransportControls), new FrameworkPropertyMetadata(true)); - #endregion +#endregion - #region IsStopButtonVisible Property +#region IsStopButtonVisible Property public bool IsStopButtonVisible { @@ -192,9 +192,9 @@ public bool IsStopButtonVisible typeof(MediaTransportControls), new FrameworkPropertyMetadata(true)); - #endregion +#endregion - #region IsVolumeButtonVisible Property +#region IsVolumeButtonVisible Property public bool IsVolumeButtonVisible { @@ -209,9 +209,9 @@ public bool IsVolumeButtonVisible typeof(MediaTransportControls), new FrameworkPropertyMetadata(true)); - #endregion +#endregion - #region IsSeekBarVisible Property +#region IsSeekBarVisible Property public bool IsSeekBarVisible { @@ -226,9 +226,9 @@ public bool IsSeekBarVisible typeof(MediaTransportControls), new FrameworkPropertyMetadata(true, OnIsSeekBarVisibleChanged)); - #endregion +#endregion - #region IsPlaybackRateButtonVisible Property +#region IsPlaybackRateButtonVisible Property public bool IsPlaybackRateButtonVisible { @@ -243,9 +243,9 @@ public bool IsPlaybackRateButtonVisible typeof(MediaTransportControls), new FrameworkPropertyMetadata(true)); - #endregion +#endregion - #region IsZoomEnabled Property +#region IsZoomEnabled Property public bool IsZoomEnabled { @@ -260,9 +260,9 @@ public bool IsZoomEnabled typeof(MediaTransportControls), new FrameworkPropertyMetadata(true)); - #endregion +#endregion - #region IsZoomButtonVisible Property +#region IsZoomButtonVisible Property public bool IsZoomButtonVisible { @@ -277,9 +277,9 @@ public bool IsZoomButtonVisible typeof(MediaTransportControls), new FrameworkPropertyMetadata(true)); - #endregion +#endregion - #region IsVolumeEnabled Property +#region IsVolumeEnabled Property public bool IsVolumeEnabled { @@ -294,9 +294,9 @@ public bool IsVolumeEnabled typeof(MediaTransportControls), new FrameworkPropertyMetadata(true)); - #endregion +#endregion - #region IsSkipBackwardButtonVisible Property +#region IsSkipBackwardButtonVisible Property public bool IsSkipBackwardButtonVisible { @@ -311,9 +311,9 @@ public bool IsSkipBackwardButtonVisible typeof(MediaTransportControls), new FrameworkPropertyMetadata(true)); - #endregion +#endregion - #region IsNextTrackButtonVisible Property +#region IsNextTrackButtonVisible Property public bool IsNextTrackButtonVisible { @@ -328,9 +328,9 @@ public bool IsNextTrackButtonVisible typeof(MediaTransportControls), new FrameworkPropertyMetadata(true)); - #endregion +#endregion - #region FastPlayFallbackBehaviour Property +#region FastPlayFallbackBehaviour Property public Media.FastPlayFallbackBehaviour FastPlayFallbackBehaviour { @@ -345,9 +345,9 @@ public Media.FastPlayFallbackBehaviour FastPlayFallbackBehaviour typeof(MediaTransportControls), new FrameworkPropertyMetadata(default(Media.FastPlayFallbackBehaviour))); - #endregion +#endregion - #region IsSkipForwardEnabled Property +#region IsSkipForwardEnabled Property public bool IsSkipForwardEnabled { @@ -362,9 +362,9 @@ public bool IsSkipForwardEnabled typeof(MediaTransportControls), new FrameworkPropertyMetadata(true)); - #endregion +#endregion - #region IsPreviousTrackButtonVisible Property +#region IsPreviousTrackButtonVisible Property public bool IsPreviousTrackButtonVisible { @@ -379,9 +379,9 @@ public bool IsPreviousTrackButtonVisible typeof(MediaTransportControls), new FrameworkPropertyMetadata(true)); - #endregion +#endregion - #region IsSkipForwardButtonVisible Property +#region IsSkipForwardButtonVisible Property public bool IsSkipForwardButtonVisible { @@ -396,9 +396,9 @@ public bool IsSkipForwardButtonVisible typeof(MediaTransportControls), new FrameworkPropertyMetadata(true)); - #endregion +#endregion - #region IsSkipBackwardEnabled Property +#region IsSkipBackwardEnabled Property public bool IsSkipBackwardEnabled { @@ -413,9 +413,9 @@ public bool IsSkipBackwardEnabled typeof(MediaTransportControls), new FrameworkPropertyMetadata(true)); - #endregion +#endregion - #region ShowAndHideAutomatically Property +#region ShowAndHideAutomatically Property public bool ShowAndHideAutomatically { @@ -430,9 +430,9 @@ public bool ShowAndHideAutomatically typeof(MediaTransportControls), new FrameworkPropertyMetadata(true, OnShowAndHideAutomaticallyChanged)); - #endregion +#endregion - #region IsRepeatButtonVisible Property +#region IsRepeatButtonVisible Property public bool IsRepeatButtonVisible { @@ -447,9 +447,9 @@ public bool IsRepeatButtonVisible typeof(MediaTransportControls), new FrameworkPropertyMetadata(true)); - #endregion +#endregion - #region IsRepeatEnabled Property +#region IsRepeatEnabled Property public bool IsRepeatEnabled { @@ -464,9 +464,9 @@ public bool IsRepeatEnabled typeof(MediaTransportControls), new FrameworkPropertyMetadata(true)); - #endregion +#endregion - #region IsCompactOverlayEnabled Property +#region IsCompactOverlayEnabled Property public bool IsCompactOverlayEnabled { @@ -481,9 +481,9 @@ public bool IsCompactOverlayEnabled typeof(MediaTransportControls), new FrameworkPropertyMetadata(true)); - #endregion +#endregion - #region IsCompactOverlayButtonVisible Property +#region IsCompactOverlayButtonVisible Property public bool IsCompactOverlayButtonVisible { @@ -498,7 +498,7 @@ public bool IsCompactOverlayButtonVisible typeof(MediaTransportControls), new FrameworkPropertyMetadata(true)); - #endregion +#endregion } } #endif diff --git a/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaTransportControls.cs b/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaTransportControls.cs index 18ef6ce12a8d..b1d9304dd017 100644 --- a/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaTransportControls.cs +++ b/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaTransportControls.cs @@ -1,4 +1,4 @@ -#if __ANDROID__ || __IOS__ || NET461 || __MACOS__ +#if !HAS_UNO_WINUI && (__ANDROID__ || __IOS__ || NET461 || __MACOS__) using System; using System.Timers; using Uno.UI.Converters; diff --git a/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaTransportControlsHelper.cs b/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaTransportControlsHelper.cs index 153f8d618af9..657024d589da 100644 --- a/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaTransportControlsHelper.cs +++ b/src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaTransportControlsHelper.cs @@ -1,4 +1,4 @@ -#if __ANDROID__ || __IOS__ || __MACOS__ +#if !HAS_UNO_WINUI && (__ANDROID__ || __IOS__ || __MACOS__) namespace Windows.UI.Xaml.Controls { public partial class MediaTransportControlsHelper diff --git a/src/Uno.UWPSyncGenerator.Reference/Uno.UWPSyncGenerator.Reference.csproj b/src/Uno.UWPSyncGenerator.Reference/Uno.UWPSyncGenerator.Reference.csproj index 8a3e0d7d41fa..096287c1dbb8 100644 --- a/src/Uno.UWPSyncGenerator.Reference/Uno.UWPSyncGenerator.Reference.csproj +++ b/src/Uno.UWPSyncGenerator.Reference/Uno.UWPSyncGenerator.Reference.csproj @@ -122,7 +122,7 @@ 6.2.9 - 3.0.0-preview3.201113.0 + 3.0.0-preview4.210210.4 Windows Desktop Extensions for the UWP