Custom Control - Best place for visual-tree generation?

I'm building a custom control (extending Canvas) which should present a chartflow diagram (nodes and connectors). It will be feeded through databinding and a dependency property (ItemSource). The control will generate:
1. Node-items (based on ItemSource)
2. Connectors (lines) between each and every node
3. An adornerlayer on most of the nodes
Should I generate this visual/logical -tree inside my ItemSourceUpdated -eventhandler? In the overrided ArrangeOverride method? Or whats best practice?

Please don't ask several questions in the same thread. Your original question was about where to add the visual elements when creating a custom Panel and now you are asking about adorners. Please close the thread by marking all helpful posts as answer when
your original quesion has been answered and then start a new thread if you have a new question.
Please refer to the following page for more information about adorners:
https://msdn.microsoft.com/en-us/library/ms743737(v=vs.110).aspx
Sorry but no, my original question was about where to place creation code for:
1. Node-items (based on ItemSource)
2. Connectors (lines) between each and every node
3.
An adornerlayer
on most of the nodes
Since you cant create adorners immediately after you have added a new elemented to the visual tree (and before the layout pass) your previous
answer was appreciated, but not sufficient.

Similar Messages

  • The best place for content server

    Hello,
    We need to install content Server . SAP ECC is in Paris .
    The users who will use the content server will be in New-York.
    Is the best place for content server in Paris or in New-York?
    The question could be : Will a document (for ex. a pdf of 100 Mb) to be checked_in the CS be first transferred from frontend to ECC and then from ECC to CS or directly from frontend to content server ?
    Thanks

    Hi Oda,
    If your users are in New-York, then better to have content server there to optimize network traffic and speed. There is something called as distributed content server concept where you can have different storage areas for different geographical locations.
    And as far as i know, whenever files are checked-in, they are directly stored in content server and it will not route through the ECC. Only DIR stored in the ECC will be linked to the file in the content server.
    Hope this helps.
    Regards,
    Ravi

  • Where is the best place for suggestiong requesting features?

    Where is the best place for suggesting/requesting features?
    If something like this already exists, please let me know.
    I often wish when I select a word to right click and choose dictionary to to find out the meaning of the word. Currently I have to copy, go to a dictionary web page, paste and search. And I spent a lot of time for that. I'm not that technically oriented to suggest how this can be achieved but just as an idea, may be Mozilla can partner with dictionary web sites by making a plug ins or include a dictionary with Firefox itself

    I am sure there are Extensions that do this.
    DictionarySearch - https://addons.mozilla.org/en-US/firefox/addon/68/
    Add-on search for Dictionary - https://addons.mozilla.org/en-US/firefox/search/?q=dictionary&cat=all&lver=any&pid=1&sort=&pp=20&lup=&advanced=
    Feedback - http://hendrix.mozilla.org/

  • Best place for CUA

    We've got ECC, BW, XI, EP, SolutionManager installed and want to implement CUA.
    I want to know your comment on:
    One CUA or more CUAs, we have 3 systems (DEV, QAS, PRD) landscape for each system.
    *Where is the best place for CUA?
    TIA.

    Hi Team FI,
    There are other factors that may be considered when deciding where to put CUA.  For example:
    Are you using Indirect Assignment of roles also?  If so, then simplicity would say, put the CUA on the same system as the HR module (saves having to ALE over the PD object -> Role relationships to different CUA system).
    High availability - normally your ECC system would have the highest availability due to the critical nature and impact on business, so it would make sense to put it on your ECC system if this is the leading factor.
    What is your role integration strategy like?  I know some clients that have excellent integration across all systems such that a 'role' is defined as all of the access that you require inclusive of all SAP systems, and LDAPs.  If this is the case, then you can have a single CUA system.  Assign ONE composite role to the user, which then provisions out single roles to all of the other SAP systems (including non-prod) and synchronises with your LDAP.  If your role integration is not as 'good' as this, then you may consider having two CUA systems.  One for the prod systems, and the other for the non-prod systems.

  • Best place for LR catalog (.lrcat) file?

    I'm putting together a new PC running Vista and am trying to figure out the best place for the LR catalog (lrcat) file. This PC has multiple hard drives as follows:
    C: OS and apps
    D: non-photo files (docs, mp3s, etc)
    E: photo files
    F: video files
    All the drives are comparable in read/write speed. The Lightroom app will be installed on the C: drive, and the LR catalog will consist of the images on the E: drive. While working in LR, I sometimes listen to mp3s stored on the D: drive. I'm assuming that the best place for the lrcat file is the F: drive (since I seldom access that drive while working in LR). Does this make sense? Or should the lrcat file go somewhere else?
    On a side note, on my last PC, I had the lrcat file in what was originally a dedicated scratch drive (for PS), but I'm doing less and less in Photoshop these days, and my new system will have 12GB of ram, so I decided to do without a dedicated scratch drive for the new system.
    Any advise appreciated.

    Asking yourself the following questions may help determine which drive is best suited for storing the Lightroom Catalog:
    1) Are you the only person using the "Lightroom computer"?
    2) Do you have multiple log on accounts?
    3) Do multiple log on accounts need access to the Lightroom Catalog?
    If you answer yes to #1, its default location might be fine.  If you answer yes to #2 or #3, you should concider a central location for the .lrcat file.
    By default, the .lrcat file is located in a users document folder.  This means that at least one (1) .lrcat file will be created per user account.  Seeing that you usually keep photo files on the E Drive, creating a folder on the root of the E Drive might not be a bad idea.  Using the root of E schema will then allow mutiple users to access the .lrcat file when they log on.  Using the E Drive keeps "photo related" files together, thought Drive D or Drive F would also work.  It appears from your description that you keep O/S and Applications only on the C Drive, which I do myself.
    Hope that helps!

  • Best place for abap

    what is the best place for abap searching

    hi
    good
    abap searching means?
    if you r talking about URL than it is
    www.sapgenie.com
    www.abap4u.com
    if you r talking about TCode than it is
    ABAPDOCU.
    thanks
    mrutyun^

  • Best place for S60 v5 Applications?

    I assume the best place for applications for my 5800 (or any other device) WILL BE the Ovi store.
    But until it launches, where have we found to be the best place to get reliable apps?

    have a look here there is lots of great apps here free and themes and games enjoy
    http://dailymobile.se/
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • Best place for the sub.

    Hi,
    I have a 2.1 speaker system (I-trigue 3400) and was wondering if anybody knows the best place to put the sub so you can hear the deep bass more, it is infront of my legs now, and when i bend down i can hear more, but when i put it above my head i cant hear it again.

    To find the best place for a sub is quite complicated. The distance from walls, corners and other objects makes a huge difference. One way is to place the sub where you will be sitting; put it as close to where your head will be as you can. Then play some music with nice deep bass and crawl around the floor. You should notice that there are areas where the bass is louder, these are the best spots to place the sub.

  • Best place for DSL wireless router to aquire strongest signal

    Hi all
    I have a Westell DSL wireless router sitting on a Kensington surge protection base with antennas pointing straight up. Is this ok? My wireless internet connection is ok for now. What's the best place for my wireless router for the strongest possible signal?
    Thanks for your help
    Web dude

    Place it clear of HVAC ducting and away from any microwave or cordless phone base stations(s) in the house - these are the primary causes of wifi interference/noise and signal outages. Consider the area you want to cover (including any outdoor areas) and place the unit as near the center as possible.
    Download a copy of AP Grapher and observe the signal quality in your intended reception area(s) to help place the router optimally for best signal and lowest noise, including rotating the antennas if needed - vertical is perfectly OK, but you may get marginally better signal or lower noise by rotating them.
    AP Grapher can be downloaded from http://www.chimoosoft.com/products/apgrapher/

  • My daughter is a college student. she needs to write and compile c programs on her mac for a class this semester. what is the best place for her to start to get the correct compiler etc. to use ? thanks

    my daughter is a college student. she needs to write and compile c programs on her mac for a class this semester. what is the best place for her to start to get the correct compiler etc. to use ? thanks

    If you know that you will not be asked to design GUI interfaces, and the C programming course will adhere to command line compilation environments, then get the Xcode command-line developer tools, and skip the extra complication of Xcode until you absolutely need it. Apple has kicked GNU C to the curb and is rightly so, using Clang/LLVM compiler technology.
    Sign up for a free Apple Developer account using your Apple ID, and then visit the Mac Dev Center, and towards the bottom of the page, you will see additional downloads. Click on the associated, all down loads link. Know your OS X version beforehand, as the command-line tool releases are tied to general operating system versions, and the most recent Xcode version.  That said, there are currently two March 9, 2015 command-line tools for Xcode 6.2 — one for OS X 10.9 Mavericks, and the other for OS X Yosemite.

  • Best approach for batch mode generation of large report via SSRS

    I have revised this question now that I've determined that we *will* be using the Enterprise edition of SQL Server 2012.
    I have a report (that I will deploy to an SSRS 2012 server) which can vary greatly in size. When the report is expected to be small (which we can determine ahead of time by means that are not relevant to this post), it will be rendered by a .NET 4.5 web
    application using a ReportViewer control (in remote mode).
    When the report will be large, we want the web app to "trigger" the report server to generate the report and deposit it as a PDF file or Excel file in a folder on a file share, and then send an e-mail notification to a configured user. Because
    the reports can be very large, I would prefer not to stream them to the web app and from there to the file share. We have experienced browser timeouts in the past, and so I would prefer to have the SSRS server deposit the generated report directly to the file
    share.
    About 8 parameters have to be passed to the stored procedure which serves as the report’s data source. 
    The database where the stored procedure resides will soon be upgraded to SQL Server 2012.
    I am fairly new to reporting services and wanted to ask what approach would be best suited for accomplishing the above-stated goals.
    From what I've read so far, I know that one possible approach would be to use data-driven subscriptions but the question then becomes:  after inserting report parameters into the subscription table, how does my web app trigger report generation?
    Also, I want to deposit the report in a file share and send an e-mail notification to the user. Do I have to create two subscriptions? There is a configuration option when setting up e-mail notification to embed a hyperlink in the e-mail rather than actually
    include the report in the message. If I select this option, do I give up the ability to specify the destination folder?

    @JoeSchmoe115:  Thanks for your suggestion.  Using a web service or WCF service would still mean dealing with potential timeouts for very large reports (granted you can adjust those timeouts).    
    I think an approach using a console app could work, but rather than having the web app spawn it, an alternative would be to do the following:  (1) have the web app insert report generation requests (including all necessary report parameters) into
    a database table, and (2) have a console app, periodically invoked by Windows Task Scheduler, which reads that database table and then uses the SSRS API as you describe to generate the report, save the byte stream to a file, and finally send
    the e-mail notification to the user.  
    mkedwards
    What you've described will work but saving report generation requests in separate table may not be necessary. I don't have much experience with web services but can they just spawn C# console app with needed parameters and exit without waiting for console
    app to complete?
    The positive side of using database to store report generation requests is that you would have complete log of all requests. Your console app can then update database with completion status.

  • Best Place for Upgrade Memory

    Where is the best place to get iMac memory upgrades? The cheapest place? I'm looking for high quality product as well (4GB upgrade)
    Thanks!

    Kenichi's advice is spot-on. I buy Mac RAM from only two vendors, the one he links and Data Memory Systems.
    However, if your Mac can take 4GB RAM, it's not the model covered in this forum area. It's poorly labeled and misleads lots of people. This forum addresses the G4 iMacs with the articluated display arm and the white domed base.
    It sounds like you have an Intel-based iMac. Their forum is here:
    http://discussions.apple.com/category.jspa?categoryID=189
    I've never had a problem with RAM bought from either vendor, and their prices are as sharp and anyone's. Very good customer service.

  • Best place for images outside of MS Store App?

    Newbie question? If multiple Apps share many images, where is the best place to keep them? 
    There will be hundreds of images in each App - some of them duplicate between Apps. I do not want to house them in the Images folder of the C# source code because they may change as time goes on. I would like to locate them "outside" the App and
    retrieve them when necessary if possible.
    I tried parking them in a website and accessing them this way: 
    ImagePath="http://mywebsite.com/Cookbooks/Receipts/English/Pages/Receipt1.1.1.png". But Go Daddy says I cannot house them that way for a MS store App. 
    So, where is the *best* place to put these images? Website, Web server, OneDrive, Azure, etc. Any other directions for building a scalable and flexible App would be appreciated. Thanks. 
    FS

    Hi,
    I think that's depend on your scenario.
    you could also use Windows Azure Mobile Services. There's a good Todo app sample on the following site -
    http://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started/
    Or you can use web service, we can use httpClient to communicate with it.
    Please follow this document
    http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh761504.aspx
    Best Wishes!
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • Best place for spare parts for PPC 1.5 Mini?

    Hi.
    I'm looking for the best place to get spare parts for a Mac Mini PPC G4 1.5GHz on the net. The fan is most likely giving up, because it has recently begun to sound as the bearings in the fan are bad.
    Regards,
    /Mysteron

    Hi Mysteron-
    I've used these folks for other projects: MAC-PRO
    If you don't see what you need or have questions try giving them a call as they are very helpful.
    Luck-
    -DP

  • Best place for scratch files, imported video on laptop with single drive

    Hi all,
    I read that is was best to put the scratch files on a disk other than that the program resides on, so I did. That makes sense.
    But later, when I was reading about people's problems with CS4 crashing, I read I'm not meant to be using USB drives .... so, my question is:
    On a laptop with a single hard disk and a USB external drive, where is the best place? Do the performance problems with scratch files on a single disk trump those of using USB or vice versa.
    Perhaps its something I'll have to try myself but wondering about other people's experience.
    Cheers

    I'm with Harm on the eSATA. I will say that FW-800 works for me, but as more of my externals offer eSATA now, I'll probably migrate to that connection very soon. Even with 3x 200GB 7200RPM SATA II HDD's on my laptop, I do a lot of work with externals, 'cause I migrate the Projects to my workstation. Just remember to set a unique drive letter for the external(s) in the OS of all computers, or you WILL have issues. An eSATA card is cheap, though your externals need to have the connection. Externals are also cheaper now. I'm paying the same for 2TB units, that I paid for 250GB ones, when they first came out! For what I paid for a 1.5TB RAID NAS, I could now get 16TB in a hot-swappable enclosure.
    As for USB's, I tried that years ago, and gave up in frustration. The connection was just too slow, and often timed out, or worse. I'd not do that again, on a bet - sorry, but I am too impatient and then there were the crashes...
    Hunt

Maybe you are looking for

  • Looking for handy Alarm app!

    I am looking for a very small, small, compact, simple application that sits in the menu bar and allows me to set a time at which it will remind me of something. (ex.: taking an eye-break, taking food out of the oven, etc..) No, iCal doesn't cut it (a

  • SQL Query is very slow

    Hello , I have a table like employee having more than 80 Lakhs records . In the table there is a country column (country_name) having 234 distinct countries . I have created index on Country_name column to make it fast . I have created a view (employ

  • Use of IF inside a Fix block

    Hi, I am having issues with use of IF inside a FIX ... END FIX block. I am trying to check for the value of a substitution variable inside a calculation script. Based on the value of the Subst Variable, statements inside the IF block should get execu

  • Add a Caption Under a Photo

    Using Elements 9, how can I add a caption with names in a blank white space under a photo of a group of people?

  • How can I transfer music by Bluetooth in N9 nokia

    I don't know how to transfer music to other people by Bluetooth, and also how to use the video cam in my nokia N9, please help me. thanks