View Issue Details

IDProjectCategoryView StatusLast Update
0001804NoesisGUIUnity3Dpublic2020-10-20 12:42
Reporterbmello4688Assigned Tosfernandez 
PrioritynormalSeveritymajorReproducibilityalways
Status feedbackResolutionopen 
Product Version3.0.6 
Target Version3.0.7Fixed in Version 
Summary0001804: Unable to view embedded user controls in xaml
DescriptionWhen referencing another user control in your xaml. Noesis does not display the embedded control. When using Databindings the application can crash

Example

<UserControl x:Class="Simity.Studio.UI.Editor.Views.MainView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:v="clr-namespace:Simity.Studio.UI.Editor.Views"
             xmlns:vm="clr-namespace:Simity.Studio.UI.Editor.ViewModels"
             xmlns:dvm="clr-namespace:Simity.Studio.UI.Editor.ViewModels.Dialogs"
             xmlns:c="clr-namespace:Simity.Studio.UI.Editor.Views.Converters"
             mc:Ignorable="d"
             d:DesignHeight="450" d:DesignWidth="800">
    <UserControl.Resources>
        <!--<DataTemplate DataType="{x:Type vm:RobotEditorViewModel}">
            <v:RobotEditorView/>
        </DataTemplate>
        <DataTemplate DataType="{x:Type dvm:SelectNewOrExistingProjectViewModel}">
            <v:SelectNewOrExistingProjectDialog/>
        </DataTemplate>
        <DataTemplate DataType="{x:Type dvm:ProgressDialogViewModel}">
            <v:ProgressDialog/>
        </DataTemplate>-->
        <c:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter"/>
    </UserControl.Resources>
    <Grid>
        <!--<UserControl Visibility="{Binding ShowDialog, Converter={StaticResource BoolToVisibilityConverter}}" Content="{Binding Dialog}"/>
        <UserControl Content="{Binding MainContent}"/>-->
        <v:SelectNewOrExistingProjectDialog/>
        <v:RobotEditorView/>
    </Grid>
</UserControl>
Steps To ReproduceCreate a xaml that references a previously made user control
TagsUnity
PlatformWindows

Activities

bmello4688

bmello4688

2020-10-08 18:08

reporter   ~0006659

Last edited: 2020-10-08 18:09

View 2 revisions

Here is an example project. Check out MainView.xaml. You can also uncomment the commented out stuff to really test it with a viewmodel first architecture.



Noesis.zip (1,451,641 bytes)
sfernandez

sfernandez

2020-10-20 12:42

manager   ~0006697

Hi,

I opened the project in Unity, imported NoesisGUI 3.0.6 unity package, and there are a lot of compiler errors due to missing code (Splat, ReactiveUI, System.Reactive).
How are you including those assemblies in Unity so scripts can be compiled correctly?

Issue History

Date Modified Username Field Change
2020-10-08 17:46 bmello4688 New Issue
2020-10-08 17:46 bmello4688 Tag Attached: Unity
2020-10-08 18:08 bmello4688 File Added: Noesis.zip
2020-10-08 18:08 bmello4688 Note Added: 0006659
2020-10-08 18:09 bmello4688 Note Edited: 0006659 View Revisions
2020-10-20 12:42 sfernandez Assigned To => sfernandez
2020-10-20 12:42 sfernandez Status new => feedback
2020-10-20 12:42 sfernandez Note Added: 0006697
2020-10-20 12:42 sfernandez Product Version 3.0 => 3.0.6
2020-10-20 12:42 sfernandez Target Version => 3.0.7