panthernet / GraphX

GraphX for .NET
Apache License 2.0
316 stars 104 forks source link

[MVVM] Vertices text is not showing up correctly #102

Open quasar-pankaj opened 5 years ago

quasar-pankaj commented 5 years ago

Hello, First of all great work! I had a look at the show case app it was awesome. As I prefer MVVM with WPF I thought I would write a MVVM sample which is attached here. MVVMGraphX.zip I have managed to show and move vertices but the text for vertices is not showing up correctly. Am I missing something? Also my intention is to display complex data using data templates and be able to edit the vertices in place. Is it possible? Thanks, Pankaj

panthernet commented 5 years ago

MVVMGraphX_2.zip

Here's the working project. You have to call Generate() method. Also I fixed up graph type in class overloads.

quasar-pankaj commented 5 years ago

Thanks for the prompt reply. I must apologize as I edited the comment above. There is just one more thing I wanted to ask. I have had to use ToString() override to show the text which makes the vertex read only. I am trying to use data templates to make the vertices editable. In the code below have commented out the data template to build the code. Any other method to do so is also welcome. MVVMGraphX.zip