I want to implement a notification for user to update the app.
So how can I check if my application has an update (or newer version) on the store?
Edit: what I am looking for is a build-in api
You can find a XAML behavior that checks for updates in the WpWinNl toolkit. Here is a blogpost by Joost Van Schaik on how to implement it:
http://dotnetbyexample.blogspot.com/2013/09/zero-lines-of-code-solution-for-in-app.html
Here is a solution targeted to Windows Phone 8 using Cimbalino Windows Phone Toolkit:
http://developer.nokia.com/community/wiki/Application_update_prompt_using_Cimbalino_Windows_Phone_Toolkit
Edit: simpler solution without any toolkits http://developer.nokia.com/community/wiki/Checking_for_updates_from_inside_a_Windows_Phone_app
Related
I am new to wpf. Hence, kindly co-operate with my questions.
I want to build an app that runs on windows tablets. This is not to windows store app, rather, I will be developing this app for some company to visualize the data they have. And they will use this app on tablets or other touch enabled devices.
Background:
App will have some graphs and other visualizing diagrams. And WPF MVVM pattern will be used to develop the app.
My question:
My current system is:
System: HP elite book revolve 810 g2 tablet
.NET Framework: 4.0
Visual studio 2012
Can I develop a tablet app with the above specification?
where can i find coding documents on coding for touch devices in WPF mvvm pattern?
How can I use graph or any other visualization method in wpf. I mean, do I have any library that provides API's for different graphs?
Please help me in answering above.
Thank you
This questions will lead to long answers.. I´ll try to make it short!
The elite book revolve has an I5 and Windows 8 / 8.1. You should not have problems developing Widnows apps with that.
Visual Studio 2012 is fine as well, you might want to download the windows phone toolkit (if you want multiplatform apps).
You will need to use framwork 4.5 to develop Windows 8.1 RT apps though - and this is what you want to do if you want multi device apps. If not then it`s just normal Windows applications that can olny be runn on Windows devices (not Windows phone, or RT tablets)
It seems you are a starter in developing Touch apps.
2.1 Honestly you should consider buying a book before developing. The "Windows 8.1 Apps with XAML and C# Unleashed" one is really good
one - you can even read a good share of the first chapter with example code (see links below)!
2.2 I added a few links to ressources that could help you. Consider looking at MVVM, WPF and Touch coding independently. There are tons of tutorials available!
2.3. Doing touch support is pretty straightforward, it`s just another event handler (touchdown instead of mouseleftbutton down) so all you need is to know how to best handle events in MVVM (link attached below). Another thing is gesture support (see link)
Here is the standard library of xaml controls.. pretty basic but you can do a lot with them: https://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh465351.aspx
if you need better /more graphical controls you might consider using Developer Express or similar APIs
heres a list of the graphic tools they provide. Pretty neat: https://www.devexpress.com/products/net/controls/winrt/
Theres also a WinRT XAML Toolkit available: https://winrtxamltoolkit.codeplex.com/ (Tutorial and Graph Preview see below)
Additional Links:
Windows 8.1 Apps with XAML and C# Unleashed (example with code):
http://ptgmedia.pearsoncmg.com/images/9780672337086/samplepages/0672337088.pdf
MVVM General developing: https://joshsmithonwpf.wordpress.com/a-guided-tour-of-wpf/
MVVM in Windows 8: https://msdn.microsoft.com/en-us/magazine/jj651572.aspx?utm_source=rss&utm_medium=rss&utm_campaign=mvvm-using-the-mvvm-pattern-in-windows-8
WinRT XAML Toolkit Tutorial (Windows Store example):
http://eren.ws/2013/10/15/using-graphs-and-charts-in-windows-store-apps-boredom-challenge-day-11/
Best way of event Handling in MVVM (needed for Touch event handling):
What's the best way to pass event to ViewModel?
does Windows phone support the ObjectDataProvider, from Wpf?
I can't find a way to use it inside the xaml.
No, it does not. This is part of System.Windows, and if you check here http://msdn.microsoft.com/en-us/library/system.windows.data.objectdataprovider(v=vs.110).aspx you can see which platforms are supported on the bottom of the page.
How can I can draw a simple chart in Windows Phone 8 or 8.1 without using an external library, I want to use C# + XAML code only.
I searched for a free library to do that on Windows Phone 8.1 (universal app) but I couldn't find any. All libraries I've found supported Windows Phone 8 or 7, not Windows Phone 8.1.
I made in answer in this similar question How to do Chart on Windows Phone Universal App
It might be able to help you. Telerik has an API that costs money and Google have a free one where you can get Charts through http requests. Check my reply - you might wanna use one of these. My answer is not about drawing it through XAML / C# which can be quite comprehensive.
To Draw it yourself through code you probably wanna create a Custom Control. Here is a few links to get you started:
http://code.msdn.microsoft.com/windowsapps/WPF-Line-Graph-Basics-033dd90e
http://msdn.microsoft.com/en-us/magazine/ee291567.aspx
Using the default tools is very hard, you can use telerik controls, though
i'm beginner to creation Windows store apps. Do Windows store apps supports simple way to make custom touch gestures? I searched in MSDN and I found Tablet PC SDK 1.7 but it's written for Windows XP Tablet PC Edition. Thanks in advance
Yes. I'm using the MSGestureEvent in my javascript Windows Store apps but I'm sure there has to be something similar for C# (which I believe is your case)
Check out the Gestures and Manipulations sample: http://code.msdn.microsoft.com/windowsapps/Manipulations-and-gestures-362b6b59. Also see Responding to user interaction (http://msdn.microsoft.com/en-US/library/windows/apps/xaml/hh465397). And if the standard gestures and manipulations aren't enough, you can use Windows.UI.Input.GestureRecognizer to roll your own.
Can I create a silverlight user control that will work on a windows phone silverlight?
Is there a way to do so? I don't need very complex things. just a very simple user control with a label and a few text boxes.
Yes and yes. Here is a link for starters. If you scroll to the bottom you will see supported version info. And yes, user controls are supported for Silverlight for Windows Phone v 7.0
Just above the version info is also a clear, straightforward example of the simple kind of user control that you're interested in creating.
Cheers.
Sure you can as long as Controls you are using in Custom Control are also supported in Silverlight for WP7. in MSDN doc there is description of which Version of Silverlight supports it with weather its available in WP7. Also in doc every Method, Property ,Event ,etc has an icon in front of it. which will tell if its available in WP7 or not.