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
Related
I am creating a WP 8.1 app with MVVM Light Toolkit. I have to call a service of weather measurings information, and then, I have to create different graphics with the indicator showing the value of the service response. For example, I have this image:
And it should be like this:
Or these images:
And should end up like this:
How can I get the position where I would put the shape indicating the value? Or in the second case, the needle pointing the value? And, how would I support multiple resolutions?
you should draw everything in a Canvas panel. There you can control the assets positions and transformations. This also requires to have objects to preserve the state of each thing. This question maybe doesn't have an easy answer but I strongly recommend to you learn about that in this links
Using XAML to write Windows 8 Games - Part 1
Using XAML to
write Windows 8 Games - Part 2
Using XAML to write Windows 8
Games - Part 3
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.
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 .
We are looking at creating a new mobile application which will run on tablets using full Windows 8. We would like to be able to use full SQL for our data storage (which can be accessed easily using Windows Forms apps), but also retain the nice controls and touch friendliness provided by Windows Store apps (e.g. the LayoutAwarePage and the Windows 8 XAML controls).
We were looking at a way to use the Windows Store libraries within a Windows Forms application (as mentioned here: http://msdn.microsoft.com/en-us/library/windows/apps/jj856306.aspx#consuming_standard_windows_runtime_types), but have had no joy beyond adding the reference to a solution.
Does anyone know how to add a LayoutAwarePage to a Windows Forms application? Or is there a better way to approach this?
If you want it to look like a windows 8 app try having a look at MahApps
http://mahapps.com/MahApps.Metro/
Its pretty easy to use and look pretty good, this is for wpf though not winforms
I`m trying to make an windows phone 8 app which simply allow you to click a button which result in start recording and showing any visualization that indicate that its recording something like a bar or a vu meter , I managed to make the recording part, now i dont know what type of projects i should use to support making such visualization.
does Windows phone 8 apps support using XNA to draw in a box inside a xaml file ?
what is the tag i can use to draw inside using XNA code ?
If you're targeting WP8 you can't use the hybrid SL/XNA model. That said, you can certainly use a Hybrid solution that draws using DirectX. You can find general information here and a sample here (note that it uses DrawingSurfaceBackgroundGrid, you probably want DrawingSurface).