C# Class WebExpress.StaticFunctions

Mostra file Open project: Sential/WebExpress-beta Class Usage Examples

Public Methods

Method Description
AnimateColor ( SolidColorBrush from, SolidColorBrush to, UIElement control, double duration ) : void
AnimateColor ( SolidColorBrush from, System to, UIElement control, double duration ) : void
AnimateColor ( System from, System to, UIElement control, double duration ) : void
AnimateFade ( double from, double to, UIElement control, double duration ) : void
AnimateFade ( double from, double to, UIElement control, double duration, System.Action method ) : void
AnimateHeight ( double from, double to, UIElement control, double duration ) : void
AnimateRipple ( double from, double to, UIElement control, double duration ) : void
AnimateScale ( double fromX, double fromY, double toX, double toY, UIElement control, double duration ) : void
ChangeButtonImage ( string filename, System image ) : void
ConvertBytesToMegabytes ( long bytes ) : double
GetDominantColor ( Bitmap bmp ) : Color
ToMediaColor ( System color ) : System.Windows.Media.System.Drawing.Color

Method Details

AnimateColor() public static method

public static AnimateColor ( SolidColorBrush from, SolidColorBrush to, UIElement control, double duration ) : void
from System.Windows.Media.SolidColorBrush
to System.Windows.Media.SolidColorBrush
control System.Windows.UIElement
duration double
return void

AnimateColor() public static method

public static AnimateColor ( SolidColorBrush from, System to, UIElement control, double duration ) : void
from System.Windows.Media.SolidColorBrush
to System
control System.Windows.UIElement
duration double
return void

AnimateColor() public static method

public static AnimateColor ( System from, System to, UIElement control, double duration ) : void
from System
to System
control System.Windows.UIElement
duration double
return void

AnimateFade() public static method

public static AnimateFade ( double from, double to, UIElement control, double duration ) : void
from double
to double
control System.Windows.UIElement
duration double
return void

AnimateFade() public static method

public static AnimateFade ( double from, double to, UIElement control, double duration, System.Action method ) : void
from double
to double
control System.Windows.UIElement
duration double
method System.Action
return void

AnimateHeight() public static method

public static AnimateHeight ( double from, double to, UIElement control, double duration ) : void
from double
to double
control System.Windows.UIElement
duration double
return void

AnimateRipple() public static method

public static AnimateRipple ( double from, double to, UIElement control, double duration ) : void
from double
to double
control System.Windows.UIElement
duration double
return void

AnimateScale() public static method

public static AnimateScale ( double fromX, double fromY, double toX, double toY, UIElement control, double duration ) : void
fromX double
fromY double
toX double
toY double
control System.Windows.UIElement
duration double
return void

ChangeButtonImage() public static method

public static ChangeButtonImage ( string filename, System image ) : void
filename string
image System
return void

ConvertBytesToMegabytes() public static method

public static ConvertBytesToMegabytes ( long bytes ) : double
bytes long
return double

GetDominantColor() public static method

public static GetDominantColor ( Bitmap bmp ) : Color
bmp System.Drawing.Bitmap
return System.Drawing.Color

ToMediaColor() public static method

public static ToMediaColor ( System color ) : System.Windows.Media.System.Drawing.Color
color System
return System.Windows.Media.System.Drawing.Color