I am developing an app that uses DatePicker and LoopSelector at same time.
Looking on the tutorials for each of them I have been advised to add assembly references, first one for DatePicker and second one for Loopselector:
xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
xmlns:toolkit="clr-namespace:Microsoft.Phone.ControlsPrimitives;assembly=Microsoft.Phone.Controls.Toolkit"
and then I get error message saying The type 'toolkit:Selector' wasn't found.
I welcome any ideas. Thanks.
You cannot have the same name ("toolkit") for both of them!
Related
I'm using Rg.Plugins.Popup for a while but I can't get it working anymore on UWP for new projects.
While its working perfectly in Android, I get this error in UWP :
Exception thrown: 'System.NullReferenceException' in Rg.Plugins.Popup.UWP.dll
Object reference not set to an instance of an object.
Rg.Plugins.Popup.UWP.dll!Rg.Plugins.Popup.Windows.Renderers.PopupPageRenderer.UpdateElementSize() Line 124
I made a small test repo here.
I use Rg.plugins.popup 1.1.5.188, Xamarin 5.0.0.2012 and the targeted plaform in UWP is 10.0.19041.
Can anyone help me and/or check if you get the same behavior ?
I also notice that with Rg.plugins.popup version 2.0.0.12, I get another error :
Error CS0234 The type or namespace name 'Popup' does not exist in the namespace 'Rg.Plugins.Popup' (are you missing an assembly reference?)
Here is my initialisation code in UWP, just as describe in the WIKI:
What a waste of time ...
https://github.com/rotorgames/Rg.Plugins.Popup/issues/527
The minimum target has to be set to 10.0.17763 or higher. Not only the target version. That was the trick.
So stupid ...
I got error
"component "Ctllogin1" or one of its depenedncy not correctly
registered;a file is missing invalid."
while I'm trying to add login ocx control. I added my ocx file in my application and registered too but could not able to add my control on design page and not visible.
Hi Thanks for giving this solution .But i got solution Reason is third pary dll is can not allow to edit due to licence problem so we have to run VBUSC exe and issue solved.Now am easy to use this component thanks
I was working on a C# project and everything works perfectly fine. But after I messed up with a code a little now its getting a wired error. But I can run the last working solution fine. Can I reset the code again to last working solution? If I can, what is the method to do that?
Here is the error message:
"Error 1 'Static_calc.Form2' does not contain a definition for
'Form2_Load' and no extension method 'Form2_Load' accepting a first
argument of type 'Static_calc.Form2' could be found (are you missing a
using directive or an assembly reference?)"
That sounds like you have deleted a method that your form is rely on in its designer code behind. Take a look in the designer file for Form2 for any event bindings that relate to Form2_Load and delete the line that mentions it.
You should then be able to view the form correctly in the gui and use it as before.
Hi I want to access the CultureTypes in Windows Phone. In Silverlight/WPF i can use like this,
CultureInfo[] specificCultures = CultureInfo.GetCultures(CultureTypes.SpecificCultures);
But In Windows Phone it showing an error as "UnKnownEntity" in CultureTypes
Also I want to get the Id of the CurrentCulture. In Silverlight/WPF, i can use like
Thread.CurrentThread.CurrentCulture.LCID
But in Windows Phone it showing an error as "NotFound" in LCID
Could you please anyone can help me?
In Silverlight/WPF i can use like this
You can in WPF, but not in Silverlight. Look at the Silverlight version of the documentation for CultureInfo - there's no GetCultures method. I don't see any way of getting all cultures - just the current culture, current UI culture, and invariant culture. (You can create your own instances by calling the constructor, of course.)
EDIT: You've run into exactly the same problem when trying to get the LCID. You can't just assume everthing from the desktop framework will be available in Silverlight. You need to look at the Silverlight-specific documentation to see what's available (and then check that it's available on Windows Phone 7, too).
You could use T4 generator to generate missing information. I have done this for similiar problem and works great.
I'm trying to use the TimSpanPicker from the Coding4Fun Toolkit for Windows Phone. I added the references to
Coding4Fun.Phone.Controls
Coding4Fun.Phone.Controls.Toolkit
Coding4Fun.Phone.Site.Controls
and the namespaces
xmlns:coding4fun="clr-namespace:Coding4Fun.Phone.Controls;assembly=Coding4Fun.Phone.Controls"
xmlns:c4ftoolkit="clr-namespace:Coding4Fun.Phone.Controls.Toolkit;assembly=Coding4Fun.Phone.Controls.Toolkit"
But when I try to insert the TimeSpanPicker-Control I get following error when loading the page:
$exception {"The type 'TimeSpanPicker' was not found. [Line: 52 Position: 18]"} System.Exception {System.Windows.Markup.XamlParseException}
The XAML looks like that:
<c4ftoolkit:TimeSpanPicker></c4ftoolkit:TimeSpanPicker>
I don't get any indication in VS that someting might be missing. Any idea where I went wrong?
Try adding/declaring the "TimeSpanPicker" from the code-behind to see if VisualStudio gives you more hints.
try adding this to header as a reference :
xmlns:toolkit="clr-namespace:Coding4Fun.Phone.Controls.Toolkit;assembly=Coding4Fun.Phone.Controls.Toolkit"
Hope this will work!
Cheers!