I am new to Xamarin forms. I was trying to implement Checkboxes in my project.
I referred this link :
https://devlinduldulao.pro/how-to-create-checkboxes-in-xamarin-forms/
So, I added the mentioned nuget package and added this line in my xaml page :
xmlns:controls="clr-namespace:XLabs.Forms.Controls;assembly=XLabs.Forms"
These errors came up
Framework resource extraction failed. Item named
'controls/sensorbar/sensorbarcontrol.xaml' of type
'System.IO.PinnedBufferMemoryStream' cannot be added to the resource
file because it is not serializable. App.UWP
Cannot resolve Assembly or Windows Metadata file 'Type universe cannot
resolve assembly: Xamarin.Forms.Platform.WP8, Version=1.5.0.0,
Culture=neutral, PublicKeyToken=null.' App.UWP
And i am not able to get rid of them. Please help
This great library is outdated and unfortunately should not be used anymore. There are few options:
Check how did Checkbox control was implemented in XLabs.Forms.Controls since it is open source project and build your own using.
Check other existing libraries like Forms.Controls
There are also blogposts on this topic like Xamarin.Tip – Build Your Own CheckBox in Xamarin.Forms
Good luck.
Related
We have a DNN site and I noticed on our home page that the dev tools show an error with an events.js file that is trying to call "analytics.tiktok.com". It is being blocked. I don't know if this is purposeful and I've searched our DNN modules code but haven't found an such reference.
The other devs can confirm they haven't added such code. I've searched the code folders for a file named events.js but haven't found one. I'm aware that DNN has large portions of it that are data driven but I don't know what tables to query to see if there's code that has that URL.
Is anyone aware if DNN or kendo controls has an references to tiktok?
It is definitely not part of DNN.
Another place to look for these calls are the skin (theme) controls in use, or the default.aspx. Anyway, if no one is aware of this stuff, I would check if you have a security hole (old Telerik libraries, unsafe passwords in FTP accounts...)
I would start by looking at the location in which that is embedded into the source of your webpage. Depending on where it is, that might help you track down "where" it is coming from.
It could be coming from inside source for a module, in the content of a module, in module settings, in a container, in a skin/theme, etc.
Here's a problem which is driving us nuts. We have an old VB2005 application which only needs a new RDLC report adding.
However to add the RDLC we need to add a new data source. Every time we try to add a new datasource using the Object option (not dataset) we get this error:
Now, you can get some help on Google for this but a lot of it is for web projects. This is a Winforms project.
Here's what we've tried:
devenv.exe /ResetSettings
checking the Assembly name doesn't have any punctuation or weird characters in it (this is a favourite solution from Google) - it doesn't
removing the source control (Perforce)
rebuilding the project from scratch
Our solution was to upgrade the project to VS2008. Didn't really want to as we feared destabilising the application in unpredictable ways just to achieve an edit in a report.
But in fact the upgrade did solve the data source problem, and so far at least, there haven't been any side effects.
I am using Sitecore Calendar Module 5.2 for Sitecore 6.5. I have been able to get it up and running. I am looking for some programmatic samples on how to read and display calendar events on a page. I haven't found any examples of this on Sitecore SDN or anywhere else either.
Thanks
I assume you mean version 2.4 which is for Sitecore 6.5. This module is designed to be more of a plug-n-play solution to a event calendars with Sitecore. You likely won't find any documentation on how to programatically do what you need because the module was built so you don't need to do that.
If you still want to write your own code to do these tasks, I recommend you take the following approaches:
Decompile the DLLs from the module and review the source code for the presentation components to see how they work. Based on that, you can write your own code as needed. If you don't have a decompiler, ILSpy is a great free one.
Or, just query the content tree for the event items using Sitecore Query or Fast Query based on the architecture that this module enforces for these new templates.
I have a SL 4.0 application hosted on IIS with a possibility to change GUI language. The problem is that hosted on one machine , language functionality works and on the other machine not. Inside this piece of code:
Thread.CurrentThread.CurrentCulture = new CultureInfo(message.NewCulture);
Thread.CurrentThread.CurrentUICulture = new CultureInfo(message.NewCulture);
on Windows7 it does update UICulture with correct resource file and on Windows Server 2008 it does not. IIS settings on both systems seem to be the same. Any suggestions where to look?
You might want to take a look at the Blog entry made by Tim Heuer on the subject.
http://timheuer.com/blog/archive/2009/08/26/silverlight-string-localization.aspx
Using this blog post, I was able to get Globalization/Localization implemented in a short amount of time and minimal effort.
It sounds like you need to take a look at the Access Modifier section in the designer. You'll need to set this to Public in order to use it in XAML binding. Also check that all the RESX files are marked as Embedded Resource in the properties for the files.
Additionally make sure your string resource dictionaries have extensions to something similar:
P.S. I hope you'll read Tim's blog entry, he goes into a lot more detail than what I've explained. Also from my personal experience, I wasn't able to dynamically reload the language on the fly until I took a look the section on the blog post titled "Public modifier workaround and dynamically setting the culture".
R-Click the assembly(ies) containing your localized files, select unload project and then edit the project file(s). The project files are in XML format. Look for a XML tag related to SupportedCultures (or something like that). Make sure that your cultures are in the list.
Localization didn't want to kick in for me until I got that resolved.
I posted this question on the MSDN forum but haven't been able to receive much of an answer, so decided to try it out here.
I'm having a problem with dependency libraries of a project not being copied to the output directory of a second project that references it, when the first library is mostly xaml. Here is a typical scenario when this happens
SolutionX
- SomeControls.Dll { contains wpf user controls }
external reference: WPFTheme.dll*
- MainApp.Exe
project reference: SomeControls.dll
Commonly what happens here is that when building the solution, WPFTheme.dll is not copied to the output directory of the MainApp.Exe project. (* this also works if referencing a third project instead of an external)
I usually use a post build event to handle this situations... but i found the problem was intermittent.
If I don't reference ANY of the classes in WPFTheme.dll in my c# code but I do so in xaml, then as said before the WPFTheme.dll library doesn't get copied.
BUT if i reference Any class (even just assigning them null) from some c# in the project (even backend xaml.cs class) - then everything works as one would expect.
So has anyone else encountered this problem? Is there a way to force the library to get copied if referenced by xaml?
Just to add more info... all this happens with libraries that show up as external in the project file with a relative path in the HintPath.
Thanks everyone,
K
I have this exact same issue with dependency injection through reflection, i get around it with post build events and when deploying nant scripts, sorry i couldnt be more help, look forward to seeing a solution, you can always just add the refs to the startup project directly, can get into some fun issues with that long term but it will work