windows phone 7 - WP7 Usercontrol cannot be referred in MainPage.xaml -


this how mainpage looks like:

<phone:phoneapplicationpage  x:class="energyradio.mainpage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone="clr-namespace:microsoft.phone.controls;assembly=microsoft.phone" xmlns:shell="clr-namespace:microsoft.phone.shell;assembly=microsoft.phone" xmlns:local="clr-namespace:energyradio" xmlns:controls="clr-namespace:microsoft.phone.controls;assembly=microsoft.phone.controls" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"  mc:ignorable="d" d:designwidth="480" d:designheight="800"  d:datacontext="{d:designdata sampledata/mainviewmodelsampledata.xaml}" fontfamily="{staticresource phonefontfamilynormal}" fontsize="{staticresource phonefontsizenormal}" foreground="{staticresource phoneforegroundbrush}" supportedorientations="portrait"  orientation="portrait" shell:systemtray.isvisible="false">  <!--layoutroot ist das stammraster, in dem alle anderen seiteninhalte platziert werden--> <grid x:name="layoutroot" background="transparent">      <!--panoramasteuerelement-->     <controls:panorama title="radio">         <controls:panorama.background>             <imagebrush imagesource="panoramabackground.png"/>         </controls:panorama.background>          <!--panoramaelement one-->         <controls:panoramaitem header="channels">              <!--first panaroma items hard coded-->         </controls:panoramaitem>          <controls:panoramaitem header="kontakt">             <!--kontakt.xaml should shown here.-->         </controls:panoramaitem>     </controls:panorama> </grid> 

and kontakt.xaml

<usercontrol x:class="energyradio.kontakt" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:energyradio" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:ignorable="d" fontfamily="{staticresource phonefontfamilynormal}" fontsize="{staticresource phonefontsizenormal}" foreground="{staticresource phoneforegroundbrush}" d:designheight="480" d:designwidth="480">  <grid x:name="layoutroot">     <grid x:name="contentpanel" grid.row="1" margin="12,0,12,0">         <image  horizontalalignment="left" margin="624,153,0,0" name="wemf" stretch="fill" verticalalignment="top" width="1" height="0" />         <textbox height="72" margin="0,0,0,0" name="kontakt_name" text="name" verticalalignment="top" gotfocus="kontakt_name_gotfocus" />         <textbox height="72" margin="0,72,0,0" name="kontakt_email" text="email" verticalalignment="top" gotfocus="kontakt_email_gotfocus" />         <textbox height="72" margin="0,144,0,0" name="kontakt_telefon" text="telefon" verticalalignment="top" gotfocus="kontakt_telefon_gotfocus" />         <textbox height="196" margin="0,216,0,0" name="kontakt_nachricht" text="nachricht" verticalalignment="top" gotfocus="kontakt_nachricht_gotfocus" />         <button content="absenden" height="72" horizontalalignment="left" margin="6,408,0,0" name="buttonsend" verticalalignment="top" width="438" click="buttonsend_click" />     </grid> </grid> 

the grid in kontakt.xaml must shown in mainpage.xaml. can't refere it.

does know how this? , have in usercontrol, because want use in other panoramas too.

<local:kontakt /> think...


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -