xamarin.android

Xamarin.Forms GestureRecognizers not working on Command

老子叫甜甜 提交于 2020-01-25 09:34:09
问题 Code in the xaml page: <StackLayout VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"> <CollectionView ItemsSource="{Binding MeniElementi}"> <CollectionView.ItemsLayout> <GridItemsLayout Orientation="Vertical" Span="2" /> </CollectionView.ItemsLayout> <CollectionView.ItemTemplate> <DataTemplate> <Frame Padding="10" WidthRequest="140" HeightRequest="140"> <Frame BackgroundColor="AliceBlue" WidthRequest="120" HeightRequest="120" HasShadow="True" CornerRadius="10" Padding="10"

Xamarin.Forms TapGestureRecognizer with Command navigate to page based on Image clicked

末鹿安然 提交于 2020-01-25 09:26:11
问题 Code in the xaml page: <StackLayout VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"> <CollectionView ItemsSource="{Binding MeniElementi}"> <CollectionView.ItemsLayout> <GridItemsLayout Orientation="Vertical" Span="2" /> </CollectionView.ItemsLayout> <CollectionView.ItemTemplate> <DataTemplate> <Frame Padding="10" WidthRequest="140" HeightRequest="140"> <Frame BackgroundColor="AliceBlue" WidthRequest="120" HeightRequest="120" HasShadow="True" CornerRadius="10" Padding="10"

Xamarin Create swipe page in page

喜欢而已 提交于 2020-01-25 08:34:10
问题 I have a question... I want to create a page that looks like this: And then when you swipe one of the four blocks, you get this: Is this somehow possible in Xamarin Forms? I have no idea where to google for or how to start! Any ideas? 回答1: you can do it with a Grid and the visual state manager: <Grid> <Grid.RowDefinitions> <RowDefinition Height="*"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> <ColumnDefinition Width="Auto"/> <

Change navigation page bar color and title color

点点圈 提交于 2020-01-25 08:24:25
问题 I have a Tabbed page attached is a Navigation page I want to change the color or the bar itself and the title color but I am getting a exception: (System.NullReferenceException: Object reference not set to an instance of an object.) How can I change the color of my navigation bar and title color? Here is my tabbed page xaml code: <TabbedPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:TBSApp.View" x:Class=

How to load the online pdf files in Xamarin webview?

女生的网名这么多〃 提交于 2020-01-25 07:05:52
问题 I have trying to load and display the online pdf file (file from sharepoint link) in Xamarin forms Webview. To load the pdf, i have implemented the pdf viewer using custom renderer. But, there files are not loaded. Can you please help me out on this ? Following code are used to load the file. var customWebView = Element as AuthWebView; Control.Settings.AllowUniversalAccessFromFileURLs = true; Control.Settings.PluginsEnabled = true; Control.Settings.JavaScriptEnabled = true; // Control.LoadUrl

How to load the online pdf files in Xamarin webview?

佐手、 提交于 2020-01-25 07:05:07
问题 I have trying to load and display the online pdf file (file from sharepoint link) in Xamarin forms Webview. To load the pdf, i have implemented the pdf viewer using custom renderer. But, there files are not loaded. Can you please help me out on this ? Following code are used to load the file. var customWebView = Element as AuthWebView; Control.Settings.AllowUniversalAccessFromFileURLs = true; Control.Settings.PluginsEnabled = true; Control.Settings.JavaScriptEnabled = true; // Control.LoadUrl

Android Firebase - add authenticated user into database

风格不统一 提交于 2020-01-25 06:41:16
问题 Ok, so I am building xamarin.android applicationon in Visual Studio and there is quite a lot of questions of this type, but I really didn't find anything regarding xamarin.android, everything is Java based. I tried following those tutorials and answers but there was always something missing or not working on Xamarin android. I have made authentication and it works great, no problems there. And i tried storing user information (info that user types in while registering) into database. It kind

Android Firebase - add authenticated user into database

不问归期 提交于 2020-01-25 06:41:09
问题 Ok, so I am building xamarin.android applicationon in Visual Studio and there is quite a lot of questions of this type, but I really didn't find anything regarding xamarin.android, everything is Java based. I tried following those tutorials and answers but there was always something missing or not working on Xamarin android. I have made authentication and it works great, no problems there. And i tried storing user information (info that user types in while registering) into database. It kind

Prism with Xamarin for Android - InvalidOperationException on Launch

人盡茶涼 提交于 2020-01-24 21:21:06
问题 I'm new to Xamarin and Prism, so forgive me if I'm missing something obvious. I am following the example of this project in GitHub. However, I am getting the following error when running my Android project. System.InvalidOperationException: The current type, MyApp.Abstractions.IFacebookManager, is an interface and cannot be constructed. Are you missing a type mapping? The error is occurring in EntryPage.xaml.g.cs in the LoadFromXaml() method. [global::Xamarin.Forms.Xaml.XamlFilePathAttribute(

Xamarin.Android - Permission denied emulator cannot be started

对着背影说爱祢 提交于 2020-01-24 21:14:27
问题 I am very new to Xamarin.Android. When I run a project in Visual Studio 2015 it produces this error: 1>qemu-system-i386.exe: -drive if=none,index=0,id=system,file=C:\PROGRA~2\Android\ANDROI~1/system-images\android-19\default\x86/system.img: could not open disk image C:\PROGRA~2\Android\ANDROI~1/system-images\android-19\default\x86/system.img: Could not open 'C:\PROGRA~2\Android\ANDROI~1/system-images\android-19\default\x86/system.img': Permission denied 1>Emulator AVD_for_Nexus_S cannot be