RestApiAuthMgrWpfSetLogo Method |
Sets the logo used in the user controls.
Namespace: Rally.RestApi.UiForWpfAssembly: 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
)
Public Shared Sub SetLogo (
logo As ImageSource,
icon As ImageSource
)
public:
static void SetLogo(
ImageSource^ logo,
ImageSource^ icon
)
static member SetLogo :
logo : ImageSource *
icon : ImageSource -> unit
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
Bitmap bitMap = ImageResources.Logo;
RestApiAuthMgrWpf.SetLogo(GetImageSource(bitMap));
This is a sample helper method for converting a Bitmap to an
ImageSource.
public static media.ImageSource GetImageSource(Bitmap image)
{
return Imaging.CreateBitmapSourceFromHBitmap(
image.GetHbitmap(),
IntPtr.Zero,
Int32Rect.Empty,
BitmapSizeOptions.FromEmptyOptions());
}
See Also