wpf - Insert a Control in UserControl -
i have usercontrol load swf, works fine. when add button control in it, doesn't show swf.
here code use usercontrol( flashplayer usercontrol ) :
<window x:class="flashtest.mainwindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:controls="clr-namespace:flashplayerlibrary;assembly=flashplayerlibrary" title="mainwindow" height="768" width="1024"> <grid> <controls:flashplayer source="e:\\lesson1.swf" width="1024" height="768"> <button width="20" height="20" ></button></controls:flashplayer> </grid> is there anyway insert control in usercontrol.
you can try put button on , not in it. using grid can try this:
<grid> <controls:flashplayer source="e:\\lesson1.swf" width="1024" height="768"> </controls:flashplayer> <button width="20" height="20"></button> </grid> it should work if flashplayer control doesn't strange.
Comments
Post a Comment