NavigationPane and DataTemplate

Navigation for WPF Forum

Posted 13 years ago by Arthur Damen
Version: 10.2.0533
I want to Bind Data to a navigationBar it's navigationPane
What's the way to do this? Thanks.

<Window x:Class="MainWindow"
    Title="MainWindow" Height="350" Width="525">
    <DataTemplate x:Name="Test" DataType="ac:NavigationPane" >
      <ac:NavigationPane  ContentTemplate="Test"></ac:NavigationPane>

Comments (2)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Arthur,

We include a NavigationBar Bound Items QuickStart that shows how to bind to a data source. In your example above though, you cannot access resources like that. You'd have to use something like:
<ac:NavigationPane  ContentTemplate="{StaticResource Test}"></ac:NavigationPane>
Also, normally the DataTemplate targets the type of your data object, not the UI control (i.e. NavigationPane).

[Modified at 08/09/2011 01:31 PM]

Actipro Software Support

Posted 13 years ago by Arthur Damen
You are right, i forgot to enter the static part, sorry.

I will have a look at the example.
The latest build of this product (v24.1.2) was released 27 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.