public static void UpdateCharacterSpacing(this ButtonBase platformButton, ITextStyle button) { var characterSpacing = button.CharacterSpacing.ToEm(); platformButton.CharacterSpacing = characterSpacing; if (platformButton.GetContent <TextBlock>() is TextBlock textBlock) { textBlock.CharacterSpacing = characterSpacing; } }