Skip to content

Commit 0bb3ca4

Browse files
Merge pull request #1030 from unoplatform/enable_slider_tooltips
2 parents fc77fd0 + c10e189 commit 0bb3ca4

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

Uno.Gallery/Uno.Gallery.Shared/App.xaml.cs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
using MUXCP = Microsoft.UI.Xaml.Controls.Primitives;
2121
using LaunchActivatedEventArgs = Microsoft.UI.Xaml.LaunchActivatedEventArgs;
2222
using Microsoft.UI.Dispatching;
23+
using Uno.UI;
2324

2425
namespace 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
}

0 commit comments

Comments
 (0)