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

Binding Watermark Error #2

Open
tartesso26 opened this issue Mar 3, 2021 · 1 comment
Open

Binding Watermark Error #2

tartesso26 opened this issue Mar 3, 2021 · 1 comment

Comments

@tartesso26
Copy link

tartesso26 commented Mar 3, 2021

Binding Watermark property generate an error:
Object of type 'System.Windows.Data.Binding' cannot be converted to type 'System.String'

in modelview i have
public string Login_filter {
get { return login_filter; }
set
{
login_filter = value;
OnPropertyChanged("Login_filter");
}
}

in view

xmlns:localWM="clr-namespace:WPFWaterMarkTextBox;assembly=WPFWaterMarkTextBox"

<localWM:TextBoxLabelHrzs
Name="name_filter"
Watermark="{Binding Name_filter}"
TextProp="{Binding Name_filter, Mode=TwoWay}"
/>

@tartesso26
Copy link
Author

maybe problem is that my proyect is .net core3.1 ???

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