You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: maui-toolkit/Popup/Popup-Events.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ There are four built-in events in the SfPopup control namely:
18
18
19
19
## Opening event
20
20
21
-
The `Opening` event will be fired whenever opening the Popup in the application. It can cancel popup opening with `CancelEventArgs` that contains the following property:
21
+
The [Opening](https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.Maui.Toolkit.Popup.SfPopup.html#Syncfusion_Maui_Toolkit_Popup_SfPopup_Opening) event will be fired whenever opening the Popup in the application. It can cancel popup opening with `CancelEventArgs` that contains the following property:
The `Opened` event will be fired whenever displaying the Popup in the application.
46
+
The [Opened](https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.Maui.Toolkit.Popup.SfPopup.html#Syncfusion_Maui_Toolkit_Popup_SfPopup_Opened) event will be fired whenever displaying the Popup in the application.
47
47
48
48
You can execute your own set of codes once the popup is opened, and visible in the application in its respective event handler.
The `Closing` event will be fired whenever closing the Popup in the application. It can cancel the popup closing with `CancelEventArgs` that contains the following property:
71
+
The [Closing](https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.Maui.Toolkit.Popup.SfPopup.html#Syncfusion_Maui_Toolkit_Popup_SfPopup_Closing) event will be fired whenever closing the Popup in the application. It can cancel the popup closing with `CancelEventArgs` that contains the following property:
The `Closed` event will be fired whenever dismissing the Popup from the view.
96
+
The [Closed](https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.Maui.Toolkit.Popup.SfPopup.html#Syncfusion_Maui_Toolkit_Popup_SfPopup_Closed) event will be fired whenever dismissing the Popup from the view.
97
97
98
98
You can execute your own set of codes once the popup is completely closed in its respective event handler.
The `AcceptCommand` will be fired when clicking the Accept button in the popup footer.
121
+
The [AcceptCommand](https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.Maui.Toolkit.Popup.SfPopup.html#Syncfusion_Maui_Toolkit_Popup_SfPopup_AcceptCommand) will be fired when clicking the Accept button in the popup footer.
122
122
123
123
To handle the Accept button,
124
124
125
125
* Derive a class from the `ICommand`, and implement its interface.
126
126
* To prevent the popup from closing, return false in the `CanExecute()` override method and the `Execute()` override method will not be fired.
127
127
* Else return true in the `CanExecute()` override method and do the required operations in the `Execute()` method.
128
128
* Now, create a property of your custom command type in the view model class and initialize it.
129
-
* Bind the property in the view model to the `AcceptCommand` in XAML.
129
+
* Bind the property in the view model to the [AcceptCommand](https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.Maui.Toolkit.Popup.SfPopup.html#Syncfusion_Maui_Toolkit_Popup_SfPopup_AcceptCommand) in XAML.
130
130
131
131
{% tabs %}
132
132
@@ -199,15 +199,15 @@ class PopupViewModel : INotifyPropertyChanged
199
199
200
200
## Decline command
201
201
202
-
The `DeclineCommand` will be fired when clicking the Decline button in the popup footer.
202
+
The [DeclineCommand](https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.Maui.Toolkit.Popup.SfPopup.html#Syncfusion_Maui_Toolkit_Popup_SfPopup_DeclineCommand) will be fired when clicking the Decline button in the popup footer.
203
203
204
204
To handle the Decline button,
205
205
206
206
* Derive a class from the ICommand, and implement its interface.
207
207
* To prevent the popup from closing, return false in the `CanExecute()` override method and the `Execute()` override method will not be fired.
208
208
* Else return true in the `CanExecute()` override method and do the required operations in the `Execute()` method.
209
209
* Now, create a property of your custom command type in the view model class and initialize it.
210
-
* Bind the property in the view model to the `DeclineCommand` in XAML.
210
+
* Bind the property in the view model to the [DeclineCommand](https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.Maui.Toolkit.Popup.SfPopup.html#Syncfusion_Maui_Toolkit_Popup_SfPopup_DeclineCommand) in XAML.
Copy file name to clipboardExpand all lines: maui-toolkit/Popup/getting-started.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ documentation: ug
9
9
10
10
# Getting Started with .NET MAUI Popup
11
11
12
-
This section guides you through setting up and configuring a `Popup` in your .NET MAUI application. Follow the steps below to add a basic Popup to your project.
12
+
This section guides you through setting up and configuring a [Popup](https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.Maui.Toolkit.Popup.SfPopup.html) in your .NET MAUI application. Follow the steps below to add a basic Popup to your project.
13
13
14
14
{% tabcontents %}
15
15
{% tabcontent Visual Studio %}
@@ -68,7 +68,7 @@ namespace GettingStarted
68
68
## Step 4: Add a Basic Popup
69
69
70
70
1. To initialize the control, import the `Syncfusion.Maui.Toolkit.Popup` namespace into your code.
@@ -100,7 +100,7 @@ public partial class MainPage : ContentPage
100
100
101
101
## Step 5: Displaying popup
102
102
103
-
Display a popup over your view by calling the `Show` method.
103
+
Display a popup over your view by calling the [Show](https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.Maui.Toolkit.Popup.SfPopup.html#Syncfusion_Maui_Toolkit_Popup_SfPopup_Show_System_Boolean_) method.
104
104
105
105
Refer to the following code example for displaying popup using Button's Click event.
106
106
@@ -215,7 +215,7 @@ namespace GettingStarted
215
215
## Step 4: Add a Basic Popup
216
216
217
217
1. To initialize the control, import the `Syncfusion.Maui.Toolkit.Popup` namespace into your code.
@@ -247,7 +247,7 @@ public partial class MainPage : ContentPage
247
247
248
248
## Step 5: Displaying popup
249
249
250
-
Display a popup over your view by calling the `Show` method.
250
+
Display a popup over your view by calling the [Show](https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.Maui.Toolkit.Popup.SfPopup.html#Syncfusion_Maui_Toolkit_Popup_SfPopup_Show_System_Boolean_) method.
251
251
252
252
Refer to the following code example for displaying popup using Button's Click event.
253
253
@@ -361,7 +361,7 @@ namespace GettingStarted
361
361
## Step 4: Add a Basic Popup
362
362
363
363
1. To initialize the control, import the `Syncfusion.Maui.Toolkit.Popup` namespace into your code.
@@ -395,7 +395,7 @@ public partial class MainPage : ContentPage
395
395
396
396
## Close the popup
397
397
398
-
To close the popup programmatically, you can call either the `Dismiss` method or set the IsOpen property to false.
398
+
To close the popup programmatically, you can call either the [Dismiss](https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.Maui.Toolkit.Popup.SfPopup.html#Syncfusion_Maui_Toolkit_Popup_SfPopup_Dismiss) method or set the IsOpen property to false.
399
399
400
400
Refer to the following code example for dismissing popup.
401
401
@@ -419,17 +419,17 @@ The .NET MAUI Popup (SfPopup) allows showing the popup content at various positi
419
419
420
420
The following list of options is available to position the SfPopup in the desired position:
421
421
422
-
*`Center Positioning`: Use the `IsOpen` property or `Show` method to display the SfPopup at the center.
423
-
*`Absolute Positioning`: Use the `Show(x-position, y-position)` to display the SfPopup at the specified X and y position.
424
-
*`Relative Positioning`: Use the `ShowRelativeToView(View, RelativePosition)` to display the SfPopup at any of the 8 positions relative to the specified view.
425
-
*`Absolute relative positioning`: Use the `ShowRelativeToView(View, RelativePosition,x position,y position)` to display the SfPopup at an absolute x,y coordinate from the relative position of the specified view.
422
+
*`Center Positioning`: Use the [IsOpen](https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.Maui.Toolkit.Popup.SfPopup.html#Syncfusion_Maui_Toolkit_Popup_SfPopup_IsOpen) property or [Show](https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.Maui.Toolkit.Popup.SfPopup.html#Syncfusion_Maui_Toolkit_Popup_SfPopup_Show_System_Boolean_) method to display the SfPopup at the center.
423
+
*`Absolute Positioning`: Use the [Show(x-position, y-position)](https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.Maui.Toolkit.Popup.SfPopup.html#Syncfusion_Maui_Toolkit_Popup_SfPopup_Show_System_Double_System_Double_) to display the SfPopup at the specified X and y position.
424
+
*`Relative Positioning`: Use the [ShowRelativeToView(View, RelativePosition)](https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.Maui.Toolkit.Popup.SfPopup.html#Syncfusion_Maui_Toolkit_Popup_SfPopup_ShowRelativeToView_Microsoft_Maui_Controls_View_Syncfusion_Maui_Toolkit_Popup_PopupRelativePosition_System_Double_System_Double_) to display the SfPopup at any of the 8 positions relative to the specified view.
425
+
*`Absolute relative positioning`: Use the [ShowRelativeToView(View, RelativePosition,x position,y position)](https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.Maui.Toolkit.Popup.SfPopup.html#Syncfusion_Maui_Toolkit_Popup_SfPopup_ShowRelativeToView_Microsoft_Maui_Controls_View_Syncfusion_Maui_Toolkit_Popup_PopupRelativePosition_System_Double_System_Double_) to display the SfPopup at an absolute x,y coordinate from the relative position of the specified view.
426
426
427
427
## Customizing layouts
428
428
429
-
By default, choose a layout from the following available layouts in the SfPopup by using the `AppearanceMode` property.
429
+
By default, choose a layout from the following available layouts in the SfPopup by using the [AppearanceMode](https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.Maui.Toolkit.Popup.SfPopup.html#Syncfusion_Maui_Toolkit_Popup_SfPopup_AppearanceMode) property.
430
430
431
-
*`OneButton`: Shows the SfPopup with one button in the footer view. This is the default value.
432
-
*`TwoButton`: Shows the SfPopup with two buttons in the footer view.
431
+
*[OneButton]()https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.Maui.Toolkit.Popup.PopupButtonAppearanceMode.html#Syncfusion_Maui_Toolkit_Popup_PopupButtonAppearanceMode_OneButton) : Shows the SfPopup with one button in the footer view. This is the default value.
432
+
*[TwoButton](https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.Maui.Toolkit.Popup.PopupButtonAppearanceMode.html#Syncfusion_Maui_Toolkit_Popup_PopupButtonAppearanceMode_TwoButton): Shows the SfPopup with two buttons in the footer view.
433
433
434
434
Also, customize the entire popup view by loading the templates or custom views for the header, body, and footer.
435
435
@@ -487,7 +487,7 @@ namespace GettingStarted
487
487
488
488
## Load template view in the popup body
489
489
490
-
Any view can be added as popup content by using the `ContentTemplate` property to refresh it. Refer to the following code example in which a label is added as popup content.
490
+
Any view can be added as popup content by using the [ContentTemplate](https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.Maui.Toolkit.Popup.SfPopup.html#Syncfusion_Maui_Toolkit_Popup_SfPopup_ContentTemplate) property to refresh it. Refer to the following code example in which a label is added as popup content.
0 commit comments