xamarin.forms

Xamarin Android Designer shows a black screen instead of the application interface

岁酱吖の 提交于 2020-07-21 03:27:29
问题 Today I started to learn the world of application development for Android using the Xamarin platform for visual studio 2017. I followed Xamarin's official tutorials and videos on YouTube, when I opened my first project and went to the designer,the designer's screen was fully black. This doesn't happen in any guide or article I have read. Since I'm new, I don't have much idea where the problem might be, I'm attaching appropriate pictures. My Visual Studio's Screen: Desirable Xamarin tutorial's

Xamarin Android Designer shows a black screen instead of the application interface

杀马特。学长 韩版系。学妹 提交于 2020-07-21 03:27:00
问题 Today I started to learn the world of application development for Android using the Xamarin platform for visual studio 2017. I followed Xamarin's official tutorials and videos on YouTube, when I opened my first project and went to the designer,the designer's screen was fully black. This doesn't happen in any guide or article I have read. Since I'm new, I don't have much idea where the problem might be, I'm attaching appropriate pictures. My Visual Studio's Screen: Desirable Xamarin tutorial's

OnNavigatedTo or Initialize too late for binding

断了今生、忘了曾经 提交于 2020-07-20 05:45:26
问题 I'm new to Prism with Xamarin.Forms. I've implemented the ViewModel approach using the Navigation and Commanding classes. It works just fine but there's just one thing I don't understand. With the AutowireViewModel set to true the ViewModelLocator automatically fills the BindingContext for me and that is sweet. The order of things is not what I expected. First the binding for the properties on the View fire and then the OnNavigatedTo is fired. This means that my init of the properties is

How to create a never ending background service in Xamarin.Forms?

你离开我真会死。 提交于 2020-07-19 06:58:25
问题 I am monitoring the user's location every 15 minutes and I just want the application to continue sending the location even if the user closes the application in the taskbar. I tried this sample but it's in Xamarin.Android https://docs.microsoft.com/en-us/xamarin/android/app-fundamentals/services/foreground-services i have to create a dependencyservice but i don't know how. 回答1: i have to create a dependencyservice but i don't know how. First, create an Interface in the Xamarin.forms project:

Xamarin Forms Frame Shadow Design

邮差的信 提交于 2020-07-18 05:30:30
问题 I have an Xamarin Content Page with a List. For the ListItems I want something similar to the cardview in Android. Base on what I found that could be accomplished by a Frame. I have this code: <ViewCell> <StackLayout Padding="8" > <controls:CardView HasShadow="True" OutlineColor="LightGray"> <StackLayout Orientation="Vertical" Padding="5"> // Some labels and Buttons </StackLayout> </Frame> </StackLayout> </ViewCell> The CardView has the following code: public class CardView : Frame { public

Is it possible to access ProgramData folder from UWP without file picker?

依然范特西╮ 提交于 2020-07-16 10:36:12
问题 Can anyone share your ideas of accessing the custom paths like program data folder in the C drive from UWP application?? I am getting an access denied while accessing this path. Any special capabilities that I have to add to the AppManifest. Basically I need to access this folder from the a KIOSK where.i have a specific file which is to be reused for KIOSK mode in UWP. 回答1: Your only hope is broadFileSystemAccess. Also, this answer could be useful. 回答2: If you want to carry data of a smaller

Uploading images to Google Drive using Xamarin.iOS

一曲冷凌霜 提交于 2020-07-16 09:54:50
问题 Making an iOS application using Xamarin and would like to know if there is a way to save images to google drive or one drive. The GoogleDrive API was deprecated last year and is no longer an option, so I'm not sure if it's even possible. I want to try something but I can seem to find any information on the matter. Any pointers? I need a free cloud service to use and that Xamarin supports. Or maybe I can make a stored procedure that can upload my images from the database to a cloud service?

Fetch Firebase push notification data without clicking notification - Xamarin.forms iOS

寵の児 提交于 2020-07-16 08:06:09
问题 Hi I have a xamarin forms ios application implemented with firebase push notifications. I can receive and mange the click of notifications. Currently I am trying to store the notification data ie; Title,body and two other parameters comes with notification in to sqlite database. I can retrieve and store the data when user clicks. But cant store if user swipe away the notification. How can I get the values as soon as notification appear? Any help is appriciated. My AppDelegate [Register(

Outlined Textbox in Xamarin.Forms

依然范特西╮ 提交于 2020-07-16 05:47:27
问题 I want to implement material outlined textbox in Xamarin.Forms. I had created custom renderers but not able to apply style to it. I want text box like this image https://i.stack.imgur.com/7pWPr.png By creating custom renderer and inheriting from TextInputLayout displays default material textbox. https://i.stack.imgur.com/Ek9Vb.jpg 回答1: You can use Custom Renderer to custom a View which contained a material designed Entry . Create a EntryView in Forms: public class EntryView : ContentView {

Local Push notification not working in Xamarin iOS

你说的曾经没有我的故事 提交于 2020-07-10 11:11:45
问题 I am using Xamarin.forms and implemented Local push notification for iOS. It is working successfully when I am debugging the app through visual studio even when the app is minimized, the app can able to receive the notification. But while running the app directly without debugging through visual studio, the app is not able to display the notification. Kindly guide me on this. Then I also tried by releasing the app to the app store but experienced the same, the app is not able to receive the