From the course: Developing UWP Apps: 5 Bindings, Commands, and Converters

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Converters in action

Converters in action

- [Instructor] So we're back over here one last time in this session in our UWP Tagger app we've been working on in this series to take a look at converters or value converters. You may not have noticed, but throughout this session I have actually been implementing converters here and there for areas that made sense. So I thought it might make sense to just walk through and take a look at some of these converters that I've already implemented before we add anymore. So the first one I wanted to look at is on the start page. We've got this simple converter that's just a Boolean to visible converter. We'll see where that's used on this page. And we see that that's actually being used to display the visibility of this no connection label that we added in our networking and storage session. So I'm binding the is disconnected property in the view model, passing it the converter of this static resource, Boolean to visible converter. And then I'm saying, if the binding doesn't exist or…

Contents