Skip to content

Commit

Permalink
- NS Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
PureWeen committed Oct 2, 2024
1 parent e3a3cf1 commit e7edabd
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Controls/src/Core/Shell/BaseShellItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ internal static DataTemplate CreateDefaultFlyoutItemCell(string textBinding, str
var selectedState = new VisualState();
selectedState.Name = "Selected";

if (DeviceInfo.Platform != DevicePlatform.WinUI)
if (!OperatingSystem.IsWindows())
{
selectedState.Setters.Add(new Setter
{
Expand Down Expand Up @@ -537,6 +537,16 @@ internal static DataTemplate CreateDefaultFlyoutItemCell(string textBinding, str
return grid;
});
}

#if NETSTANDARD
sealed class OperatingSystem
{
public static bool IsAndroid() => false;
public static bool IsIOS() => false;
public static bool IsMacCatalyst() => false;
public static bool IsWindows() => false;
}
#endif
}

public interface IQueryAttributable
Expand Down

0 comments on commit e7edabd

Please sign in to comment.