Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit 5acf5fd

Browse files
authored
[iOS] Fix missing binding context for popup view (#1003)
* [iOS] Fix missing binding context for popup view * Fix handle binding context changes.
1 parent 8ba1904 commit 5acf5fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/CommunityToolkit/Xamarin.CommunityToolkit/Views/Popup/iOS/PopupRenderer.ios.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ void CreateControl()
121121
Control = Platform.CreateRenderer(contentPage);
122122
Platform.SetRenderer(contentPage, Control);
123123
contentPage.Parent = Application.Current.MainPage;
124+
contentPage.SetBinding(VisualElement.BindingContextProperty, new Binding { Source = Element, Path = VisualElement.BindingContextProperty.PropertyName });
124125
}
125126

126127
void SetViewController()

0 commit comments

Comments
 (0)