xamarin.forms

Display a page with extended information

ぐ巨炮叔叔 提交于 2021-02-05 11:27:28
问题 I have the following functionality given below: When clicking on details, i want the text that is displayed on the contentview shall be displayed on the new detailspage that is created by push async. How can I send parameters containing the info given in the content, e.g. title, category and description. I have a tap gesture recognizer: <Label.GestureRecognizers> <TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped"/> </Label.GestureRecognizers> That then leads to creating a new page

Display a page with extended information

﹥>﹥吖頭↗ 提交于 2021-02-05 11:27:25
问题 I have the following functionality given below: When clicking on details, i want the text that is displayed on the contentview shall be displayed on the new detailspage that is created by push async. How can I send parameters containing the info given in the content, e.g. title, category and description. I have a tap gesture recognizer: <Label.GestureRecognizers> <TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped"/> </Label.GestureRecognizers> That then leads to creating a new page

Xamarin Forms: How to add background color for clicked button inside grid(Word Search Game)

此生再无相见时 提交于 2021-02-05 11:13:24
问题 I am using a button inside grid for showing letters to implement a word search game. When clicking a button the entire buttons' background color is changing. I need to change only the background color of the clicked button. Xaml.cs void SetGridLayout(char[,] matrixToPrint) { int numRows = matrixToPrint.GetLength(0); int numCols = matrixToPrint.GetLength(1); gridLayout.HorizontalOptions = LayoutOptions.FillAndExpand; gridLayout.SetBinding(Button.HeightRequestProperty, new Binding("Width",

Xamarin Forms: How to add background color for clicked button inside grid(Word Search Game)

怎甘沉沦 提交于 2021-02-05 11:05:45
问题 I am using a button inside grid for showing letters to implement a word search game. When clicking a button the entire buttons' background color is changing. I need to change only the background color of the clicked button. Xaml.cs void SetGridLayout(char[,] matrixToPrint) { int numRows = matrixToPrint.GetLength(0); int numCols = matrixToPrint.GetLength(1); gridLayout.HorizontalOptions = LayoutOptions.FillAndExpand; gridLayout.SetBinding(Button.HeightRequestProperty, new Binding("Width",

Xamarin Forms: How to add background color for clicked button inside grid(Word Search Game)

喜欢而已 提交于 2021-02-05 11:05:20
问题 I am using a button inside grid for showing letters to implement a word search game. When clicking a button the entire buttons' background color is changing. I need to change only the background color of the clicked button. Xaml.cs void SetGridLayout(char[,] matrixToPrint) { int numRows = matrixToPrint.GetLength(0); int numCols = matrixToPrint.GetLength(1); gridLayout.HorizontalOptions = LayoutOptions.FillAndExpand; gridLayout.SetBinding(Button.HeightRequestProperty, new Binding("Width",

Mix bold text to plain text in labels

假装没事ソ 提交于 2021-02-05 10:40:39
问题 I save my text data in a sqlite database, I am able to store them, read them and etc. To load it in The app I do something like this in page.xaml.cs: new Label() {Text = myDbStringData}; However doing like that I can only save plain text, so here's my question, how can i store and read mixed text Bold and plain text in DB and then be able to show it in a Label? I want to save something like this: Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...

How to click the element using automation id in Xamarin.UiTest?

不问归期 提交于 2021-02-05 09:47:43
问题 The app is developed using Xamarin.forms. I am examining the app using repl(). While using tree command i can see following output >>> tree [[object CalabashRootView] > DecorView] [LinearLayout > FrameLayout] [FitWindowsFrameLayout] id: "action_bar_root" [ContentFrameLayout > ... > PlatformRenderer] id: "content" [NavigationPageRenderer] id: "NoResourceEntry-9" [PageContainer] id: "NoResourceEntry-22" [PageRenderer > Platform_DefaultRenderer] id: "NoResourceEntry-17" [Platform_DefaultRenderer

Xamarin forms: Issue with Launching IOS App from Xamarin Forms App (Invalid input URL)

时光总嘲笑我的痴心妄想 提交于 2021-02-05 09:44:53
问题 I am trying to open an ios app from my xamarin forms ios app. I have referred this thread for this feature, but I am getting error: "Invalid input URL" message on the output box. Interface on Main project public interface IAppHandler { Task<bool> LaunchApp(string uri); } IOS [assembly: Dependency(typeof(OpenAppImplementation))] namespace Projectname.iOS.Renderer { public class OpenAppImplementation : IAppHandler { public Task<bool> LaunchApp(string uri) { try { var canOpen = UIApplication

Xamarin forms: Issue with Launching IOS App from Xamarin Forms App (Invalid input URL)

主宰稳场 提交于 2021-02-05 09:44:27
问题 I am trying to open an ios app from my xamarin forms ios app. I have referred this thread for this feature, but I am getting error: "Invalid input URL" message on the output box. Interface on Main project public interface IAppHandler { Task<bool> LaunchApp(string uri); } IOS [assembly: Dependency(typeof(OpenAppImplementation))] namespace Projectname.iOS.Renderer { public class OpenAppImplementation : IAppHandler { public Task<bool> LaunchApp(string uri) { try { var canOpen = UIApplication

Can you use Firebase.Auth in Xamarin.Forms?

浪尽此生 提交于 2021-02-05 09:29:18
问题 I am exploring app development and doing Xamarin.Forms, and I want to use Firebase, so far looking at the Authentication thing. The problem is that I am not sure if possible and how to use it in Xamarin Forms, I've found some native documentation and something about forms but I couldn't really understand it or it was updated. 回答1: Check the Nuget package of xamarin: Android: https://www.nuget.org/packages/Xamarin.Firebase.Auth/ IOS: https://www.nuget.org/packages/Xamarin.Firebase.iOS.Auth/