Skip to content

Commit

Permalink
Fixed an issue with Experimental bar not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlodotexe committed Nov 14, 2023
1 parent 370bcff commit 0abb272
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<Page x:Class="CommunityToolkit.App.Shared.Renderers.ToolkitDocumentationRenderer"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Expand Down Expand Up @@ -305,10 +305,9 @@
Margin="0,16,0,16"
BorderBrush="Transparent"
IsClosable="False"
IsOpen="{x:Bind BoolFalseIfNull(Metadata.IsExperimental), Mode=OneWay}"
Message="This is component it part of Toolkit Labs and is considered experimental."
Severity="Warning"
Visibility="{x:Bind Metadata.IsExperimental, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}">
<!-- TO DO: Bind IsOpen to a property that indicates whether the package is experimental -->
Severity="Warning">
<muxc:InfoBar.ActionButton>
<HyperlinkButton Content="Learn more about Toolkit Labs"
NavigateUri="https://aka.ms/toolkit/labs/windows" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,4 +241,6 @@ string e when e.Contains("Extensions") || e.Contains("Triggers") => "CommunityTo
};

public static bool IsProjectPathValid() => !string.IsNullOrWhiteSpace(ProjectUrl);

private bool BoolFalseIfNull(bool? value) => value ?? false;
}

0 comments on commit 0abb272

Please sign in to comment.