Topic Author
Posts: 10
Joined: 09 Oct 2021, 09:29

Unity Log Error, When Swith TabItem which have a ListView

03 Nov 2021, 08:52

My xaml is there, just modify from a Hello World Blend project.
<UserControl x:Class="NoesisStudy.NoesisStudyMainView"
    <TabControl Height="181.084" Width="493.681">
        <TabItem Header="TabItem1">
            <Grid Background="#FFE5E5E5"/>
        <TabItem Header="TabItem2">
                <ListView HorizontalAlignment="Left" Height="100.494" Margin="10,10,0,0" VerticalAlignment="Top" Width="449.681">
                            <GridViewColumn Header="name" Width="160"/>


    <!--<Border Background="DodgerBlue" HorizontalAlignment="Center" VerticalAlignment="Center" Padding="50,20">
    <StackPanel x:Name="Container">
      <TextBlock Text="Hello World" FontSize="30" Foreground="White"/>
         <Button Content="Button" Margin="0,10,0,0" Command="{Binding ClickCommand}"/>
Unity Log error when switch tabItems
[NOESIS/E] Visual is null
UnityEngine.Debug:LogError (object,UnityEngine.Object)
NoesisUnity:UnityLog (int,string) (at D:/temp/NoesisGUI-Unity-3.1.1-Indie/Runtime/NoesisUnity.cs:317)
Noesis.View:MouseButtonDown (int,int,Noesis.MouseButton) (at D:/temp/NoesisGUI-Unity-3.1.1-Indie/Runtime/API/Core/View.cs:194)
NoesisView:ProcessEvent (UnityEngine.Event,bool,bool) (at D:/temp/NoesisGUI-Unity-3.1.1-Indie/Runtime/NoesisView.cs:1130)
NoesisView:OnGUI () (at D:/temp/NoesisGUI-Unity-3.1.1-Indie/Runtime/NoesisView.cs:1252)
User avatar
Site Admin
Posts: 2569
Joined: 22 Dec 2011, 19:20

Re: Unity Log Error, When Swith TabItem which have a ListView

03 Nov 2021, 11:41

This error was already reported: #2106
I'm adding your sample xaml to the ticket because I was able to reproduce it with it.

Thanks for the information.

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 2 guests