Pro Tip: Useful Code Snippets For Your Xamarin.Forms Development

Code snippets are a hidden gem in Visual Studio that most of us do not pay much attention to. Utilizing them correctly can increase productivity when we have a lot to code. In Visual Studio, code snippets are available for multiple programming languages e.g. C#, F#, XML, HTML, CSS, Python, etc. They are extremely useful when we have a bunch of boiler plate code for our properties, constructors, bindable properties, etc.

Code snippets can be a huge topic, but in this post, I will list some of the XAML and C# code snippets useful when developing Xamarin.Forms mobile applications.

In this post,

  • Snippets
  • Creating Code Snippets
  • C# Examples
  • XAML Examples
  • Export Templates

Continue reading

Advertisements

Card View For Xamarin.Forms Using Custom Layouts

In this post, we will learn how to create a card view with child views using custom layouts. Creating a custom card unifies the experience for the user, gives us more control on the design of the app and speeds up the cross-platform UI/UX workflows. It is easy to get a simple, yet flexible, card introduced in your app.

Continue reading

Quote

Using FragmentTabHost with ViewPager

On my last project, I wanted to design one of the screens to look like Google Newsstand’s swiping tabs that were also scrollable and had an image between the ActionBar and the tabs.

Google News Screenshot

Google News Screenshot

 

I did not find any simple and useful solution to this that I could easily follow and implement in my app. So I created my own. Here’s how it looks like.

FragmentTabHost 1 Continue reading