Delight icon indicating copy to clipboard operation
Delight copied to clipboard

Broken File Generation when Using namespace Delight.Models

Open kturnal opened this issue 4 years ago • 1 comments

I have an enum under Delight.Models : public enum UpdateType{ ... }

When I want to reference it on my xml I am using this code: <UpdateCard TypeOfUpdate="t:UpdateType"> </UpdateCard>

Then the code is generated with a "+" instead of a "."

  public readonly static DependencyProperty<Delight.Models+UpdateType> TypeOfUpdateProperty = new DependencyProperty<Delight.Models+UpdateType>("TypeOfUpdate");

    public Delight.Models+UpdateType TypeOfUpdate
    {
        get { return TypeOfUpdateProperty.GetValue(this); }
        set { TypeOfUpdateProperty.SetValue(this, value); }
    }
    

If anything else is needed, please let me know :)

kturnal avatar Nov 08 '21 10:11 kturnal

Thank you for the bug report. You probably figured it already but a temporary workaround is to put your enum outside the Models class.

patrik-u avatar Nov 08 '21 14:11 patrik-u