I'm trying to get a basic graph to show in VS 2012. I've read the help files, but they assume a layout with a NodeXLControl, which is where the XAML comes into play (and things get all messed up).
The steps I've taken are outlined below:
I've also tried adding the NodeXLControl in the XAML like (this) (also tried replacing Microsoft with Smrf) and VS said The name "NodeXLControl" does not exist in the namespace "clr-namespace:Smrf.NodeXL.Visualization.Wpf;assembly=Smrf.NodeXL.Control.Wpf":
Needless to say I'm relatively new to VS altogether so it would be great if someone would be able to help me kickstart my project.
Thanks in advance!
The steps I've taken are outlined below:
- Create a new WPF Application in VS 2012
- Add Smrf.NodeXL.Control.Wpf, Smrf.NodeXL.Core and Smrf.NodeXL.Visualization.Wpf via Project -> Add Reference
- Switch to the XAML editor, open the toolbox, right-click and select "Choose Items..."
- In the popup, click browse and navigate to Smrf.NodeXL.Control.Wpf.dll, make sure the NodeXLControl is selected and press OK.
- From the Toolbox, drag the NodeXLControl to the MainWindow (or simply double-click the NodeXLControl).
- Get an error saying
A reference to "Smrf.NodeXL.Control.Wpf, version=1.0.1.236, culture=neutral, PublicKeyToken=7d233ba7875a1b76" has been added to the project. In order to use types from the new reference, press OK to restart XAML Designer. After XAML designer restarts, re-create the control on the artboard. - Read the error, press OK.
-
Go to step 5
I've also tried adding the NodeXLControl in the XAML like (this) (also tried replacing Microsoft with Smrf) and VS said The name "NodeXLControl" does not exist in the namespace "clr-namespace:Smrf.NodeXL.Visualization.Wpf;assembly=Smrf.NodeXL.Control.Wpf":
<Windowx:Class="WpfApplication1.Window1"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"Title="Window1"Height="300"Width="300"Loaded="Window_Loaded"><Grid><ListBoxMargin="39,38,61,57"Name="listBox1"><my:NodeXLControlMargin="115,106,-115,-106"Name="nodeXLControl1"xmlns:my="clr-namespace:Microsoft.NodeXL.Visualization.Wpf;assembly=Microsoft.NodeXL.Control.Wpf"/><ButtonHeight="23"HorizontalAlignment="Left"Margin="42,12,0,0"Name="button1"VerticalAlignment="Top"Width="75">Button</Button></ListBox></Grid></Window>
Thanks in advance!