The following is the code in the documentation for ViewExtensions
<Page x:Class="Microsoft.Toolkit.Uwp.SampleApp.SamplePages.ViewExtensionsPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="using:Microsoft.Toolkit.Uwp.SampleApp.SamplePages"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:viewHelper="using:Microsoft.Toolkit.Uwp.UI.Extensions"
extensions:ApplicationViewExtensions.Title="View Extensions"
extensions:StatusBarExtensions.BackgroundColor="Blue"
extensions:StatusBarExtensions.BackgroundOpacity="0.8"
extensions:StatusBarExtensions.ForegroundColor="White"
extensions:StatusBarExtensions.IsVisible="True"
extensions:TitleBarExtensions.BackgroundColor="Blue"
extensions:TitleBarExtensions.ForegroundColor="White"
mc:Ignorable="d">
<Grid Background="{StaticResource Brush-Grey-05}" />
</Page>
extensions is not defined.
The following code works in an app:
xmlns:viewHelper="using:Microsoft.Toolkit.Uwp.UI.Extensions"
viewHelper:StatusBar.IsVisible="false"
@zipswich I am pretty sure you cannot use the properties and classes in a namespace without defining it first. In you first code snippet, there is no definition of extensions namespace. Please define it and re-build your code.
After the changes, you code should look something like this:
<Page x:Class="Microsoft.Toolkit.Uwp.SampleApp.SamplePages.ViewExtensionsPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="using:Microsoft.Toolkit.Uwp.SampleApp.SamplePages"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:extensions="using:Microsoft.Toolkit.Uwp.UI.Extensions"
extensions:ApplicationViewExtensions.Title="View Extensions"
extensions:StatusBarExtensions.BackgroundColor="Blue"
extensions:StatusBarExtensions.BackgroundOpacity="0.8"
extensions:StatusBarExtensions.ForegroundColor="White"
extensions:StatusBarExtensions.IsVisible="True"
extensions:TitleBarExtensions.BackgroundColor="Blue"
extensions:TitleBarExtensions.ForegroundColor="White"
mc:Ignorable="d">
<Grid Background="{StaticResource Brush-Grey-05}" />
</Page>
馃憤
Thanks for the clarification. That is what I thought. Why does the sample code in the documentation differ?

@zipswich Yes, the docs are wrong. Need a fix.
Docs have now been fixed by @theweavrs I will close this issue
The next version of app should have the fix
Most helpful comment
The next version of app should have the fix