I upgraded my VS 2017 to 15.5.2
Try to create new Xamarin.Forms solution - the created solution is EMPTY!
0 (zero) projects
I tried all combinations - blank / master-detailed / any platform / etc - all created with 0 projects
Please help!
I upgraded my VS 2017 to 15.5.2
Try to create new Xamarin.Forms solution - the created solution is EMPTY!
0 (zero) projects
I tried all combinations - blank / master-detailed / any platform / etc - all created with 0 projects
Please help!
Hi all,
I need to create horizontal list view with cards, when a single card get selected, that selected card color should changed. and the card size get increased, need to get some text from selected card. when we select new one, previous card should reset. !
Hello
I think i have a noobie issue, but i don't really understand what's happening so i have to ask...
I did a WCF Service which should return me results from DB as a List. The results of the method are fine
But when i try to call the method from the PCL project, it fails saying it can't convert type 'void' in whatever else..
Interface:
[ServiceContract]
public interface IBienEtreService
{
[OperationContract]
List<OfflineContent> GetDataContent(string title);}
[DataContract]
public class OfflineContent
{
[DataMember]
public string Title
{ get; set; }
[DataMember]
public string Text
{ get; set; }
[DataMember]
public string Picture
{ get; set; }
}
.svc
` public List GetDataContent(string title)
{
List<OfflineContent> ContentList = new List<OfflineContent>();
con.Open();
SqlCommand cmd = new SqlCommand("select * from dbo.Content where title = @title", con);
cmd.Parameters.AddWithValue("@title", title);
SqlDataReader reader = cmd.ExecuteReader();
if (reader.HasRows)
{
while (reader.Read())
{
OfflineContent content = new OfflineContent
{
Title = reader.GetString(1),
Text = reader.GetString(2)
};
if (!reader.IsDBNull(3))
{
content.Picture = reader.GetString(3);
}
else content.Picture = "";
ContentList.Add(content);
}
}
return ContentList;
}`
And the client
public partial class Left_Methode : ContentPage
{
static BienEtreServiceClient client1 = new BienEtreServiceClient();
public Left_Methode ()
{
InitializeComponent ();
//client1.GetDataContentCompleted += client_GetDataContentCompleted;
List<OfflineContent> list = client1.GetDataContentAsync("methode");
Mthd_txt.Text = list.ToString();
}
}
So the question is, why is it changed to void in Reference.cs and how to make all this work?
Thanks
PS: the text editor is a real mess when it comes to put code quotes...
My app can not connect internet on Mobile Emulator 10. But Edge on emulator can connect to internet???
Been following connect on twitter and this caught my eye. .NETStandard embedding as well, lot of interesting stuff on the go.
Hi , I want to hide a stack Layout which is Present above the List view when it Scrolls Up and the stack Layout should Visible when it Scrolls down.Is it Possible, If Possible can any one help me to resolve this problem by sending me code or related Links .Thank You
Good day!
I am having problem with my task (work related). I was asked to develop a "Chat" like feature using Xamarin and Firebase. I've already made the forms. The question(s) I have are the following:
NOTE: I already know the logic for this but I'm having difficulty in the implementation because I'm still a newbie with Xamarin.
Looking forward to hear your answers and enlighten me with my problem.
Thanks!
I am using Signaturepad.Forms in xamarin forms,but i am getting null image on android here is my code for getting image form signature pad
Stream image = await signature.GetImageStreamAsync (SignatureImageFormat.Png);
I don't know what got upgraded exactly today, I think all the Xamarin components got upgraded via Nuget , but the standard Xamarin Forms template in Visual studio is totally broken. I cannot get it to work and was hoping someone has an idea what is wrong.
First of all I also posted my question on Stack Overflow, so you can refer to that for more details, but I'll post them here as well.
stackoverflow (dot) com/q/48014827/1462656
But the main problems is that creating a basic project using Visual studio template no longer works. I can create it, but it will not run due to build errors. In no way have I altered the template project. They should work out of the box.
The main errors are as follows.
1)
Severity Code Description Project File Line Suppression State Error The current .NET SDK does not support targeting .NET Standard 2.0. Either target .NET Standard 1.6 or lower, or use a version of the .NET SDK that supports .NET Standard 2.0. Phoneword C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.TargetFrameworkInference.targets 126
2)
Severity Code Description Project File Line Suppression State Error The "ResolveLibraryProjectImports" task failed unexpectedly. System.IO.FileNotFoundException: Could not load assembly 'Phoneword, Version=0.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile? File name: 'Phoneword.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, ICollection1 jars, ICollection1 resolvedResourceDirectories, ICollection1 resolvedAssetDirectories, ICollection1 resolvedEnvironments) at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Execute() at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() Phoneword.Android
As in:
async void OnItemAppearing(object sender, ItemVisibilityEventArgs args)
{
ListView lvSender = (Xamarin.Forms.ListView)sender;
IScrollViewController isvcThis = (IScrollViewController)lvSender;
// Use Case #1
Point ptFooter = isvcThis.GetScrollPositionForElement((VisualElement)lviSender.Footer, ScrollToPosition.LeaveUnchanged);
...
// Use Case #2
Point ptLastInView = isvcThis.GetScrollPositionForElement(null, ScrollToPosition.LastVisibleOnScreen);
...
// Use Case #3
var item = args.Item as Item; // as in ItemsSource= a List<Item>
Point ptMyItem = isvcThis.GetScrollPositionForElement(item, ScrollToPosition.LeaveUnchanged);
}
And, if ListView's scrolling does not literally use ScrollView's IScrollViewController, please understand the above to refer instead to the interface actually used.
It seems to me that only a few developers are actively working on this project, and it's mind-boggling that they are trying to expand the breadth and depth of Forms to reach multiple platforms at the same time. How can the team work on iOS, Android, WPF, Tizen, UWP, and potentially more in the future AND be able to deliver a stable and featureful product? It is no surprise that the list of bugs is piling up and most likely the backlog will stay big in the future.
I guess, my questions are
How can to send Text of Editor control into a any mobile number using net? and it is possible to when client send this type massage he got return massage automatically that "thank for using it".
I'm using Xamarin.Forms to develop my APP. But when ran it on a real device, it will terminate and show this in the Output.
Have no idea what happened and how to resolve. Could someone give me some clues? Thanks.
Thread finished: #5
Thread started: #13
The thread 'Unknown' (0x5) has exited with code 0 (0x0).
Thread finished: #11
The thread 'Unknown' (0xb) has exited with code 0 (0x0).
2017-11-16 16:53:27.492 FrontRowApp.iOS[860:45874] critical: Stacktrace:
2017-11-16 16:53:27.492 FrontRowApp.iOS[860:45874] critical: at <0xffffffff>
2017-11-16 16:53:27.496 FrontRowApp.iOS[860:45874] critical: at (wrapper managed-to-native) ObjCRuntime.Messaging.void_objc_msgSend_CATransform3D (intptr,intptr,CoreAnimation.CATransform3D) <0x00007>
2017-11-16 16:53:27.498 FrontRowApp.iOS[860:45874] critical: at CoreAnimation.CALayer.set_Transform (CoreAnimation.CATransform3D) [0x00003] in /Users/builder/data/lanes/4991/80b8487d/source/xamarin-macios/src/build/ios/native/CoreAnimation/CALayer.g.cs:2231
2017-11-16 16:53:27.501 FrontRowApp.iOS[860:45874] critical: at Xamarin.Forms.Platform.iOS.VisualElementTracker/<>c__DisplayClass23_0.b__0 () [0x003c3] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Platform.iOS\VisualElementTracker.cs:203
2017-11-16 16:53:27.501 FrontRowApp.iOS[860:45874] critical: at Xamarin.Forms.Platform.iOS.CADisplayLinkTicker.StartThread () [0x00025] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Platform.iOS\CADisplayLinkTicker.cs:60
2017-11-16 16:53:27.505 FrontRowApp.iOS[860:45874] critical: at System.Threading.ThreadHelper.ThreadStart_Context (object) [0x00014] in /Library/Frameworks/Xamarin.iOS.framework/Versions/10.12.0.20/src/mono/mcs/class/referencesource/mscorlib/system/threading/thread.cs:68
2017-11-16 16:53:27.506 FrontRowApp.iOS[860:45874] critical: at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00071] in /Library/Frameworks/Xamarin.iOS.framework/Versions/10.12.0.20/src/mono/mcs/class/referencesource/mscorlib/system/threading/executioncontext.cs:957
2017-11-16 16:53:27.506 FrontRowApp.iOS[860:45874] critical: at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/10.12.0.20/src/mono/mcs/class/referencesource/mscorlib/system/threading/executioncontext.cs:904
2017-11-16 16:53:27.506 FrontRowApp.iOS[860:45874] critical: at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) [0x0002b] in /Library/Frameworks/Xamarin.iOS.framework/Versions/10.12.0.20/src/mono/mcs/class/referencesource/mscorlib/system/threading/executioncontext.cs:893
2017-11-16 16:53:27.506 FrontRowApp.iOS[860:45874] critical: at System.Threading.ThreadHelper.ThreadStart () [0x00008] in /Library/Frameworks/Xamarin.iOS.framework/Versions/10.12.0.20/src/mono/mcs/class/referencesource/mscorlib/system/threading/thread.cs:105
2017-11-16 16:53:27.508 FrontRowApp.iOS[860:45874] critical: at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) [0x0001e] in <75fdc35757ef4b00a24457129d1dc3e2#093595D1-4EA2-6013-3678-3D67B61EA4EE>:0
2017-11-16 16:53:27.508 FrontRowApp.iOS[860:45874] critical:
Native stacktrace:
2017-11-16 16:53:27.968 FrontRowApp.iOS[860:45874] critical: 0 FrontRowApp.iOS 0x00000001021edd88 mono_handle_native_crash + 224
2017-11-16 16:53:27.968 FrontRowApp.iOS[860:45874] critical: 1 FrontRowApp.iOS 0x00000001021f82b8 mono_sigsegv_signal_handler + 316
2017-11-16 16:53:27.968 FrontRowApp.iOS[860:45874] critical: 2 libsystem_platform.dylib 0x000000018d4f931c _sigtramp + 52
2017-11-16 16:53:27.969 FrontRowApp.iOS[860:45874] critical: 3 UIKit 0x000000019484bb3c + 1124
2017-11-16 16:53:27.969 FrontRowApp.iOS[860:45874] critical: 4 UIKit 0x00000001945a29a0 + 120
2017-11-16 16:53:27.969 FrontRowApp.iOS[860:45874] critical: 5 UIKit 0x0000000194566a38 + 120
2017-11-16 16:53:27.969 FrontRowApp.iOS[860:45874] critical: 6 UIKit 0x0000000194de2aa4 + 116
2017-11-16 16:53:27.970 FrontRowApp.iOS[860:45874] critical: 7 QuartzCore 0x0000000191754dfc + 100
2017-11-16 16:53:27.970 FrontRowApp.iOS[860:45874] critical: 8 QuartzCore 0x0000000191750484 + 88
2017-11-16 16:53:27.970 FrontRowApp.iOS[860:45874] critical: 9 QuartzCore 0x00000001917503fc + 172
2017-11-16 16:53:27.970 FrontRowApp.iOS[860:45874] critical: 10 QuartzCore 0x00000001917507ec + 156
2017-11-16 16:53:27.971 FrontRowApp.iOS[860:45874] critical: 11 FrontRowApp.iOS 0x000000010104a9a4 wrapper_managed_to_native_ObjCRuntime_Messaging_void_objc_msgSend_CATransform3D_intptr_intptr_CoreAnimation_CATransform3D + 244
2017-11-16 16:53:27.971 FrontRowApp.iOS[860:45874] critical: 12 FrontRowApp.iOS 0x0000000100ff1630 CoreAnimation_CALayer_set_Transform_CoreAnimation_CATransform3D + 176
2017-11-16 16:53:27.971 FrontRowApp.iOS[860:45874] critical: 13 FrontRowApp.iOS 0x00000001006d5b40 Xamarin_Forms_Platform_iOS_VisualElementTracker__c__DisplayClass23_0__OnUpdateNativeControlb__0 + 5136
2017-11-16 16:53:27.971 FrontRowApp.iOS[860:45874] critical: 14 FrontRowApp.iOS 0x00000001006c696c Xamarin_Forms_Platform_iOS_CADisplayLinkTicker_StartThread + 332
2017-11-16 16:53:27.971 FrontRowApp.iOS[860:45874] critical: 15 FrontRowApp.iOS 0x00000001004a314c System_Threading_ThreadHelper_ThreadStart_Context_object + 188
2017-11-16 16:53:27.971 FrontRowApp.iOS[860:45874] critical: 16 FrontRowApp.iOS 0x00000001004a0ef4 System_Threading_ExecutionContext_RunInternal_System_Threading_ExecutionContext_System_Threading_ContextCallback_object_bool + 404
2017-11-16 16:53:27.972 FrontRowApp.iOS[860:45874] critical: 17 FrontRowApp.iOS 0x00000001004a0d4c System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object_bool + 44
2017-11-16 16:53:27.972 FrontRowApp.iOS[860:45874] critical: 18 FrontRowApp.iOS 0x00000001004a0ccc System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object + 76
2017-11-16 16:53:27.972 FrontRowApp.iOS[860:45874] critical: 19 FrontRowApp.iOS 0x00000001004a32b4 System_Threading_ThreadHelper_ThreadStart + 52
2017-11-16 16:53:27.972 FrontRowApp.iOS[860:45874] critical: 20 FrontRowApp.iOS 0x00000001005c0b64 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 244
2017-11-16 16:53:27.972 FrontRowApp.iOS[860:45874] critical: 21 FrontRowApp.iOS 0x00000001021fb2d8 mono_jit_runtime_invoke + 832
2017-11-16 16:53:27.972 FrontRowApp.iOS[860:45874] critical: 22 FrontRowApp.iOS 0x00000001022609e0 do_runtime_invoke + 108
2017-11-16 16:53:27.972 FrontRowApp.iOS[860:45874] critical: 23 FrontRowApp.iOS 0x00000001022844c0 start_wrapper + 640
2017-11-16 16:53:27.973 FrontRowApp.iOS[860:45874] critical: 24 libsystem_pthread.dylib 0x000000018d4fd68c + 240
2017-11-16 16:53:27.973 FrontRowApp.iOS[860:45874] critical: 25 libsystem_pthread.dylib 0x000000018d4fd59c + 0
2017-11-16 16:53:27.973 FrontRowApp.iOS[860:45874] critical: 26 libsystem_pthread.dylib 0x000000018d4facb4 thread_start + 4
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
Failed to Stop app: An error occured on client IDB450486 while executing a reply for topic xvs/idb/4.5.0.486/stop-app
The app has been terminated.
The app has been terminated.
Hi,
I am a UI/UX designer and we are working on a mobile application that will be build using xamarin. I am only responsible for the visual design aspect of it. How do I have hand over my designs to the developer in xamarin? Do I have to provide and html/css of each screen? Do I have to give them a styleguide or design system? Or can do I have to go into xamarin and recreate my design in there?
Thanks
Hi All,
I'm using a RelativeLayout to position controls in XAML.
I want to change YConstraint of one control later based on user interaction.
Is that possible?
Thanks
Dhakau
Hi, in the following code, I want to send the data via a post service but the app crashes. Here is the code from App.Xaml.cs. Help will be appreciated !!
{
string requestUri = "http://xxxxxxxxxxxxxxxxxxxx";
var uri = new Uri(string.Format(requestUri, string.Empty));
try
{
using (var client = new HttpClient())
using (var content = new MultipartFormDataContent())
{
var values = new[]
{
new KeyValuePair<string, string>("Language","en"),
new KeyValuePair<string, string>("Platform","Android"),
new KeyValuePair<string, string>("Title","abc123")
};
foreach (var keyValuePair in values)
content.Add(new StringContent(keyValuePair.Value), keyValuePair.Key);
using (var result = await client.PostAsync(uri, content))
{
var input = await result.Content.ReadAsStringAsync();
if (result.IsSuccessStatusCode)
{
MainPage = new App1.MainPage();
}
else
{
//do nothing
}
}
}
}
catch (Exception ex)
{
Debug.WriteLine("Failed to submit");
}
}
Is there a way to change the Picker font size or font attributes? I was surprised to find that a Font attribute was not recognized in the XAML.
I am in need if this service release to fix the dreaded iOS ListView bug. https://github.com/xamarin/Xamarin.Forms/releases/tag/release-2.5.0-sr3
How do you install this with Visual Studio?
Hi,
I have noticed that all versions of XForms above 2.3.0.107 have introduced 'lag' when switching between Master-Detail pages. The navigation menu slides away, but then the page goes white for a few seconds before loading with a little animation. Previously, the page title would update immediately after selection and page content soon after that.
Having a look at the release notes between 2.3.0.107 and 2.3.0.114 I found this,
- Isolate fragment management for children of MasterDetailPage. If an AppCompat MasterDetailPage hosts NavigationPages or TabbedPages in either the > Master or Detail sections, those pages are now wrapped in their own Fragment (and use that Fragment's ChildFragmentManager) to isolate their Fragment management operations and avoid recursive entry into the executePendingTransactions() method. Also fixed a disposal bug in the custom MDP renderer in Control Gallery. [see 40333, 40639]
Maybe there is some kind of fragment animation taking place?
Regards,
Daniel.
Hello guys and happy new year!
I'm free if anyone wants to hire me. I'm a senior dev consultant (15+ years overall experience, 6+ years on Xamarin). Experienced in Xamarin/Forms, databases (SQL and NoSQL), web (front and back) and Azure (worked with nearly every Azure service: Apps, VMs, Redis, CosmosDB, Media Services, Functions, Key Vault, Storage...)
Fluent in English, French (native) and Arabic (native). Located in Dubai, UAE (GMT+4)
My rate is $40-$60 per hour.