C# Class P02Project.Util

A Utility Class that contains constants that are used throughout the application
Mostra file Open project: raouldc/OptiDev

Public Properties

Property Type Description
MapProvider ApplicationIdCredentialsProvider
_pageColDict Color>.Dictionary
animationDelay int
animationMilisecs int
buttonTextColor Color
buttonTextFont FontFamily
buttonTextSize double
contentBgColor Color
contentMargin System.Windows.Thickness
contentTextColor Color
contentTextFont FontFamily
contentTextSize double
headingTextSize double

Public Methods

Method Description
FadeIn ( System.Windows.Media.Animation.Storyboard sb, UIElement element ) : void

Fades in an element from nothing to full opacity

SetupQR ( SurfaceScrollViewer QRText, String text ) : void
StackAnimation ( System.Windows.Media.Animation.Storyboard sbIn, System.Windows.Controls.UIElementCollection buttons, System.Windows.Thickness from, System.Windows.Thickness to ) : void

Animates a stack of buttons with a slide in from the right. Each button comes in, one after another

StackAnimationDefault ( System.Windows.Media.Animation.Storyboard sbIn, System.Windows.Controls.UIElementCollection buttons ) : void

This does the StackAnimation with the default locations on the screen

TextBlockFactory ( ) : System.Windows.Controls.TextBlock
WriteXml ( this xml, string path ) : void
getLinks ( String exclude ) : String[]

return the list of the links of the buttons

Method Details

FadeIn() public static method

Fades in an element from nothing to full opacity
public static FadeIn ( System.Windows.Media.Animation.Storyboard sb, UIElement element ) : void
sb System.Windows.Media.Animation.Storyboard Storyboard object to save the timeline on
element UIElement An element to animate
return void

SetupQR() public static method

public static SetupQR ( SurfaceScrollViewer QRText, String text ) : void
QRText SurfaceScrollViewer
text String
return void

StackAnimation() public static method

Animates a stack of buttons with a slide in from the right. Each button comes in, one after another
public static StackAnimation ( System.Windows.Media.Animation.Storyboard sbIn, System.Windows.Controls.UIElementCollection buttons, System.Windows.Thickness from, System.Windows.Thickness to ) : void
sbIn System.Windows.Media.Animation.Storyboard A Storyboard Object to save the timelines on
buttons System.Windows.Controls.UIElementCollection A collection of the buttons in the order that they need otbe animated in
from System.Windows.Thickness A from location (usually off screen)
to System.Windows.Thickness A destination location
return void

StackAnimationDefault() public static method

This does the StackAnimation with the default locations on the screen
public static StackAnimationDefault ( System.Windows.Media.Animation.Storyboard sbIn, System.Windows.Controls.UIElementCollection buttons ) : void
sbIn System.Windows.Media.Animation.Storyboard A Storyboard object that the timelines need to be saved on
buttons System.Windows.Controls.UIElementCollection A collection of buttons that need to be animated
return void

TextBlockFactory() public static method

public static TextBlockFactory ( ) : System.Windows.Controls.TextBlock
return System.Windows.Controls.TextBlock

WriteXml() public static method

public static WriteXml ( this xml, string path ) : void
xml this
path string
return void

getLinks() public static method

return the list of the links of the buttons
public static getLinks ( String exclude ) : String[]
exclude String
return String[]

Property Details

MapProvider public_oe static_oe property

public static ApplicationIdCredentialsProvider MapProvider
return ApplicationIdCredentialsProvider

_pageColDict public_oe static_oe property

public static Dictionary _pageColDict
return Color>.Dictionary

animationDelay public_oe static_oe property

The duration, in ms for animations that need to happed one after the other. Add in this number to the length of the previos animation
public static int animationDelay
return int

animationMilisecs public_oe static_oe property

The duration, in ms, for the animations
public static int animationMilisecs
return int

buttonTextColor public_oe static_oe property

public static Color buttonTextColor
return Color

buttonTextFont public_oe static_oe property

public static FontFamily buttonTextFont
return FontFamily

buttonTextSize public_oe static_oe property

public static double buttonTextSize
return double

contentBgColor public_oe static_oe property

public static Color contentBgColor
return Color

contentMargin public_oe static_oe property

public static Thickness,System.Windows contentMargin
return System.Windows.Thickness

contentTextColor public_oe static_oe property

public static Color contentTextColor
return Color

contentTextFont public_oe static_oe property

public static FontFamily contentTextFont
return FontFamily

contentTextSize public_oe static_oe property

public static double contentTextSize
return double

headingTextSize public_oe static_oe property

public static double headingTextSize
return double