Click or drag to resize
RestApiAuthMgrWpfSetLogo Method
Sets the logo used in the user controls.

Namespace: Rally.RestApi.UiForWpf
Assembly: Rally.RestApi.UiForWpf (in Rally.RestApi.UiForWpf.dll) Version: 3.1.1.0 (3.1.1.0)
Syntax
public static void SetLogo(
	ImageSource logo,
	ImageSource icon
)

Parameters

logo
Type: System.Windows.MediaImageSource
The image to use as a logo.
icon
Type: System.Windows.MediaImageSource
The image to use as a window icon.
Examples
C#
// ImageResources is a resource file that the logo has been added to.
Bitmap bitMap = ImageResources.Logo;
RestApiAuthMgrWpf.SetLogo(GetImageSource(bitMap));
This is a sample helper method for converting a Bitmap to an ImageSource.
C#
public static media.ImageSource GetImageSource(Bitmap image)
{
    return Imaging.CreateBitmapSourceFromHBitmap(
                                        image.GetHbitmap(),
                                        IntPtr.Zero,
                                        Int32Rect.Empty,
                                        BitmapSizeOptions.FromEmptyOptions());
}
See Also