How to reload/refresh a particular xaml section(not data) in on page appearing?
you could encapsulate the part you want to refresh and call the InitializeComponent Method, but doing this costs a lot of performance and should not be done.
Why exactly do you want to reload a xaml of a Page? (I did never encounter a case where this was needed. maybe there is a overall better solution for you there instead of doing what should not be done
I am using a third party video control, on disappearing method the video section in bindings becomes null.
If i can initialize some how, it may work!
Please share if you have any code reload a particular xaml section.
Thanks in advance.
Sorry i dont have any Code about that.
What video Control are you using and how does this lost binding affect your project in detail?
You might be able to prepare a small test project to take a look?
i am using https://github.com/Baseflow/XamarinMediaManager video control.
Bug in control : https://github.com/Baseflow/XamarinMediaManager/issues/616
i am sure you did, but all the steps in the link in one of the comments are done?https://github.com/Baseflow/XamarinMediaManager#add-video-player-to-the-ui
as said you could pack your videoControl inside a custom Contentview and just call the views "InitializeComponent" method in your Appearing method(this creates your view from Xaml).
For a deeper analysis i would need to build a test project later and see whats happening there.
i will try by moving my xaml to content view and let you know.
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies