Binding broken #38
filip-rakoczy-tfs
started this conversation in
General
Replies: 1 comment
-
Try doing this: text field: TextField compoment .xaml |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When binding a TextField to a Text property in my ViewModel I cannot get the text from the control to successfully propagate to the property. Text is always null. I'm using MVVM Community toolkit.
Add Command:
` [RelayCommand]
async Task Add()
{
if (string.IsNullOrWhiteSpace(Text))
return;
text field:
[ObservableProperty] private string text;
TextField compoment .xaml
<mdc:TextField Text="Please" Grid.Row="1" SupportingText="None" LabelText="Add Task"/>
Beta Was this translation helpful? Give feedback.
All reactions