G
Guest
Hi,
I need to write an application which allows the user to map source to target
columns in a data base. The UI will be:
* Two ListBoxes, TreeViews, or DataGridViews (which I will generically call
"display widget") which list the columns in the source and target database
tables (I haven't decided on the best UI widget yet).
* The user drags and drops a column from source/target to map it to the
target/source column
* Or, the user selects a column in each display widget and clicks the "Map
Column" button (another UI widget)
I can code all of the above. However, I want to draw lines between the
source and target columns to indicate which columns are mapped. I also
need the lines to converge at the top and bottom of the display if the
mapped column is "off the screen". The lines need to redraw properly as the
user scrolls the display widgets.
Here is a screenshot which approximates my desired UI:
http://support.sas.com/documentation/cdl/en/etlug/60948/HTML/default/images/rec-sql-sel-clause.png
As I see it, I need:
* the end (right hand side) pixel location for the selected source column
* the beginning (left hand side) pixel location for the selected target
column
* the min pixel location at the top of each display widget
* the max pixel location at the bottom of each display widget
As a simple test case:
* Create two listboxes
* Load the left one with "A" - "Z"
* Load the right one with "A" - "Z" in random order
* Size the listboxes so that only a portion of the data displays without
scrolling
* Write some backend test code to map each letter to each other.
* Draw lines to all objects. The lines should not "draw off screen" if the
item is not currently visible in the listbox.
This is analogous to an online quiz, with questions on the left, answers on
the right, and the user needs to map the question to the answer.
Is there any example code in the public domain that does this, or something
similar? Otherwise any design ideas are greatly appreciated.
Thanks,
Scott
P.S.: Is there a microsoft.public... newsgroup for WPF, or is this the best
place to post WPF questions?
I need to write an application which allows the user to map source to target
columns in a data base. The UI will be:
* Two ListBoxes, TreeViews, or DataGridViews (which I will generically call
"display widget") which list the columns in the source and target database
tables (I haven't decided on the best UI widget yet).
* The user drags and drops a column from source/target to map it to the
target/source column
* Or, the user selects a column in each display widget and clicks the "Map
Column" button (another UI widget)
I can code all of the above. However, I want to draw lines between the
source and target columns to indicate which columns are mapped. I also
need the lines to converge at the top and bottom of the display if the
mapped column is "off the screen". The lines need to redraw properly as the
user scrolls the display widgets.
Here is a screenshot which approximates my desired UI:
http://support.sas.com/documentation/cdl/en/etlug/60948/HTML/default/images/rec-sql-sel-clause.png
As I see it, I need:
* the end (right hand side) pixel location for the selected source column
* the beginning (left hand side) pixel location for the selected target
column
* the min pixel location at the top of each display widget
* the max pixel location at the bottom of each display widget
As a simple test case:
* Create two listboxes
* Load the left one with "A" - "Z"
* Load the right one with "A" - "Z" in random order
* Size the listboxes so that only a portion of the data displays without
scrolling
* Write some backend test code to map each letter to each other.
* Draw lines to all objects. The lines should not "draw off screen" if the
item is not currently visible in the listbox.
This is analogous to an online quiz, with questions on the left, answers on
the right, and the user needs to map the question to the answer.
Is there any example code in the public domain that does this, or something
similar? Otherwise any design ideas are greatly appreciated.
Thanks,
Scott
P.S.: Is there a microsoft.public... newsgroup for WPF, or is this the best
place to post WPF questions?