diff --git a/README.md b/README.md
index 40d5e76..d7b743b 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,162 @@
# how-to-access-the-expander-instance-inside-the-data-template-in-.net-maui-expander
This example demonstrates about how to access the SfExpander control added inside the .NET MAUI SfPopupLayout.ContentTemplate(DataTemplate).
+
+You can access a named SfExpander defined inside DataTemplate of SfPopup using Behavior.
+
+XAML
+
+In SfPopup, behavior added to parent of SfExpander.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+C#
+In ChildAdded event you will get the instance of Expander.
+
+ public class Behavior:Behavior
+
+ {
+ StackLayout stack;
+ SfExpander expander;
+
+ protected override void OnAttachedTo(StackLayout bindable)
+ {
+ stack = bindable;
+ stack.ChildAdded += Stack_ChildAdded;
+ base.OnAttachedTo(bindable);
+ }
+
+ private void Stack_ChildAdded(object? sender, ElementEventArgs e)
+ {
+ //Method 1 : Get SfExpander reference using StackLayout.ChildAdded Event
+ if(e.Element is SfExpander)
+ {
+ expander = e.Element as SfExpander;
+ }
+ }
+
+ protected override void OnDetachingFrom(StackLayout bindable)
+ {
+ stack.ChildAdded -= Stack_ChildAdded;
+ stack = null;
+ expander = null;
+ base.OnDetachingFrom(bindable);
+ }
+ }
+
+C#
+You can also get the Expander using FindByName method from Parent element.
+
+ internal class Behavior:Behavior
+ {
+ StackLayout stack;
+ Button button;
+ SfExpander expander;
+
+ protected override void OnAttachedTo(StackLayout bindable)
+ {
+ stack = bindable;
+ stack.ChildAdded += Stack_ChildAdded;
+ base.OnAttachedTo(bindable);
+ }
+
+ private void Stack_ChildAdded(object? sender, ElementEventArgs e)
+ {
+ if(e.Element is Button)
+ {
+ button = e.Element as Button;
+ button.Clicked += Button_Clicked;
+ }
+ }
+
+ private void Button_Clicked(object? sender, EventArgs e)
+ {
+ //Method 2 : Get SfExpander reference using FindByName
+ expander = stack.FindByName("firstExpander");
+ App.Current!.MainPage!.DisplayAlert("Information", "first Expander instance is obtained and Expanded/Collapsed", "Ok");
+
+ if (expander.IsExpanded)
+ {
+ expander.IsExpanded = false;
+ }
+ else
+ {
+ expander.IsExpanded = true;
+ }
+ }
+
+ protected override void OnDetachingFrom(StackLayout bindable)
+ {
+ stack.ChildAdded -= Stack_ChildAdded;
+ button.Clicked -= Button_Clicked;
+ button = null;
+ expander = null;
+ base.OnDetachingFrom(bindable);
+ }
+ }
+