Content disappears

3 posts, 0 answers
  1. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 21 Apr 2009 Link to this post

    Hi,

    in my application I have the need to display some information on demand.
    The idea is something like John Kellar posted here: http://blogs.telerik.com/blogs/09-04-20/maximizing_space_with_radexpander_for_wpf.aspx
    I don't use expander instead I want to solve this with Split.
    So I have the main content and on the bottom some "Info buttons" which shall highlight when something happens in the content of these things. Or even popup automatically (like Errors in VS).
    The first problem (but this is more cosmetic) is the border around the document - in this case my "main content".
    You see in code that I tried a lot to remove the border - but where ever I place something - it has no effect.
    On the other hand I get used to it - currently your SL controls require a lot of templates to achieve such things.
    So like with horizontal Gauge I'll have to start blend and work with the templates :)

    The real problem is a different.
    When you start this application and hover over "Chat" and "Other" both pop up - like they should.
    BUT - hover Chat first otherwise you'll never see the listbox.
    In other words - after "Other" popped up - Chat's content is no longer visible.
    <Grid x:Name="LayoutRoot" Background="Gray" Margin="0">  
            <radDock:RadDocking HorizontalAlignment="Left" BorderThickness="0" BorderBrush="Red">  
                <radDock:RadDocking.DocumentHost> 
                    <radDock:RadSplitContainer BorderThickness="0" BorderBrush="Lime">  
                        <radDock:RadPaneGroup BorderThickness="0" BorderBrush="Blue">  
                            <radDock:RadDocumentPane BorderThickness="0" BorderBrush="Orange">  
                                <StackPanel Orientation="Vertical" Margin="0" HorizontalAlignment="Left" VerticalAlignment="Top">  
                                    <Grid> 
                                        <StackPanel Orientation="Horizontal">  
                                            <TextBlock Text="SystemMSG" Margin="0,0,3,0"/>  
                                            <TextBlock TextWrapping="Wrap" Text="langer langer langer text steht hier... und weiter" Width="90"/>  
                                        </StackPanel> 
                                    </Grid> 
                                </StackPanel> 
                            </radDock:RadDocumentPane> 
                        </radDock:RadPaneGroup> 
                    </radDock:RadSplitContainer> 
                </radDock:RadDocking.DocumentHost> 
                <radDock:RadSplitContainer InitialPosition="DockedBottom" Orientation="Horizontal">  
                    <radDock:RadPaneGroup> 
                        <radDock:RadPane Header="Chat" IsPinned="False" CanFloat="False" CanDockInDocumentHost="False" CanUserClose="False" CanUserPin="False" HorizontalContentAlignment="Left">  
                            <ListBox VerticalContentAlignment="Stretch" Width="200" ScrollViewer.HorizontalScrollBarVisibility="Hidden" Height="150" HorizontalAlignment="Left">  
                                <ListBox.Items> 
                                    <ListBoxItem> 
                                        <TextBlock Text="One"/>  
                                    </ListBoxItem> 
                                    <ListBoxItem> 
                                        <TextBlock Text="Two"/>  
                                    </ListBoxItem> 
                                    <ListBoxItem> 
                                        <TextBlock Text="Three"/>  
                                    </ListBoxItem> 
                                    <ListBoxItem> 
                                        <TextBlock Text="Four"/>  
                                    </ListBoxItem> 
                                </ListBox.Items> 
                            </ListBox> 
                        </radDock:RadPane> 
                    </radDock:RadPaneGroup> 
                    <radDock:RadPaneGroup> 
                        <radDock:RadPane Header="Other" IsPinned="False" CanFloat="False" CanDockInDocumentHost="False" CanUserClose="False" CanUserPin="False" HorizontalContentAlignment="Right" Content="test">  
                        </radDock:RadPane> 
                    </radDock:RadPaneGroup> 
                </radDock:RadSplitContainer> 
            </radDock:RadDocking> 
        </Grid> 
     

    This is something like http://www.telerik.com/community/forums/silverlight/docking/dynamically-loaded-document-pane-content-goes-away-when-switching-tabs.aspx
    But I started an own thread because:
    a.) I don't load dynamically
    b.) I'm not sure if it is the same
    For b.) I use UI Elements on both panes.

    I use Version 2009.1.413.1020

    Regards

    Manfred
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 22 Apr 2009 Link to this post

    Hi ManniAT,

    It is the same issue as in this thread http://blogs.telerik.com/blogs/09-04-20/maximizing_space_with_radexpander_for_wpf.aspx as you already noticed. You can work it around by using a TextBlock instead of string content. I replaced this code:
    Miroslav Nedyalkov
  3. DevCraft banner
  4. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 22 Apr 2009 Link to this post

    I looked on the wrong side - sorry.
    While I was checking my first pane for "string content" - I totally oversaw the right pane :)

    Thanks a lot

    Manfred
Back to Top