Skip to content

Commit

Permalink
Merge pull request #1030 from unoplatform/enable_slider_tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund authored Dec 1, 2023
2 parents fc77fd0 + c10e189 commit 0bb3ca4
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Uno.Gallery/Uno.Gallery.Shared/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
using MUXCP = Microsoft.UI.Xaml.Controls.Primitives;
using LaunchActivatedEventArgs = Microsoft.UI.Xaml.LaunchActivatedEventArgs;
using Microsoft.UI.Dispatching;
using Uno.UI;

namespace Uno.Gallery
{
Expand All @@ -43,10 +44,8 @@ public partial class App : Application
public App()
{
Instance = this;
#if !WINDOWS
Uno.UI.FeatureConfiguration.ApiInformation.NotImplementedLogLevel = Foundation.Logging.LogLevel.Debug; // Raise not implemented usages as Debug messages
#endif

ConfigureFeatureFlags();
InitializeLogging();
ConfigureXamlDisplay();

Expand Down Expand Up @@ -349,7 +348,7 @@ private static void InitializeLogging()
#if true // Force enable logging for debugging CI // DEBUG || __IOS__
// Logging is disabled by default for release builds, as it incurs a significant
// initialization cost from Microsoft.Extensions.Logging setup. If startup performance
// is a concern for your application, keep this disabled. If you're running on web or
// is a concern for your application, keep this disabled. If you're running on web or
// desktop targets, you can use url or command line parameters to enable it.
//
// For more performance documentation: https://platform.uno/docs/articles/Uno-UI-Performance.html
Expand Down Expand Up @@ -414,5 +413,13 @@ private void ConfigureXamlDisplay()
{
XamlDisplay.Init(GetType().Assembly);
}

private void ConfigureFeatureFlags()
{
#if !WINDOWS
FeatureConfiguration.ApiInformation.NotImplementedLogLevel = Foundation.Logging.LogLevel.Debug; // Raise not implemented usages as Debug messages
FeatureConfiguration.ToolTip.UseToolTips = true;
#endif
}
}
}

0 comments on commit 0bb3ca4

Please sign in to comment.