View Issue Details

IDProjectCategoryView StatusLast Update
0002106NoesisGUIUnity3Dpublic2021-11-03 12:45
ReporterstonstadAssigned Tosfernandez 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.0.12 
Target Version3.1.2Fixed in Version3.1.2 
Summary0002106: TabControl: [noesis] Visual is null
DescriptionI upgraded to Noeiss 3.0.12 form 3.0.4. When I click on a tab control header I receive the error, "[Noesis] Visual is null".

[noesis] Visual is null
UnityEngine.Debug:LogError (object)
NoesisUnity:UnityLog (int,string) (at Assets/NoesisGUI/Plugins/NoesisUnity.cs:148)
Noesis.View:MouseButtonDown (int,int,Noesis.MouseButton) (at Assets/NoesisGUI/Plugins/API/Core/View.cs:186)
NoesisView:ProcessEvent (UnityEngine.Event,bool,bool) (at Assets/NoesisGUI/Plugins/NoesisView.cs:1103)
NoesisView:OnGUI () (at Assets/NoesisGUI/Plugins/NoesisView.cs:1225)

I'm not hooking tab control buttons or events. If the error message reported the parent, or more descriptive detail I could likely dig deeper.
TagsNo tags attached.
PlatformAny

Activities

stonstad

stonstad

2021-09-08 18:46

reporter  

01.PNG (57,462 bytes)
01.PNG (57,462 bytes)
02.PNG (1,985,732 bytes)
SettingsControl.xaml (45,806 bytes)
sfernandez

sfernandez

2021-09-08 20:28

manager   ~0007425

Are you using our Theme styles for the TabControl/TabItem or do you have your own? Could you share the styles if they are diffferent?
stonstad

stonstad

2021-09-08 20:53

reporter   ~0007426

Here is the XAML I use for defining custom themes. I'm not seeing anything to override TabControl, but I acknowledge I am not super savvy at XAML.

ResourcesTheme.xaml (50,885 bytes)
stonstad

stonstad

2021-09-21 15:52

reporter   ~0007468

I'm looking to upgrade to 3.1.x soon. I can advise if I see the same behavior in 3.1.x.
sfernandez

sfernandez

2021-09-22 10:00

manager   ~0007470

Yes please let us know if this is still happening for you with latest 3.1 version, thanks.
sfernandez

sfernandez

2021-11-03 11:42

manager   ~0007555

I was able to reproduce this issue with the xaml attached in the forum post: https://www.noesisengine.com/forums/viewtopic.php?f=3&t=2463

<UserControl
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:noesis="clr-namespace:NoesisGUIExtensions;assembly=Noesis.GUI.Extensions">
    <TabControl Height="181.084" Width="493.681">
        <TabItem Header="TabItem1">
            <Grid Background="#FFE5E5E5"/>
        </TabItem>
        <TabItem Header="TabItem2">
            <Grid>
                <ListView HorizontalAlignment="Left" Height="100.494" Margin="10,10,0,0" VerticalAlignment="Top" Width="449.681">
                    <ListView.View>
                        <GridView>
                            <GridViewColumn Header="name" Width="160"/>
                        </GridView>
                    </ListView.View>
                </ListView>
            </Grid>
        </TabItem>
    </TabControl>
</UserControl>


I'll try to fix it for next release.

Issue History

Date Modified Username Field Change
2021-09-08 18:46 stonstad New Issue
2021-09-08 18:46 stonstad File Added: 01.PNG
2021-09-08 18:46 stonstad File Added: 02.PNG
2021-09-08 18:46 stonstad File Added: SettingsControl.xaml
2021-09-08 20:28 sfernandez Assigned To => sfernandez
2021-09-08 20:28 sfernandez Status new => feedback
2021-09-08 20:28 sfernandez Note Added: 0007425
2021-09-08 20:53 stonstad File Added: ResourcesTheme.xaml
2021-09-08 20:53 stonstad Note Added: 0007426
2021-09-08 20:53 stonstad Status feedback => assigned
2021-09-21 15:52 stonstad Note Added: 0007468
2021-09-22 10:00 sfernandez Note Added: 0007470
2021-09-22 10:00 sfernandez Target Version => 3.1.2
2021-09-22 10:00 sfernandez Description Updated View Revisions
2021-11-03 11:42 sfernandez Note Added: 0007555
2021-11-03 12:45 sfernandez Status assigned => resolved
2021-11-03 12:45 sfernandez Resolution open => fixed
2021-11-03 12:45 sfernandez Fixed in Version => 3.1.2