Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hello, I edited your project and placed the AutoCompleteEntry element in my own ContentViews to add my properties (HeaderProperty, ListOfItemsProperty, TxtProperty). Unfortunately, I am solving a problem with the TextProperty property binding. #8

Open
GranakPavel opened this issue Jan 26, 2024 · 0 comments

Comments

@GranakPavel
Copy link

GranakPavel commented Jan 26, 2024

Hello, I edited Your project and placed the AutoCompleteEntry element in my own ContentViews to add my properties (HeaderProperty, ListOfItemsProperty, TxtProperty). Unfortunately, I am solving a problem with the TextProperty property binding.
NewPage1ViewModel is used on the NewPage1.xaml page, where in the constructor I set the default value this.Text01 = "The default value of the Text01 property when the VM is initialized";, unfortunately, this value is not written when the application starts in the required <controls:AutoCompleteEntryContentView Header="Vehicle brand:" Txt="{Binding Text01, Mode=TwoWay}" ListOfItems="{Binding ListItemText01, Mode=TwoWay}" ></controls:AutoCompleteEntryContentView>.
Unfortunately, binding to the Txt item is broken. The txt entry is set 2x when the project is started, the first time with the correct text from the VM and the second time as an empty string.
Can someone help me with this problem?
(google translator)

MauiAppAutoCompeteEntry.zip
https://drive.google.com/file/d/14APs_dURRwzPWWUnmTjUGzOQiAC_1O9w/view?usp=sharing

.Net 7
Tested on Samsung Xcover6 pro (Android 13) and Windows 11 (22H2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant