From da694b666103d318394745bcc3ccc983a8804e97 Mon Sep 17 00:00:00 2001 From: Zakaria Tahri <101801384+Zakariathr22@users.noreply.github.com> Date: Tue, 14 Jan 2025 10:04:00 +0100 Subject: [PATCH] Add Popup Control Page (#1723) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description This pull request introduces a new page for the `Popup` control, providing an example and details for developers to better understand and utilize the control, main changes are: 1. Added Popup Control Details in `ControlInfoData.json` - Included a new entry for the Popup control, with relevant descriptions and metadata. - Created a New Page for the Popup Control 2. The page includes an example that demonstrates the Popup control’s capabilities: - Light dismissal (IsLightDismissEnabled). - Offset positioning (HorizontalOffset and VerticalOffset). - Provided detailed comments in the example code for better understanding and usage. ## Motivation and Context Closes #1713 ## How Has This Been Tested? **Manually Tested** ## Screenshots (if appropriate): ![image](https://github.com/user-attachments/assets/caf93b37-523b-4980-946e-8ee7b08d0b8f) ![image](https://github.com/user-attachments/assets/132ced3d-fec8-4d20-a271-1dc561e7e4cd) ## Types of changes - [ ] Bug fix (non-breaking change which fixes an issue) - [X] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) --------- Co-authored-by: Niels Laute --- WinUIGallery/Assets/ControlImages/Popup.png | Bin 0 -> 3595 bytes WinUIGallery/ControlPages/PopupPage.xaml | 111 ++++++++++++++++++++ WinUIGallery/ControlPages/PopupPage.xaml.cs | 53 ++++++++++ WinUIGallery/DataModel/ControlInfoData.json | 26 ++++- WinUIGallery/WinUIGallery.csproj | 7 ++ 5 files changed, 196 insertions(+), 1 deletion(-) create mode 100644 WinUIGallery/Assets/ControlImages/Popup.png create mode 100644 WinUIGallery/ControlPages/PopupPage.xaml create mode 100644 WinUIGallery/ControlPages/PopupPage.xaml.cs diff --git a/WinUIGallery/Assets/ControlImages/Popup.png b/WinUIGallery/Assets/ControlImages/Popup.png new file mode 100644 index 0000000000000000000000000000000000000000..f4b04d92d3d1e31d4b51047e93043e6f7676bb23 G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mVYoGt`QaO-$~+l`&Gb_Pc6ASpEPB z2DdI>gulG>0{m}h7v^Q(NgFR6XgiV8g4clkt$Gd$p+nJ-*{p2WC0+m=GAXa;nC6qu zT;tfLU1oVyeDudcAOa5#(Sk?NJ%5ydV03LU(u#AHrfgaY8w)@i8yj%*#&x*ykuB$? zDHncHkT{htrZ2oxz_FO?^dc+I5>X2|y9cY0I)fu^${J*Bjvi#v^sIfNL$=>kBG&R3 zBifTNLJ;kv`~wC2(*^0wz1WKt4%rC?RsgF{57^ZL!Idmd65z zMIo@sn|Z6Y7EWhCd7wBz%bOm)1<*i8c{gtsUeTj3lM(9~l-<33s4mOL7>xeSr^L-0MM@DfpSFDoD?=T&H4C)^*?Oc z2!54AAd2id^XYH~3XO$g>>BP7N1WgrPZ>1GA=PfwcT!ow8VB8RD@`osHLg{JP3=u3 zSSjool=ui6K4G9iHAl+v08|bd$f05_PeE&z+eEE{iIov8N6Qo>R!#n?Ct;$Q*{Zgi zle>B=J9w~O2hF4m#G*yEbc+QX;ULx$<1zqK2tyaj{KAWu$)g?wm&4D27jqwy&U-B4 zl~cKX3>FQjN&<=})bG-6(S+&SQ+LAuiXQdxvx>Icyum<~|FBDh-yOy?tix&0Re6h7dXr>zZvXiUZ z#D|H5quIrhl$0@m%?6C>8}&@hAg&X=;e39Se1CvUkwo1rrnUUB;{pheep0l!E_H_b zJ%qb{*gP(++yow7QrQUuc3!vmla=Q6Dx?Ux{Uw; literal 0 HcmV?d00001 diff --git a/WinUIGallery/ControlPages/PopupPage.xaml b/WinUIGallery/ControlPages/PopupPage.xaml new file mode 100644 index 000000000..4276d02e3 --- /dev/null +++ b/WinUIGallery/ControlPages/PopupPage.xaml @@ -0,0 +1,111 @@ + + + + + + + +