Ghost1372

everything can be handy

OutOfBoxPage

Attributes

Name
Title
Description
HeroImage
HeroImageHeight
UseTopHeroImage
ActionContent
Content
ContentMargin
PrimaryLinks
PrimaryLinkItemsPanelTemplate
PrimaryLinksItemTemplate
SecondaryLinks
SecondaryLinksHeader
SecondaryLinkItemsPanelTemplate
SecondaryLinksItemTemplate
SecondaryLinksMargin

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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<dev:OutOfBoxPage Title="Awake"
Description="A convenient way to keep your PC awake on-demand."
HeroImage="ms-appx:///Assets/Modules/Awake.png"
SecondaryLinksHeader="Attribution">
<dev:OutOfBoxPage.Content>
<StackPanel dev:PanelAttach.ChildrenTransitions="Default"
Orientation="Vertical">
<dev:SettingsCard Header="Enable Awake"
HeaderIcon="{dev:BitmapIcon Source=/Assets/Fluent/awake.png}">
<ToggleSwitch OffContent="Off"
OnContent="On" />
</dev:SettingsCard>
<InfoBar Title="The system administrator is forcing this setting."
IsClosable="False"
IsOpen="True"
Severity="Informational" />

<dev:SimpleSettingsGroup Header="Behavior">

<dev:SettingsCard Description="Manage the state of your device when Awake is active"
Header="Mode"
HeaderIcon="{dev:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
Glyph=&#xE945;}">
<ComboBox MinWidth="{StaticResource SettingActionControlMinWidth}"
SelectedIndex="0">
<ComboBoxItem Content="Keep using the selected power plan" />
<ComboBoxItem Content="Keep awake indefinitely" />
<ComboBoxItem Content="Keep awake for a time interval" />
<ComboBoxItem Content="Keep awake until expiration" />
</ComboBox>
</dev:SettingsCard>

<dev:SettingsExpander Description="Keep custom awake state until a specific date and time"
Header="End date and time"
HeaderIcon="{dev:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
Glyph=&#xEC92;}"
IsExpanded="True">
<dev:SettingsExpander.Items>
<dev:SettingsCard Header="End date">
<DatePicker />
</dev:SettingsCard>
<dev:SettingsCard Header="End time">
<TimePicker ClockIdentifier="24HourClock" />
</dev:SettingsCard>
</dev:SettingsExpander.Items>
</dev:SettingsExpander>

<dev:SettingsCard Header="Interval before returning to the previous awakeness state"
HeaderIcon="{dev:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
Glyph=&#xE916;}">

<StackPanel MinWidth="{StaticResource SettingActionControlMinWidth}"
Orientation="Horizontal">
<NumberBox Width="96"
HorizontalAlignment="Left"
Header="Hours"
LargeChange="5"
Minimum="0"
SmallChange="1"
SpinButtonPlacementMode="Compact" />
<NumberBox Width="96"
Margin="8,0,0,0"
HorizontalAlignment="Left"
Header="Minutes"
LargeChange="5"
Maximum="60"
Minimum="0"
SmallChange="1"
SpinButtonPlacementMode="Compact" />
</StackPanel>
</dev:SettingsCard>

<dev:SettingsCard Description="This setting is only available when keeping the PC awake"
Header="Keep screen on"
HeaderIcon="{dev:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
Glyph=&#xE7F4;}">
<ToggleSwitch />
</dev:SettingsCard>
</dev:SimpleSettingsGroup>
</StackPanel>
</dev:OutOfBoxPage.Content>

<dev:OutOfBoxPage.PrimaryLinks>
<dev:OutOfBoxPageLink Link="https://aka.ms/PowerToysOverview_Awake"
Text="Learn more about Awake" />
</dev:OutOfBoxPage.PrimaryLinks>
<dev:OutOfBoxPage.SecondaryLinks>
<dev:OutOfBoxPageLink Link="https://Awake.den.dev"
Text="Den Delimarsky's Awake" />
</dev:OutOfBoxPage.SecondaryLinks>
</dev:OutOfBoxPage>

DevWinUI

Demo

you can run demo and see this feature.

0%