Grid, TabControl, Run-Time errors

Please report bugs here. If you are unsure whether something is a bug or an expected behavior, please post it on the "Technical Support" forum instead, and wait for a moderator to handle/move the post.
Nick
Posts: 47
Joined: Tue May 30, 2017 9:44 am
Contact:

Grid, TabControl, Run-Time errors

Postby Nick » Wed Nov 29, 2017 5:02 pm

Grid errors:
1) Rows height

// Create theme Grid
#region Theme Grid
int cols = 50;
int rows = 50;
Grid container = new Grid();
containerParent.Children.Add(container);
for (int counter = 0; counter < cols; counter++)
{
// Define columns
ColumnDefinition _columnDefinition1 = new ColumnDefinition();
_columnDefinition1.Width = new GridLength(1, GridUnitType.Star);
container.ColumnDefinitions.Add(_columnDefinition1);
}
for (int counter = 0; counter < rows; counter++)
{
// Define rows
RowDefinition _rowDefinition1 = new RowDefinition();
// Here is the error (Not full screen like star is defined)
_rowDefinition1.Height = new GridLength(1, GridUnitType.Star);
container.RowDefinitions.Add(_rowDefinition1);
}
#endregion Theme grid
2) If cels contain child elements then cols Width is not keep as Star is defined

TabControl error:
Add 50 TabItems, ony first X as display and accesible afer X TabItems (x~10) all remaining are hidden and can't be accesed

!!?? Run time Erorr ?? (this is strange)
!!! When add 4-6 new classes on project then Buttons cllick is not raise !!! (May be an ovveride names classes ?? or an hiden error/errors ?)

JS-Support @Userware
Site Admin
Posts: 920
Joined: Tue Apr 08, 2014 3:42 pm

Re: Grid, TabControl, Run-Time errors

Postby JS-Support @Userware » Thu Nov 30, 2017 12:48 am

Thanks for reporting these issues. We are going to investigate and fix them right away.

Regards,
JS-Support

Nick
Posts: 47
Joined: Tue May 30, 2017 9:44 am
Contact:

Re: Grid, TabControl, Run-Time errors

Postby Nick » Fri Dec 01, 2017 5:11 am

Was able to find source that block click on Simulator.
Summary:
Application work in simulator, but behind an error is occure, so clicks that come from my Buttons that are defined as template item dosent occure.
In Browser (Crom only, MIcrosoft Edge dosen't display anythng) next error:

JSIL.Browser.js:199 Public type 'System.Net.INTERNAL_WebRequestHelper_JSOnly_RequestCompletedEventArgs' defined twice: <CSharpXamlForHtml5, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Public Interface> and <CSharpXamlForHtml5.System.dll, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Public Interface>
at Object.JSIL.WarningFormat (file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171211500:10541:13)
at Object.JSIL.DefineTypeName (file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171211500:1121:14)
at Object.JSIL.RegisterName (file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171211500:1990:8)
at Object.JSIL.MakeType (file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171211500:5632:8)
at INTERNAL_WebRequestHelper_JSOnly_RequestCompletedEventArgs$Members (file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/app/CSharpXamlForHtml5.System.dll.js?20171211500:505:8)
at file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/app/CSharpXamlForHtml5.System.dll.js?20171211500:591:
JSIL.Browser.WarningService.write @ JSIL.Browser.js:199
JSIL.Browser.js:199 Public type 'System.Net.INTERNAL_WebRequestHelper_JSOnly_RequestCompletedEventHandler' defined twice: <CSharpXamlForHtml5, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Public Interface> and <CSharpXamlForHtml5.System.dll, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Public Interface>
at Object.JSIL.WarningFormat (file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171211500:10541:13)
at Object.JSIL.DefineTypeName (file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171211500:1121:14)
at Object.JSIL.RegisterName (file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171211500:1990:8)
at Object.JSIL.MakeDelegate (file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171211500:9404:8)
at file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/app/CSharpXamlForHtml5.System.dll.js?20171211500:600:
JSIL.Browser.WarningService.write @ JSIL.Browser.js:199
JSIL.Browser.js:199 Unhandled exception in static constructor for type Tehnolog.Themes.Theme:
at Object.JSIL.$InvokeStaticConstructor (file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171211500:4562:17)
at Object.JSIL.RunStaticConstructors (file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171211500:4595:12)
at JSIL.PreInitMembrane.MaybeRunStaticConstructors [as initializer] (file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171211500:4223:10)
at JSIL.PreInitMembrane.maybeInit (file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171211500:612:10)
at JSIL.PreInitMembrane.bound_maybeInit [as maybeInit] (file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171211500:592:16)
at Object.JSIL.InitializeType (file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171211500:4528:39)
at Object.RegisterName_getter (file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171211500:1972:14)
at Object.LazyValueProperty_Get [as Theme] (file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171211500:234:26)
at $T02 (file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/app/MyApp.js?20171211500:81:70
JSIL.Browser.WarningService.write @ JSIL.Browser.js:199
JSIL.Browser.js:199 Error: Property is not writable
at Object.JSIL.$InvokeStaticConstructor (file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171211500:4563:17)
at Object.JSIL.RunStaticConstructors (file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171211500:4595:12)
at JSIL.PreInitMembrane.MaybeRunStaticConstructors [as initializer] (file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171211500:4223:10)
at JSIL.PreInitMembrane.maybeInit (file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171211500:612:10)
at JSIL.PreInitMembrane.bound_maybeInit [as maybeInit] (file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171211500:592:16)
at Object.JSIL.InitializeType (file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171211500:4528:39)
at Object.RegisterName_getter (file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171211500:1972:14)
at Object.LazyValueProperty_Get [as Theme] (file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171211500:234:26)
at $T02 (file:///E:/New%20folder/TehnologJSIL/Core%20Tehnolog-Version%202/ApisExample/bin/Debug/Output/app-cshtml5/app/MyApp.js?20171211500:81:70
JSIL.Browser.WarningService.write @ JSIL.Browser.js:199
JSIL.Core.js:10531 Uncaught Error: Property is not writable
at Object.JSIL.RuntimeError (JSIL.Core.js:10531)
at Function.prop.set [as _imagesPath] (JSIL.Core.js:6760)
at Function.Theme_set_ImagesPath (app-cshtml5/app/Tehnolog_Themes.js?20171211500:3143)
at Tehnolog_Themes_Theme.Theme__ctor (app-cshtml5/app/Tehnolog_Themes.js?20171211500:3088)
at new Tehnolog_Themes_Theme (jsil://closure/Tehnolog.Themes.Theme:20)
at MyApp_MainPage.MainPage__ctor (app-cshtml5/app/MyApp.js?20171211500:237)
at new MyApp_MainPage (jsil://closure/MyApp.MainPage:17)
at MyApp_App.App__ctor (app-cshtml5/app/MyApp.js?20171211500:29)
at new MyApp_App (jsil://closure/MyApp.App:17)
at runMain (index.html:32)

JS-Support @Userware
Site Admin
Posts: 920
Joined: Tue Apr 08, 2014 3:42 pm

Re: Grid, TabControl, Run-Time errors

Postby JS-Support @Userware » Mon Dec 11, 2017 12:41 am

Hi,

These issues should now be fixed in Beta 12.6 and newer, which you can download from:
http://forums.cshtml5.com/viewforum.php?f=6

Please feel free to let us know if you still encounter any of those issues.

Thanks.
Regards,
JS-Support

Nick
Posts: 47
Joined: Tue May 30, 2017 9:44 am
Contact:

Re: [SOLVED] Grid, TabControl, Run-Time errors

Postby Nick » Mon Dec 11, 2017 12:27 pm

Grid issue on rows numbers.
On Grid definition are 50 cols and 50 rows,
On Simulator and browser number of cols 50, number of rows ~38 (display grid from debuger and count rows)
with the latest version of CSHTML5

TabControl with multiple TabItems exced TabControl Width (see image)

Click in Control Template work. (My mistake, sorry)
Attachments
grid.png
grid.png (3.89 KiB) Viewed 1884 times

JS-Support @Userware
Site Admin
Posts: 920
Joined: Tue Apr 08, 2014 3:42 pm

Re: Grid, TabControl, Run-Time errors

Postby JS-Support @Userware » Tue Dec 12, 2017 12:55 am

Hi Nick,

Thanks for your reply.

Could you please send us a small project that reproduces the issues so that we can reproduce them on our computer?

Usually if we can reproduce this kind of issues we are able to fix them in just a few days.

Thank you very much.
Regards,
JS-Support

Nick
Posts: 47
Joined: Tue May 30, 2017 9:44 am
Contact:

Re: Grid, TabControl, Run-Time errors

Postby Nick » Thu Dec 14, 2017 3:53 pm

Sources: see attached archive

If I run CSHTML5 project this is the screen: pic1.png
If I run Wpf project this is screen pic2.png

50 cols and 50 lines

1) Number of lines are different less in CSHTML5 project
2) Format of lines are different in CSHTML5 project


PS: More to come, I need to think how to reproduce BUGS in sample code, please wait
Attachments
pic2.png
pic2.png (164.36 KiB) Viewed 1850 times
pic1.png
pic1.png (152.99 KiB) Viewed 1850 times
WpfApp1.zip
(630.79 KiB) Downloaded 45 times

Nick
Posts: 47
Joined: Tue May 30, 2017 9:44 am
Contact:

Re: Grid, TabControl, Run-Time errors

Postby Nick » Thu Dec 14, 2017 4:24 pm

Attach file run CSHTML project, press Button multiple time (10x)
TabControl Width is equal with Buton width that is equal with Control width, but tab Items exced TabControl With (pic3.png)
Attachments
pic3.png
pic3.png (158 KiB) Viewed 1848 times

Nick
Posts: 47
Joined: Tue May 30, 2017 9:44 am
Contact:

Re: Grid, TabControl, Run-Time errors

Postby Nick » Thu Dec 14, 2017 4:38 pm

Project CSHTML, add a project class with char "-" in name, run project
In Simulator OK
In Browser Error see pic4.png
Attachments
pic4.png
pic4.png (147.77 KiB) Viewed 1848 times
App1.zip
(958.21 KiB) Downloaded 36 times

JS-Support @Userware
Site Admin
Posts: 920
Joined: Tue Apr 08, 2014 3:42 pm

Re: Grid, TabControl, Run-Time errors

Postby JS-Support @Userware » Fri Dec 15, 2017 3:03 am

Thank you Nick. We are going to investigate. I will keep you updated.

Regards,
JS-Support


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 3 guests