Click or drag to resize

HomeExtensionsOnHomeToPath Field

Event for SOWI Web Foundation Home Extensions ToPath(Home)

Namespace:  SOWIWeb.Foundation
Assembly:  SOWIWeb.Foundation (in SOWIWeb.Foundation.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
public static EventHandler<EventArgsViewEnum<Home>> OnHomeToPath

Field Value

Type: EventHandlerEventArgsViewEnumHome
Examples
This example puts a costum view path

Adds event handler for a custom view path setting

//* add event handler for a custom view path setting *
SOWIWeb.Foundation.HomeExtensions.OnHomeToPath += this.HomeToPath;
Event handler puts custom view path
/// <summary>
/// Custom Home default view path
/// </summary>
/// <param name="sender">null object because it's static declaration</param>
/// <param name="e">Has view name and view path</param>
private void HomeToPath(object sender, SOWIWeb.Foundation.EventArgsViewToPathEnum<SOWIWeb.Foundation.Home> e)
{
    switch (e.View)
    {
        case Home.none:
            break;
        default:
            break;
    }
}
See Also