Note that there are some explanatory texts on larger screens.

plurals
  1. PONew item activated in Conductor does not show it
    text
    copied!<p>I'm activating new item in conductor using Caliburn.Micro.Contrib's <a href="https://github.com/kmees/CMContrib/blob/master/src/CMContrib.SL/Results/ConductResult.cs" rel="nofollow" title="Conduct IResult, which activates item in conductor">ConductResult</a>. Conductor is of type <code>Conductor&lt;IScreen&gt;.Collection.OneActive</code>, and there is already one item showing and working correctly.</p> <p>The new item however is not shown after it was activated. I already checked and the conductor's <strong>ActiveItem</strong> is set to that new item, new item <strong>is activated</strong> as well. View's <strong>IsVisible</strong> of new item is also set to true, so I don't understand why it is not visible.</p> <p>XAML of the conductor's view is pretty simple:</p> <pre><code>&lt;UserControl x:Class="..." 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:cal="http://www.caliburnproject.org" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300"&gt; &lt;Grid&gt; &lt;Grid.RowDefinitions&gt; &lt;RowDefinition Height="auto" /&gt; &lt;RowDefinition Height="auto" /&gt; &lt;RowDefinition /&gt; &lt;/Grid.RowDefinitions&gt; &lt;TextBlock Grid.Row="0" Text="{Binding Path=ActiveItem, Converter={StaticResource objectTypeConverter}}" Margin="5" /&gt; &lt;ItemsControl Grid.Row="1" ItemsSource="{Binding Items}" BorderBrush="Aqua" BorderThickness="10 "&gt; &lt;ItemsControl.ItemTemplate&gt; &lt;DataTemplate&gt; &lt;StackPanel&gt; &lt;TextBlock Text="{Binding Converter={StaticResource objectTypeConverter},ConverterParameter=something}" Margin="5" /&gt; &lt;/StackPanel&gt; &lt;/DataTemplate&gt; &lt;/ItemsControl.ItemTemplate&gt; &lt;/ItemsControl&gt; &lt;ContentControl Grid.Row="2" x:Name="ActiveItem" /&gt; &lt;/Grid&gt; &lt;/UserControl&gt; </code></pre> <p>(TextBlock and ItemsControl are there for debugging purposes; they prove that new item is conducted within conductor (i.e. Items collection contains it) and new item is set as ActiveItem)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload