Types used in the config file

The config entries can have attributes with different types. These types will be recognized by their format. The formats are mostly the same as it should be in XAML.

Color

You can write down a color by its well known name or with its rgb or argb hexadecimal values prefixed with #. So you can write down yellow in the following ways.

Yellow the well known name of the color
#ff0 one digit for one byte in rgb order
#ffff00 two digits for one byte in rgb order
#ffffff00 two digits for one byte in argb order, where a means alpha (opacity), r means red, g means green and b means blue
#88ffff00 this is a semitransparent yellow because of the alpha part of the number
#00ffff00 this is a fully transparent yellow (wow who cares if it is yellow)
Transparent this is fully transparant by name

Thickness

Used by borderThickness margin and padding values.
It can be one, two or four decimal numbers separated with comma or space.

5 6 7 8 or 5, 6, 7 ,8 it means 5 on the left side of a shape, 6 on the top of the shape 7 on the right and 8 on the bottom
10, 4 or 10, 4 it means 10 on the left and right side and 4 on the top and bottom
9 it means 9 on all the four sides

CornerRadius

Used by cornerRadius attributes. It can be one or four numbers separated by space or comma.

5 6 7 8 or 5, 6, 7 ,8 it means 5 on the left side of a shape, 6 on the top of the shape 7 on the right and 8 on the bottom
9 it means 9 on all the four sides

FontWeight

This is an enum with the following possible values.
Black
Bold
DemiBold
ExtraBold
ExtraBlack
ExtraLight
Heavy
Light
Medium
Normal
Regular
SemiBold
Thin
UltraBlack
UltraBold
UltraLight

FontStyle

This is an enum with the following possible values.
Italic
Normal
Oblique

FontStretch

This is an enum with the following possible values.
Condensed
Expanded
ExtraCondensed
ExtraExpanded
SemiCondensed
SemiExpanded
UltraCondensed
UltraExpanded
Medium
Normal

IconPositions

This is an enum with the following possible values.
Background
Bottom
Left
Right
Top

VerticalAlignment

This is an enum with the following possible values.
Bottom
Center
Stretch
Top

HorizontalAlignment

This is an enum with the following possible values.
Left
Center
Stretch
Right

ImageFormat

The format of the generated image.
Png
Jpeg

path

Used by icon, image, watermark and basePath attributes. It basically is a valid path string. The following formats are expected.

C:\ImagesFolder\logo.png full local path
http://xamltomvc.codeplex.com full Internet url
~/logo.png path, or url relative to the application root
@/logo.png path, or url relative to the basePath

Last edited Feb 26, 2011 at 8:41 PM by Tocsi, version 6

Comments

No comments yet.