Skip to content

Need a recipe for adding/extending local Helpers to a project #29

@scottcg

Description

@scottcg

For some reason, adding this to a client project breaks the current Helper class (haven't investigated deeply enough what other options are):

namespace CSharpMarkup.Wpf;

public static class Helpers
{
    public static TextBlock TextBlock(System.Windows.Documents.Inline[] chidren)
    {
        var ui = new System.Windows.Controls.TextBlock();
        foreach (var ch in chidren) ui.Inlines.Add(ch);

        return ui;
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions