File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Uno.Gallery/Uno.Gallery.Shared Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 2020using MUXCP = Microsoft . UI . Xaml . Controls . Primitives ;
2121using LaunchActivatedEventArgs = Microsoft . UI . Xaml . LaunchActivatedEventArgs ;
2222using Microsoft . UI . Dispatching ;
23+ using Uno . UI ;
2324
2425namespace Uno . Gallery
2526{
@@ -43,10 +44,8 @@ public partial class App : Application
4344 public App ( )
4445 {
4546 Instance = this ;
46- #if ! WINDOWS
47- Uno . UI . FeatureConfiguration . ApiInformation . NotImplementedLogLevel = Foundation . Logging . LogLevel . Debug ; // Raise not implemented usages as Debug messages
48- #endif
4947
48+ ConfigureFeatureFlags ( ) ;
5049 InitializeLogging ( ) ;
5150 ConfigureXamlDisplay ( ) ;
5251
@@ -349,7 +348,7 @@ private static void InitializeLogging()
349348#if true // Force enable logging for debugging CI // DEBUG || __IOS__
350349 // Logging is disabled by default for release builds, as it incurs a significant
351350 // initialization cost from Microsoft.Extensions.Logging setup. If startup performance
352- // is a concern for your application, keep this disabled. If you're running on web or
351+ // is a concern for your application, keep this disabled. If you're running on web or
353352 // desktop targets, you can use url or command line parameters to enable it.
354353 //
355354 // For more performance documentation: https://platform.uno/docs/articles/Uno-UI-Performance.html
@@ -414,5 +413,13 @@ private void ConfigureXamlDisplay()
414413 {
415414 XamlDisplay . Init ( GetType ( ) . Assembly ) ;
416415 }
416+
417+ private void ConfigureFeatureFlags ( )
418+ {
419+ #if ! WINDOWS
420+ FeatureConfiguration . ApiInformation . NotImplementedLogLevel = Foundation . Logging . LogLevel . Debug ; // Raise not implemented usages as Debug messages
421+ FeatureConfiguration . ToolTip . UseToolTips = true ;
422+ #endif
423+ }
417424 }
418425}
You can’t perform that action at this time.
0 commit comments