NavigationPane IsExpanded Property

Navigation for WPF Forum

Posted 8 years ago by Aleksander Brzozowski
Version: 10.2.0532
Avatar
Hi
Why first NavigationPane in NavigationBar is always expanded at start?
I would like load content of Pane in NavigationBar Expanded event.
Although I`ve set IsExpanded to false, NavigationPane is expanded when my control is initialized.

How can I change this? How can I set NavigationBar minimized at start?


<nav:NavigationBar Name="mp_tree_bar" Grid.Column="2" Margin="5" ArePanesVisible="False" FlowDirection="RightToLeft" HorizontalAlignment="Stretch" >
            <nav:NavigationPane  IsExpanded="False">
                <Grid >
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="200*" />
                    </Grid.ColumnDefinitions>
                    
                </Grid>
            </nav:NavigationPane>
            
        </nav:NavigationBar> 

Comments (1)

Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Aleksander,

Sorry but it expands the selected item automatically at startup. Core Selector code in its OnGeneratorStatusChanged handler is what sets the selection. Our code will expand the selected item, so perhaps you could de-select (SelectedIndex = -1) in your own handler of the ItemContainerGenerator's status changed event. Your code would need to kick in before our auto-expand code does.


Actipro Software Support

The latest build of this product (v2018.1 build 0675) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.