Open vova1987 opened 2 years ago
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
@StephaneDelcroix
Verified this issue with Visual Studio Enterprise 17.8.0 Preview 1.0(.NET8). Can repro on android platform with sample project. TemplateBindingNotAppliedBug.zip
Using the standard .NET MAUI template in VS2022, version 17.3.6. .NET Core version is 6.0 Development environment is Window 10 64 bit.
Steps to reproduce:
Result: Template binding not applied and no binding errors appear. The control template does get applied, but custom dependency properties are NOT visible. Workround: Move the style to the MainPage resources section and re-run the project. The binding will now be applied and the custom dependency properties become visible. Another (strange) workaround is to apply some changes (any changes, e.g add another container around the main layout) to the style with hot-reload while debugging. This will refresh the view and the templateBinding will now work!
An example solution is attached.
TemplateBindingNotAppliedBug.zip