News

Xamarin.Forms Updates Buttons, Images, Labels, More

The latest update to Xamarin.Forms -- Microsoft's C#-based, open source cross-platform mobile app dev solution -- addresses the "little things" such as buttons, images labels and more.

That "little things" characterization was made by David Ortinau, a Microsoft senior program manager, in announcing Xamarin.Forms 3.3.0, the latest stable release of the UI toolkit for .NET developers that lets them write C# code to create iOS, Android and other apps.

He said the term refers to: "Things you've told us are important to building your mobile apps and being supremely productive in the process."

Here's a summary of some of those improved "little things," of which many were contributed by community volunteers:

  • Labels. Developers can now add text decorations such as underlines and strike-throughs. When combined with previous contributions that added span support of bindings and gestures, "you've got the coveted inline hyperlink," Ortinau said. Another community contribution added the ability to specify the maximum number of lines a label can render. "This is super useful for doing things such as displaying a few lines and adding a 'read more' to expand the full text," Ortinau said.
  • Android Images. Setting the stage to better support future efforts on the handling of images is the appropriately name IImageViewHandler. When this new interface is combined with the GlideX for Xamarin.Forms library, memory usage is lowered. For example, a GridPage loaded in Xamarin.Forms hits 268,387,112 bytes of peak memory usage, while the same thing loaded in glidex.forms hits only 16,484,584 bytes.
  • iOS WebView. WKWebView, introduced by Apple in iOS 8.0 (the latest version is 12.0.1) is now available as an option, joining the UIWebView long used as a Web browser control in Xamarin.Forms. "WKWebView runs Safari in a separate process and provides better performance, especially when you need to execute JavaScript," said Ortinau, who noted that one advantage of UIWebView is better backward compatibility.

According to the release notes, other related updates provide:

  • Label with Wrap/LineNumber and Truncation
  • Support UIModalPresentationStyle.FormSheet
  • Desktop: TabStop/TabIndex support (for multiple Views)

"Xamarin.Forms 3.3.0 includes more than 30 bug fixes and ships just 30 days after 3.2.0 meaning you don't have to wait long to benefit from all those quality improvements," Ortinau said.

Ortinau also highlighted a bunch of "little things" in that 3.2.0 release, including customized TitleViews, the aforementioned span gestures, button padding, editor placeholder color and more.

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus

Featured

  • Death of the Dev Machine?

    Here's a takeaway from this week's Ignite 2020 event: An advanced Azure cloud portends the death of the traditional, high-powered dev machine packed with computing, memory and storage components.

  • COVID-19 Is Ignite 2020's Elephant in the Room: 'Frankly, It Sucks'

    As in all things of our new reality, there was no escaping the drastic changes in routine caused by the COVID-19 pandemic during Microsoft's big Ignite 2020 developer/IT pro conference, this week shifted to an online-only event after drawing tens of thousands of in-person attendees in years past.

  • Visual Studio 2019 v16.8 Preview Update Adds Codespaces

    To coincide with the Microsoft Ignite 2020 IT pro/developer event, the Visual Studio dev team shipped a new update, Visual Studio 2019 v16.8 Preview 3.1, with the main attraction being support for cloud-hosted Codespaces, now in a limited beta.

  • Speed Lines Graphic

    New for Blazor: Azure Static Web Apps Support

    With Blazor taking the .NET web development world by storm, one of the first announcements during Microsoft's Ignite 2020 developer/IT event was its new support in Azure Static Web Apps.

  • Entity Framework Core 5 RC1 Is Feature Complete, Ready for Production

    The first release candidate for Entity Framework 5 -- Microsoft's object-database mapper for .NET -- has shipped with a go live license, ready for production.

Upcoming Events