Click here to Skip to main content
15,918,742 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Popup Menu from a button Pin
ABitSmart3-Mar-09 20:22
ABitSmart3-Mar-09 20:22 
AnswerRe: Popup Menu from a button - Repost Pin
ABitSmart3-Mar-09 19:30
ABitSmart3-Mar-09 19:30 
QuestionWPF language issue Please help very urgnet Pin
psdeepu3-Mar-09 16:08
psdeepu3-Mar-09 16:08 
AnswerRe: WPF language issue Please help very urgnet Pin
ABitSmart3-Mar-09 19:12
ABitSmart3-Mar-09 19:12 
QuestionRe: WPF language issue Please help very urgnet Pin
psdeepu4-Mar-09 7:43
psdeepu4-Mar-09 7:43 
QuestionRe: WPF language issue Please help very urgnet Pin
psdeepu4-Mar-09 8:00
psdeepu4-Mar-09 8:00 
QuestionRe: WPF language issue Please help very urgnet Pin
psdeepu4-Mar-09 16:41
psdeepu4-Mar-09 16:41 
QuestionBinding connections Pin
Jozef Hopko3-Mar-09 13:43
Jozef Hopko3-Mar-09 13:43 
Hello everyone,

I made some progress. I use ItemsControl, DataTemplates an I can move my nodes over canvas.

Code:

public class NetworkNode
{
        string Caption;
        string Type;
        int ID = 0;
        int X = 0;
        int Y = 0;
}

public class EndNode : NetworkNode {}
public class RouterNode : NetworkNode {}

public class Connection
{
        int StartNode = 0;
        int EndNode = 0;
}


Xaml:

<ItemsControl>
  <ItemsControl.Items>
    <cc:EndNode    ID="0" Caption="Node" X="70" Y="20"/>
    <cc:RouterNode ID="1" Caption="Router" X="220" Y="120"/>
    <cc:EndNode ID="2" Caption="Router" X="120" Y="50"/>

    <cc:Connection StartNode="0" EndNode="1"/>
    <cc:Connection StartNode="1" EndNode="2"/>
  </ItemsControl.Items>
</ItemsControl>


Now I try to solve how to connect the nodes. The problem is I want to data bind two nodes according to their ID's. This functionality provides for example Graphite for WPF (http://www.orbifold.net/default/?p=1326) but the source code is not available. I guess some binding converter will be required as well as multiple binding. But for me as beginner is hard to put all pieces together. Any ideas? Thank you.
AnswerRe: Binding connections Pin
ABitSmart3-Mar-09 15:46
ABitSmart3-Mar-09 15:46 
QuestionMoonlight 2.0 Pin
Stuart Campbell3-Mar-09 13:19
Stuart Campbell3-Mar-09 13:19 
AnswerRe: Moonlight 2.0 Pin
Kevin McFarlane4-Mar-09 6:03
Kevin McFarlane4-Mar-09 6:03 
GeneralRe: Moonlight 2.0 Pin
Stuart Campbell4-Mar-09 9:59
Stuart Campbell4-Mar-09 9:59 
QuestionHow to get the listboxitem when listbox do data binding in WPF? Pin
JS 20082-Mar-09 23:53
JS 20082-Mar-09 23:53 
AnswerRe: How to get the listboxitem when listbox do data binding in WPF? Pin
ABitSmart3-Mar-09 0:25
ABitSmart3-Mar-09 0:25 
QuestionLoad .obj file in WPF - Load by Code - Dynamically! Pin
AmirHossein.M.Ojvar2-Mar-09 23:29
AmirHossein.M.Ojvar2-Mar-09 23:29 
QuestionHow to add WPF controller to a Winform dinamically?? Pin
saku692-Mar-09 22:58
saku692-Mar-09 22:58 
AnswerRe: How to add WPF controller to a Winform dinamically?? Pin
ABitSmart2-Mar-09 23:43
ABitSmart2-Mar-09 23:43 
GeneralRe: How to add WPF controller to a Winform dinamically?? Pin
saku693-Mar-09 16:55
saku693-Mar-09 16:55 
Question[Message Deleted] Pin
Prajeesh2-Mar-09 17:46
Prajeesh2-Mar-09 17:46 
AnswerRe: Pan in ViewBox Pin
ABitSmart2-Mar-09 18:01
ABitSmart2-Mar-09 18:01 
QuestionWindowLogin..... Pin
VisualLive2-Mar-09 5:07
VisualLive2-Mar-09 5:07 
QuestionFolderBrowser Dialog WPF Pin
JS 20081-Mar-09 22:56
JS 20081-Mar-09 22:56 
AnswerRe: FolderBrowser Dialog WPF Pin
ABitSmart1-Mar-09 23:54
ABitSmart1-Mar-09 23:54 
GeneralRe: FolderBrowser Dialog WPF Pin
JS 20082-Mar-09 0:11
JS 20082-Mar-09 0:11 
GeneralRe: FolderBrowser Dialog WPF Pin
ABitSmart2-Mar-09 1:25
ABitSmart2-Mar-09 1:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.