I need to after the page loads immediately appeared keyboard.
Entry.Focus() not work
How to set focus on Entry?
How to Share this kind of Object to Facebook in Xamarin forms.
Hi All,
I Want to Share This Kind of Share post on Facebook through Our Apps.Please See blow Sample Image.
How to do in Apps Please give me any suggestion
now i unable to Create this scenario in Xamarin forms
Thanks,
Awaneesh !
Page transitions and side menu
Hello every one hope you all having a great day i am looking for slide transitions when moving from page to page i could not find any tutorial about it and also a side menu for both android and ios
thanks
Shell with Bottom Tabs and Flyout MenuItems
Hi all,
I have investigating how to apply a new Shell navigation expiriance to my application and I faced with issue
I cannot create in Flyout only with MenuItems and page switching using TabBar in one Shell
Is there a way to overcome it ?
iOS release version crashes immediately after showing splash screen. Works fine debug mode.
Hi all,
Im having a major issue here that Ive been battling now for last few days and this was previously working as well. My release version on the app store is crashing directly after the splash screens show up. Debug version runs fine as does the adhoc version that I installed from hockeyapp - both work fine. Release version downloaded from store is not working fine.
The only thing that has changed since I was able to get release version to work was my provisioning profiles expired and the distribution certificate expired I've since created a new distribution certificate and distribution provisioning profile. I used the same .certSigningRequest that I used for the expired distribution certificate to renew that.
Im running Xcode 10.1 on my mac mini running 10.13.6 with Visual studio is 2019, I have a red squigly line on the solution saying 'xcode version 10.1 not compatable with this version of Visual Studio... Please install version 10.2' however I cant install 10.2 as my mac machine not compatable with xcode 10.2.
Below is the provision I use for building the release version that I submit to the store:
Visual studio setup for release then I do a build and see the IPA on the build server (mac machine)
below is iOS log report at the time of crash:
I'm not sure what left to check as this was definely working fine on previous release version..
I really need to get some help on this!
How do I add a list-form object to the XAM.PLUGINS.SETTINGS
Hi everyone !
Normally, in James Montemagno's Plugins, I was save data like that on the phone.
public static class Settings
{
private static ISettings AppSettings => CrossSettings.Current;
public static string GeneralSettings
{
get => AppSettings.GetValueOrDefault(nameof(GeneralSettings), string.Empty);
set => AppSettings.AddOrUpdateValue(nameof(GeneralSettings), value);
}
public static string GeneralSettingsPass
{
get => AppSettings.GetValueOrDefault(nameof(GeneralSettingsPass), string.Empty);
set => AppSettings.AddOrUpdateValue(nameof(GeneralSettingsPass), value);
}
public static int GeneralSettingsDisplayAlert
{
get => AppSettings.GetValueOrDefault(nameof(GeneralSettingsDisplayAlert), 0);
set => AppSettings.AddOrUpdateValue(nameof(GeneralSettingsDisplayAlert), value);
}
}
Then, when I turned off the phone, I could remember and use this information again. But I have a register page. After entering the user information I want to save them all.
How do I save 10 properties in a single object using this structure ?
Images are not visible
Android Emulator No Internet
The only emulator that has internet access is Marshmellow(Level API 23).
How to get Internet working for Nougat, Oreo, and Pie? Im on Visual Studio for Mac 8.2.2.
Mac is Mohave.
Best way to bind icon source to iamge xamarin forms
I have a page contains more images , i am showing images instead of label text for identification and here i was binded images directly to icon source
so is it better to bind directly or binding static variables to icon source for app performance
How do I bind Entry field with view model.
Hi,
How do I bind Entry field with view model.
While debugging the code, I found that when the entry field is pressed it is not hitting the Item Property in the view model.
Xaml:
<ContentPage.Content>
<ListView x:Name="listView" SeparatorVisibility="None" ItemsSource="ProductDetailList">
<ListView.ItemTemplate>
<DataTemplate>
<Entry Text="{Binding Item ,Mode=TwoWay}" />
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</ContentPage.Content>
View Model
public Int32 Item
{
get { return item; }
set
{
SetProperty(ref item, value);
OnPropertyChanged();
}
}
OnSubmit = new Command(() =>
{
//On click of submit buttonThe Entered values are sent to service side.
});
How to fetch data from restapi with authentication key
Authentication key are consumer key,Consumer Secret,Access Token,Token Secret
Auto fill the city,state and zipcode as per the user input.
SkiaSharp DrawText from Touch event
I need to find any way to set text and place the value dynamically using the x and y coordinates.
private void OnTouch(object sender, SKTouchEventArgs e)
{
string str = "Hello SkiaSharp!";
SKPaint textPaint = new SKPaint
{
Color = SKColors.Chocolate
};
float textWidth = textPaint.MeasureText(str);
SKRect textBounds = new SKRect();
textPaint.MeasureText(str, ref textBounds);
switch (e.ActionType)
{
case SKTouchAction.Pressed:
// start of a stroke
var p = new SKPath();
float coordinatesX = e.Location.X;
float coordinatesY = e.Location.Y;
p.MoveTo(e.Location);
temporaryPaths[e.Id] = p;
break;
case SKTouchAction.Moved:
if (e.InContact)
temporaryPaths[e.Id].LineTo(e.Location);
break;
case SKTouchAction.Released:
// end of a stroke
paths.Add(temporaryPaths[e.Id]);
temporaryPaths.Remove(e.Id);
break;
case SKTouchAction.Cancelled:
// we don't want that stroke
temporaryPaths.Remove(e.Id);
break;
}
// we have handled these events
e.Handled = true;
// update the UI
((SKCanvasView)sender).InvalidateSurface();
}
Add Widget Project to my xamarin.forms solution
what's the road to having a widget included in my xamarin.forms installation package?
thanks
how to backup like whatsapp?
Does anyone know if we can backup like WhatsApp? I think that WhatsApp uses auto backup feature with google drive but I have already implemented that and google is already backing up my app automatically but I wonder if I can have control over it like WhatsApp does that I ask user how often he wants to back up or even he can turn off backups in app settings? any idea?
How to choose image for list item
I pick image form gallery for my list item but the image show in all of the list view items how can i choose image for each items.
this is my button for get image from gallery
async void AddPic_Clicked(object sender, EventArgs e)
{
try
{
if (!CrossMedia.Current.IsCameraAvailable || !CrossMedia.Current.IsTakePhotoSupported)
{
await DisplayAlert("No Camera", ":( No camera available.", "OK");
return;
}
else
{
await CrossMedia.Current.Initialize();
var mediaoption = new PickMediaOptions()
{
PhotoSize = PhotoSize.Medium
};
var Selectedimagefile = await CrossMedia.Current.PickPhotoAsync(mediaoption);
if (Selectedimagefile == null)
{
await DisplayAlert("errrore", "ok", "ok");
return;
}
var ImageStream = Selectedimagefile.GetStream();
using (var fileStream = new FileStream(fileName, FileMode.Create))
{
ImageStream.CopyTo(fileStream);
}
// var imagesoruce = ImageSource.FromStream(Selectedimagefile.GetStream());
imgTemplateImages.Source = ImageSource.FromFile(fileName);
}
}
catch
{
await DisplayAlert("Alert", "Something Went Wrong", "Ok");
}
}
this is how i save my image
public AddEntryPage ()
{
InitializeComponent ();
fileName = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "sig.png");
if (File.Exists(fileName))
{
imgTemplateImages.Source = ImageSource.FromFile(fileName);
}
}
please how can i resolve Could not load assembly 'Allschooldesk, Version=0.0.0.0, Culture=neutral,
Please see the stack trace
The "ResolveLibraryProjectImports" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load assembly 'Allschooldesk, Version=0.0.0.0, Culture=neutral,
PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'Allschooldesk.dll'
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(String fullName)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Extract(DirectoryAssemblyResolver res, ICollection`1 jars, ICollection`1
resolvedResourceDirectories, ICollection`1 resolvedAssetDirectories, ICollection`1 resolvedEnvironments)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() Allschooldesk.Android
Point Compass to a Specific Location
Hi,
I am able to convert the location to degree but I want want to know how can I point the Xamarin Essentials' Compass to a specific point instead of the current point?
Thanks,
Jassim
Use the scale with the touch point in skiasharp
Hi
This example is a modified version of Bezier Curve
SKBitmap bitmap;
public TestTouchPoint(SKBitmap bitmap)
{
this.bitmap = bitmap;
InitializeComponent();
touchPoints = new TouchPoint[1];
TouchPoint touchPoint1 = new TouchPoint();
touchPoint1.Center = new SKPoint(100, 100);
touchPoints[0] = touchPoint1;
baseCanvasView = canvas;
}
private void Canvas_PaintSurface(object sender, SkiaSharp.Views.Forms.SKPaintSurfaceEventArgs e)
{
SKImageInfo info = e.Info;
SKSurface surface = e.Surface;
SKCanvas canvas = surface.Canvas;
canvas.Scale(0.5f);
canvas.Clear();
canvas.DrawBitmap(bitmap, touchPoints[0].Center.X, touchPoints[0].Center.Y);
foreach (TouchPoint touchPoint in touchPoints)
{
touchPoint.Paint(canvas);
}
}
When i use
canvas.Scale(0.5f);
The physical touchpoint of the screen will not match the touchpoint circle
How do I fix this so that the shapes match the position of the finger on the screen?
thanks
How to get html page content on button click in Xamarin.Forms?
Hi,
I am creating an application in that it gets data from the web view that opens from the page and when the user enters data and then save into that then it saves data into the database using c#.
I have to try to make a local Html webpage and on click of button try to get the value of Html page content but when I try with that I am not able to do that.
I also try with the hosted web URL but can't do that.
I am using .Net standard 2.0.3
Can anyone look into this and suggest to me what should I to do to achieve that?