From the course: XAML Fundamentals: Building Powerful UIs for Cross-Platform Applications
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Overview: Other concepts - XAML Tutorial
From the course: XAML Fundamentals: Building Powerful UIs for Cross-Platform Applications
Overview: Other concepts
- [Instructor] Building an object mapper, XAML to .NET types, has its challenges. One of the ones I want to look at in this video is the idea of assigning values to properties in your XAML file. So look at line nine. I'm assigning the value of 20 to the Width property; and online 10, I'm assigning the value of 5.125 to the Height property. Now, in XAML, this is a string value; of course, in .NET, this is a double value, so there has to be a type converter that converts from a string to the correct .NET type, and there is. There is different various type converters part of .NET. Now, look at this one, this may be less obvious. Now, I'm not allowed to put text in here, so what if I go up here and I type in abc? Well, you see I get an error that says that's an invalue for property width, because you can't convert a string like this to a double value, but it appears to be working down here where I've got 30…
Contents
-
-
-
Why markup languages are useful for UI definition7m 21s
-
(Locked)
The Microsoft UI markup language4m 16s
-
(Locked)
What frameworks use XAML?4m 21s
-
(Locked)
Overview: XAML namespaces3m 3s
-
(Locked)
Overview: Elements and properties2m 39s
-
(Locked)
Overview: Content1m 40s
-
(Locked)
Overview: Other concepts2m 59s
-
-
-
-
-
-
-
-
-
-
-
-