wpf - Instance of an UserControl doesn't show content but warning icon -


i have usercontrol button , expander. in main window instantiated one. neither button nor expander visible, there warning icon. visual studio shows warning (something like: "this document contains 1 or more controls have been changed. rebuild project show changes in design view."). rebuilding didn't fix issue. doing wrong?

the usercontrol:

<usercontrol x:class="audionodegui_xaml.audioinputnode"              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:local="clr-namespace:audionodegui_xaml"              mc:ignorable="d" d:designwidth="300" height="212" width="190" background="transparent" foreground="#00000000" >     <grid>         <image source="f:\audionodegui_xaml\images\fileinputnode.jpg"/>         <dockpanel name="dock" width="150" height="20" margin="20 50 20 142">             <expander name="expander" template="{staticresource fileexpander}" height="20" width="40" previewmouseleftbuttonup="expand" dockpanel.dock="left">                 <listview name="usedfiles" background="black" borderbrush="transparent" borderthickness="0" width="140" height="120" opacity="0.5">                 </listview>             </expander>             <button name="openfilebutton" template="{staticresource openfilebutton}" width="110" height="20" dockpanel.dock="right" />         </dockpanel>     </grid> </usercontrol> 

in mainwindow.xaml:

<grid background="lightgray" >             <local:audioinputnode horizontalalignment="left" height="155" margin="192,67,0,0" verticalalignment="top" width="161"/> </grid> 

in designer of usercontrol controls visible, not in main window designer.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -