xamarin.forms

Xamarin Show/Hide Password

心已入冬 提交于 2020-12-15 06:43:19
问题 I am trying to create a registration form in Xamarin Forms. And I'm trying to enable the user to see the text input in Password Entry. I'm sorry for this question, but I am new to Xamarin. I saw this solution : Entry show and hide password But i don't know where to put the code. I added it to the MainActivity.cs but it does not work when i debug it using my android Phone. Can someone help me to implement this code to my RegisterPage. this is my code for Entry Password. <Entry Margin="20,0,20

A Single Label can display 2 Data fields alternately select by user

倾然丶 夕夏残阳落幕 提交于 2020-12-15 06:18:18
问题 I'm trying to use a single Label to display one of the two data fields alternately in Xamarin Forms. Only Label 1 Display the binding field and second Label which I am trying to use a variable "DisplayField" is not displaying either 'Contact_Address' or 'Contact_eMail' Model class public class Contacts { [PrimaryKey][Autoincrement] public int Contact_ID { get; set; } public string Contact_Name { get; set; } public string Contact_Address { get; set; } public string Contact_eMail { get; set; }

Where/how shellcontent_toolbar and main_toolbar resources are defined in the source code

こ雲淡風輕ζ 提交于 2020-12-15 06:13:47
问题 In the continuous search for a solution to my question: Append a control above/upper to the Shell App bar without altering it As it seems the hamburger button is part of the Toolbar, I was investigating this latter, but I cannot find where/how shellcontent_toolbar and main_toolbar resources are defined? 回答1: You could look at ShellToolbarTracker,in this source codes,you could see the hamburger button ( DrawerArrowDrawable icon ) is set in the toolbar. 来源: https://stackoverflow.com/questions

Where/how shellcontent_toolbar and main_toolbar resources are defined in the source code

↘锁芯ラ 提交于 2020-12-15 06:13:31
问题 In the continuous search for a solution to my question: Append a control above/upper to the Shell App bar without altering it As it seems the hamburger button is part of the Toolbar, I was investigating this latter, but I cannot find where/how shellcontent_toolbar and main_toolbar resources are defined? 回答1: You could look at ShellToolbarTracker,in this source codes,you could see the hamburger button ( DrawerArrowDrawable icon ) is set in the toolbar. 来源: https://stackoverflow.com/questions

Where/how shellcontent_toolbar and main_toolbar resources are defined in the source code

给你一囗甜甜゛ 提交于 2020-12-15 06:10:29
问题 In the continuous search for a solution to my question: Append a control above/upper to the Shell App bar without altering it As it seems the hamburger button is part of the Toolbar, I was investigating this latter, but I cannot find where/how shellcontent_toolbar and main_toolbar resources are defined? 回答1: You could look at ShellToolbarTracker,in this source codes,you could see the hamburger button ( DrawerArrowDrawable icon ) is set in the toolbar. 来源: https://stackoverflow.com/questions

How to bind an ItemsSource from a CollectionView in a custom control?

[亡魂溺海] 提交于 2020-12-15 05:35:20
问题 I am making a custom control with a CollectionView. The problem is that I want to give it the ItemsSource from the MainPage and not from the control and that ItemsSource communicates it with my ViewModel where my ObservableCollection is. This is my code: FloatingButton.xaml: <?xml version="1.0" encoding="UTF-8"?> <ContentView xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="CustomControlWithList.FloatingButton" x:Name=

How to bind an ItemsSource from a CollectionView in a custom control?

走远了吗. 提交于 2020-12-15 05:35:08
问题 I am making a custom control with a CollectionView. The problem is that I want to give it the ItemsSource from the MainPage and not from the control and that ItemsSource communicates it with my ViewModel where my ObservableCollection is. This is my code: FloatingButton.xaml: <?xml version="1.0" encoding="UTF-8"?> <ContentView xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="CustomControlWithList.FloatingButton" x:Name=

How to create a ScrollView in this layout?

百般思念 提交于 2020-12-14 23:37:41
问题 I need to create a ScrollView in this layout but the problem is that my control occupies the entire screen and I don't know how to make it occupy only the size it has. This is the functionality of the control I need it not to fill the entire screen and only its own size to be able to add more things to the layout This is the XAML of my control: <?xml version="1.0" encoding="UTF-8" ?> <ContentView x:Class="ControlProject.CustomControl" xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x=

Run Sqlite Code when received notification Xamarin Forms

不想你离开。 提交于 2020-12-14 23:32:47
问题 I am trying to run SQLite code while app received notification from firebase in Xamarin Forms App, First I Install this plugin Plugin.FirebasePushNotification and also add this permission: <uses-permission android:name="android.permission.INTERNET" /> then add this class to mu android project [Application] public class MainApplication : Application { public MainApplication(IntPtr handle, JniHandleOwnership transer) : base(handle, transer) { } public override void OnCreate() { base.OnCreate();

Switch templates in xamarin based of bound property (NOT ItemTemplate)

試著忘記壹切 提交于 2020-12-14 06:46:47
问题 I have a Model that contains some data, and a field that can have one of three (enum) values. Socket, Tcp, Udp And a View that shows some details. The details that I want shown in the view differ according to the value of this property in the model. I have read all about ItemTemplates for Lists and Pickers, and I want to do something similar but just with a single view bound to a single property. If Socket => Show this view else => Show this other view. Both views have the same viewmodel.