diff --git a/src/Uno.UI/UI/Xaml/Controls/ScrollViewer/ScrollViewer.cs b/src/Uno.UI/UI/Xaml/Controls/ScrollViewer/ScrollViewer.cs index 16d79ce08f54..4342d4f55ddb 100644 --- a/src/Uno.UI/UI/Xaml/Controls/ScrollViewer/ScrollViewer.cs +++ b/src/Uno.UI/UI/Xaml/Controls/ScrollViewer/ScrollViewer.cs @@ -89,7 +89,7 @@ public static class ScrollBarsSeparator public const string ExpandedWithoutAnimation = "ScrollBarSeparatorExpandedWithoutAnimation"; public const string CollapsedWithoutAnimation = "ScrollBarSeparatorCollapsedWithoutAnimation"; - // On WinUI3 visuals states are prefixed with "ScrolBar***s***" (with a trailing 's') + // On WinUI3 visuals states are prefixed with "ScrollBar***s***" (with a trailing 's') //public const string Collapsed = "ScrollBarsSeparatorCollapsed"; //public const string CollapsedDisabled = "ScrollBarsSeparatorCollapsedDisabled"; // Not supported yet //public const string Expanded = "ScrollBarsSeparatorExpanded"; diff --git a/src/Uno.UWP/ApplicationModel/Core/CoreApplicationView.cs b/src/Uno.UWP/ApplicationModel/Core/CoreApplicationView.cs index e746864ea32c..bd2d0837d253 100644 --- a/src/Uno.UWP/ApplicationModel/Core/CoreApplicationView.cs +++ b/src/Uno.UWP/ApplicationModel/Core/CoreApplicationView.cs @@ -1,3 +1,4 @@ +using Windows.System; using Windows.UI.Core; namespace Windows.ApplicationModel.Core @@ -14,6 +15,8 @@ public CoreApplicationView() public CoreDispatcher Dispatcher => CoreDispatcher.Main; + public DispatcherQueue DispatcherQueue { get; } = DispatcherQueue.GetForCurrentThread(); + public CoreApplicationViewTitleBar TitleBar { get diff --git a/src/Uno.UWP/Generated/3.0.0.0/Windows.ApplicationModel.Core/CoreApplicationView.cs b/src/Uno.UWP/Generated/3.0.0.0/Windows.ApplicationModel.Core/CoreApplicationView.cs index 8404497331a6..c0a9500f49b4 100644 --- a/src/Uno.UWP/Generated/3.0.0.0/Windows.ApplicationModel.Core/CoreApplicationView.cs +++ b/src/Uno.UWP/Generated/3.0.0.0/Windows.ApplicationModel.Core/CoreApplicationView.cs @@ -50,7 +50,7 @@ public bool IsComponent } } #endif - #if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__ + #if false [global::Uno.NotImplemented("__ANDROID__", "__IOS__", "NET461", "__WASM__", "__SKIA__", "__NETSTD_REFERENCE__", "__MACOS__")] public global::Windows.System.DispatcherQueue DispatcherQueue { diff --git a/src/Uno.UWP/Generated/3.0.0.0/Windows.UI.Core/CoreWindow.cs b/src/Uno.UWP/Generated/3.0.0.0/Windows.UI.Core/CoreWindow.cs index 97fbbf919b78..3453d7886833 100644 --- a/src/Uno.UWP/Generated/3.0.0.0/Windows.UI.Core/CoreWindow.cs +++ b/src/Uno.UWP/Generated/3.0.0.0/Windows.UI.Core/CoreWindow.cs @@ -70,7 +70,7 @@ public object AutomationHostProvider #endif // Skipping already declared property Visible // Skipping already declared property ActivationMode - #if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__ + #if false [global::Uno.NotImplemented("__ANDROID__", "__IOS__", "NET461", "__WASM__", "__SKIA__", "__NETSTD_REFERENCE__", "__MACOS__")] public global::Windows.System.DispatcherQueue DispatcherQueue { diff --git a/src/Uno.UWP/UI/Core/CoreWindow.cs b/src/Uno.UWP/UI/Core/CoreWindow.cs index e2b547e9b35e..15405989172f 100644 --- a/src/Uno.UWP/UI/Core/CoreWindow.cs +++ b/src/Uno.UWP/UI/Core/CoreWindow.cs @@ -6,6 +6,7 @@ using Uno.Extensions; using Uno.UI.Core; using Windows.Foundation; +using Windows.System; using Windows.UI.Input; namespace Windows.UI.Core @@ -52,6 +53,8 @@ internal CoreWindow() /// public CoreDispatcher Dispatcher => CoreDispatcher.Main; + public DispatcherQueue DispatcherQueue { get; } = DispatcherQueue.GetForCurrentThread(); + /// /// Gets the client coordinates of the pointer. ///