-
StackPanel
- horizontal/vertical stack
- used for small sections of a larger window
-
WrapPanel
- horizontal - items go left to right then into lines
- vertical - items go top bottom then into more columns
-
DockPanel
aligns controls to a specified edge of the container(top left right bottom)
-
Grid
- a table
- most flexable and commonly used
-
UniformGrid
grid but all elements same size
-
Canvas
- fixed coordinates
- allows items to overlap
- don't use for a resizable window
-
Available space
- property sheets
- list boxes
-
User sophistication with respect to general computer usage
text boxes vs. more complex controls
-
checkbox pros and cons
- pros: simple, low space consumption
- cons: can only express one choice
-
radio buttons pros and cons
- pros: both choices are stated and visible
- cons: higher space consuption
-
Dropdown List pros and cons
- pro: both choiced stated, little space, easily expandable
- cons: only one choice is visible at a time
-
toggle button pros and cons
- pros: same as checkbox, with icon, low space consumption
- cons: can only express one choice
-
Tree list pros and cons
- pros: many choices are visible, collapsed groupings
- cons: may be unfamiliar to naive computer users
-
custom browser pros and cons
- pros: suited for browsing choices
- cons: may be unfamiliar to some users
-
List that can receive drag and dropped items pros and cons
- pros: visually elegant and space saving
- cons: users may not know it is a drop target
-
works best with sophisticated applications
multiple windows
-
tiled panes
minimize window management
-
one-window paging
simple web applications
-
two-panel pattern
- 1st panel - shows a set of items the user can select
- 2nd panel - show the content
-
extras on demand design
ex. windows calculator
-
multi-level help design
- a mix of light-weight and heavy-weight help techniques
- ex. tooltips, F1 help
-
Factors affecting control choice
- available space
- general computer knowledge
- expectations from other applicaitons
- available technology
-
content controls
- ex. textbox, button
- can contain 1 element of content such as text or an image
- user can directly interact with it
-
What happens with hidden scroll views that you should beware of?
you can still scroll the scroll bar with the arrow keys
-
What does WPF allow?
allows objects to be loaded into controls
-
How to determine directories found in a directory
string[] dirs = Directory.GetDirectories(dir);
-
determine files found in a directory
string[] fileEntries = Directory.GetFiles(dir);
-
determine files AND directories
string[] filSystemEntries = Directory.GetFileSystemEntries(dir);
-
determine drives found
foreach(System.IO.DriveInfo drive in System.IO.DriveInfo.GetDrives())
-
what is a thread?
An independent path of execution within a program that runs (or appears to run) asynchronously (i.e. concurrently) with respect to other program threads.
-
Synchronous threading
- blocked
- "I'll wait until you're finished before I do anything else"
-
Asynchronous threading
"I'm not waiting - just let me know when you're done"
-
-
-
bitmap effects
- these work on controls
- blur
- embossing
-
Deciding on how to colour
- light foregrounds again dark backgrounds or vice versa
- NEVER use oposite sides of the colour wheel
- watch for colour blindness
-
combinations of hues
- using 2 saturated colours evoke more energy then 1 alone
- a set of saturated colours draws attention to the saturated colour against muted
-
High vs low contrast
- high evokes tension, strength and boldness
- low is soothing and relaxing
|
|