punker76 / MahApps.Metro.SimpleChildWindow

A simple child window for MahApps.Metro
MIT License
374 stars 55 forks source link

Child Window show a blank page in design time #67

Closed ahmedpiosol closed 6 years ago

ahmedpiosol commented 6 years ago

this example in the wiki or any Child Window

<simpleChildWindow:ChildWindow
                 IsOpen="{Binding IsChildWindowOpenOrNotProperty}"
                 HorizontalContentAlignment="Stretch"
                 VerticalContentAlignment="Stretch"
                 Padding="15"
                 ChildWindowImage="Error"
                 Title="TestChild 1">
  <Grid>
<Button Width="100"></Button>
  </Grid>
</simpleChildWindow:ChildWindow>

show as a blank page in design time in visual studio 2017 15.5.7

https://imgur.com/a/DQ9QH

punker76 commented 6 years ago

@ahmedpiosol This is caused by the default value of IsOpen property which is set to false. You can set it to true or you can put your inner content of the child window inside a UserControl.

ahmedpiosol commented 6 years ago

thanks