Are there any Computer Vision like OpenVC compatible with Xamarin Forms?
What is Face Detection Library For Xamarin Forms?
Help with Zebra Link OS binding project referencing
Using Visual Studio 2013 Professional and have a Xamarin Forms project along side an Xamarin.iOS project.
Needed to implement printing to a Zebra printer from the iOS project so I looked into creating a binding project and eventually got one created (included the zip of it) which compiles (although with quite a few warnings in the generated code), however when I went to reference it in the iOS project I ran into issues.
I first started off with doing a project reference to my binding project, however, I didn't get all of the classes and methods I was expecting to.
The only thing visible was the first class in the ApiDefinition class and the enums in the StructsAndEnums class.
Apparently though, now the only thing visible is the enums.
I changed the reference to be directly to the dll generated by the binding project, and I was able to access the entirety of it.
I've also attached what is visible in the object explorer, showing what is visible in the two references, and as can be see, in the c# reference to ZebraLinkOsSdk, only the enums are there, but in the one below it, which is to the dll, all the classes, interfaces and enums are visible.
For now I'm okay with using the dll reference, but that does cause issues with rebuilding because it can't replace the dll because its being referenced, so i have to close visual studio, delete the files and rebuild.
What am I doing wrong with my binding project that is causing me to have to reference directly to the dll?
I have also attached the warnings that get generated if anyone is able to help me with those.
Open CarouselPage inside of MasterDetail
Hi all...
it's my first post here. I need some help
I Have a MaterDetailpage with ListView
private void ListView_ItemSelected(object sender, SelectedItemChangedEventArgs e)
{
var item = e.SelectedItem as MasterPageItem;
if (item != null)
{
Detail = new NavigationPage((Page)Activator.CreateInstance(item.TargetType));
masterPage.ListView.SelectedItem = null;
IsPresented = false;
}
}
when I put a CorouselPage on Detail, I get a error because the CarouselPage isn't a type of PAGE
How do I CreteInstance of Carousel inside of new NavigationPage?
Send Mail with attachment in Xamarin forms for Android and Solution
Hi, I have Xamarin Forms app. I want to send email with attachment, sender name user has to enter and receiver name by default has to find the tab's local logged email.. Can anybody please share the solution. might be using MFMailComposeViewController or other.
ToolBar Item Border Color
Hi, I have Xamarin Forms app, I am using Navigation bar for all pages. I want to give border color to one toolbar item Can anyone knows how can i achieve?
Below is the code, Wants to give border color to first toolbar item to look like a button.
<MasterDetailPage.ToolbarItems>
</MasterDetailPage.ToolbarItems>
Charts in Xamarin.Form
Hi guys,
I want to show some bar charts and pie charts in a Xamarin.Form App, which tool is good and easy to use?(free ones)
If I want to do this, must I do some adjustments in the Xamarin.IOS project? Or just add do it in the shared project?
I mean I did everything just in the shared project. I still don't know how to add classes in the Xamarin.ios project. Is there anything helpful?
Thank you!
MasterDetailPage behaviour on iPad landscape mode
Hi,
I currently have an application that makes use of Xamarin.Forms. Now, as my masterpage, I am using a MasterDetailPage. This MasterDetailPage translates to an UISplitViewController on iOS and the standard behaviour of an UISplitViewController is to show the masterview on landscape mode (only on iPad). I'd like to mimic the behaviour of the iPhone: collapsed on default and when the user taps the left top button, the masterview has to expand.
I made a custom renderer, but I don't really know how to achieve this. The code for the iPad custom renderer is:
[assembly: ExportRenderer(typeof(MasterPage), typeof(IpadCustomMasterDetailRenderer), MonoTouch.UIKit.UIUserInterfaceIdiom.Pad)]
namespace iOS.Renderers
{
public class IpadCustomMasterDetailRenderer : TabletMasterDetailRenderer
{
public IpadCustomMasterDetailRenderer() {
ShouldHideViewController = (svc, controller, inOrientation) => {
return true;
};
}
}
}
Unfortunately this always hides the masterview. Is there a way to hide the masterview on default?
iOS Tab Renderer Tab icon Color
Hello,
Im trying to setup a tab renderer in my shared project, where the tabs are white when they are unselected and grey when selected.
My current problem is that when i use UIImageRenderingMode with more than five tabs i get a System.NullReferenceException, this only happens when i have more than five tabs and a "more" button is created on iPhone.
The TabIcons themselves are white images, but are showing up grey.
Am i missing something?
Here's my Renderer code
public class TabRenderer : TabbedRenderer
{
public override void ViewWillAppear(bool animated)
{
base.ViewWillAppear(animated);
TabBar.BarTintColor = UIColor.FromRGB(66, 116, 184);
TabBar.SelectedImageTintColor = UIColor.FromRGB(137, 137, 137);
var items = TabBar.Items;
for (var i = 0; i < items.Length; i++)
{
var icon = i == 0 ? "TabIcon1" : i == 1 ? "TabIcon2" : i == 2 ? "TabIcon3" : i == 3 ? "TabIcon4" : i == 4 ? "TabIcon5" : i == 5 ? "TabIcon6" : "";
//var icon = i == 0 ? "TabIcon1" : i == 1 ? "TabIcon2" : i == 2 ? "TabIcon3" : i == 3 ? "TabIcon4" : i == 4 ? "TabIcon5" : "";
items[i].Image = UIImage.FromBundle(icon);
items[i].Image = items[i].Image.ImageWithRenderingMode(UIImageRenderingMode.AlwaysOriginal);
items[i].SetTitleTextAttributes(new UITextAttributes(){ TextColor = UIColor.White }, UIControlState.Normal);
items[i].SetTitleTextAttributes(new UITextAttributes(){ TextColor = UIColor.FromRGB(137, 137, 137) }, UIControlState.Selected);
}
}
}
Thanks.
Send email and attach a text file as attachment in mail client from Shared code in Xamarin.Forms
Hi, I'm using the Xamarin.Forms, and I have used "Device.OpenUri" to open the default email client in android. Is there any way to add the attachment?.
The code which I have used to open mail client is given below.
Device.OpenUri(new Uri("mailto:XXX@YYY.com?subject=MySubject&body=MyFile&attachment='"+filePath+"'"));
The problem I'm facing is the file (which is given as file path) is not attached. It will very helpful if someone point me a solution or a provide me some sample code.
Thanks in advance.
App crashing
hi evryone..
i am working on a app which has pages with lots of images and data. now here i navigating from one page to another by clicking on some image using popmodalasync. when i do it again and again it is crashing at some point. Please suggest any solution.. what might be the cause?? i am not writing any on appearing and on disappearing in my pages. neither using gc.collect() method. hoping for a solution.
Tabbed page
Hi
I have tabbed page in my app and I'm trying to find how to set different width for each tab head . Is it possible ?
VerticalOptions = LayoutOptions.End inside Autosized Grid Row is leaving gap
I'm having a problem with VerticalOptions = LayoutOptions.End inside a grid row. At first I thought it was an issue with Image and autosized rows, but I tried a BoxView and it is also leaving a small gap between the end of the control and the end of the row. I also tried changing the row from autosized to GridLength(1, GridUnitType.Star) to see if that resolved it and it still leaves the gap. I've set padding, and rowspacing both to 0 on the grid so it's not either of those. Incidentally, if I set the VerticalOptions = LayoutOptions.Fill then the gap disappears. It looks like a bug in the End calculation? My row has two images, one is set to FILL vertically, the other smaller image must appear at the END vertically. The problem manifests on Android (both XHDPI and XXHDPI) but does not appear on iOS.
Anyone have any ideas on how to fix it?
var grid = new Grid
{
ColumnSpacing = 0,
RowSpacing = 0,
VerticalOptions = LayoutOptions.Fill,
HorizontalOptions = LayoutOptions.Fill,
RowDefinitions = {
new RowDefinition { Height = GridLength.Auto},
new RowDefinition { Height = new GridLength(1, GridUnitType.Star)},
new RowDefinition { Height = GridLength.Auto}
},
ColumnDefinitions = {
new ColumnDefinition { Width = GridLength.Auto},
new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star)},
new ColumnDefinition { Width = GridLength.Auto}
}
};
var groundImage = new Image
{
Source = "Images/Core/groundicon.png", //1280 x 180
HorizontalOptions = LayoutOptions.Fill,
VerticalOptions = LayoutOptions.End
};
var treasuryImage = new Image
{
Source = "Images/Core/bankmoneyicon.png", //256 x 256
HorizontalOptions = LayoutOptions.Center,
VerticalOptions = LayoutOptions.Fill
};
grid.Children.Add(groundImage, 0, 2);
Grid.SetColumnSpan(groundImage, 3);
grid.Children.Add(treasuryImage, 1, 2);
MessagingCenter problem
Hello,
Does MessagingCenter work fine under Windows Phone? I have some code (Xamarin Forms) that works fine under Android. If I use WP my message is sent, but it seems that subscriber doesnt recognize it. In other word methd : MessagingCenter.Subscribe.... doesnt get invoked.
Unable to install Xuni.CollectionView using NuGet
while installing Xuni.CollectionView using Nuget of portable option of Project it showing the error below:
"Could not install package 'Xuni.CollectionView 2.1.20161.86'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile111', but the package does not contain any assembly references or content files that are compatible with that framework."
what will be the solution for this?
How do I get Button event in a CustomViewRenderer?
Hello together,
My Question refers to the CameraExample on https://github.com/xamarin/xamarin-forms-samples/tree/master/CustomRenderers/View .
I have a Xamarin.Forms Page with 2 buttons ("take picture" and "swap from front to back camera"). Now I want to get the click event of this 2 buttons in the CustomViewRenderer.
what is the usually way to get a button event in a CustomViewRenderer? (with respect to mvvm)
Currently I have in the CameraPreview (Portable) a "Button Buttonproperty{}". In the OnelementChanged Method in CameraPreviewRender I do it like this:
Button takePictureButton, swapCameraButton;
protected override void OnElementChanged (ElementChangedEventArgs<CustomRenderer.CameraPreview> e)
{
base.OnElementChanged (e);
if (Control == null) {
cameraPreview = new CameraPreview (Context);
SetNativeControl (cameraPreview);
}
if (e.OldElement != null) {
// Unsubscribe
cameraPreview.Click -= OnCameraPreviewClicked;
takePictureButton.onclick -= ....;
}
if (e.NewElement != null) {
Control.Preview = Camera.Open ((int)e.NewElement.Camera);
takePictureButton = e.NewElement.takePictureButton;
// Subscribe
takePictureButton.onclick += ....;
}
}
I look forward to your help
How could I create a grid view in Xamarin forms?
How could I create a grid view Xamarin forms and add a data source(Data Template) into it?
Nested row Devexpress grid in my Xamarin forms
Hi All,
I'm using Devexpress grid in my Xamarin forms project to have grid type layout. I need to have nested rows. For Example a row can be expandable and a plus sign to add new row inside a parent row. Like Master row in Xaml class.
Can anyone please help.
DisplayAlert on android crash
Is there a way to check if the activity exists on android side of Xamarin.Forms so that calling DisplayAlert doesn't crash like this:
Java.Lang.RuntimeExceptionAttempt to invoke virtual method 'android.content.res.Resources$Theme android.content.Context.getTheme()' on a null object reference
This seems to happen when they user backgrounds the app or something when a DisplayAlert would have shown. On android proper you'd check if the activity is available.
Do I need to write an Android DependencyService to check this or is there a way to do it in Xamarin.Forms?
Thanks
Does Xamarin Forms have any type of Masked Entry / Textbox?
Is there any type of way to create a masked Entry in Xamarin Forms? Allowing to set a custom mask.
Enabling XamlCompilationOptions.Compile prevents styling from working in Xamarin.Forms app on iOS.
I've enabled XamlCompilationOptions at both Assembly and View levels in my application while optimising it and found that on iOS (using 9.3) all of my padding, background colours, etc stop working.
Have I missed something critical or is there any chance I'm doing something wrong?
I've setup a StackLayout with padding and a blue background inside a ListView ViewCell, inside that StackLayout is a Label with a green background and text. In this example the padding and background colours don't appear in iOS but are fine on Android.