I want to submit my app on windows store but due to one error I can't.
Error:
Content compliance: failed
The app failed to resume properly from snapped view.
How to sort out this error? I have check here but not able to get proper solution.
It doesn't look like your app fluidly adapts to the snapped view. Perhaps that is why it failed.
If you keep the default minimum width of 500 pixels, you do not have
to make any special considerations for your app at narrow widths. You
simply design your app so that it adapts fluidly when the user resizes
the app
One should keep provisions for snap view in UI.
Its in UX Guideline of store app.
if its not supported then appropriate view should generated for the same
This Link will helpfull to you
Related
I have created on "WorkflowDesigner"in C#/WPF code, I have populated with some activities which are not seen in GUI with out scrolling.
If there is any error in the data bounded it show display some error icon in top.
Now the validation error only happening while i am scrolling the items.
is there any way for force update validation for entire activities in workflow editor (including the hidden item due to scroll) . Any help would be appreciated..
We used to run away from visualization, We zoomed to fit to window and then reset to previous zoom level.
i have create a few WPF applications in visual studio, and now i would like to create a final application to run all of the created apps in the final application. i would like to know how i can create a layout that displays the apps that are running inside the final app as buttons that can be clicked and cause the app to expand and allow the user to work on that app and then when finished return back to the final app and see the other apps to choose from. I imagine it would look like a Google chrome blank page that allows you see your familiar webpages and click on them to load them up. Any help or advice on what i should focus on to implement this would be much appreciated.
Thank you for taking the time to read over this.
Consider using a VisualBrush this takes other WPF UI (your "apps") and uses their UI as a brush for another UI element.
Raj Kumar has a simple article called Visual Brush in WPF for details.
The bit you probably want is at the bottom where he shows you rendering a controls content in another control. The magic being binding the controls visual to the element name whos UI it should render.
I am developing responsive web application in the asp.net mvc.
I want to set some product boxes based on the Current browser/screen resolution, but i am getting issue in getting the correct width of browser resolution.
If I write Request.Browser.ScreenPixelsWidth it gives me all time 640*480.
But its wrong. And if I write the var screen = System.Windows.Forms.Screen.PrimaryScreen.Bounds;
var width = screen.Width;
Its giving me correct windows resolution which i have set from my window property. Its giving me 1600*900 which is correct value. But issue here is if i manually make my browser screen small and run again that code at that it also gives me 1600*900, but it should give me the size of what i have done manually small.
Any idea?
Handling browser size on the server, you won't know if the user resizes the browser between requests. The correct way to handle browser size is on the client with CSS media queries. Media queries allow you to dynamically set different styles for different browser sizes, i.e. a more responsive layout. Here's a decent intro:
http://kyleschaeffer.com/development/responsive-layouts-using-css-media-queries/
We have a Windows Phone 8 application that uses MVVM. There are a couple of pages that work in the following way. Page 1 has some buttons and when one of them is clicked, page 2 is opened.
Now we want to migrate our application to Windows 8. Because of the bigger screen size, we can actually display both the buttons and the content on the same page (see the attached picture). Basically we are going to have a single screen on which we dynamically change a part of it (the right side with green)
We would like to share the view models between the two application. Is there a pattern to use for something like this?
There are a few alternatives that we investigated but we are not sure which one is correct:
Should "some content" (the second page in WP8) be a user control in the windows app?
Should we create a completely new view model for the Win8 that has the code from multiple view models in the WP8 app? This sounds like a bad idea though because we have about 6 view models in the WP 8 app that are now displayed on the same page in the win app.
Should the Win 8 view models somehow "contain" the other view models?
Should the dynamic content (the green box) have its own MVVM?
Ideas? Suggestions?
Well, this depends too much on your application to give any definite answer. But since pressing the buttons will load different content in the W8 app, MVVM can solve this without too much problems.
So, in WP8 app pressing the buttons issues a message that triggers navigation. In W8 you can change that message handler to destroy user control and create new one. In WP8 app your second screen was a standalone page with its own view model, there is no reason to not have a user control on W8 using that same view model.
However, you have to write UI from scrath since XAML cannot be shared.
In the Windows 8 Store App certification requirements it states that your app must support a snapped view. Does anyone know if it's possible to create a single snapped view that persists across the app? For instance on my main view I have 4 buttons that take you to different parts of the app, the buttons do not exist on the other views. What the design team is requesting that I do is create a snap view with the four buttons and some default text describing the app, they want this to be the snapped view for each page.
Is that possible?
Will Windows accept it?
Yes it is possible
Yes it will. I've seen several apps doing this including at least one of the first party apps. Store itself shows static image for snap view.