Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Is RemoveBinding necessary or can I just call SetBinding?

$
0
0

Should I always call RemoveBinding before SetBinding or can I just use SetBinding naively without worrying about previously set bindings?

What about using Remove- and SetBinding against Command properties, should they be used or should I just assign my ViewModel's commands directly to a control's Command?

_refreshToolbarItem.Command = viewModel.LoadMeetingsCommand;

or

_refreshToolbarItem.SetBinding(ToolbarItem.CommandProperty, "LoadMeetingsCommand");


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>