Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
scottcg opened this issue Jan 6, 2022 · 0 comments
Open

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

scottcg opened this issue Jan 6, 2022 · 0 comments

Comments

@scottcg
Copy link

scottcg commented Jan 6, 2022

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;
    }
}
@scottcg scottcg changed the title Need a recipe for adding/extending local Helpers to a project #wpf Need a recipe for adding/extending local Helpers to a project Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant