Questions tagged [design-guidelines]

89 questions
0
votes
2 answers

why guidelines says "avoid async void" rather than saying "don't avoid awaiting on task"

Why guidelines says "avoid async void". I don't know, but I feel guideline should rather say - "await task". Problem with async void is that caller will not know if it need to await for completion and control will continue with execution of…
rahulaga-msft
  • 3,964
  • 6
  • 26
  • 44
0
votes
2 answers

Is it OK to request Calendar and push notifications access at app start-up in iOS?

I my app I need both Calendar and notifications access. I know this is not the best approach to ask user to accept a bunch of requests on the app's first start, but currently it is not possible to rethink app design. So my question on this stage is…
schmidt9
  • 4,436
  • 1
  • 26
  • 32
0
votes
3 answers

Are there any limitations on how we use layouts in android?

I've created a good looking layout for my app, but I've used relative layouts inside linear layouts (According to my needs). Is this ok? my team partner told me that this does not follow the android guidelines and this would make the app go down in…
0
votes
1 answer

API design: direction and name of object-to-object copy function

A class T shall provide a member function that copies some but not all member variables (minimal example: just one variable X) from one object of type T to another object of type T. There are two possible solutions, copying from and copying…
Joachim W
  • 7,290
  • 5
  • 31
  • 59
0
votes
1 answer

Why apple don't recommend JPG files?

According to Apple guidelines, they recommend all images to be png. https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconMatrix.html I have a big background, which is almost 1.5 mb in PNG and 150 Kb in…
Sandeep
  • 88
  • 8
0
votes
1 answer

Custom AngularJS filter within a template

Firstly - let me apologise for being a total Angular newbie. I'm currently working on a new web app and trying to follow a style guide (https://github.com/johnpapa/angular-styleguide) I've got things working, but at the moment have to declare my…
Miles
  • 31
  • 7
0
votes
2 answers

Best practices: what should an "IsValid" boolean function return when passed a null argument?

Given a bool validation function that takes an argument and returns true or false based on argument's compliance to some internal rules: if the argument is null, should the function: return false return true do neither and simply raise a…
Louis
  • 705
  • 10
  • 18
0
votes
1 answer

How to show help in Windows Phone 8 app

I am creating a Windows Phone 8 app and it shows a result which uses a color coding scheme. I want to show a help for the users on the color coding scheme. But how to display this help? I don't know the design guidelines about displaying help in…
user2975866
0
votes
1 answer

What is 'Desktop Presence'? (As used in the Windows UI style guidelines)

A lot of the Windows style guidelines refer to 'Desktop Presence' in various places, e.g. http://msdn.microsoft.com/en-us/library/windows/desktop/dn742496(v=vs.85).aspx', but it's never defined anywhere that I can see. Is there a definition for what…
Tim Perry
  • 11,766
  • 1
  • 57
  • 85
0
votes
1 answer

iOS design guidelines - tabcontrol versus list view for main/first selection screen

Since Apple developer account is down, I can take the chance of later submiting and getting rejected since I will then run out of time. Suppose I have 9-11 menu items in main window navigation. It is a bit too much, but that is what customer…
Tom
  • 3,587
  • 9
  • 69
  • 124
0
votes
2 answers

How to define and use a struct without full struct definition in header?

For controling struct members and force programmers to use getter/setter functions, I want to write code like below pattern: /* Header file: point.h */ ... /* define a struct without full struct definition. */ struct point; /* getter/setter…
Amir Saniyan
  • 13,014
  • 20
  • 92
  • 137
-1
votes
1 answer

Where does the static information for the application go in Android

According to Android Design Guideline! , the static information shouldn't be included in settings. So where should I put up all these information like about me,terms and conditions,version etc.
isudansh
  • 370
  • 3
  • 16
-2
votes
2 answers

Android - How can I create layout as per image attached for different screens?

Android - How can I create layout as per image attached for different screens?
-5
votes
2 answers

C# Naming Guideline for local variables

A question about naming local variables in a C# method that takes a parameter of the same name Please see the code below private int DoSomething(string activationCode) { ... int ??WhatNameToChooseHere?? =…
Venu b
  • 428
  • 1
  • 3
  • 9
1 2 3 4 5
6