Learn how to enable the style defined for the page to be conditionally applied to a control based on the values set for the input property.
- [Instructor] I don't always want the quantity…background to be red, I really wanna use that…in a case where maybe I have an invalid value.…So I wanna change my style now,…and instead of just setting it directly,…I actually wanna use a trigger…and this is going to be a property trigger.…So it's gonna be a trigger based on a particular property.…You can also use event triggers or data triggers,…or you can reference other items in the page.…So inside my triggers, I'm gonna add a trigger.…
I'm gonna set the target type at the end to be entry.…Then I'm gonna set the property to be text,…'cause that's the property on the entry…that I wanna look at, then a value of zero.…So what I'm saying is, in the case…where you have an entry and the property…of that text is zero, or rather the value…of that text is zero, now I want you to set…this background color to red.…So that the quantity currently is not set to zero…so that doesn't reflect here in the previewer,…but let's go ahead and run it and see what happens.…
What we should be able to do is navigate to our order form,…
- Creating a Xamarin.Forms solution
- Navigating between pages
- Screen layouts and controls in Xamarin.Forms
- Data binding
- Adding style to a control
- Using a Xamarin.Essentials package
- Embedding native controls in your shared forms
- Writing custom renderers
Skill Level Beginner
Xamarin Development: Authentication and Identitywith Matt Milner1h 32m Intermediate
What you should know1m 21s
2. Layout and Controls
3. Native Platform Integration
4. Native Controls and Renderers
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.