-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #210 from AuroraZiling/main
[Feat&Docs] SukiSideMenu `IsToggleButtonVisible` + 2 Docs
- Loading branch information
Showing
8 changed files
with
152 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Settings Layout | ||
|
||
You can present `settings` through a `SettingsLayout`, which will update with the width of the window. | ||
|
||
## Show | ||
|
||
<img src="/controls/layout/settingslayout.gif" /> | ||
|
||
## Example | ||
|
||
```xml | ||
<suki:SettingsLayout> | ||
<suki:SettingsLayout.Items> | ||
<objectModel:ObservableCollection x:TypeArguments="suki:SettingsLayoutItem"> | ||
<suki:SettingsLayoutItem Header="Settings Part1"> | ||
<suki:SettingsLayoutItem.Content> | ||
<Border Background="LightGray" Height="300" /> | ||
</suki:SettingsLayoutItem.Content> | ||
</suki:SettingsLayoutItem> | ||
|
||
<suki:SettingsLayoutItem Header="Settings Part 2"> | ||
<suki:SettingsLayoutItem.Content> | ||
<Border Background="LightGray" Height="300" /> | ||
</suki:SettingsLayoutItem.Content> | ||
</suki:SettingsLayoutItem> | ||
|
||
<suki:SettingsLayoutItem Header="Settings Part 3"> | ||
<suki:SettingsLayoutItem.Content> | ||
<Border Background="LightGray" Height="300" /> | ||
</suki:SettingsLayoutItem.Content> | ||
</suki:SettingsLayoutItem> | ||
</objectModel:ObservableCollection> | ||
</suki:SettingsLayout.Items> | ||
</suki:SettingsLayout> | ||
``` | ||
|
||
## See Also | ||
|
||
[Demo: SukiUI.Demo/Features/Theming/ThemingView.axaml](https://github.com/kikipoulet/SukiUI/blob/main/SukiUI.Demo/Features/Theming/ThemingView.axaml) | ||
|
||
[API: Controls/SettingsLayout.axaml.cs](https://github.com/kikipoulet/SukiUI/blob/main/SukiUI/Controls/SettingsLayout.axaml.cs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# SukiWindow | ||
|
||
In SukiUI, `SukiWindow` replaces `Window` as the basis for building apps. | ||
|
||
## Show | ||
|
||
<img src="/controls/layout/sukiwindow.webp" /> | ||
|
||
## Example | ||
|
||
```xml | ||
<suki:SukiWindow> | ||
<suki:SukiWindow.LogoContent> | ||
<!-- Logo --> | ||
</suki:SukiWindow.LogoContent> | ||
|
||
<suki:SukiWindow.MenuItems> | ||
<!-- Menu --> | ||
</suki:SukiWindow.MenuItems> | ||
</suki:SukiWindow> | ||
``` | ||
|
||
## See Also | ||
|
||
[Demo: SukiUI.Demo/SukiUIDemoView.axaml](https://github.com/kikipoulet/SukiUI/blob/main/SukiUI.Demo/SukiUIDemoView.axaml) | ||
|
||
[API: Controls/SukiWindow.axaml.cs](https://github.com/kikipoulet/SukiUI/blob/main/SukiUI/Controls/SukiWindow.axaml.cs) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Settings Layout | ||
|
||
可以通过 `SettingsLayout` 方便地呈现 App 的设置页。同时,它也会随着窗口宽度的变化而更新。 | ||
|
||
## 展示 | ||
|
||
<img src="/controls/layout/settingslayout.gif" /> | ||
|
||
## 示例 | ||
|
||
```xml | ||
<suki:SettingsLayout> | ||
<suki:SettingsLayout.Items> | ||
<objectModel:ObservableCollection x:TypeArguments="suki:SettingsLayoutItem"> | ||
<suki:SettingsLayoutItem Header="Settings Part1"> | ||
<suki:SettingsLayoutItem.Content> | ||
<Border Background="LightGray" Height="300" /> | ||
</suki:SettingsLayoutItem.Content> | ||
</suki:SettingsLayoutItem> | ||
|
||
<suki:SettingsLayoutItem Header="Settings Part 2"> | ||
<suki:SettingsLayoutItem.Content> | ||
<Border Background="LightGray" Height="300" /> | ||
</suki:SettingsLayoutItem.Content> | ||
</suki:SettingsLayoutItem> | ||
|
||
<suki:SettingsLayoutItem Header="Settings Part 3"> | ||
<suki:SettingsLayoutItem.Content> | ||
<Border Background="LightGray" Height="300" /> | ||
</suki:SettingsLayoutItem.Content> | ||
</suki:SettingsLayoutItem> | ||
</objectModel:ObservableCollection> | ||
</suki:SettingsLayout.Items> | ||
</suki:SettingsLayout> | ||
``` | ||
|
||
## 参阅 | ||
|
||
[Demo: SukiUI.Demo/Features/Theming/ThemingView.axaml](https://github.com/kikipoulet/SukiUI/blob/main/SukiUI.Demo/Features/Theming/ThemingView.axaml) | ||
|
||
[API: Controls/SettingsLayout.axaml.cs](https://github.com/kikipoulet/SukiUI/blob/main/SukiUI/Controls/SettingsLayout.axaml.cs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# SukiWindow | ||
|
||
在 SukiUI 中, `SukiWindow` 代替 `Window` 成为构建 App 的基础 | ||
|
||
## 展示 | ||
|
||
<img src="/controls/layout/sukiwindow.webp" /> | ||
|
||
## 示例 | ||
|
||
```xml | ||
<suki:SukiWindow> | ||
<suki:SukiWindow.LogoContent> | ||
<!-- Logo --> | ||
</suki:SukiWindow.LogoContent> | ||
|
||
<suki:SukiWindow.MenuItems> | ||
<!-- Menu --> | ||
</suki:SukiWindow.MenuItems> | ||
</suki:SukiWindow> | ||
``` | ||
|
||
## 参阅 | ||
|
||
[Demo: SukiUI.Demo/SukiUIDemoView.axaml](https://github.com/kikipoulet/SukiUI/blob/main/SukiUI.Demo/SukiUIDemoView.axaml) | ||
|
||
[API: Controls/SukiWindow.axaml.cs](https://github.com/kikipoulet/SukiUI/blob/main/SukiUI/Controls/SukiWindow.axaml.cs) |