Question: I am facing a very unusual problem, i have a UserControl which shows ChildWindow to perform some operation on this ChildWindow, i close it when done with my operations and the (say) open it again, it works fine, but as soon as i close this ChildWindow, the UserControl becomes disabled.

This happens for all the ChildWindows on my application i.e, if i open (say) ChildWindow01 and then close it and then open ChildWindow02 and close it, the base UserControl becomes disabled.

Its a MVVM application but i am opening these ChildWindows from UserControl.xaml.cs, button click events.

P.S. I am using Galasoft MVVM framework for my application.

Please suggest.

**Edit**

UserControl XAML 

```
<StackPanel Style="{StaticResource QuizEditorStackPanelStyle}">
    <HyperlinkButton x:Name="lnkSetting" Content="Settings" 
        Command="{Binding QuizSettingCommand}" CommandParameter="{Binding SettingId}"/>
</StackPanel> 

```

calls ViewModel -> RelayCommand, which opens a child window (which is a private property in VM) as 

```
private ChildWindow QuizSettingWindow { 
    get { 
        return new QuizSetting(this.QuizSettingId); 
    } 
} 

```

Child Window opens by 

```
private void OpenQuizSettingScreen(long quizSettingId) { 
    this.QuizS ettingWindow.Show();
} 

```

Child window close on button event of self

Answer: 
The problem is that your parent `li` tags have a height specified in the CSS. When the child `ul` tags slide out, the parent cannot expand further than the specified height. Getting rid of the height in the CSS solves this issue.

Here is the updated JSFiddle without a height - <http://jsfiddle.net/gPxbn/2/>
```
$("#linkListSub3 li").click(function(){
    $(this).toggleClass("active");
    $("ul",this).slideToggle("slow"); // is this line correct?
    $(this).slideToggle("slow"); //should it be like this?
    return false; //Prevent the browser jump to the link anchor
});

```