xaml - WPF Why does design view fail if I move my window and app into a subfolder of visual studio -
<lineargradientbrush x:key="maroongradientbrush" endpoint="0,1" startpoint="0,0"> <gradientstop color="#ff0c0b0b" offset="1"/> <gradientstop color="#ffbf5656"/> </lineargradientbrush> <window x:class="graphviewerwindow" renderoptions.edgemode="unspecified" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:daedalusgraphviewer="clr-namespace:daedalusgraphviewer" title="window1" height="900" width="900"> <textbox background="{staticresource maroongradientbrush}" /> </window> the program opens window correct gradient brush. however, design view still doesn't load window because can't find maroongradientbrush. edit: found problem. exactly: how move app.xaml , not break designe