0%

SettingsPageControl

1
public sealed partial class SettingsPageControl : 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
ModuleTitle
ModuleDescription
ModuleImageSource
PrimaryLinks
SecondaryLinksHeader
SecondaryLinks
ModuleContent

Example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<wuc:SettingsPageControl ModuleDescription="Microsoft PowerToys is a set of utilities for power users to tune and streamline their Windows experience for greater productivity. Made with 💗 by Microsoft and the PowerToys community."
ModuleImageSource="ms-appx:///Assets/PT.png"
ModuleTitle="General"
SecondaryLinksHeader="Related information">
<wuc:SettingsPageControl.ModuleContent>
<StackPanel Orientation="Vertical" ChildrenTransitions="{StaticResource SettingsCardsAnimations}">
<!-- Settings Here -->
</StackPanel>
</wuc:SettingsPageControl.ModuleContent>

<wuc:SettingsPageControl.PrimaryLinks>
<wuc:PageLink Link="https://aka.ms/powertoys"
Text="Documentation" />
<wuc:PageLink Link="https://aka.ms/powertoys"
Text="GitHub repository" />
<wuc:PageLink Link="https://aka.ms/powerToysReportBug"
Text="Report a bug" />
<wuc:PageLink Link="https://aka.ms/powerToysRequestFeature"
Text="Request a feature" />
</wuc:SettingsPageControl.PrimaryLinks>

<wuc:SettingsPageControl.SecondaryLinks>
<wuc:PageLink Link="http://go.microsoft.com/fwlink/?LinkId=521839"
Text="Privacy statement" />
<wuc:PageLink Link="https://github.com/microsoft/PowerToys/blob/master/NOTICE.md"
Text="Open-source notice" />
</wuc:SettingsPageControl.SecondaryLinks>
</wuc:SettingsPageControl>

Demo

you can run demo and see this feature.

WinUICommunity