C# Class Plugin.Toasts.DefaultToastLayoutRenderer

Inheritance: IToastLayoutCustomRenderer
显示文件 Open project: adamped/Toasts.Forms.Plugin

Public Methods

Method Description
DefaultToastLayoutRenderer ( BitmapImage>.Func iconForCustomTypeResolver = null, Brush>.Func backgroundForCustomTypeResolver = null ) : System
Render ( ToastNotificationType type, string title, string description, object context, Brush &brush ) : UIElement

Private Methods

Method Description
LoadBitmapImage ( string fileName ) : BitmapImage

Method Details

DefaultToastLayoutRenderer() public method

public DefaultToastLayoutRenderer ( BitmapImage>.Func iconForCustomTypeResolver = null, Brush>.Func backgroundForCustomTypeResolver = null ) : System
iconForCustomTypeResolver BitmapImage>.Func resolves a bitmapImage for ToastNotificationType.Custom type. object - is a context passed to Notify
backgroundForCustomTypeResolver Brush>.Func resolves a background brush for ToastNotificationType.Custom type. object - is a context passed to Notify
return System

Render() public method

public Render ( ToastNotificationType type, string title, string description, object context, Brush &brush ) : UIElement
type ToastNotificationType
title string
description string
context object
brush Windows.UI.Xaml.Media.Brush
return UIElement