how use pivotviewer in silverlight xaml? read http://msdn.microsoft.com/en-us/library/system.windows.controls.pivot.pivotviewer(v=vs.95).aspx , added reference assembly.but error
the name "pivotviewer" not exist in namespace "http://schemas.microsoft.com/client/2007".
this xaml:
<usercontrol x:class="silverlightapplication2.mainpage" 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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:ignorable="d" d:designheight="300" d:designwidth="400"> <grid x:name="layoutroot" background="white"> <textblock text="hello world"></textblock> <pivotviewer/> </grid> </usercontrol>
added reference assembly system.windows.controls.pivot
then
<usercontrol x:class="silverlightapplication2.mainpage" 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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:pivot="clr-namespace:system.windows.controls.pivot;assembly=system.windows.controls.pivot" mc:ignorable="d" d:designheight="300" d:designwidth="400"> <grid x:name="layoutroot" background="white"> <textblock text="hello world"></textblock> <pivot:pivotviewer x:name="pviewer" /> </grid> </usercontrol>
Comments
Post a Comment