sericaer
Topic Author
Posts: 13
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"
  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>

    <!--<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}"/>
    </StackPanel>
  </Border>-->
</UserControl>
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
sfernandez
Site Admin
Posts: 2983
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: Google [Bot] and 65 guests