Skip to content

Commit aa946e4

Browse files
committed
Add SamplePanel Sample
1 parent 1a460e7 commit aa946e4

File tree

4 files changed

+52
-0
lines changed

4 files changed

+52
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ Install-Package DevWinUI
135135
## 🔥 DevWinUI.Controls 🔥
136136
### ⚡ What’s Inside? ⚡
137137

138+
- ✨ SamplePanel
138139
- ✨ SpectrumAnalyzer
139140
- ✨ WaveformTimeline
140141
- ✨ LoopPanel
@@ -323,6 +324,9 @@ Install-Package DevWinUI.ContextMenu
323324

324325
## 🕰️ History 🕰️
325326

327+
### SamplePanel
328+
![SamplePanel](https://raw.githubusercontent.com/ghost1372/DevWinUI-Resources/refs/heads/main/DevWinUI-Docs/SamplePanel.png)
329+
326330
### SpectrumAnalyzer
327331
![SpectrumAnalyzer](https://raw.githubusercontent.com/ghost1372/DevWinUI-Resources/refs/heads/main/DevWinUI-Docs/SpectrumAnalyzer.gif)
328332

dev/DevWinUI.Gallery/Assets/NavViewMenu/AppData.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,13 @@
162162
"ImagePath": "ms-appx:///Assets/Fluent/RatingControl.png",
163163
"IsSpecialSection": false,
164164
"Items": [
165+
{
166+
"UniqueId": "DevWinUIGallery.Views.SamplePanelPage",
167+
"Title": "Sample Panel",
168+
"Subtitle": "Sample panel with 2 Side.",
169+
"IsNew": true,
170+
"ImagePath": "ms-appx:///Assets/Fluent/AppBarSeparator.png"
171+
},
165172
{
166173
"UniqueId": "DevWinUIGallery.Views.SpectrumAnalyzerPage",
167174
"Title": "Spectrum Analyzer",
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<Page x:Class="DevWinUIGallery.Views.SamplePanelPage"
3+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
6+
xmlns:dev="using:DevWinUI"
7+
xmlns:local="using:DevWinUIGallery"
8+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
9+
mc:Ignorable="d">
10+
11+
<ScrollViewer>
12+
<StackPanel Margin="10" dev:PanelAttach.ChildrenTransitions="Default" Spacing="10">
13+
<local:ControlExample DocPage="controls/samplePanel">
14+
<local:ControlExample.Xaml>
15+
<x:String>
16+
&lt;dev:SamplePanel /&gt;
17+
</x:String>
18+
</local:ControlExample.Xaml>
19+
20+
<dev:SamplePanel Header="Header">
21+
<dev:SamplePanel.MainContent>
22+
<TextBlock Text="Main Content" />
23+
</dev:SamplePanel.MainContent>
24+
<dev:SamplePanel.SideContent>
25+
<TextBlock Text="Side Content" />
26+
</dev:SamplePanel.SideContent>
27+
</dev:SamplePanel>
28+
</local:ControlExample>
29+
</StackPanel>
30+
</ScrollViewer>
31+
32+
</Page>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
namespace DevWinUIGallery.Views;
2+
3+
public sealed partial class SamplePanelPage : Page
4+
{
5+
public SamplePanelPage()
6+
{
7+
InitializeComponent();
8+
}
9+
}

0 commit comments

Comments
 (0)