Hi guys i wondering if anyody have a example or an idea about populate a spinner like combobox in VB.net/C#.net
How populate a Spinner with Key/Value
Confused by 3D rotations
If I run the Xamarin.Forms 3D rotation sample and compare it to the SkiaSharp 3D rotation sample, I see different behavior. The SkiaSharp transform seems to be relative to the screen, but the Xamarin.Forms transform seems to be relative to the View. In other words, in Xamarin.Forms, if I first rotate the X-axis by 90 degrees, it takes an image and puts it on its side so it looks like a horizontal line. Then if I add a Y-axis rotation, it rotates that line so it spins the line in a circle like hands on a clock. But in SkiaSharp, if I first rotate the X-axis by 90 degrees, it takes an image and puts it on its side so it looks like a horizontal line just like Xamarin.Forms. But now, if I then add Y-axis rotation, it still rotates about the original Y-axis and spins the image so it remains looking like a horizontal line.
Is this working correctly?
ANDROID: Accessing Android.Content.Res.Resources.OpenRawResource() in a Dependency
I am trying to open a Raw resource from within a Dependency service.
How do I get access to Android.Content.Res.Resources.OpenRawResource()
?
Linear Gradient Along a Circular path?
Is it possible to use a series of shader [in SkiaSharp] to create a linear gradient along a circular path - as seen in this case in illustrator?
I will try to install Kimono to investigate to see if this can be done. I appreciate any link or suggestion
Clipping of a Xamarin Forms Android Entry Custom Renderer
I am trying to write a custom renderer in a Forms project for an Entry which features text above the entry.
But my custom entry cuts off the bottom section of the entry. The border actually draws correctly, along with the text, however the bottom portion of the view is cut off. I tested this without the text and the drawable was drawn as expected. I'm sure this has something to do with the bounds, clipBounds or the size of the canvas but I can't for the life of me figure it out -- if anyone can it would be must appreciated!
My way to get this up and running was to use a drawable for the border around the entry with some additional code in the DrawChild method to try and create the text.
Here in OnElementChanged I set the drawable for my Entry along with some other values.
protected override void OnElementChanged(ElementChangedEventArgs<Entry> e)
{
base.OnElementChanged(e);
if (Control != null)
{
//Initialise textview to get textsize
tv = new Android.Widget.TextView(Context);
//Set values for our paint used for our label text
paint.TextSize = tv.TextSize;
//Set fields
entry = (CustomEntry)Element;
label = entry.EntryLabel;
//Set typical values
Control.SetHintTextColor(Xamarin.Forms.Color.FromHex("#B8B8B8").ToAndroid());
backgroundDrawable = Context.GetDrawable(Resource.Drawable.entry_background);
//Set as our current background with left and right padding
Control.Background = backgroundDrawable;
Control.SetPadding(Control.PaddingLeft + 10, Control.PaddingTop, Control.PaddingRight +10, Control.PaddingBottom);
}
}
Then in my DrawChild method I aim to draw the text at (0, paint.TextSize) as the docs states that the y axis in .DrawText() is the baseline of the text. Then I draw the actual entry underneath this baseline by 4 pixels.
protected override bool DrawChild(Canvas canvas, Android.Views.View child, long drawingTime)
{
try
{
//Handle our label drawing
DrawLabel(canvas);
//Set the child element's Y position to be lower than the label and draw it.
child.SetY(paint.TextSize + 4);
return base.DrawChild(canvas, child, drawingTime);
}
catch (Exception e)
{
System.Diagnostics.Debug.WriteLine("Exception in CustomEntry: " + e.Message);
}
return base.DrawChild(canvas, child, drawingTime);
}
/// <summary>
/// Draw our label in either the focused or unfocused colours.
/// </summary>
/// <param name="canvas">Canvas</param>
protected void DrawLabel(Canvas canvas)
{
if (HasFocus)
canvas.DrawText(label, 0, label.Length, 0, paint.TextSize, focusPaint);
else
canvas.DrawText(label, 0, label.Length, 0, paint.TextSize, paint);
}
PropertyChanged on a custom control not firing when using a {Binding}
Hello,
I have created a custom control with the following code:
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class ControlLabel : ContentView
{
public string TitleText { get; set; }
public string DescriptionText { get; set; }
public static readonly BindableProperty TitleTextProperty =
BindableProperty.Create("TitleText", typeof(string), typeof(ControlLabel), "", BindingMode.TwoWay, propertyChanged: TitleTextChanged);
public static readonly BindableProperty DescriptionTextProperty =
BindableProperty.Create("DescriptionText", typeof(string), typeof(ControlLabel), "", BindingMode.TwoWay, propertyChanged: DescriptionTextChanged);
public ControlLabel()
{
InitializeComponent();
}
private static void TitleTextChanged(BindableObject bindable, object oldValue, object newValue)
{
var control = (ControlLabel)bindable;
control.Title.Text = newValue.ToString();
}
private static void DescriptionTextChanged(BindableObject bindable, object oldValue, object newValue)
{
var control = (ControlLabel)bindable;
control.Description.Text = newValue.ToString();
}
}
#
<?xml version="1.0" encoding="UTF-8"?>
<ContentView /*namespaces removed since the forum won't let me post them*/>
<ContentView.Content>
<StackLayout Spacing="0">
<Label x:Name="Title" Style="{DynamicResource ListItemTextStyle}"/>
<Label x:Name="Description" FontAttributes="Italic" TextColor="Gray" Style="{DynamicResource CaptionStyle}"/>
</StackLayout>
</ContentView.Content>
</ContentView>
I then use it like this:
<myApp:ControlLabel Grid.Row="0" Grid.Column="0" x:Name="WelcomeDesc" TitleText="test" DescriptionText="test123 456"/>
This works perfectly.
But then I try to replace the hardcoded text with a binding:
<myApp:ControlLabel Grid.Row="0" Grid.Column="0" x:Name="WelcomeDesc" TitleText="{i18N:Translate TransText}" DescriptionText="{i18N:Translate TransText1}"/>
When I run the app, then then both TitleText and DescriptionText are empty. But I know the binding is fine since built-in controls work just fine, this works no problem:
<Button Text="{i18N:Translate TransText}">
After some debugging, I found out that when I use the binding then the propertyChanged (TitleTextChanged) never fires, but with a hardcoded text it fires just fine.
What could be the problem? Thank you.
How can I use volume up/down to select from spinner?
I am developing an app for a handheld scanner which contains two buttons (R1, R2), and volume up/down. The page I am having issues with contains some TextViews, 2 Spinners, and a Submit button. Ideally, I would like it to work as follows:
- Hit R2 to open the first spinner
- Use the volume up/down to navigate the spinner
- Hit R2 to select value and open 2nd spinner
- Again, use volume up/down to navigate 2nd spinner
- Hit R2 again to select value and submit.
I am able to code for the R2 buttons to open the spinners. The issue I am having is that once the spinners are open, my code for the volume up/down (also R2) is not being executed. Is there something else I need to do to allow override of keys while spinner is open? Code is below.
public override bool OnKeyDown([GeneratedEnum] Keycode keyCode, KeyEvent e)
{
if(keyCode == Keycode.VolumeDown)
{
Console.WriteLine("VolumeDown Pressed==============="); //Not Executing when spinner is open
}
if(keyCode == Keycode.ButtonR2)
{
if (qtyFocusFlg == false)
{
qtyFocusFlg = true;
qty_spinner.RequestFocus();
qty_spinner.PerformClick();
}
else if (uomFocusFlg == false)
{
uomFocusFlg = true;
uom_spinner.PerformClick();
}
else
{
SavePO();
}
return true;
}
return base.OnKeyDown(keyCode, e);
}
How trigger the DateSelected event of DatePicker only if the user tap on "Done" on iOS?
Hello,
How trigger the DateSelected event of DatePicker only if the user tap on "Done" on iOS?
Currently the event is triggered if you change the year, month or date
Best regards.
Correct XAML pattern to bind element to BindingContext property ('x:Name' binds to page not context)
Hi, I'm new to Xamarin, but I've already built a few pages and have got most of the binding working flawlessly.
I am, however, having an issue figuring out the proper way to bind an element in XAML (a Map to be precise) to a child property of the BindingContext (a ViewModel). I see that the "x:Name" attribute will bind it to a property of the page class, but not the context. All the other binding examples affect values of an element, but not the element object itself.
Is there a way to do this cleanly, or do I have to do what I'm doing now where the page class passes the element (Map) along into the ViewContext manually at startup?
Android library with CPS and support libraries fails to rebuild randomly
I'm using the common project system in combination with MSBuild.Sdk.Extras and had no problem in some simple libraries so far. Now I'm using some support libraries and having random issues on project rebuilds. I'm running VisualStudio 15.5.0 but had the same issues with the previous Version.
My project file is pretty simple:
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
<PropertyGroup>
<TargetFramework>monoandroid80</TargetFramework>
<RootNamespace>Framework</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MSBuild.Sdk.Extras" Version="1.1.0" PrivateAssets="All" />
<PackageReference Include="Xamarin.Android.Support.v4" Version="26.1.0.1" />
<PackageReference Include="Xamarin.Android.Support.v7.AppCompat" Version="26.1.0.1" />
</ItemGroup>
<Import Project="$(MSBuildSDKExtrasTargets)" Condition="Exists('$(MSBuildSDKExtrasTargets)')" />
</Project>
After couple of rebuilds I'm getting errors for ResolveLibraryProjectImports
error MSB4018: System.IO.IOException: The process cannot access the file '...\obj\Debug\monoandroid80\lp\5\__AndroidLibraryProjects__.zip' because it is being used by another process.
At the same time I see these two entries in the error list.
MSB4018 The "GetImportedLibraries" task failed unexpectedly.
System.IO.DirectoryNotFoundException: Could not find a part of the path '...\obj\Debug\monoandroid80\designtime\libraryimports.cache'.
I suspect some issue with rebuild and design time builds.
MSBuild on the command line works all the time.
So is there any magic switch to make this work and when can we expect full support for CPS out of the box (at least for libraries)?
Surface.Snapshot.Encode jpeg much worse than png after many iterations
I have a game where I basically encode parts (rectangles) of a larger image over and over, saving the results in a database....to be read back and repeated over and over. This may occur thousands of times. I don't do any manipulation of the starting image...just copy small rectangles around. After each iteration, I get the bytes from the surface to save in a database.
bytes = surface.Snapshot().Encode(SKEncodedImageFormat.Jpeg, 100).ToArray();
I've noticed that even after maybe 10 iterations of loading, copying, encoding, saving, the jpeg result begins to lose some clarity and definitely a lose of color vibrance. I am using a 100% quality.
If I change the encoding to SKEncodedImageFormat.Png, the end result is great...just like the original image. Unfortunately, the png encoding takes significantly longer and the resulting file size is 3 times the size of the jpeg.
It seems to be the result of the surface Encode method. Any ideas how I can get a better encoding quality with Jpeg?
Maybe there is some way using SkiaSharp that I'm not aware of to copy a rectangle from a source set of bytes to another set of bytes without having to encode the surface.
Random native UIImpactFeedbackGenerator crash in Xamarin.Forms.iOS
Since updating to Visual Studio 15.5 (on Windows 10), Xcode 9.2 and the latest stable channel in Xamarin Studio (on the Mac), I have been receiving random native crashes regarding the UIImpactFeedbackGenerator (which is NOT used by me or any 3rd party library I use).
This may or may not have to do with the Xamarin.Forms.Picker, very difficult to debug.
Can anyone perhaps assist with this please?
2017-12-07 16:44:08.489 MyApp.iOS[307:35483] *** Assertion failure in -[UIImpactFeedbackGenerator _forceDeactivationForStyle:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3698.33.7/UIFeedbackGenerator.m:545
Unhandled Exception:
Foundation.MonoTouchException:
Thread finished: #41
The thread 0x29 has exited with code 0 (0x0).
2017-12-07 16:44:22.874 MyApp.iOS[307:35483]
Unhandled Exception:
Foundation.MonoTouchException: Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: Exception raised while auto-deactivating for style 2: force deactivating with style TurnOn which is not active (activationCount = -1)
configuration: <_UIImpactFeedbackGeneratorConfiguration: 0x1c4aba820: isEnabled=1, activationStyle=2, requiredSupportLevel=2>
activationCount: -1, styleActivationCount: -1
engines: {(
<_UIFeedbackHapticOnlyEngine: 0x1c42c3f70: state=4, numberOfClients=1, prewarmCount=0, _isSuspended=0>
)}
Native stack trace:
0 CoreFoundation 0x000000018608a37c + 148
1 libobjc.A.dylib 0x00000001852d0528 objc_exception_throw + 56
2 CoreFoundation 0x000000018608a2ac + 0
3 UIKit 0x000000018f
0x00000001013881fc MyApp.iOS + 11977212
17 MyApp.iOS 0x00000001008b77a0 MyApp.iOS + 636832
18 MyApp.iOS 0x0000000100df33b4 MyApp.iOS + 6124468
19 MyApp.iOS 0x0000000104463678 mono_pmip + 22124
20 MyApp.iOS 0x00000001044cfd28 mono_pmip + 466204
21 MyApp.iOS 0x00000001044d2a08 mono_pmip + 477692
22 MyApp.iOS 0x000000010444bf30 _ZN7plcrash3BIT5async24dwarf_cfa_state_iteratorIyxE4nextEPjPNS1_28plcrash_dwarf_cfa_reg_rule_tEPy + 281464
23 MyApp.iOS 0x000000010458fe84 xamarin_localized_string_format_9 + 22244
24 MyApp.iOS 0x00000001008b64bc MyApp.iOS + 631996
25 libdyld.dylib 0x0000000185a6c56c + 4
at ObjCRuntime.Runtime.ThrowNSException (System.IntPtr ns_exception) [0x00000] in /Users/builder/data/lanes/5489/c4240f3f/source/xamarin-macios/src/Ob
jCRuntime/Runtime.cs:362
at ObjCRuntime.Runtime.throw_ns_exception (System.IntPtr exc) [0x00000] in /Users/builder/data/lanes/5489/c4240f3f/source/xamarin-macios/runtime/Delegates.generated.cs:130
at (wrapper native-to-managed) ObjCRuntime.Runtime:throw_ns_exception (intptr)
--- End of stack trace from previous location where exception was thrown ---
at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Users/builder/data/lanes/5489/c4240f3f/source/xamarin-macios/src/UIKit/UIApplication.cs:79
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/5489/c4240f3f/source/xamarin-macios/src/UIKit/UIApplication.cs:63
at MyApp.iOS.Application.Main (System.String[] args) [0x00001] in E:-\Mobile\src\Shared\iOS\Main.cs:9 0 CoreFoundation
0x000000018608a37c + 148
1 libobjc.A.dylib 0x00000001852d0528 objc_exception_throw + 56
2 CoreFoundation 0x000000018608a2ac + 0
3 UIKit 0x000000018ffb0198 + 224
4 UIKit 0x000000018ffafec8 + 116
5 libdispatch.dylib 0x0000000185a06a14 + 16
6 libdispatch.dylib 0x0000000185a0ef08 + 428
7 libdispatch.dylib 0x0000000185a18848 + 1588
8 libdispatch.dylib 0x0000000185a13570 + 720
9 CoreFoundation 0x0000000186032544 + 12
10 CoreFoundation 0x0000000186030120 + 2012
11 CoreFoundation 0x0000000185f4fe58 CFRunLoopRunSpecific + 436
12 GraphicsServices 0x0000000187dfcf84 GSEventRunModal + 100
13 UIKit
0x000000018f5cf67c UIApplicationMain + 236
14 MyApp.iOS 0x0000000101ab32c0 MyApp.iOS + 19493568
15 MyApp.iOS 0x000000010138833c MyApp.iOS + 11977532
16 MyApp.iOS 0x00000001013881fc MyApp.iOS + 11977212
17 MyApp.iOS 0x00000001008b77a0 MyApp.iOS + 636832
18 MyApp.iOS 0x0000000100df33b4 MyApp.iOS + 6124468
19 MyApp.iOS 0x0000000104463678 mono_pmip + 22124
20 MyApp.iOS 0x00000001044cfd28 mono_pmip + 466204
21 MyApp.iOS 0x00000001044d2a08 mono_pmip + 477692
22 MyApp.iOS 0x000000010444bf30 _ZN7plcrash3BIT5async24dwarf_cfa_state_iteratorIyxE4nextEPjPNS1_28plcrash_dwarf_cfa_reg_rule_tEPy + 281464
23 MyApp.iOS 0x000000010458fe84 xamarin_localized_string_format_9 + 22244
24 MyApp.iOS 0
fb0198 + 224
4 UIKit 0x000000018ffafec8 + 116
5 libdispatch.dylib 0x0000000185a06a14 + 16
6 libdispatch.dylib 0x0000000185a0ef08 + 428
7 libdispatch.dylib 0x0000000185a18848 + 1588
8 libdispatch.dylib 0x0000000185a13570 + 720
9 CoreFoundation 0x0000000186032544 + 12
10 CoreFoundation 0x0000000186030120 + 2012
11 CoreFoundation 0x0000000185f4fe58 CFRunLoopRunSpecific + 436
12 GraphicsServices 0x0000000187dfcf84 GSEventRunModal + 100
13 UIKit 0x000000018f5cf67c UIApplicationMain + 236
14 MyApp.iOS 0x0000000101ab32c0 MyApp.iOS + 19493568
15 MyApp.iOS 0x000000010138833c MyApp.iOS + 11977532
16 MyApp.iOS
x00000001008b64bc MyApp.iOS + 631996
25 libdyld.dylib 0x0000000185a6c56c + 4
2017-12-07 16:44:22.880 MyApp.iOS[307:35483] Unhandled managed exception:
Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: Exception raised while auto-deactivating for style 2: force deactivating with style TurnOn which is not active (activationCount = -1)
configuration: <_UIImpactFeedbackGeneratorConfiguration: 0x1c4aba820: isEnabled=1, activationStyle=2, requiredSupportLevel=2>
activationCount: -1, styleActivationCount: -1
engines: {(
<_UIFeedbackHapticOnlyEngine: 0x1c42c3f70: state=4, numberOfClients=1, prewarmCount=0, _isSuspended=0>
)}
Native stack trace:
0 CoreFoundation 0x000000018608a37c + 148
1 libobjc.A.dylib 0x00000001852d0528 objc_exception_throw + 56
2 CoreFoundation 0x000000018608a2ac + 0
3 UIKit 0x000000018ffb0198 + 224
4 UIKit 0x000000018ffafec8 + 116
5 libdispatch.dylib 0x0000000185a06a14 + 16
6 libdispatch.dylib 0x0000000185a0ef08 + 428
7 libdispatch.dylib 0x0000000185a18848 + 1588
8 libdispatch.dylib 0x0000000185a13570 + 720
9 CoreFoundation 0x0000000186032544 + 12
10 CoreFoundation 0x0000000186030120 + 2012
11 CoreFoundation 0x0000000185f4fe58 CFRunLoopRunSpecific + 436
12 GraphicsServices 0x0000000187dfcf84 GSEventRunModal + 100
13 UIKit 0x000000018f5cf67c UIApplicationMain + 236
14 MyApp.iOS 0x0000000101ab32c0 MyApp.iOS + 19493568
15 MyApp.iOS 0x000000010138833c MyApp.iOS + 11977532
16 MyApp.iOS 0x00000001013881fc Bate
leur.iOS + 11977212
17 MyApp.iOS 0x00000001008b77a0 MyApp.iOS + 636832
18 MyApp.iOS 0x0000000100df33b4 MyApp.iOS + 6124468
19 MyApp.iOS 0x0000000104463678 mono_pmip + 22124
20 MyApp.iOS 0x00000001044cfd28 mono_pmip + 466204
21 MyApp.iOS 0x00000001044d2a08 mono_pmip + 477692
22 MyApp.iOS 0x000000010444bf30 _ZN7plcrash3BIT5async24dwarf_cfa_state_iteratorIyxE4nextEPjPNS1_28plcrash_dwarf_cfa_reg_rule_tEPy + 281464
23 MyApp.iOS 0x000000010458fe84 xamarin_localized_string_format_9 + 22244
24 MyApp.iOS 0x00000001008b64bc MyApp.iOS + 631996
25 libdyld.dylib 0x0000000185a6c56c + 4
(Foundation.MonoTouchException)
at ObjCRuntime.Runtime.ThrowNSException (System.IntPtr ns_exception) [0x00000] in /Users/builder/data/lanes/5489/c4240f3f/source/xamarin-macio
s/src/ObjCRuntime/Runtime.cs:362
at ObjCRuntime.Runtime.throw_ns_exception (System.IntPtr exc) [0x00000] in /Users/builder/data/lanes/5489/c4240f3f/source/xamarin-macios/runtime/Delegates.generated.cs:130
at (wrapper native-to-managed) ObjCRuntime.Runtime:throw_ns_exception (intptr)
--- End of stack trace from previous location where exception was thrown ---
at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Users/builder/data/lanes/5489/c4240f3f/source/xamarin-macios/src/UIKit/UIApplication.cs:79
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/5489/c4240f3f/source/xamarin-macios/src/UIKit/UIApplication.cs:63
at MyApp.iOS.Application.Main (System.String[] args) [0x00001] in E:-\Mobile\src\Shared\iOS\Main.cs:9
2017-12-07 16:
44:22.881 MyApp.iOS[307:35483] critical: Stacktrace:
2017-12-07 16:44:22.882 MyApp.iOS[307:35483] critical:
Native stacktrace:
2017-12-07 16:44:22.885 MyApp.iOS[307:35483] critical: 0 MyApp.iOS 0x0000000104455560 _ZN7plcrash3BIT5async24dwarf_cfa_state_iteratorIyxE4nextEPjPNS1_28plcrash_dwarf_cfa_reg_rule_tEPy + 319912
2017-12-07 16:44:22.885 MyApp.iOS[307:35483] critical: 1 libsystem_platform.dylib 0x0000000185cabb50 _sigtramp + 52
2017-12-07 16:44:22.886 MyApp.iOS[307:35483] critical: 2 libsystem_pthread.dylib 0x0000000185cb12f8 + 396
2017-12-07 16:44:22.887 MyApp.iOS[307:35483] critical: 3 libsystem_c.dylib 0x0000000185b0afbc abort + 140
2017-12-07 16:44:22.888 MyApp.iOS[307:35483] critical: 4 MyApp.iOS 0x0000000104581944 xamarin_get_block_descriptor + 8532
2017-12-07 16:44:22.888 MyApp.iOS[307:35483] critical: 5 MyApp.iOS 0x0000000104494114 mono_pmip + 221448
2017-12-07 16:44:22.889 MyApp.iOS[307:35483] critical: 6 MyApp.iOS 0x000000010445535c _ZN7plcrash3BIT5async24dwarf_cfa_state_iteratorIyxE4nextEPjPNS1_28plcrash_dwarf_cfa_reg_rule_tEPy + 319396
2017-12-07 16:44:22.890 MyApp.iOS[307:35483] critical: 7 MyApp.iOS 0x000000010445416c _ZN7plcrash3BIT5async24dwarf_cfa_state_iteratorIyxE4nextEPjPNS1_28plcrash_dwarf_cfa_reg_rule_tEPy + 314804
2017-12-07 16:44:22.890 MyApp.iOS[307:35483] critical: 8 MyApp.iOS 0x000000010444c750 _ZN7plcrash3BIT5async24dwarf_cfa_state_iteratorIyxE4nextEPjPNS1_28plcrash_dwarf_cfa_reg_rule_tEPy + 283544
2017-12-07 16:44:22.891 MyApp.iOS[307:35483] critical: 9 MyApp.iOS 0x0000000100e48908 MyApp.iOS + 6473992
2017-12-07 16:44:22.891 MyApp.iOS[307:35483] critical: 10 MyApp.iOS 0x0000000104581698 xamarin_get_block_descriptor + 7848
2017-12-07 16:44:22.892 MyApp.iOS[307:35483] critical: 11 MyApp.iOS 0x0000000104581518 xamarin_get_block_descriptor + 7464
2017-12-07 16:44:22.893 MyApp.iOS[307:35483] critical: 12 MyApp.iOS 0x00000001045814d4 xamarin_get_block_descriptor + 7396
2017-12-07 16:44:22.893 MyApp.iOS[307:35483] critical: 13 MyApp.iOS 0x0000000101b8efd4 MyApp.iOS + 20393940
2017-12-07 16:44:22.894 MyApp.iOS[307:35483] critical: 14 MyApp.iOS 0x000000010457fa60 xamarin_get_block_descriptor + 624
2017-12-07 16:44:22.894 MyApp.iOS[307:35483] critical: 15 MyApp.iOS 0x0000000104581f1c xamarin_get_block_descriptor + 10028
2017-12-07 16:44:22.895 MyApp.iOS[307:35483] critical: 16 CoreFoundation 0x000000018608a6d8 + 628
2017-12-07 16:44:22.896 MyApp.iOS[307:35483] critical: 17 libobjc.A.dylib 0x00000001852d0804 + 112
2017-12-07 16:44:22.896 MyApp.iOS[307:35483] critical: 18 libc++abi.dylib 0x00000001852c054c + 16
2017-12-07 16:44:22.897 MyApp.iOS[307:35483] critical: 19 libc++abi.dylib 0x00000001852c05b8 _ZSt9terminatev + 60
2017-12-07 16:44:22.898 MyApp.iOS[307:35483] critical: 20 libdispatch.dylib 0x0000000185a06a28 + 36
2017-12-07 16:44:22.898 MyApp.iOS[307:35483] critical: 21 libdispatch.dylib 0x0000000185a0ef08 + 428
2017-12-07 16:44:22.899 MyApp.iOS[307:35483] critical: 22 libdispatch.dylib 0x0000000185a18848 + 1588
2017-12-07 16:44:22.899 MyApp.iOS[307:35483] critical: 23 libdispatch.dylib 0x0000000185a13570 + 720
2017-12-07 16:44:22.900 MyApp.iOS[307:35483] critical: 24 CoreFoundation 0x0000000186032544 + 12
2017-12-07 16:44:22.900 MyApp.iOS[307:35483] critical: 25 CoreFoundation 0x0000000186030120 + 2012
2017-12-07 16:44:22.900 MyApp.iOS[307:35483] critical: 26 CoreFoundation 0x0000000185f4fe58 CFRunLoopRunSpecific + 436
2017-12-07 16:44:22.901 MyApp.iOS[307:35483] critical: 27 GraphicsServices 0x0000000187dfcf84 GSEventRunModal + 100
2017-12-07 16:44:22.901 MyApp.iOS[307:35483] critical: 28 UIKit 0x000000018f5cf67c UIApplicationMain + 236
2017-12-07 16:44:22.902 MyApp.iOS[307:35483] critical: 29 MyApp.iOS 0x0000000101ab32c0 MyApp.iOS + 19493568
2017-12-07 16:44:22.902 MyApp.iOS[307:35483] critical: 30 MyApp.iOS 0x000000010138833c MyApp.iOS + 11977532
2017-12-07 16:44:22.902 MyApp.iOS[307:35483] critical: 31 MyApp.iOS 0x00000001013881fc MyApp.iOS + 11977212
2017-12-07 16:44:22.903 MyApp.iOS[307:35483] critical: 32 MyApp.iOS 0x00000001008b77a0 MyApp.iOS + 636832
2017-12-07 16:44:22.903 MyApp.iOS[307:35483] critical: 33 MyApp.iOS 0x0000000100df33b4 MyApp.iOS + 6124468
2017-12-07 16:44:22.903 MyApp.iOS[307:35483] critical: 34 MyApp.iOS 0x0000000104463678 mono_pmip + 22124
2017-12-07 16:44:22.904 MyApp.iOS[307:35483] critical: 35 MyApp.iOS 0x00000001044cfd28 mono_pmip + 466204
2017-12-07 16:44:22.904 MyApp.iOS[307:35483] critical: 36 MyApp.iOS 0x00000001044d2a08 mono_pmip + 477692
2017-12-07 16:44:22.905 MyApp.iOS[307:35483] critical: 37 MyApp.iOS 0x000000010444bf30 _ZN7plcrash3BIT5async24dwarf_cfa_state_iteratorIyxE4nextEPjPNS1_28plcrash_dwarf_cfa_reg_rule_tEPy + 281464
2017-12-07 16:44:22.905 MyApp.iOS[307:35483] critical: 38 MyApp.iOS 0x000000010458fe84 xamarin_localized_string_format_9 + 22244
2017-12-07 16:44:22.906 MyApp.iOS[307:35483] critical: 39 MyApp.iOS 0x00000001008b64bc MyApp.iOS + 631996
2017-12-07 16:44:22.906 MyApp.iOS[307:35483] critical: 40 libdyld.dylib 0x0000000185a6c56c + 4
2017-12-07 16:44:22.906 MyApp.iOS[307:35483] critical:
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
The app has been terminated.
Failed to Stop app: An error occured on client IDB480752 while executing a reply for topic xvs/idb/4.8.0.752/stop-app
The app has been terminated.
Turn screen off
i want locked screen from code please help
UrhoSharp with Proper UWP support (x64 + Release)
I've been working on a desktop software project using Xamarin Forms / UWP / UrhoSharp and when we started we came to the conclusion that Microsoft was pushing Urho as their cross platform 3D library and were actively working on it. Our hope was that since UWP was their native platform Urhosharp would be top priority. It's been many months and unfortunately 64 bit and Release builds are still not working for UWP.
Since this is a big priority for us I've grabbed the latest xamarin/urho code to build the library manually, and try and get proper support so the rest of the community could benefit as well. The problem I'm seeing is that in the code there is a pre-built SDL2 (x86/debug) library that is being used in the UWP builds. For me to move forward would someone be able to provide the proper source+configuration for this library so I could build it myself?
@EgorBo @MigueldeIcaza If you could offer any help I could certainly be willing to put in the time to move this project forward.
Thanks for all your help!
Print in Epson TM-U220 with Xamarin
Hi everyone, I have a problem with my printer (USB). I followed all documentation but I'm missing something. I can't make it work.
I have two Xamarin's projects.
Android Java Bindings Library with the following tree structure:
a. Jars/EPOS-Print.jar
b. libs/armeabi/libeposprint.soAndroid Application, that calls to that JBL project. I have the following lines of code:
using Com.Epson.Epsonio; using Com.Epson.Eposprint; namespace EpsonPrint { [Activity(Label = "EpsonPrint", MainLauncher = true, Icon = "@drawable/icon")] public class MainActivity : Activity { static Print printer = null; string openDeviceName = string.Empty; int connectionType = Print.DevtypeUsb; int language = Builder.LangEn; String printerName = "TM-U220"; Print getPrinter(){ return printer; } protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); //Java.Lang.JavaSystem.Load("libs/armeabi/libeposprint.so"); //This line of code fails because 'libhoudini.so' is missing??? SetContentView(Resource.Layout.Main); Button button = FindViewById<Button>(Resource.Id.myButton); Finder.Start(BaseContext, DevType.Usb, "null"); //BOOM! button.Click += delegate { }; } } }
Can anyone helps me?
VS on Mac Constraints
VS on Mac for xamarin just got update and the IDE changed and the auto constraints button is gone.
Get replaced ,moved???
Xamarin Forms MasterDetail has Detail Page with extra nav bar...
When I created a brand new Xamarin.Forms project in VS 2017 and selected MasterDetail, the Android version of the project shows a second nav bar with a menu on the detail pages under the main nav bar on the page. It does out of the box. How can I hide this secondary menu. I am sure it is something small that I am missing, but any help would be great.
How to make a ViewCell from a Table View visible / not visible
Hello,
i need help. I have a TableView with ViewCells. Now i want to make a ViewCell visible or not visible with Binding.
So i set the IsEnabled property from the ViewCell to false (fromtoCells = false;). But when i run the program the ViewCell is visible....
Can someone help me?
`<ViewCell IsEnabled="{Binding fromtoCells}">
<StackLayout Orientation="Horizontal">
<Label Text="von" BackgroundColor="White" TextColor="Black" VerticalTextAlignment="Center" HorizontalTextAlignment="Start" HorizontalOptions="FillAndExpand" Margin="15,0,0,0" ></Label>
<DatePicker x:Name="vonPicker" HorizontalOptions="FillAndExpand" Margin="0,0,15,0" Date="{Binding EventDateStart}">
<DatePicker.Format>dd.MM.yyyy</DatePicker.Format>
<DatePicker.MinimumDate>
<sys:DateTime x:FactoryMethod="Parse">
<x:Arguments>
<x:String>Jan 1 2000</x:String>
</x:Arguments>
</sys:DateTime>
</DatePicker.MinimumDate>
<DatePicker.MaximumDate>
<sys:DateTime x:FactoryMethod="Parse">
<x:Arguments>
<x:String>Dec 31 2050</x:String>
</x:Arguments>
</sys:DateTime>
</DatePicker.MaximumDate>
</DatePicker>
</StackLayout>
</ViewCell>`
NavigationPage + soft back-button don't work on a device
Hello -
The navigation system taken from a sample (I cannot post a link: developer.xamarin.com > /guides/xamarin-forms/getting-started/hello-xamarin-forms-multiscreen/quickstart/) works on one of my phones, while it doesn't fully work on another.
The part that does not function is the OS-provided back-button: it does nothing, even though the button itself provides the "tap" feedback. Everything is exactly the same, as far as app code and configuration, between the two phones. Pressing the back-button on the "working" phone acts as if I pressed the back-arrow located within Xamarin-provided navigation bar on the top of the screen.
The "non-working" phone is LG G6, running Android 7.0. I'm not sure if its software-navigation bar is a part of OS or LG's launcher. The phone's screen has round corners, with the concept of classic full-screen possibly changed somewhat. I don't know how to explain it briefly; if anyone is interested, I can try to provide some more details and screenshots. The point is, there could be some new event related to this that Xamarin's navigation isn't paying attention to.
Library binding
Once an iOS library has binding setup is it possible to use that library (since it's .Net) for both Android and iOS?