Can compile generated UNO code with class name with "_"

Fuse Version 1.2.1 (build 13974) - Windows 7

I’ve just start app for learning tool and try design the basic structure of my futur app (using tutorial Router/Navigation ect…)

I’ve made different file like this :

Atelier.ux :

<Page ux:Class="Mon_Petit_Atelier.Atelier_Pages">
  <Router ux:Dependency="router" />
  <JavaScript File="Atelier.js" />

</Page>

Atelier.js :

function Atelier() {

}

module.exports = {
  Atelier
};

And i’ve done exactly the same for all the other files/pages for the project : extras.ux, tools.ux ect…
that i want to be pages for the router.

I’ve my main file :
Mon_Petit_Atelier.ux

<App Background="Color_Fond">
 <Mon_Petit_Atelier.Color_Palette ux:Name = "Color_Palette"/>
  
 <iOS.StatusBarConfig Style="Light" Animation="Slide" IsVisible="True" />
  <Android.StatusBarConfig Color="Color_Ecriture_02" IsVisible="True" />
 
  <Router ux:Name="router" />
  <JavaScript File="Mon_Petit_Atelier.js" />

  <ClientPanel Color="Color_Fond">
    <Navigator DefaultPath="Atelier" SwipeBack="Right">
      <Mon_Petit_Atelier.Atelier_Pages ux:Template="Atelier" router="router" />
      <Mon_Petit_Atelier.Realisations_Pages ux:Template="Realisations" router="router" />
      <Mon_Petit_Atelier.Patrons_Pages ux:Template="Patrons" router="router" />
      <Mon_Petit_Atelier.Tissus_Pages ux:Template="Tissus" router="router" />
      <Mon_Petit_Atelier.Merceries_Pages ux:Template="Merceries" router="router" />
      <Mon_Petit_Atelier.Extras_Pages ux:Template="Extras" router="router" />
    </Navigator>
  </ClientPanel>

</App>

The application can’t compile the UNO generated code.

Error — Expression is but is used as a type. (atom reported error)
the direct output is :
Mon_Petit_Atelier.g.uno(7.47): E3132: Expression is but is used as a type.

[Uno.Compiler.UxGenerated]
public partial class Mon_Petit_Atelier: Fuse.App
{
    [Uno.Compiler.UxGenerated]
    public partial class Template: Uno.UX.Template
    {
        [Uno.WeakReference] internal readonly Mon_Petit_Atelier __parent;
        [Uno.WeakReference] internal readonly Mon_Petit_Atelier __parentInstance;
        public Template(Mon_Petit_Atelier parent, Mon_Petit_Atelier parentInstance): base("Atelier", false)
        {
            __parent = parent;
            __parentInstance = parentInstance;
        }
        static Template()
        {
        }
        public override object New()
        {
            var __self = new global::Mon_Petit_Atelier.Atelier_Pages(__parent.router);
            __self.Name = __selector0;
            return __self;
        }
        static global::Uno.UX.Selector __selector0 = "Atelier";
    }
    [Uno.Compiler.UxGenerated]
    public partial class Template1: Uno.UX.Template
    {
        [Uno.WeakReference] internal readonly Mon_Petit_Atelier __parent;
        [Uno.WeakReference] internal readonly Mon_Petit_Atelier __parentInstance;
        public Template1(Mon_Petit_Atelier parent, Mon_Petit_Atelier parentInstance): base("Realisations", false)
        {
            __parent = parent;
            __parentInstance = parentInstance;
        }
        static Template1()
        {
        }
        public override object New()
        {
            var __self = new global::Mon_Petit_Atelier.Realisations_Pages(__parent.router);
            __self.Name = __selector0;
            return __self;
        }
        static global::Uno.UX.Selector __selector0 = "Realisations";
    }
    [Uno.Compiler.UxGenerated]
    public partial class Template2: Uno.UX.Template
    {
        [Uno.WeakReference] internal readonly Mon_Petit_Atelier __parent;
        [Uno.WeakReference] internal readonly Mon_Petit_Atelier __parentInstance;
        public Template2(Mon_Petit_Atelier parent, Mon_Petit_Atelier parentInstance): base("Patrons", false)
        {
            __parent = parent;
            __parentInstance = parentInstance;
        }
        static Template2()
        {
        }
        public override object New()
        {
            var __self = new global::Mon_Petit_Atelier.Patrons_Pages(__parent.router);
            __self.Name = __selector0;
            return __self;
        }
        static global::Uno.UX.Selector __selector0 = "Patrons";
    }
    [Uno.Compiler.UxGenerated]
    public partial class Template3: Uno.UX.Template
    {
        [Uno.WeakReference] internal readonly Mon_Petit_Atelier __parent;
        [Uno.WeakReference] internal readonly Mon_Petit_Atelier __parentInstance;
        public Template3(Mon_Petit_Atelier parent, Mon_Petit_Atelier parentInstance): base("Tissus", false)
        {
            __parent = parent;
            __parentInstance = parentInstance;
        }
        static Template3()
        {
        }
        public override object New()
        {
            var __self = new global::Mon_Petit_Atelier.Tissus_Pages(__parent.router);
            __self.Name = __selector0;
            return __self;
        }
        static global::Uno.UX.Selector __selector0 = "Tissus";
    }
    [Uno.Compiler.UxGenerated]
    public partial class Template4: Uno.UX.Template
    {
        [Uno.WeakReference] internal readonly Mon_Petit_Atelier __parent;
        [Uno.WeakReference] internal readonly Mon_Petit_Atelier __parentInstance;
        public Template4(Mon_Petit_Atelier parent, Mon_Petit_Atelier parentInstance): base("Merceries", false)
        {
            __parent = parent;
            __parentInstance = parentInstance;
        }
        static Template4()
        {
        }
        public override object New()
        {
            var __self = new global::Mon_Petit_Atelier.Merceries_Pages(__parent.router);
            __self.Name = __selector0;
            return __self;
        }
        static global::Uno.UX.Selector __selector0 = "Merceries";
    }
    [Uno.Compiler.UxGenerated]
    public partial class Template5: Uno.UX.Template
    {
        [Uno.WeakReference] internal readonly Mon_Petit_Atelier __parent;
        [Uno.WeakReference] internal readonly Mon_Petit_Atelier __parentInstance;
        public Template5(Mon_Petit_Atelier parent, Mon_Petit_Atelier parentInstance): base("Extras", false)
        {
            __parent = parent;
            __parentInstance = parentInstance;
        }
        static Template5()
        {
        }
        public override object New()
        {
            var __self = new global::Mon_Petit_Atelier.Extras_Pages(__parent.router);
            __self.Name = __selector0;
            return __self;
        }
        static global::Uno.UX.Selector __selector0 = "Extras";
    }
    internal global::Mon_Petit_Atelier.Color_Palette Color_Palette;
    internal global::Fuse.Navigation.Router router;
    global::Uno.UX.NameTable __g_nametable;
    static string[] __g_static_nametable = new string[] {
        "Color_Palette",
        "router"
    };
    static Mon_Petit_Atelier()
    {
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.Linear, "Linear");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.QuadraticIn, "QuadraticIn");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.QuadraticOut, "QuadraticOut");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.QuadraticInOut, "QuadraticInOut");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.CubicIn, "CubicIn");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.CubicOut, "CubicOut");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.CubicInOut, "CubicInOut");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.QuarticIn, "QuarticIn");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.QuarticOut, "QuarticOut");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.QuarticInOut, "QuarticInOut");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.QuinticIn, "QuinticIn");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.QuinticOut, "QuinticOut");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.QuinticInOut, "QuinticInOut");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.SinusoidalIn, "SinusoidalIn");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.SinusoidalOut, "SinusoidalOut");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.SinusoidalInOut, "SinusoidalInOut");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.ExponentialIn, "ExponentialIn");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.ExponentialOut, "ExponentialOut");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.ExponentialInOut, "ExponentialInOut");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.CircularIn, "CircularIn");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.CircularOut, "CircularOut");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.CircularInOut, "CircularInOut");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.ElasticIn, "ElasticIn");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.ElasticOut, "ElasticOut");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.ElasticInOut, "ElasticInOut");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.BackIn, "BackIn");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.BackOut, "BackOut");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.BackInOut, "BackInOut");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.BounceIn, "BounceIn");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.BounceOut, "BounceOut");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Animations.Easing.BounceInOut, "BounceInOut");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Colors.Transparent, "Transparent");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Brushes.Transparent, "Transparent");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Colors.Black, "Black");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Brushes.Black, "Black");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Colors.Silver, "Silver");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Brushes.Silver, "Silver");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Colors.Gray, "Gray");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Brushes.Gray, "Gray");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Colors.White, "White");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Brushes.White, "White");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Colors.Maroon, "Maroon");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Brushes.Maroon, "Maroon");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Colors.Red, "Red");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Brushes.Red, "Red");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Colors.Purple, "Purple");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Brushes.Purple, "Purple");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Colors.Fuchsia, "Fuchsia");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Brushes.Fuchsia, "Fuchsia");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Colors.Green, "Green");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Brushes.Green, "Green");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Colors.Lime, "Lime");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Brushes.Lime, "Lime");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Colors.Olive, "Olive");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Brushes.Olive, "Olive");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Colors.Yellow, "Yellow");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Brushes.Yellow, "Yellow");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Colors.Navy, "Navy");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Brushes.Navy, "Navy");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Colors.Blue, "Blue");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Brushes.Blue, "Blue");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Colors.Teal, "Teal");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Brushes.Teal, "Teal");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Colors.Aqua, "Aqua");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Drawing.Brushes.Aqua, "Aqua");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Elements.TransformOrigins.TopLeft, "TopLeft");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Elements.TransformOrigins.Center, "Center");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Elements.TransformOrigins.Anchor, "Anchor");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Elements.TransformOrigins.HorizontalBoxCenter, "HorizontalBoxCenter");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Elements.TransformOrigins.VerticalBoxCenter, "VerticalBoxCenter");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Elements.TranslationModes.TransformOriginOffset, "TransformOriginOffset");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Elements.TranslationModes.PositionOffset, "PositionOffset");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Elements.TranslationModes.SizeFactor, "SizeFactor");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Elements.TranslationModes.Size, "Size");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.TranslationModes.Size, "Size");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Triggers.Actions.GiveFocus.Singleton, "GiveFocus");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Triggers.WhileKeyboardVisible.Keyboard, "Keyboard");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Triggers.LayoutTransition.PositionLayoutChange, "LayoutChange");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Triggers.LayoutTransition.SizeLayoutChange, "LayoutChange");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Triggers.LayoutTransition.WorldPositionChange, "WorldPositionChange");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Triggers.LayoutTransition.PositionChange, "PositionChange");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Triggers.LayoutTransition.ResizeSizeChange, "SizeChange");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Triggers.LayoutTransition.ScalingSizeChange, "SizeChange");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Triggers.IScrolledLengths.Points, "Points");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Triggers.IScrolledLengths.Pixels, "Pixels");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Triggers.IScrolledLengths.ContentSize, "ContentSize");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Triggers.IScrolledLengths.ScrollViewSize, "ScrollViewSize");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Resources.MemoryPolicy.PreloadRetain, "PreloadRetain");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Resources.MemoryPolicy.UnloadUnused, "UnloadUnused");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Resources.MemoryPolicy.QuickUnload, "QuickUnload");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Resources.MemoryPolicy.UnloadInBackgroundPolicy, "UnloadInBackground");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Font.Thin, "Thin");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Font.Light, "Light");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Font.Regular, "Regular");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Font.Medium, "Medium");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Font.Bold, "Bold");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Font.ThinItalic, "ThinItalic");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Font.LightItalic, "LightItalic");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Font.Italic, "Italic");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Font.MediumItalic, "MediumItalic");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Font.BoldItalic, "BoldItalic");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.Font.PlatformDefault, "PlatformDefault");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.ScalingModes.Identity, "Identity");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.TranslationModes.Local, "Local");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.TranslationModes.ParentSize, "ParentSize");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.TranslationModes.Width, "Width");
        global::Uno.UX.Resource.SetGlobalKey(global::Fuse.TranslationModes.Height, "Height");
        global::Uno.UX.Resource.SetGlobalKey(global::Mon_Petit_Atelier.Color_Palette.Color_Fond, "Color_Fond");
        global::Uno.UX.Resource.SetGlobalKey(global::Mon_Petit_Atelier.Color_Palette.Color_Ecriture_Statut_Bar, "Color_Ecriture_Statut_Bar");
        global::Uno.UX.Resource.SetGlobalKey(global::Mon_Petit_Atelier.Color_Palette.Color_Ecriture_01, "Color_Ecriture_01");
        global::Uno.UX.Resource.SetGlobalKey(global::Mon_Petit_Atelier.Color_Palette.Color_Ecriture_02, "Color_Ecriture_02");
        global::Uno.UX.Resource.SetGlobalKey(global::Mon_Petit_Atelier.Color_Palette.Color_Ecriture_03, "Color_Ecriture_03");
        global::Uno.UX.Resource.SetGlobalKey(global::Mon_Petit_Atelier.Color_Palette.Color_Ecriture_04, "Color_Ecriture_04");
        global::Uno.UX.Resource.SetGlobalKey(global::Mon_Petit_Atelier.Color_Palette.Color_Ecriture_05, "Color_Ecriture_05");
        global::Uno.UX.Resource.SetGlobalKey(global::Mon_Petit_Atelier.Color_Palette.Color_Ecriture_06, "Color_Ecriture_06");
        global::Uno.UX.Resource.SetGlobalKey(global::Mon_Petit_Atelier.Color_Palette.Color_Bar_Icone_Selection, "Color_Bar_Icone_Selection");
        global::Uno.UX.Resource.SetGlobalKey(global::Mon_Petit_Atelier.Color_Palette.Color_Bar_Icone_Deselection, "Color_Bar_Icone_Deselection");
        global::Uno.UX.Resource.SetGlobalKey(global::Mon_Petit_Atelier.Color_Palette.Color_Dot_Pages_Selection, "Color_Dot_Pages_Selection");
        global::Uno.UX.Resource.SetGlobalKey(global::Mon_Petit_Atelier.Color_Palette.Color_Dot_Pages_Deselection, "Color_Dot_Pages_Deselection");
        global::Uno.UX.Resource.SetGlobalKey(global::Mon_Petit_Atelier.Color_Palette.Color_Light_Blue, "Color_Light_Blue");
        global::Uno.UX.Resource.SetGlobalKey(global::Mon_Petit_Atelier.Color_Palette.Color_Blue, "Color_Blue");
    }
    [global::Uno.UX.UXConstructor]
    public Mon_Petit_Atelier()
    {
        InitializeUX();
    }
    void InitializeUX()
    {
        var temp = new global::Fuse.Reactive.FuseJS.DiagnosticsImplModule();
        var temp1 = new global::Fuse.Reactive.FuseJS.Http();
        var temp2 = new global::Fuse.Reactive.FuseJS.TimerModule();
        var temp3 = new global::Fuse.Drawing.BrushConverter();
        var temp4 = new global::Fuse.Triggers.BusyTaskModule();
        var temp5 = new global::Fuse.Testing.UnoTestingHelper();
        var temp6 = new global::Fuse.FileSystem.FileSystemModule();
        var temp7 = new global::Fuse.Storage.StorageModule();
        var temp8 = new global::Fuse.WebSocket.WebSocketClientModule();
        var temp9 = new global::Polyfills.Window.WindowModule();
        var temp10 = new global::FuseJS.Globals();
        var temp11 = new global::FuseJS.Lifecycle();
        var temp12 = new global::FuseJS.Environment();
        var temp13 = new global::FuseJS.Base64();
        var temp14 = new global::FuseJS.Bundle();
        var temp15 = new global::FuseJS.FileReaderImpl();
        var temp16 = new global::FuseJS.UserEvents();
        __g_nametable = new global::Uno.UX.NameTable(null, __g_static_nametable);
        Color_Palette = new global::Mon_Petit_Atelier.Color_Palette();
        var temp17 = new global::Fuse.iOS.StatusBarConfig();
        var temp18 = new global::Fuse.Android.StatusBarConfig();
        router = new global::Fuse.Navigation.Router();
        var temp19 = new global::Fuse.Reactive.JavaScript(__g_nametable);
        var temp20 = new global::Fuse.Controls.ClientPanel();
        var temp21 = new global::Fuse.Controls.Navigator();
        var Atelier = new Template(this, this);
        var Realisations = new Template1(this, this);
        var Patrons = new Template2(this, this);
        var Tissus = new Template3(this, this);
        var Merceries = new Template4(this, this);
        var Extras = new Template5(this, this);
        this.Background = float4(0.9803922f, 0.9803922f, 0.9803922f, 1f);
        Color_Palette.Name = __selector0;
        temp17.IsVisible = true;
        temp17.Style = Fuse.Platform.StatusBarStyle.Light;
        temp17.Animation = Fuse.Platform.StatusBarAnimation.Slide;
        temp18.Color = float4(0.682353f, 0.6980392f, 0.7372549f, 1f);
        temp18.IsVisible = true;
        router.Name = __selector1;
        temp19.LineNumber = 16;
        temp19.FileName = "Mon_Petit_Atelier.ux";
        temp19.File = new global::Uno.UX.BundleFileSource(import global::Uno.IO.BundleFile("../../../../../Mon_Petit_Atelier.js"));
        temp20.Color = float4(0.9803922f, 0.9803922f, 0.9803922f, 1f);
        temp20.Children.Add(temp21);
        temp21.SwipeBack = Fuse.Controls.NavigatorSwipeDirection.Right;
        temp21.DefaultPath = "Atelier";
        temp21.Templates.Add(Atelier);
        temp21.Templates.Add(Realisations);
        temp21.Templates.Add(Patrons);
        temp21.Templates.Add(Tissus);
        temp21.Templates.Add(Merceries);
        temp21.Templates.Add(Extras);
        __g_nametable.This = this;
        __g_nametable.Objects.Add(Color_Palette);
        __g_nametable.Objects.Add(router);
        this.Children.Add(Color_Palette);
        this.Children.Add(temp17);
        this.Children.Add(temp18);
        this.Children.Add(router);
        this.Children.Add(temp19);
        this.Children.Add(temp20);
    }
    static global::Uno.UX.Selector __selector0 = "Color_Palette";
    static global::Uno.UX.Selector __selector1 = "router";
}

If i change all my class name “Mon_Petit_Atelier.name_of_the_page” by “MonPetitAtelier.name_of_the_page” (without the “_” for Mon_Petit_Atelier (i could keep it for the pages after)
all compile well and work (well i don’t have that i want i start Fuse yesterday but it work)

Can’t we use “_” for make the definition of the ux:class ???

I tried to make a small reproduction, but couldn’t get it to fail for me:

<App>
    <Router ux:Name="router" />

    <Page ux:Class="Name_with_underscores.And_then_some" />

    <Navigator DefaultPath="thing">
        <Name_with_underscores.And_then_some ux:Template="thing" />
    </Navigator>
</App>

So, in general, using underscores in ux:Class names seems to be perfectly safe.

The cause of your problem must be something else. Could you please make a complete, minimal reproduction that fails, and share it? Please also report what OS are you on, Fuse version, and the steps to be taken to reproduce the issue.

Alright, found the culprit. This is not about underscores.

When you put the <App> root tag in a file that is named Something.ux, the app-class gets an implicit Something as its name.

And when you have Something as a stand-alone class, you may not name other classes with the same name in the namespace, such as Something.Else.

Rename your Mon_Petit_Atelier.ux to MainView.ux and you’ll be fine.

Uldis you’re right.

I’ve rename Mon_Petit_Atelier.ux to MainView.ux and try the name Class Mon_Petit_Atelier and it work.

So i’ll now that i couldn’t have the same name for a ux file and a class name.

Thank you

No, you can have (and in fact, should have) the same name on file and ux:Class.

It’s just that the App-class gets an implicit name from the file name, and that only affects the file where the <App> tag resides.