I have just started to develop in universal app. I have developed app in Windows 8 store apps and also developing Windows Phone 8 and Windows Phone 8.1 (SilverLight) Apps. I have few questions related to universal app in Windows . I have posted them below. Most of cases are related Single UI which is created in App. Share folder.
1. Is there any control in universal app like Pivot or panorama as like windows phone 8 and windows phone 8.1 (silverlight) have ?
2. which is best to design for data binding Listview or Listbox?
3. In c# we can write like
#if WINDOWS_APP
welcometb.Text = "Welcome to Windows App";
#endif
#if WINDOWS_PHONE_APP
welcometb.Text = "Welcome to Windows Phone App";
#endif
to get which app is there, for XAMl how can we determine that it is windows app and it is windows Phone app
4. For web there is word like responsive UI. to create there is media query to write css.
I know css is same as we can create resource with for xaml . I can get resolution form c# and I can create different UI for different resolution and I can visible collapsed according to resolution but is there any single way which automatically adjust according to design.? ( this question is related to data binding controls specially...)
5. I am new in MVVM. I have developed Windows phone 8 and WP8.1 app in normal way. But not with MVVM. I have search a lot but did not get any example which can make better understand of MVVM. I know what is MVVM. It is similarly of MVC of Asp.net.
MVVM is
Model : Which describe data
View-Model : In simple word a bridge between Model and View.
View : A simple xaml page or user interface.
Which way is better or best to do code in Windows Phone 8 MVVM or Normal way?
Ref : Separate UI and app logic using the Model-View-ViewModel pattern
6. I have a transparent Image as Icon but still it display white background check below images
I - > Package.appxmanifest
II - > Display in start menu .
Related
In our application we must use something like android fragment, but we are a begginers in programming for Windows Phone. We know that we can create a new object programmatically (like that: Windows Phone 8 App Dynamically/programmatically create buttons in g grid/Panel ), but in our design it's a too difficult. We want to create one frame in xaml file, and later clone it many times, one under the other. It is possible in Windows Phone?
You can create User Control and included in any xaml page. You can look here
I am migrating my Windows Phone 8 app to Windows Universal Apps. I am currently working on Windows 8.1 project.In my Windows Phone 8 app , I used Pivot Control to show multiple pages and for each App bar was different and in that when I used to slide the other view was visible. I showed different listbox on each page and the values comes from database. I want to do the same for Windows 8.1 but I found that there is not a Pivot Control in Windows 8.1. Can anyone suggest me any control using which I can do that. If possible explain me with some code.
Please help.
See XAML controls comparison between Windows Phone 8 and Windows 8 on MSDN.
Not all controls are available for both Windows and Windows Phone. Specifically, there is no direct analogue to the Pivot on Windows 8.1. You will need to either redesign your UI to use a different control or write your own (or find a 3rd party control) Pivot control.
Two likely options are a FlipView or a Hub Control, but the specifics will really depend on the details of your app.
Is it possible to add/include a textbox under commandbar of windows phone 8.1 app as present in Internet Explorer 10..
This is not possible, you can only use AppBarButton and AppBarToggleButton.
Apps like IE and the app store where you can see rectangular buttons in the command bar, are special apps in which Microsoft can do whathever they want.
But you could try to implement your own custom CommandBar that immitates the system command bar, but this seems like too much work and error prone.
Yolo
This project aims to create useful controls for WinRT (Windows Phone, Windows 8.1, and later XBOX One). The first one is a customizable AppBar control, which is in a early stage of development.
You can use this app bar to suit your requirements.
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 need to set the Windows 8 Application Launcher to launch my WPF application as guided here: http://msdn.microsoft.com/en-us/library/dn195617(v=winembedded.81).aspx
Is it possible or does it have to be a Windows 8 App (instead of a regular WPF application)?
If its not possible, how difficult would it be to migrate my WPF application to a Windows 8 App format?
Couldn't i simply package my WPF application with an AUMID?
Important: The Windows 8 Application Launcher also has a KeepAlive option in Windows Embedded. I need it to keep my application alive as well incase its closing so a good solution would include this as well. Of and i'm using ClickOnce for auto-update my WPF application and i would like to keep this functionality too.
your example is for win 8 Embedded and only for apps. There you have the possibility to startup directly an app.
I think there is still startup possibility for your wpf application on normal Windows 8 devices.
Maybe you have to disable metro on startup. Here is a complex tutorial about this. In Win 8.1 there will be a simple option inside the properties of the taskbar.
Judging by the page you linked, it seems you are out of luck. Only Windows 8 apps are mentioned. But maybe there is another mechanims to auto start desktop applications?
The difficulty of migrating a classic WPF desktop application to a Windows 8 ("Store") app depends on the kind and content of the application, ranging from simple to impossible.
Windows 8 apps are sandboxed and cannot do everything a desktop application can, they have a different lifecycle and different UI/UX principles (you probably need to redo your UI from scratch). .NET and XAML for Windows Store Apps look like .NET and WPF for desktop applications, but there are many surprising details and strings attached, possibly complicating a direct port.
Application Launcher is for Windows Store Applications only. However you can achieve the same effect with Shell Launcher for any executable.
Have a look at these two links here:
http://msdn.microsoft.com/en-us/library/dn195623(v=winembedded.81).aspx
http://technet.microsoft.com/en-us/library/dn451259.aspx
Let me know if you need additional help.