Hello,
I can't print arabic text using the ESC/POS commands. So, I used ESC + t + 40 + ".... Arabic text" but the printer prints incorrect text. Can you help me ?
Regards
How to print arabic text using ESC/POS commands ?
xamarin Error... Different day...Another error... when does the pain stop???
No matter what... xamarin keep coming up with new roadblock and new error... Each day it's something new...
anyone with any ideas on what is going on fro the error below?
Please note...a week ago I was some how apply to get this application to run on the IOS simulator as one day I do hope I will play able to put this application on or dev store.. one day... but each new day brings new wacky errors... I have to ask... does xamarin work???
I know some will answer yes... but I just don't understand why when you follow the guides the thing does not work... I mean seriously,... how do you doploy your app if you can't get it to run on the sim... but a few days before... it ran on the sim?? What changed??
This app runs on the Android simulator just fine... Any help would be appreciated.Thanks!
There was an unhandled exception trying to deploy and run your application. \nSystem.Exception:
The OutputPath property is not set for project 'NameOfTheApplication.iOS.csproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Debug' Platform='iPhone'. This error may also appear if some other project is trying to follow a project-to-project reference to this project, this project has been unloaded or is not included in the solution, and the referencing project does not build using the same or an equivalent Configuration or Platform.
More of this error:
t Xamarin.VisualStudio.MsBuild.MsBuildService.RunTarget(IProjectNode projectNode, String msbuildTarget, IProgressReport progress, IDictionary2 globalProperties, IDictionary
2 properties, Boolean runInProc) in E:\A_work\21\s\src\Core\VisualStudio\MsBuild\MsBuildService.cs:line 248
at Xamarin.VisualStudio.MsBuild.MsBuildService.RunTarget(IProjectNode projectNode, String msbuildTarget, IDictionary2 globalProperties, IDictionary
2 properties, Boolean runInProc) in E:\A_work\21\s\src\Core\VisualStudio\MsBuild\MsBuildService.cs:line 211
at Xamarin.VisualStudio.IOS.MonoTouchProjectProperties.<>c__DisplayClass31_0.<b__0>d.MoveNext() in E:\A_work\21\s\src\Core\VisualStudio.IOS\PropertyProviders\MonoTouchProjectProperties.cs:line 103
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()
at Merq.AsyncManager.Run(Func`1 asyncMethod) in E:\A_work\143\s\src\Async\Merq.Async.Core\Merq.Async.Core.Portable\AsyncManager.cs:line 58
at Xamarin.VisualStudio.IOS.MonoTouchProjectProperties.GetAppBundleDir(IProgressReport progress) in E:\A_work\21\s\src\Core\VisualStudio.IOS\PropertyProviders\MonoTouchProjectProperties.cs:line 99
at Xamarin.VisualStudio.IOS.MonoTouchFlavoredProject.GetRunSessionInfo(MonoTouchDevice device) in E:\A_work\21\s\src\Core\VisualStudio.IOS\ProjectSystem\MonoTouchFlavoredProject.cs:line 1250
at Xamarin.VisualStudio.IOS.MonoTouchFlavoredProject.RunApplication(MonoTouchDevice device, IProgressReport progress) in E:\A_work\21\s\src\Core\VisualStudio.IOS\ProjectSystem\MonoTouchFlavoredProject.cs:line 1199
at Xamarin.VisualStudio.IOS.MonoTouchFlavoredProject.DebugLaunch(__VSDBGLAUNCHFLAGS grfLaunch, IProgressReport progress) in E:\A_work\21\s\src\Core\VisualStudio.IOS\ProjectSystem\MonoTouchFlavoredProject.cs:line 1066
at Xamarin.VisualStudio.IOS.MonoTouchFlavoredProject.DebugLaunch(__VSDBGLAUNCHFLAGS grfLaunch) in E:\A_work\21\s\src\Core\VisualStudio.IOS\ProjectSystem\MonoTouchFlavoredProject.cs:line 973
Android app data reset
I use SQLite database in my app. Everything worked fine up until recently. Now whenever I do new build from Studio on my Android device everything gets reset into a state that it was like several days ago. The same items are present and all changes that I did to them are lost.
Is there some way to fix this or clear this cache? Even if I remove app from device, Studio on next build inserts the save data.
Scrolling is not working in xamarin.Ios Editor control
we are displaying simple text in editor control when we assign the text to control from code section. scrolling is not working when i try to edit the text in editor control in ios application but for android it is working fine..
How to create a service in xamarin.forms?
I want to create a application where i wanted to send message just after the call is disconnected. When the callee places a call and disconnects it, the message should automatically be sent from the application to the caller.The message content would be the text configured in the app itself. The call could be a miscall or complete call. How can i achieve this in xamarin.forms?
Image not being displayed [Xamarin.Forms][Syncfusion]
I am using Prism with Xamarin Forms with all the packages up to date. I am using SfRotator, SfNavigationDrawer etc. in my project but my issue is with the SfRotator. The images in the rotator are not being displayed. I have tried using the control which was not displaying any images. I moved to FFImageLoading which works outside the SfRotator but not inside. Also, if i put a inside the , or if i use a CachedImageFastRenderer, it throws a NullReferenceException
Following are the code snippets:
MainPage.xaml
<tabView:SfTabItem.Content>
<rotator:SfRotator.ItemTemplate>
</rotator:SfRotator.ItemTemplate>
</tabView:SfTabItem.Content>
MainPageViewModel.cs
public class MainPageViewModel : ViewModelBase
{
private List imageCollection;
public List ImageCollection
{
get { return imageCollection; }
set { SetProperty(ref imageCollection, value); }
}
public MainPageViewModel(INavigationService navigationService)
: base(navigationService)
{
Title = "Main Page";
ImageCollection = new List();
ImageCollection.Add(new OfferSection ("offer1.jpg", "1" ));
ImageCollection.Add(new OfferSection ("offer2.jpg", "2" ));
ImageCollection.Add(new OfferSection ("offer3.png", "3" ));
}
OfferSection.cs
public class OfferSection
{
public string Image { get; set; }
public string OfferId { get; set; }
public OfferSection(string image, string id )
{
Image = image;
OfferId = id;
}
Thanks in advance. Waiting for a prompt response
How to detect text and search a location over mapview?
I added mapview using xamarin.forms.maps package. I wanted to add a searchbar field to search address and drop pin using search box.
How to add a SearchBar programmatically a search a location?
I tried the following:
var searchField = new SearchBar
{
Placeholder = "Enter search term"
};
searchField.SearchCommand = new Command(() => { if (searchField != null) { string.Format("Result: {0} is what you asked for.", searchField.Text); }
** // I don't get the text here**
Content = new StackLayout
{
Spacing = 0,
Children = {
searchField,
map,
buttons
}
};
Issue while opening Xamarin form from BroadcastReciever class
This is for tracking incoming and outgoing phone calls. I am pushing a Xamarin form in the application Navigation stack from BroadcastReciever class using following code:
var phoneAddPage = new SomePage();
Xamarin.Forms.Application.Current.MainPage = new NavigationPage(phoneAddPage);
The page is getting pushed properly as expected. Issue is the page is overlapped by Splash Screen when application is opened. The form is functioning properly, overlap is the only issue.
Animation on xamarin forms using Lottie dont work!
Hi,
anyone use the Lottie nugget to play animations on xamarin forms.
I tested a simple example that dont run, just appear on android emulator a blank window.
I install the Lottie nugets.
Here is my xaml page:
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:forms="clr-namespace:Lottie.Forms;assembly=Lottie.Forms"
x:Class="Example.Forms.MainPage">
<forms:AnimationView
x:Name="AnimationView"
Animation="LottieLogo1.json"
Loop="True"
AutoPlay="True"
VerticalOptions="FillAndExpand"
HorizontalOptions="FillAndExpand" />
I put the file "LottieLogo1.json" on Resources folder of the Droid Project.
Thanks
RendererFactory.GetRenderer() - is it bug - child content?
Is it bug that RendererFactory.GetRenderer(Forms.View) doesn't return child content? For instance if you call this with non-empty Grid (for ex. with few buttons) only the Top-Level element would be visible (only grid).
How to Sync DB With API?
I need to sync DB data with API. Is there is any convenient way or plugins available is xamarin to do this in an efficient way?
Any Suggestion??
Xamarin Controls or C# Class (object) data storage
Hi All,
Just wanted to know where c# (list) class stored the data in which memory (RAM or ROM).
As far as I know, when object is created the space is allocated for it's member (Variable/Properties or function) and stored all the data in RAM. So is it possible to access that data outside scope.
Is it possible to have overtype functionality in Entry
Hi,
I would like my entry to behave in overtype mode. Like when you press insert key in windows, and the type, the letter that you type will replace the letters instead of appending in between of that. Is it possible to achieve something like that with Entry? Maybe by using a custom renderer or something like that?
Thank you for your insights.
BR,
Denis
Draw Circle in xamarin form
Hi All,
Just list as "BoxView" control create "rectangle" shape in xamarin, how to i create "Circle" for slide image in CarouselView?
Please help.
Xamarin Forms 3.3.0 error: No property, bindable property or event found for UWP
I met strange error for UWP from following xaml:
<ContentPage.ToolbarItems>
<ToolbarItem Text="{Binding [SelectData]}" Command="{Binding AddNewDataCommand}">
<ToolbarItem.Icon>
<OnPlatform x:TypeArguments="FileImageSource" iOS="data.png" UWP="Assets/data.png"/>
</ToolbarItem.Icon>
</ToolbarItem>
...
</ContentPage.ToolbarItems>
When compile, I got:
No property, bindable property, or event found for 'UWP', or mismatching type between value and property.
Why ?
What is the special formula or code word for xamarin in visual studio's settings to make it compile
My goodness the errors just don't stop coming...
So I was trying to get a screen shot for another issue I have with the way something displays in apple and how it displays in Android so I thought I would get a screen in apple and switch start up projects and get a screen shot in Android..and of course there are going to be errors...
I switched from apple back to android and I get errors... (why would I expect anything else...)
Any way can some one give me a clue of how I can configure this project so that can successfully debug without jumping through hoops.
Here is my error... I was simply trying to get a screen shot of the app in the android simulator.
As a side note... this worked just an hour ago... as I was running this in android sim before unloading the project so that I could get the apple project to work...and I guess this some how breaks the android project every time...
And ideas or tips would be helpful and I would be grateful. Thanks
Error ADB0020: The package does not support the CPU architecture of this device.
at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName)
at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass95_0.b__0(Task1 t) at System.Threading.Tasks.ContinuationTaskFromResultTask
1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
ADB0000: Deployment failed
Xamarin.AndroidTools.AndroidDeploymentException: ArchitectureNotSupported ---> Mono.AndroidTools.IncompatibleCpuAbiExceptiopn: The package does not support the CPU architecture of this device.
at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName)
at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass95_0.b__0(Task1 t) at System.Threading.Tasks.ContinuationTaskFromResultTask
1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
at Xamarin.AndroidTools.AndroidDeploySession.d__107.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Xamarin.AndroidTools.AndroidDeploySession.d__101.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Xamarin.AndroidTools.AndroidDeploySession.d__99.MoveNext()
Xamarin UWP Map is blank
my maps on UWP is blank, just a black screen with the zoom buttons. i have given capabilities, put the init codes in the UWP app.xaml.cs.
HELP
Trying to display elements over a semi translucent background
I have a page with a background image on which I'd like to display elements with a semi-transparent background. For example, a StackLayout with some labels that has a white, but semi-transparent, background so the page's background image shows partially through. I had hoped this could be achieved by simply setting opacity on the VisualElement, but unfortunately setting opacity affects both foreground and background, so the text in the labels is dimmed. Not the effect I'm going after - I want the text bright and fully opaque.
How can I achieve this effect without dimming the foreground of the elements inside the stacklayout?
How can I change an Image Border color on hover in Xamarin?
I need to change an image's border color on hover and remove the border when the hover is removed. Is there a way to do this in Xamarin?
using stripe with a 3D secure card
Trying to get stripe to work with XF 3.3 and it seems to be fine in all scenarios except when using 3d secure. anyone got any experience with this topic? essentially what's happening is I've implemented it as per their documentation, but the response I get back after using a redirect uri is 'pending' whereas only 'chargeable' statuses allow a customer to be charged. any assistance much appreciated in advance