WPFNotification.Core.Configuration.NotificationConfiguration.NotificationConfiguration C# (CSharp) Method

NotificationConfiguration() public method

Initialises the configuration object.
public NotificationConfiguration ( System.TimeSpan displayDuration, int width, int height, string templateName, NotificationFlowDirection notificationFlowDirection ) : System
displayDuration System.TimeSpan The notification display duration. set it TimeSpan.Zero to use default value
width int The notification width. set it to null to use default value
height int The notification height. set it to null to use default value
templateName string The notification template name. set it to null to use default value
notificationFlowDirection NotificationFlowDirection The notification flow direction. set it to null to use default value (RightBottom)
return System
        public NotificationConfiguration(TimeSpan displayDuration, int? width, int? height, string templateName, NotificationFlowDirection? notificationFlowDirection)
        {
            DisplayDuration = displayDuration > TimeSpan.Zero ? displayDuration : DefaultDisplayDuration;
            Width = width.HasValue ? width : DefaultWidth;
            Height = height.HasValue ? height : DefaultHeight;
            TemplateName = !string.IsNullOrEmpty(templateName) ? templateName : DefaultTemplateName;
            NotificationFlowDirection = notificationFlowDirection ?? NotificationFlowDirection.RightBottom;
        }
        #endregion
NotificationConfiguration