xamarin.forms

Delete where in clause in sqlite

老子叫甜甜 提交于 2021-01-28 14:19:38
问题 I have the following queries in sqlite which I am using in Xamarin Forms. allProdsId is initialized as: allProdsId = new List<Products>(); First of all, I made a query which retrieves all products ID from the table products. Then I want to delete all orders where orders have ProdId all the allProdsId retrieved. The delete query is not working. Can someone please help me to achieve the WHERE IN clause in sqlite using xamarin forms ? allProdsId = _con.Query<Products>("Select ProdId from

Spell checking in editor using xamarin.forms application

半城伤御伤魂 提交于 2021-01-28 14:14:40
问题 I am developing a chat application using Xamarin.Forms. I have a requirement of spell checking. I am using an Editor to enter the message. In Editor If user types something it has to check the spelling of the word and inform the user that spelling is wrong with an underline or something(ike Grammarly does in web). How can I achieve this using Xamarin.Forms. I have tried with Xamarin.Forms default property IsSpellCheckEnabled but it doesn't effect anything i.e It doesn't check the spellings.

Shell navigation bar scroll behavior

限于喜欢 提交于 2021-01-28 14:11:30
问题 I would like to ask if it is possible to animate the Navigation Bar or TabbedPage ( TabLayout ) in the Xamarin.Forms Shell when scrolling it either hides or the discovery see gif. I tried it in Xamarin native android there it works after adding layout_scrollFlags . http://lomza.totem-soft.com/appbarlayout-scroll-behavior-with-layout_scrollflags http://karthikraj.net/2016/12/24/scrolling-behavior-for-appbars-in-android 回答1: Not sure if you can achieve this behavior with an android style in XF

Xamarin Forms: Push notification is not receiving to ios device

◇◆丶佛笑我妖孽 提交于 2021-01-28 12:09:24
问题 I have done the following things: Created a project in FCM console and added ios project into it. Downloaded the GoogleService-Info.plist and added it to the xamarin forms ios project directory and set the build action as Bundlesource . On Info.plist enabled remote notification background mode. Added FirebaseAppDelegateProxyEnabled in the app’s Info.plist file and set it to No. Created a provisioning profile and distribution certificate and installed it into the keychain access. Also, mapped

Xamarin Forms navigation bar with rounded central button

岁酱吖の 提交于 2021-01-28 11:18:46
问题 Is it possible to reproduce a bottom navigation bar like this in Xamarin Forms ? Not with a Grid for example, but with a real navigation bar so this content stay static and navigation occurs in navigation area. 回答1: You can use custom renderer to achieve this in iOS: In Xamarin.forms, create a TabbePage with 5 pages there: <ContentPage Title="Tab 1" /> <ContentPage Title="Tab 2" /> <ContentPage Title="" /> <ContentPage Title="Tab 3" /> <ContentPage Title="Tab 4" /> In the TabbedRenderer , add

Proxy class override method for iOS mono error in xamarin.forms

可紊 提交于 2021-01-28 10:47:20
问题 I am new to proxy classes. I thought visual studio just handled them and never thought about them again. Now, I am having problems. When running my Xamarin.Forms App on iOS, it throws this error when calling my WCF: MonoTouch does not support dynamic proxy code generation. Override this method...(etc) So in the proxy code, I created this method: protected override IService1 CreateChannel() { return new Service1ClientChannel(this); } But the return Service1ClientChannel is not recognized. What

Xamarin Forms Shell - Navigation to old navigation stack rather than flyout page

依然范特西╮ 提交于 2021-01-28 09:16:01
问题 I’m having trouble with my Xamarin Forms Shell app. I'm not sure if this is a bug or expected behaviour, can someone point me in the right direction. I have an app with 2 pages in the Visual Shell Hierarchy: Search & History <FlyoutItem Title="Search" Icon="search.png"> <Tab Title="Search"> <ShellContent Route="searchpage"> <views:SearchPage /> </ShellContent> </Tab> </FlyoutItem> <FlyoutItem Title="History" Icon="history.png"> <Tab Title="History"> <ShellContent> <views:HistoryPage /> <

Effect on all buttons in Xamarin Forms

别说谁变了你拦得住时间么 提交于 2021-01-28 09:11:47
问题 I'm trying to have a effect on all my buttons, but I can't seem to get the configuration right. this is what I have now: <ResourceDictionary> <ControlTemplate x:Key="ButtonTemplate" > <Grid RowSpacing="0" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"> <ContentPresenter Grid.Row="0" Grid.Column="0" > <ContentPresenter.Effects> <effects:ShadowEffect Radius="5" DistanceX="5" DistanceY="5"> <effects:ShadowEffect.Color> <OnPlatform x:TypeArguments="Color"> <On Platform="iOS"

Xamarin Forms Shell - Navigation to old navigation stack rather than flyout page

末鹿安然 提交于 2021-01-28 09:10:18
问题 I’m having trouble with my Xamarin Forms Shell app. I'm not sure if this is a bug or expected behaviour, can someone point me in the right direction. I have an app with 2 pages in the Visual Shell Hierarchy: Search & History <FlyoutItem Title="Search" Icon="search.png"> <Tab Title="Search"> <ShellContent Route="searchpage"> <views:SearchPage /> </ShellContent> </Tab> </FlyoutItem> <FlyoutItem Title="History" Icon="history.png"> <Tab Title="History"> <ShellContent> <views:HistoryPage /> <

How to make multiple list views scroll together?

走远了吗. 提交于 2021-01-28 08:53:39
问题 I'm having a vertical list view which has in its item template another list view in horizontal position, now everything works fine, but I want to be able to scroll all of these sub list views if one of them scrolled. Here is an illustration: Now I want all the sub list views in all rows to scroll together. How can I do this?! Maybe I can make an extending class for the list view with bindable property for scrolling ?! Something like this: public class ScrollableListView : ListView { public