Adds FontImage Markup Extension for FontImageSource (#6398)
authorAndrew Hoefling <andrew@hoeflingsoftware.com>
Fri, 28 Jun 2019 00:23:32 +0000 (20:23 -0400)
committerSamantha Houts <samhouts@users.noreply.github.com>
Fri, 28 Jun 2019 00:23:32 +0000 (17:23 -0700)
commitefa9cf4a02cb22749bce258b68829f5a1098f5e0
treebbbd017c881543e4e286baef0308df6e3a389d41
parent0c8d9818fb740fd610b248b5411874198dc0355a
Adds FontImage Markup Extension for FontImageSource (#6398)

* Added FontImage markup extension which simplifies usage of FontImageSource into any ImageSource

* Added unit tests to cover TabBar which is used in Shell

* Cleaned up xaml for test code

* Removed class references from unit test project which were added by mistake

* Removed FontImageExtension from markup parser

* Added ContentProperty to markup extension

* Added Size to FontImageExtension

* Updated unit tests for new properties

* added unit tests to certify each property was set correctly by the markup extension

* Added content property test to certify that Glyph is being set correctly

* Flipped order in unit tests of expected and actual

* Updated default value for Size to use the FontImageSource default's value. This will keep it in sync if that value ever changes

fixes #6376
Xamarin.Forms.Xaml.UnitTests/FontImageExtension.xaml [new file with mode: 0644]
Xamarin.Forms.Xaml.UnitTests/FontImageExtension.xaml.cs [new file with mode: 0644]
Xamarin.Forms.Xaml/MarkupExtensions/FontImageExtension.cs [new file with mode: 0644]