James Montemagno
James Montemagno

Live, Love, Bike, and Code.

Tags


James Montemagno

Live, Love, Bike, and Code.


Using Font Icons in Xamarin.Forms: Goodbye Images, Hello Fonts!

Updated: See the newest way of importing fonts with Xamarin.Forms 4.6 on my latest blog post [https://montemagno.com/xamarin-forms-custom-fonts-everywhere/]. My full walkthrough: My entire mobile development career I have gone all in on using device specific images and icons. These are properly scaled and sized images that fit @1x, @2x, @3x, hdpi, xhdpi, xxhdi, and so on, which are great because they are super optimized for each platform. The reason I do this was because it gives very consist…

James Montemagno James Montemagno

Distributing a .NET Core 3 WPF and WinForms App with MSIX

I could not be more excited for .NET Core 3 that will soon power all of your WPF and WinForms apps in addition to ASP.NET Core and .NET Core apps themselves! You may be saying... James... WPF... WinForms... why even bother? Well, because you may have to support some older apps and with the power of .NET Core 3 as the runtime instead of the .NET Framework it means that we no longer have to worry about what version of .NET is installed on the users machine. It means we can deploy a WPF/WinForms ap…

James Montemagno James Montemagno

Introducing My Stream Timer: A Countdown Timer for OBS

I have been streaming on Twitch for over 6 months now. I stream both code on my personal Twitch channel [https://twitch.tv/jamesmontemagno] and I also stream games and recordings of Nintendo Dispatch [http://nintendodispatch.com] with my buddy Michael over on the official Dispatch Twitch channel [http://twitch.tv/nintendodispatch]. One thing that always bothered me was having to manually mess around with apps to get a simple countdown timer. They were too complex, had too many options, and had…

James Montemagno James Montemagno

The Beautiful & Complex FlexLayout Comes to Hanselman.Forms

Last week I wrote about my new quest to fully optimize and enhance Hanselman.Forms [https://montemagno.com/updating-hanselman-forms-bottom-tabs-bindable-layout/]. This involves using the latest and greatest in Xamarin.Forms and Xamarin.Essentials, but it also means spicing up the app with some lovely visuals and design. My first quest was to re-design the podcast section of the mobile app to create a list in grid form of different podcast that Hanselman produces. So, first things first we shoul…

James Montemagno James Montemagno

Control Text Size on Android Bottom Navigation View

It seems as though my obsession with the Android Bottom Navigation View aka Bottom Tabs will never end! This time I got a question about controlling the size of the text when the user taps on a tab. The default behavior is to zoom in on the text: Inside of your Android project's Resources/values folder create a new file called dimens.xml if it doesn't exist. Then add the following XML to override the size of the text when it is active and not active: <resources xmlns:tools="h…

James Montemagno James Montemagno

Modernizing Hanselman.Forms: A Customizable Brand Mobile App

The night before we launched Xamarin.Forms in mid-2014, I was having a conversation with Nat about creating a nice out of the box real world example of a Xamarin.Forms app. We discussed several different app ideas, but we were short on time as it was already 8PM at night. Then I thought perhaps I could create an app for my idol and fellow Chipotle lover Scott Hanselman. Fast-forward 8 hours and several cups of coffee later and Hanselman.Forms was born [https://www.github.com/jamesmontemagno/Hans…

James Montemagno James Montemagno

Xamarin.Forms: Fully Customize Bottom Tabs on Android & Turn Off Shifting

It seems as if the BottomNavigationView aka Bottom Tabs on Android is one of the top things that I write about on my blogs. There was an introduction post [https://blog.xamarin.com/exploring-androids-bottom-navigation-view/], how to use reflection to remove shifting on native Xamarin.Android [https://montemagno.com/remove-shifting-bottomnavigationview-android/], official support in Xamarin.Forms [https://montemagno.com/xamarin-forms-official-bottom-navigation-bottom-tabs-on-android/] , and most…

James Montemagno James Montemagno

Xamarin.Forms: Drop Shadow/Elevation on Android Bottom Navigation TabbedPage

It is a tale as old of time fighting with Android elevation and drop shadows. First it was the Toolbar [https://montemagno.com/xamarin-forms-drop-shadows-on-navigation-toolbar/] on a Navigation page and now it is the new fancy bottom tabs [https://montemagno.com/xamarin-forms-official-bottom-navigation-bottom-tabs-on-android/] that we got in Xamarin.Forms 3.1. I know what you are thinking... another custom renderer... NOPE! You just have to know to set a few different properties correctly. H…

James Montemagno James Montemagno