Search Results for

    Show / Hide Table of Contents

    Class TemplateHelper

    Helper to work with templates

    Inheritance
    System.Object
    TemplateHelper
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Simplic.CXUI
    Assembly: Simplic.CXUI.dll
    Syntax
    public static class TemplateHelper

    Fields

    | Improve this Doc View Source

    XAML_CODE_BEHIND_TEMPLATE

    Template for xaml code behind files

    Declaration
    public const string XAML_CODE_BEHIND_TEMPLATE = "Simplic.CXUI.Templates.XamlCodeBehind.cstemplate"
    Field Value
    Type Description
    System.String

    Methods

    | Improve this Doc View Source

    GetTemplate(String, IDictionary<String, String>, Assembly)

    Get a filled template.

    Declaration
    public static string GetTemplate(string name, IDictionary<string, string> values, Assembly asm)
    Parameters
    Type Name Description
    System.String name

    Name of the template (use the constant strings to access them)

    System.Collections.Generic.IDictionary<System.String, System.String> values

    Values which will be replaced within the template

    System.Reflection.Assembly asm

    Optional assembly

    Returns
    Type Description
    System.String

    Temaplte as string

    | Improve this Doc View Source

    ReplacePlaceholder(String, IDictionary<String, String>)

    Replace a set of placeholder in a string

    Declaration
    public static string ReplacePlaceholder(string template, IDictionary<string, string> values)
    Parameters
    Type Name Description
    System.String template

    Template code

    System.Collections.Generic.IDictionary<System.String, System.String> values

    Value (K/V)

    Returns
    Type Description
    System.String

    Prepared template

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx