This is a migrated thread and some comments may be shown as answers.

Silverlight Documentation

3 Answers 162 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Paul Gallen
Top achievements
Rank 1
Paul Gallen asked on 12 Nov 2008, 09:42 AM
Hi,

I have noticed that your Silverlight help file contents is out of date, for example,

documentation

<telerik:RadContextMenu EventName="MouseLeftButtonDown">
  
<telerik:RadMenuItem Header="ContextMenuItem 1" />
  
<telerik:RadMenuItem Header="ContextMenuItem 2" />
  
<telerik:RadMenuItem Header="ContextMenuItem 3" />
 
</telerik:RadContextMenu>
</telerik:RadContextMenu.ContextMenu>

actual

<telerikNavigation:RadContextMenu EventName="MouseLeftButtonDown" HorizontalAlignment="Left" Margin="46,220,0,188" Width="138" Grid.Column="1">
  <telerikNavigation:RadMenuItem Height="56" HorizontalAlignment="Right" Margin="0,72,23,0" VerticalAlignment="Top" Width="79" Header="0"/>
  <telerikNavigation:RadMenuItem Height="56" HorizontalAlignment="Right" Margin="0,72,23,0" VerticalAlignment="Top" Width="79" Header="1"/>
  </telerikNavigation:RadContextMenu>

The namespaces are different.

When is there a more recent release of the documentation available?

Thanks


Paul

3 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 12 Nov 2008, 09:52 AM
Hello Paul Gallen,

the prefix "telerikNavigation:" and "telerik:"  that you are seeing is not connected with the actual namespace where the control is defined.
 
You can set whatever prefix you like - just point it to the correct namespace in the declaration.

All the best,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Paul Gallen
Top achievements
Rank 1
answered on 12 Nov 2008, 09:59 AM
Hi Valentin,

Thanks for lightening response.

How then can I use the documentation samples within my code? without VS or Blend complaining? Sorry I'm new to Silverlight

Paul.

0
Konstantin Petkov
Telerik team
answered on 13 Nov 2008, 06:45 AM
Hi Paul,

You just need to define an equal tag prefix for the namespace declaration at the beginning of the xaml. You can refer to our live demos for example:

http://demos.telerik.com/silverlight/

Look at the namespace tag prefix in xaml:
http://demos.telerik.com/silverlight/#ContextMenu/FirstLook

     xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
    <Grid x:Name="LayoutRoot"
        <Border x:Name="BackgroundPad" ToolTipService.ToolTip="CTRL + Click to open the context menu"
            <telerik:RadContextMenu.ContextMenu> 
                <telerik:RadContextMenu x:Name="backgroundContextMenu" 
 




Hope this helps.

All the best,
Konstantin Petkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Paul Gallen
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Paul Gallen
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Share this question
or