xamarin.forms

Icon sizes- Xamarin.forms

一笑奈何 提交于 2021-02-18 07:45:06
问题 I am working on Xmarin.forms project. I have many icons in the app. what should be the size of the icons for each platform? I know android supports Android 72x72 - drawable 72x72 - drawable-hdpi 96x96 - drawable-xhdpi 144x144 - drawable-xxhdpi iOS 57x57 114x114 120x120 72x72 144x144 76x76 152x152 28x28 58x58 50x50 100x100 40x40 80x80 512x512 1024x1021 This sizes are only for the logo icons? Or all the icons including toolbar icon and burger menu(using master details) has to follow this

Xamarin Forms: Share Picture on Instgram [closed]

对着背影说爱祢 提交于 2021-02-17 07:05:46
问题 Closed. This question needs debugging details. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 1 year ago . Improve this question I am developing a Xamarin Forms application with Android and iOS solutions. I am desperately searching for a full example to allow a user to share on Instagrama picture taken from my app. Anyone can point to some good tutorial/example/github repo/etc. ? 回答1: You can't directly

How to Navigate between Android Specific Pages and Shared Pages in Xamarin.Forms?

半城伤御伤魂 提交于 2021-02-17 05:14:46
问题 I am trying to implement a camera overlay for my android app in Xamarin Forms. I am able to get my overlay to work for Android when I set my activity MainLauncher to True. How can I instead navigate to the activity page from my Xamarin.Forms shared code, and then later navigate back to the shared pages? My Android Activity: namespace CustomCamera.Droid { [Activity(Label = "CustomCamera", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges =

How to set the BindableLayout.ItemsSource to an ObservableCollection in an other file

狂风中的少年 提交于 2021-02-17 02:08:37
问题 Currently i have a TasksGroupPageViewModel.cs that contains my two ObservableCollection: public ObservableCollection<TasksGroup> TasksGroups { get; set; } = new ObservableCollection<TasksGroup>(); public ObservableCollection<Tasks> Taches1 { get; set; } = new ObservableCollection<Tasks>(); The binding for my CollectionView which uses the TasksGroups data works, BUT i have a bindable stacklayout inside it but i am unable to bind it to his ObservableCollection data (taches1) From the debuger i

How to set the BindableLayout.ItemsSource to an ObservableCollection in an other file

ε祈祈猫儿з 提交于 2021-02-17 02:06:43
问题 Currently i have a TasksGroupPageViewModel.cs that contains my two ObservableCollection: public ObservableCollection<TasksGroup> TasksGroups { get; set; } = new ObservableCollection<TasksGroup>(); public ObservableCollection<Tasks> Taches1 { get; set; } = new ObservableCollection<Tasks>(); The binding for my CollectionView which uses the TasksGroups data works, BUT i have a bindable stacklayout inside it but i am unable to bind it to his ObservableCollection data (taches1) From the debuger i

How to update custom WebView height request when content is shrunk

北慕城南 提交于 2021-02-16 21:14:35
问题 The problem occurs on Android. I have implemented a custom renderer for a WebView to get the capability of resizing the height request base on its content. I took this from a xamarin forum post. [assembly: ExportRenderer(typeof(AutoHeightWebView), typeof(AutoHeightWebViewRenderer))] namespace MyProject.Droid.Renderers { public class AutoHeightWebViewRenderer : WebViewRenderer { public AutoHeightWebViewRenderer(Context context): base(context) {} protected override void OnElementChanged

How to update custom WebView height request when content is shrunk

 ̄綄美尐妖づ 提交于 2021-02-16 21:14:07
问题 The problem occurs on Android. I have implemented a custom renderer for a WebView to get the capability of resizing the height request base on its content. I took this from a xamarin forum post. [assembly: ExportRenderer(typeof(AutoHeightWebView), typeof(AutoHeightWebViewRenderer))] namespace MyProject.Droid.Renderers { public class AutoHeightWebViewRenderer : WebViewRenderer { public AutoHeightWebViewRenderer(Context context): base(context) {} protected override void OnElementChanged

Xamarin listview of List<List>

浪子不回头ぞ 提交于 2021-02-16 21:11:21
问题 I'm making a mobile app and I'm trying to load a list in a listview. The list has multiple elements and a list: public static List<Proposition> PropositionList = new List<Proposition> { new Proposition{ PropositionId = Guid.Parse("00000000-0000-0000-0000-000000000001"), Place= "Barge", Date= new DateTime(2020, 7, 11), Users= new List<User>(){ new User { UserId = Guid.Parse("00000000-0000-0000-0000-000000000001"), Name= "Jan Aerts", Sterren = 3 }, new User { UserId = Guid.Parse("00000000-0000

Xamarin listview of List<List>

风流意气都作罢 提交于 2021-02-16 21:10:10
问题 I'm making a mobile app and I'm trying to load a list in a listview. The list has multiple elements and a list: public static List<Proposition> PropositionList = new List<Proposition> { new Proposition{ PropositionId = Guid.Parse("00000000-0000-0000-0000-000000000001"), Place= "Barge", Date= new DateTime(2020, 7, 11), Users= new List<User>(){ new User { UserId = Guid.Parse("00000000-0000-0000-0000-000000000001"), Name= "Jan Aerts", Sterren = 3 }, new User { UserId = Guid.Parse("00000000-0000

Superscript text in Label

醉酒当歌 提交于 2021-02-16 20:08:08
问题 Is it possible to superscript a label in Xamarin Forms? In HTML I would use the <sup> tag. I want to superscript the text "min". So I can have the text "5min" with the "min" part superscripted. 回答1: Thanks to Jason for his idea of using FormattedText property. But since it doesn't support binding of the text, I put 2 labels together in a StackLayout , the superscript text in mirco font size: <StackLayout Orientation="Horizontal" Spacing="0"> <Label Text="{Binding Minutes}"> <Label.FontFamily>