How to make expandable list for Windows10 Universal App? - windows-phone

I am newbie to windows universal app development and I need an expadable list. In the past I did it with WPToolkit for Windows Phone 8 but I read that it is not available for UWP. I see ExpanderRT project and tried to use it but I couldn't be successfull. I add Shared project of ExpanderRT as an existing project to my solution and use as in the screenshot. Now I'm taking the namespace error.
I have a time limit. I need fast and easy working soluton for expandable list. Thank you all for your help.
[UPDATE]
I tried https://github.com/brendankowitz/ZeroProximity.Accordion as #Osman said. But I'm not sure if it is the right decision. Because I see the expandable list and it works but project build throw error as in the screenshot below. I install it via nuget. It wasn't installed in the first place. I run as a administrator and changed project.json 's Copy to Output Directory value to Copy always. Then it was installed.
So my questions; Is this error important? Will it create problems when I want to put the app on store? I don't know how to act to this error, please help!

https://github.com/brendankowitz/ZeroProximity.Accordion
You can use the library given in the link above. I used it on our UWP project.It works great.
Hope this helps,
Osman

Related

How to troubleshoot React Native build error?

Below you can see the output I get when I try to run npx react-native run-android. It suggests some options to try in order to further pinpoint the problem, however they don't work with the aforementioned command so I assume that they are related to a gradle (just an educated guess).
I know ZERO about gradle; I have just seen the name here and there and in the output shown below. So please keep that in mind when you answer. If I need to learn how to run some gradle command(s) directly, please be as verbose as possible in your answer.
The project was working fine just a bit ago, but I wanted the ability to force portrait mode for certain screens but without configuring my entire app to always have to stick to portrait mode. So I found what looked to be a solution in the react-native-orientation-locker module. I installed it with yarn and then proceeded to update files as directed: https://www.npmjs.com/package/react-native-orientation-locker.
After updating the appropriate files, I got an error that suggested axios was the problem. I uninstalled and reinstalled axios. After that didn't work, I proceeded to undo all the file changes I had just made. Then I uninstalled the react-native-orientation-locker module.
To my knowledge, I have undone everything I did between the time the project worked and stopped working.
Sadly, I had not put this into source control yet (a mistake I won't make again), so I can't revert.
Where to go from here?
Problems like this are hard to pin point. What you can do is open the android project in android studio and see the logs as the project is being assembled. I assume you do not have much knowledge about android either so you might need some senior resource to help you.
What I usually do in this case is open android studio and if I am lucky enough, it tells me which file has an issue and I go to the file and do what android studio suggests me. Some times it fixes the problem and sometimes it doesn't.
Another thing I would like to mention is that the documentation of the package you are using is important to follow. I assume you did that already but I would suggest to review it narrowly and closely.
Another guess I can tell you is try to go to your-project/android/build.gradle and over there, you'll see something like this in the start. The package you are using mentions something about target SDK 27. I think you should check that out too. May be it helps
Lastly I would say always use source control while working with react native. It can easily blow up at any time so you should always have a safety net to fallback to :)

Unable to install My program. Mostly has to do with Crystal Reports

Okay, This question has probably been asked before but I can't seem to solve it with anything that I've seen.
I published my program and tried setting it up on another computer. At first it gave me this error:
"Unable to install or run the application. the application requires that assembly microsoft.reportviewer.processingobjectmodel version 9.0.0.0 be installed in the global assembly cache (GAC) first."
After searching I found that including everything in the 'Application Files' before publishing made that go away, only to be replaced with
'Application cannot be started. Contact the application vendor.'
After searching and doing a lot of things on the computer that I want this program to be setup on, I checked (Crystal Report Basic For Visual Studio 2008 (x84, x64)) in the Prerequisite.
On the Computer that I need this program on, it won't download this at all. It gives me a message box to either retry or cancel.
Some pages suggest that the Crystal report package that automatically downloads is not the right one. When I tried following what is said here, I got stuck because the links won't open.
Any help appreciated, It's frustrating because I've been working on this program for months and I get stuck on the last step :/
oh .. and ... I don't know if this has anything to do with this, but I built the program using Windows 7, then updated to Windows 8, then updated to Windows 10.
I finally managed to make it work :)
Here is what I did:
I followed this video and I was able to install my program to the other computer.
When I opened it, I got a problem that the program can't find my MS Access DataBase, so I went to the setup project -> Right click -> add -> File, And I navigated to my original project's folder and added everything in there, and Viola! ... It works :)
I hope this helps somebody else :)

Can't use background task in Windows Phone 8.1 (the ID_CAP_NETWORKING required, but it's included in the manifest)

I need to update my Windows Phone application tile by downloading and parsing JSON. So I'm using Microsoft HTTP Client Libraries.
And I've always got the exception Use of networking APIs requires the ID_CAP_NETWORKING capability to be defined in the application manifest when I'm trying to debug background task.
But my manifest included ID_CAP_NETWORKING as required (screenshot https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-xaf1/t31.0-8/10750111_821340111262044_6461333323674658178_o.jpg).
I don't know what to do. I tried rebuild or recreate the app, but this didn't help. Also I can't find any documentation or an answer on the internet.
Can you please write, what can I do to solve this problem?
This is demo project http://1drv.ms/1yjHm49 with reproduced problem (project's name is 'Meduza. Windows Phone').
I debug my application on Lumia 720 (if it can help).
I re-downloaded your project and now I get your error. So I thought, I must of done something before launching your project that fixed it.
It took me while, but I can get your project to work by doing this
Unzip project to directory
Open Project
Clean Project
Add Internet (Client and Server) in Package.appxmanifest file (make sure you save it before exiting)
Put the break points in your background task
And it works. So a combination of Clean Build + editing the Package.appxmanifest did the trick for me.

Unable to debug ArcGIS 10.2 add-in on ArcMap with “No GUI components found in this Add-In”

I am working on an ArcGIS add-in (a very simple toolbar with a few buttons) with VB.Net and ArcObjects SDK in Visual Studio 2010. The solution was built successfully and the debug settings were configured.
When I hit Debug, ArcMap application was opened. I couldn't find the toolbar docked anywhere on the ArcMap toolbar. I went to "Customize" -> "Add-in Manager" and the add-in being debugged was not there. Then I tried "Add From File...", located the "esriaddin" file and clicked "Install Add-in". It populated a message box saying "No GUI components found in this Add-In."
I made some Google searches but haven't got any luck to reach a solution yet.
What was I missing? Has anyone come across the same issue and any direction?
Thanks in advance!
Try clicking build first, then open the arcmap separately and check the add-in manager inside of arcmap to see if it got added to the application. If so, you should be able to find it and turn the toolbar on.
I'm not sure about .Net, but I debugged this issue for the Java SDK. You have to make sure you are using the correct versions for compiling. In java, it was an old archive version of jdk1.6 32 bit.
Then I was referencing something wrong inside the xml document. I had changed the name of my JAR file (taken from project name by the ArcObjects SDK). In the xml document it was still pointing towards the old name.
This may not help you, but if anyone else searches this error and is using tje Java SDK, hopefully it will help.
I struggled with this same issue with a 10.0 add in. We had a 10.1 update that worked with 10.1 but trying to install it to 10.2.2 gave me that exact error. So much for upward compatible! I then tried to build 10.2.2 code and kept having this error. Others mentioned needing to build to x86 so I did that although the 10.1 was on Win7-64 and ran with AnyCPU....
I believe the final key for me was in the config file. I had set version to 10.2.2 As soon as I changed that to 10.2, the darn add-in installed just fine. Nice waste of a day for an extra '.2'

ClickOnce Application Not Opening

I have a VB.NET ClickOnce application that I am trying to install on my computer. Previously, I was able to install and run these apps without issue. Now when I install the application, I can see the flash of a window opening, and then nothing. (There are also no processes left hanging or anything when viewed with the task manager.)
After some digging around I noticed that there are files in my Temporary Internet Files with names like "FusionBindError" and then my application name and different DLL names.
I have done everything I can find on the net to do, reinstall applications, reinstalled the .NET Framework, deleted my Local Settings folder and relogged in.
Does anyone out there have any other ideas for me to try?
I tried the Mage.exe suggestion, but it failed to help. Same with the other installation location suggestion. The application flashes at the bottom of the screen but does not open. I have tried using FUSLOGVW to check the bindings and nothing shows up in there. (Good or bad, there are no binding entries.)
Have you tried using mage.exe? This is a command-line tool that comes with .NET framework. Start up a VS command prompt, and try mage -cc. This will clear your applicaiton cache and will force a new click-once download. This is the first thing I do when my click-once applications fail and it works 99% of the time.
A couple of suggestions:
FusLogVW isn't working for you because you have to enable assembly binding failure logging inside the registry. This MSDN article describes how to do this.
Another thing that comes to mind is, perhaps the ClickOnce app install, or perhaps the whole ClickOnce store is corrupted. Try deleting the ClickOnce app store then reinstalling the application.
It's possible that new prerequisites were added that you don't have on hand. If the URL you are using points directly to "my.application" or whatever your equivalent is, prerequisites won't be processed.
So try pointing to the setup.exe that is created in the same directory as the .application file.
Other than that, it sounds like you're doing all the right stuff...
Also, it could be useful to run the fuslogvw utility on a machine where the application actually works. Or reflector.
And then see if indeed any of its dependencies being loaded surprise you.
Also, for these types of errors, be sure to check if disabling the antivirus resident protection helps. Sometimes it causes problems accessing assemblies' manifests and such.
I uninstalled my Kensington Mouse software, and that resolved my installation errors.
Who knew that mouse software that I never used could cause so much trouble??
Sometimes if your machine is working for days this problem will show up. Try to restart your machine. The same problem happened to me and it disappeared when I restarted my machine.