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

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -