xamarin.forms

How can I change the background color of the Android tab with a renderer, while using a custom renderer to add some padding

[亡魂溺海] 提交于 2020-08-27 12:11:35
问题 In my application I set the bottom tab bar background color like this: <Shell xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="M.Views.AppShell" NavBarIsVisible="True" xmlns:local="clr-namespace:Memorise" BackgroundColor="{DynamicResource ShellBackgroundColor}" TabBarBackgroundColor="{DynamicResource TabBarBackgroundColor}" TabBarDisabledColor="{DynamicResource TabBarDisabledColor}" TabBarForegroundColor="{DynamicResource

How can I change the background color of the Android tab with a renderer, while using a custom renderer to add some padding

痴心易碎 提交于 2020-08-27 12:07:50
问题 In my application I set the bottom tab bar background color like this: <Shell xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="M.Views.AppShell" NavBarIsVisible="True" xmlns:local="clr-namespace:Memorise" BackgroundColor="{DynamicResource ShellBackgroundColor}" TabBarBackgroundColor="{DynamicResource TabBarBackgroundColor}" TabBarDisabledColor="{DynamicResource TabBarDisabledColor}" TabBarForegroundColor="{DynamicResource

Can't create handler inside thread which has not called Looper.prepare() [xamarin]

倖福魔咒の 提交于 2020-08-24 08:07:12
问题 So i don't actually have a question because i've already solved it, but in case someone else runs into this issue it's always nice to have a neat solution. And while there is a plentitude of "Can't create handler inside thread which has not called Looper.prepare()" - questions there is none tagged with xamarin. (so theirs is all java and i had 0 matches for "Can't create handler inside thread which has not called Looper.prepare() [xamarin]") 回答1: The issue is generated because You tried to do

Is it possible to stop the first Entry getting Focus in a ScrollView in Xamarin Forms

心已入冬 提交于 2020-08-23 12:18:31
问题 In my application I have the following situation: <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:conv="clr-namespace:NumericTextBoxTest.Converters;assembly=NumericTextBoxTest" xmlns:numericTextBox="clr-namespace:Syncfusion.SfNumericTextBox.XForms;assembly=Syncfusion.SfNumericTextBox.XForms" x:Class="NumericTextBoxTest.MainPage"> <ScrollView> <StackLayout> <Entry/> <Entry/> <Entry/> <Entry/> <Entry/> <Entry/> <Entry/>

Xamarin forms MasterDetailPage Menu icon not shown on iOS

旧时模样 提交于 2020-08-23 05:27:09
问题 I have Xamarin.Forms project. I have MasterDetailPage inside NavigationPage. I set icon property of the MasterDetailPage so that icon is supposed to be set as the top left position on the navigation bar. But it does not work. public partial class App : Application { public App() { InitializeComponent(); var masterDetailpage = new MasterDetailPage { Icon = "menuIcon.png", Master = new Page { Title = "Sample"}, Detail = new Page() }; MainPage = new NavigationPage(masterDetailpage); } } This