0%

OOBEPageControl

1
public sealed partial class OOBEPageControl : UserControl

We moved all namespaces into a single namespace. No matter which (WinUICommunity) library you use, the namespace is always as follows
For use in the Xaml:
xmlns:wuc="using:WinUICommunity"
For use in the Csharp:
using WinUICommunity;

Attributes

Name
Title
Description
HeroImage
PageContent
HeroImageHeight

Example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<wuc:OOBEPageControl Title="FileExplorer Preview"
HeroImage="ms-appx:///Assets/Modules/OOBE/FileExplorer.png"
Description="These settings allow you to manage your Windows File Explorer custom preview handlers.">
<wuc:OOBEPageControl.PageContent>
<StackPanel Orientation="Vertical" ChildrenTransitions="{StaticResource SettingsCardsAnimations}">
<TextBlock Text="How to enable"
Style="{ThemeResource OobeSubtitleStyle}" />
<StackPanel Orientation="Horizontal" Spacing="12" Margin="0,24,0,0">
<Button Content="Open Settings"/>
<HyperlinkButton Style="{StaticResource TextButtonStyle}">
<TextBlock Text="Learn more about File Explorer add-ons" TextWrapping="Wrap" />
</HyperlinkButton>
</StackPanel>
</StackPanel>
</wuc:OOBEPageControl.PageContent>
</wuc:OOBEPageControl>

Demo

you can run demo and see this feature.

WinUICommunity