skydrive and mvvm on wp8 - c#

I’ve got a few questions which i hope you can help me with in regards to using SkyDrive with a wp8 app.
Does the live sdk support mvvm pattern? I’ve tried implementing standard code to login in my viewmodel, but it keeps throwing me a strange error i.e. Filenotfound for presentation library. When i implemented on a view it works. Any idea?
I know my internet speed is slow (poor connection from where i am on holidays!!), but should i really display a progress bar of some sort?
My sign in button is in my settings page but I’m not sure where should i auto-login from as I’ve got a splash screen page that loads up first but based on options selected in my settings, the next page loading could be any of the 3 available and I’m not sure where i should implement this if it doesn’t support mvvm. Should i duplicate the code in all 3 pages? Then what, assuming i do and i auto-login to my skydrive, the data i want to upload is done from another page, what do i do for that? The idea is that i want login so i don’t have to do it when it’s time to upload the data.
Any help clarifying these questions would be greatly appreciated.
Thanks.
T

Related

Swipe Buttons On Listview Row

I am currently setting up a new xamarin app which will target UWP / Android and one of the things I need to do is to swipe a row on a list view to show an action button (which will more than likely be an edit / delete button depending on the side of swiping). I have had a look at GestureRecognizers which I have not got to work - this was quite possibly because I was trying to put this on a label control, however, after a couple of days of trying to locate a best practice way of doing this I'm coming up against a brick wall. Suggestions and ideally github repos at this stage to demonstrate a working solution would be really useful.
I have gone around google looking for a solution, I have a subscription with DevExpress and used their grid when I had an Android only app. This worked absolutely brilliantly - however, their xamarin.forms control does not work with UWP.
The expected result is to look the same as a DevExpress grid view: https://documentation.devexpress.com/HelpResource.ashx?help=Xamarin&document=img18128.jpg
Thanks
Chris

Windows API in outlook to cover send button

I've been tasked with removing the send button in outlook, not just from the ribbon but from the message form. I've tried making some custom forms but they always seem to be lacking. We also have a custom button solution using them Item_send event, so tying into that event was causing issues.
I have been toying around with a different idea, to use the windows API to add a button over the Default send button.
I've done some research on this and have only found 1 suggestion to this being possible but the post didn't include too much information. My question is threefold, is it even possible? Is it a good idea? If so, where do I start?
p.s. Normally I'm a mobile engineer so I feel like a fish out of water when even googling stuff about the windows API but i'm confident I can pick it up with time.
If you need control over the sending process, the accepted and supported mechanism is to hook into the ItemSend event and cancel/approve as required according to your business logic. Otherwise, removing functionality from Outlook is a bad design decision.

Adding User Controls To Web Page in VB.Net Web App

I have followed the setup instructions at this link Adding Controls to a webpage
However, for the 2 weeks that I have been studying vb.net, I have yet to be able to add a drag and drop form or control element on the page as all options are grayed out...even while in design view. Is there a setting I am overlooking? It doesn't make any sense that there would be tutorials on how to do the exact thing I am trying to do, but for some reason, it does not allow me to do it on my setup. Please help!?
Ok...rookie mistake. I figured it out. I was still running and debugging the application. Must stop the application from running and then all form controls become "addable".
Hope this saves someone time.

Facebook troubles using visual web developer 2010

I'm sorry if this is the 100 post you see on this topic, but I could't find one that is helping so far.
I'm trying to simple project on Visual Web Developer 2010 express That logs in to a given user name in facebook and enters a status for him(2 text boxes for user name and password and another one for the text to be the status, and a button to start)
i can't find a way to do so without creating a facebook app and using the app_id and facebook personal plugins for login..
can someone give me help on the subject? code samplesm or something that i can implement now, this small project is for a job review i have in 2 days
thanks for the help :)
I'm not sure on this but...
I would make a facebook app for this.
You could also search the page and find an element using jQuery. Im not sure if the id of the controls on the textbox change that much.
Again. Not sure. Just some guesses. You can find valuable information on the facebook api here http://developers.facebook.com/docs/reference/php/facebook-api/
This is another alternative that is probably the right approach. Can you provide more details?

Issue with postbacks on asp.net pages viewed from mobile device

I am facing an awkward problem. I am working on a .NET web site for which we are making a mobile version as well. The mobile version seems to be working fine when I am viewing it from the browser on my laptop, but when viewing it from a mobile device (in my case HTC running on Android), there is a problem on button clicks. The postbacks simply freeze the page and after some time "Web page not available" is displayed. Even for simple cancel buttons that only have Response.Redirect associated with them.
Has anyone witnessed similar situation? Any ideas on what can cause this? I am using .NET 3.5.
The postbacks work through inserted JavaScript (__doSubmit). Mobile devices have patchy support for JavaScript. Is it possible to look at the device capabilities for instance by hooking into a WURFL database and look at the device capabilities. I could well imagine that this would be a problem for lower end devices but I am a bit surprised about HTC Andriod devices. Also to help isolate the issue I would test with a normal submit button i.e. one without runat="server" and see what happens then
Also you could try subverting your button and putting in some custom javascript to submit i.e.
OnClientClick="formname.submit();"
This link has some similar problems but with autosubmitting drop down lists
It's also dimly possible that the swollen ViewState is causing issues with the page size on postback. Generally if/when I have been developing for mobile I would turn this off if possible. The resulting page will be larger (a lot larger) than it needs to be. If nothing else you would need to make every effort to keep the pages as small as possible (IMHO)
I'm assuming that you are locked into webforms development at this point -so you could look at ASP.Net mobile controls to see if they behave better - there is a form control in there. But I have never used them or ever seen them used. Some other posters may have had great success with them though? Perhaps?
Not helpful but when we developed for mobile we used MVC which is at least more transparent in these kind of situations

Categories

Resources