Quantcast
Channel: NodeXL: Network Overview, Discovery and Exploration for Excel
Viewing all articles
Browse latest Browse all 4386

New Post: HelloWorld in Visual Studio 2012

$
0
0
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:
  1. Create a new WPF Application in VS 2012
  2. Add Smrf.NodeXL.Control.Wpf, Smrf.NodeXL.Core and Smrf.NodeXL.Visualization.Wpf via Project -> Add Reference
  3. Switch to the XAML editor, open the toolbox, right-click and select "Choose Items..."
  4. In the popup, click browse and navigate to Smrf.NodeXL.Control.Wpf.dll, make sure the NodeXLControl is selected and press OK.
  5. From the Toolbox, drag the NodeXLControl to the MainWindow (or simply double-click the NodeXLControl).
  6. 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.
  7. Read the error, press OK.
  8. Go to step 5
I've read some other topics hereoncodeplex and have seen the C# (in my case) code of NodeXLControl in the help file (which assumes the existence of a NodeXLControl control in the XAML).

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>
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!

Viewing all articles
Browse latest Browse all 4386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>