Placement target needs to be in the visual tree

I'm trying to add a Flyout that's attached, via a style, to my screen's back button.  Seems like it should be simple and straightforward.  But so long the button's Flyout property is non-null and I click the Back button to return to the previous
page, a "Placement target needs to be in the visual tree" exception is thrown.
Is this a known bug?  Any workarounds?

No sooner did I ask for a workaround then did I find out one myself.  I am so happy that I'm doing a celebratory dance right now.
What's the workaround, you ask?  It's simple.  Rather than using the Button.Flyout property in the setter, use FlyoutBase.AttachedFlyout.
That's awesome that I found a workaround so quickly.  High five everyone!

Similar Messages

  • 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.

  • Need help to trace the place where error occuring in Web UI of type System

    Hi All,
    Need help to trace the place where error occurring in Web UI of type System error,
    this error coming while saving the corporate account creation,
    error message description : - System error: Interruption in Routine READ TABLE GT_CHAR_VAL, CHAR_NAME = PVTLTD_CLEAN_SEGMENT
    System error: Interruption in Routine READ TABLE GT_CHAR_VAL, CHAR_NAME = PVTLTD_CLEAN_CLASS-CP
    thanking you.
    Best Regards,
    VijHyd

    Hi Nagaraj,
    See that the mandatory SICF setting are enabled or Active in the SICF Services.  Follow the steps as below:-
    Enter the TCode SICF
    Execute the same for Hierarchy Type SICF.
    Check the following SAP Note 1295006.
    If every thing is Active then, the IC Agent role will open.
    Still if it is not opening Let me know.
    regards,
    Sarangamath

  • I've installed Visual Studio Enterprise 6.0, Which edition of Visual Studio 2013 does the i need to purchase as the legalization for Visual Studio Enterprise 6.0?

    I've installed Visual Studio Enterprise 6.0, Which
    edition of Visual Studio 2013 does the i need to purchase as the legalization for Visual Studio Enterprise 6.0? 

    Hi,
    Here is a topic for MS Visio forum, you'd better post your question to Visual Studio forum.
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=visualstudiogeneral&filter=alltypes&sort=lastpostdesc
    Thanks for your understanding.
    Regards,
    George Zhao
    TechNet Community Support

  • I need to resize the visual component..help pls

    Here's the sample code:
    (Assuming that the player has already been realized)
    Component vc;
    vc = player.getVisualComponent();
    if ((vc = player.getVisualComponent()) != null){
         player.start();
         panel.add(vc);
    I need to reduce the size of the visual component from its default size (320x240). vc.setSize() and vc.setBounds() doesn't seem to work.
    Please help me out. Thank you.

    Hi,
    Please use getPreferredSize().
    e.g. as in PlayerPanel. Defntly works!
    Regards,

  • Hi guys, my ipad2 says that it needs to cool down before using. It has been sitting in a cool place over a day now but the message still pops up. Any other ideas? or help?

    Hi guys, my ipad2 says that it needs to cool down before using. It has been sitting in a cool place over a day now but the message still pops up. Any other ideas? or help?

    Is the iPad Off and not connected to the charger?
     Cheers, Tom

  • How do I stop iPhone Safari from dynamically resizing the visual viewport?

    Sorry I post this here, but I couldn't access the developer forums (no error given, it just keeps returning me to this page https://developer.apple.com/devforums/) I'm not even sure wether that's been moved here and it's just the redirection non working.
    I need to Stop iPhone Safari from dynamically resizing the visual viewport, or in other words, to stop it from trying to "fit" the layout into the viewport.
    Why?
    Because any recalculation javascript does on absolutely positioned elements makes the whole site super IRRESPONSIVE.
    I don't know wether the issue is the element going out the already-set layout viewport (which triggers the page resizing to fit the visual viewport) or just the calculations being made constantly, but I can stop the calculations from happening when not "touching" the screen, but I need a way to stop the page resizing.
    I tried setting the viewport width to 1040px, as my layout width, and it fixed the header's width being narrower than the body (or shifted left?), but the whole page is still resized with every motion-frame (one every 3 seconds, due to overloading the redrawing engine)
    Is there a way to prevent that?

    No, that link doesn't solve it. It just says the same is found everywhere online.
    There's probably no way to do it, as per their way they "accidentally" omitted the oposite case: the page being wider than 980. They only mention what to do if the site is narrower. Something I learned is big companies (with reputation management) could let you run in circles for years no answer rather than telling you something is not possible.
    I'm the developer (can't access the dev forums, don't know why) and I DID setup the viewport, scale and other properties but none of them stopped from re-fitting the new re-sized layout in the viewport. They just ensure the "initial" view.
    I think the feature I'm looking for must be achieved with some JavaScript function targeting Safari-proprietary variable/property… if even possible.
    I just had to make things never reaching the edge until somebody contributes something useful

  • Need HELP regarding installinfg CR2008/Visual Advantage

    I need help regarding installing CR2008/Visual Advantage. I had the evaluation copy of cr2008. My compnay purchased the CR2008 Visual Advantage. Upon calling your customer service, I was told that I had to UN-install the CR2008 evaluation copy then install the CR2008. I did the unstall HOWEVER, when I try to install the CR2008 that we purchased, i get the following error..HR
    HR -2147024770-"c:\program files\business objects enterprise 12.0\win32_x86\REPORTCONVTOOL.DLL FAILED TO REGISTER"..
    I get more that just that one...I have received this before and based upon this formum, i have delted the regristry in the following using regedit.exe
    HKEY_LOCAL_MACHINE\SOFTWARE\BUSINESS OBJECT ;
    HKEY_CURRENT_USER\SOFTWARE\BUSINESS OBJECTS..
    Afeter i deleted the keys, I re-boot my pc and try to install the coftware again...BUT I GET THE SAME ERRORS...I have tryied this several times....what am i missing/not doing correctly

    Hi Shamish
    Actually you were on the right track, i think you just have to increase PSAPTEMP a bit and you will be fine. 358 MB seems just too small, i suggest you increase it to at least 2GB.
    1. what will be the difference in use of PSAPUNDO and PSAPTEMP while copy is running. ( i.e. what will be entered in PSAPUNDO and what will be filled in PSAPTEMP.)
    PSAPTEMP: is needed for large sort operations, as mentioned when you have a select with an ORDER BY clause, or if you do join two tables. During the client copy some sorting might be needed for special tables (cluster tables) where data is stored sorted.
    PSAPUNDO: undo space is only needed for DML (data manipulation), if data is changed undo is generated. This obviously is heavily the case during a client copy.
    2. the target client already has a copy taken 1 month before. so I think while importing it first delete existing data and then copies the new one.
    So If I first delete the target client and then take import on it; will it have advantage in regards of getiing UNDO or TEMP segments getting filled ?
    Deleting the client first might help for the undo problem, but you already solved that. I cannot imagine, it will help for the PSAPTEMP issue. As i said i would just increase PSAPTEMP and restart the copy.
    One more add: if you are doing the client copy with parallel processes, this will influence your requirements on temp and undo space, because of the concurrently running processes.
    Best regards
    Michael

  • The Visual Studio 2013 setup wizard said "Setup failed" many times when I UNINSTALL it.

    I hope somebody can help me... Sorry for my bad English.
    I had Visual Studio 2013 installed about two years ago. But I don't need it now and I want to uninstall it. However, the setup wizard said "Setup failed" after I clicked "uninstall" for a while. And it said:
    Microsoft Visual Studio 2013
    Fatal error during installation.
    Microsoft Advertising SDK for Windows Phone - ENU
    Package failed.
    Microsoft Visual C++ 2012 Compilers For Windows Phone - ENU Resources
    Package failed.
    Microsoft Visual C++ 2012 Core Libraries For Windows Phone
    Package failed.
    Microsoft Visual C++ 2012 Compilers For Windows Phone
    Package failed.
    Workflow Manager Tools 1.0 for Visual Studio
    Package failed.
    Windows 8 Development Essentials
    Package failed.
    LocalESPCui for en-us
    Package failed.
    LocalESPC
    Package failed.
    I have tried repair it, but it said:
    Visual Studio Core Features - ENU
    Fatal error during installation.
    After repair, I clicked "uninstall" and it tipped me the same error.
    Thanks very much.

    Hello Sakura Chino,
    The Visual Studio installation will leave some components on your OS for repair/uninstall. The problem seems related to this. If you can find the installer which you used to install Visual Studio 2013, then please use it to repair and uninstall. It
    will fix problems on your OS so please don't try to uninstall from control panel. 
    If you cannot find the source installer, please download the same version of Visual Studio 2013 ISO from here:
    https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx
    Then verify it's hash value by refer to the following page:
    https://www.visualstudio.com/en-us/downloads/visual-studio-2013-iso-sha1-vs
    After that, you can use that installer to repair then uninstall.
    If you still meet any problem, please use the following tool to fix:
    https://support.microsoft.com/en-us/mats/program_install_and_uninstall
    It is for Visual Studio 2010 or previous versoin, but some customers fixed problems by using this tool. I think you can also have a try on it.
    Best regards,
    Barry
    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.
    Click
    HERE to participate the survey.

  • Couldn't close the visual studio.

    Hi,
    My requirement is to open a internal browser in my application. My application is a plugin to a visual studio, which looks similar like VS.
    I have the following code, which works perfect.
    dispatcher.BeginInvoke((System.Threading.ThreadStart)delegate()
    IVsWebBrowsingService browser =
    this.viewModel.Service.GetService<SVsWebBrowsingService,
    IVsWebBrowsingService>();
    IVsWindowFrame frame =
    null;
    int hr = browser.Navigate(Path.GetFullPath(this.viewModel.ReportSetting.OutputFileName),
    0, out frame);
    System.Diagnostics.Debug.Assert(hr ==
    VSConstants.S_OK,
    "Navigate did not return S_OK.");
    //this.viewModel.ReportSetting.OutputFileName = "C:\Outputfile.xml"
    All works fine, problem here is when i try to close the Visual studio(My application), i am getting a pop up window saying
    "Microsoft Visual Studio has detected that
    an operation is blocking user input. This can be caused by an active modal dialog or task that needs to block user interaction. Would you like to shut down anyway?"
    Could you please let me know what could be cause for this issue.
    Thanks in advance.

    Hi puni_vidhya,
    >>"Microsoft
    Visual Studio has detected that an operation is blocking user input. This can be caused by an active modal dialog or task that needs to block user interaction. Would you like to shut down anyway?"
    According to the exception message, to check if the issue is related to the plugin impact the Visual Studio close, so I suggest you could try to
    run devenv.exe /safemode in command line and then try to close the VS again to check this issue.
    https://msdn.microsoft.com/en-us/library/ms241278.aspx?f=255&MSPPError=-2147217396
    (1) If you did not get same issue, I doubt that the issue is related to the plugin, so I suggest you disable Add-ins (e.g. “Tools” | “Add-in Manager”) and then check this issue again.
    (2) If you get same issue, I suggest you could try to create a simple project and then close the VS check if all type projects have same issue.
    (a) If all the error have same issue, maybe you will need to repair or re-install the VS and then check this issue.
    (b) If the issue just occurs in the specified application, I assume that the issue may be related to your application itself issue. So please you debug your application to check this issue again.
    Best Regards,
    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.
    Click
    HERE to participate the survey.

  • How can a clean out the Visual Studio References dialog entries?

    My reference dialog box is a mess, it has entries which I don't need any more. Some of the entries have duplicate names but differ by version. This means I have to carefully look at each reference to make sure I add the correct one. If I could simply right-click
    on the reference and click on delete the world would be a better place. Since this cannot be done, how else could I remove these bad entries?
    I am using VS2013 Community, this problem has driven be crazy in all versions since 2005.
    I don't know why this question needs to be asked since the situation should have been obvious at (Visual Studio) development time.
    Sic itur ad astra

    Thanks for jdweng’s help.
    Hi Anaristos,
    >> My reference dialog box is a mess. Some of the entries have duplicate names but differ by version.
    To really help us understand this issue, could you share us a screen shot about the real “reference dialog” in your side?
    >>What I would like to do is to have no resent entries when I click to add a reference to a project unless the references on the list are relevant to my current work. I don't need references to past projects, especially if the entries have the same
    name as a reference that I need now but are not either relevant or are the wrong version.
    Do you mean that it is the Reference Manage like the following screen shot?
    For example, you add a dll file(ClassLibrary1(C1)) as the reference in project A, you also have a project B which refer to another dll file which have the same name as ClassLibrary 1(C2), but not the same dll file. Now you create a new project C which will
    refer to C2, but there are two dll files have the same name, so it is hard for you to select the dll file as the reference in project C. 
    Did I understand this issue correctly?
    If not, please share us a simple sample, so we could understand it better.
    But for the reference issue, if possible, I suggest you remove the references with the right click options like the following screen shot, and then re-add the dll files your projects refer to with “Browse” button.
    Or you know that what the dll file’s path is, and then move the mouse on the references, I think you could get the folder or the dll file, and then add the correct references. 
    If I misunderstood this issue, please share us more detiled information, so jdweng and I will provide better answer for this issue. 
    Sincerely,
    Jack
    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.
    Click
    HERE to participate the survey.

  • I need help understanding how the Apple components integrate to create a system across all my devices?

    I need help understanding how the Apple components connect to create a whole system across all my devices?
    Is there a resource that describes current system and associated functionality?
    For example:
    Buy A, B, C to achieve "X" 
    You will need:
    an internet provider which supports <specs>
    add D to achieve "Y"
    You will need:
    an internet provider which supports <specs>
    add "E" to achieve "Z"
    You will need:
    an internet provider which supports <specs>
    For example, I am looking at the Gen 6 Airport extreme.  For intended performance do I need broadband? if so what are the specs, or will basic internet service suffice?  Do I need the internet provider's modem or does the Airport extreme replace that?  And then I think, if I am doing this, I should also look at Apple TV....What do I need and Why?  Then I look at the New Desk top coming out in the fall, and I think well, if I wait and get this, what does this component do for the system, and what becomes redundant? What does this awesome desktop do for my ability to sit and use a new macbook air when I travel  or sit on the couch in my PJs?
    If there was a place that plainly stated "if you buy the new dektop you can configure a system including only these components and achieve <this result> and by adding <additional components> you will achieve this result.
    I have been to the genius store a few times, but I come out of there more confused unless I have SPECIFIC questions or already know what to buy. 
    A "System Configuration App" would be a really great sales tool--Just saying.

    I have no idea what "fully optimized" means.
    No Apple device will let you watch broadcast TV. The Apple TV is a good option for watching streaming TV from iTunes, NetFlix and Hulu. If you want to watch from other sources, you may need to look at other devices.
    Any Mac computer or iPad will allow you to surf the web.
    What business software?
    Time Capsule is a good option for back ups.
    Update what across all devices?
    For accessing documents from all devices, a service like Dropbox is your best bet.
    I have no idea what "step as far away from an internet provider as possible" means. If you want Internet access, you need an Internet provider.
    Lighting fast speed for what? Processor? The specs are listed for all devices in the Online Store. Internet? We're back to the service provider.
    Technology changes. The only way to keep pace with it beyond a couple of years is to buy new stuff.
    The bottom line is you need to look at the specs for devices availble and at your budget and decide what best meets your needs. If you are unable to do that on your own, there are lot of technology consultants out there who will, for a fee, look at your exact situation, make recommendations and even handle the purchase and set up. Perhaps that would be the best route for you.
    Best of luck.

  • What do I need to connect to the internet

    I have a mac book OSX 105.3 Leopard, which i purchased in the USA. Since arrivng in the Uk I have been ubable to connect to the internet. I was under the impression that once connected to a modem I would have the interenet. I tried connecting it to the cable modem in the place where I'm staying and nothing happens. It seems that nobody here has a mac, and there is no Apple store for me to go to ( Liverpool). I found one store that sells aplle products and they told me it need to be reconfigured???? The apple phone support are telling me it's the modem. I was going to get airport, but apple says that won't help. I've never had problems with any of my macs in the US, but here I feel stranded. Do I need to replace the cable modem with a wireless modem? Will this work as they are expensive and non refundable. Help!

    scouser2 wrote:
    I have a mac book OSX 105.3 Leopard, which i purchased in the USA. Since arrivng in the Uk I have been ubable to connect to the internet. I was under the impression that once connected to a modem I would have the interenet. I tried connecting it to the cable modem in the place where I'm staying and nothing happens. It seems that nobody here has a mac, and there is no Apple store for me to go to ( Liverpool). I found one store that sells aplle products and they told me it need to be reconfigured???? The apple phone support are telling me it's the modem. I was going to get airport, but apple says that won't help. I've never had problems with any of my macs in the US, but here I feel stranded. Do I need to replace the cable modem with a wireless modem? Will this work as they are expensive and non refundable. Help!
    Welcome to the Apple boards:
    It could be an old modem that is not Leopard compatible.
    You may need to borrow a PC in order to check and/or download the latest modem firmware.
    Also temporarily turn off your firewall.
    Do you have the instruction book for the modem?
    If the modem is a NAT type (most are) the you should be able to access it directly by entering its IP address. Here in the US, it's usually 192.168.1.1 or .251. Apple uses the 10.x.x.x scheme and there is another one.
    If you manage to access the modem this way, you might need a password. The cable company or the manual should have the defalt userid and password.
    If you manage to get "inside" the modem, then you know that the problem is partially solved.
    You might also use the Mac Network Utility.app to debug your system.
    I don't think it is a compatibility issue, per se, but simply some settings that have to be changed.
    There are many Leopard users in England and perhaps someone there can chime in and be of further assistance.

  • Can i have a check box in the hierarchical tree in the icons place, urgent!!! please

    Hi,
    I'am working on the Hierarchical Tree structure which should have three levels, I need to have a check box in the place of the icon & if i select a node that node & the child nodes should get selected.
    After this when i say move selected ( i'am trying to use picklist class also) the entire checked tree has to move to the display area to the right & should display as tree structure & after this if i save then the checked records which are moved to another text area should get saved!!
    How to achieve this? I have the tree structure ready but the check box part is the worrying factor! & then moving the checked records to the right using picklist class is the second problem & finally saving records to database.
    Any help in this regard will be deeply appreciated:)
    If check box is not possible then i will have to look at other methods, will the tree structure allow checkboxes????
    Thanks
    Mahesh

    No the tree will not allow checkboxes

  • Can u give clear steps how to load 3 data target at a time by the help of p

    can u give clear steps how to load 3 data target at a time by the help of parllalesim

    hi,
    create the load infopackage type and give the infopack you need to load.
    create 3 similar process types.
    chain should have this flow
    start -> delet index(if cube is the target) -> load target(connect the load process to start process) parallel -> and process -> create index(if cube)/actiavtion of ods(if ods)
    Ramesh

Maybe you are looking for

  • Date Problem

    Hi, I have a table with dates in it. They are stored as NUMBER(8) in a table. When i convert them into dates and load into another table, i get an error message "ORA-01839: date not valid for month specified" How do i find out which row is having bad

  • Problem in requesting certificate from enterprice CA

    I have an enterprice CA and I created a new certificate template for SCOM authentication, and when I submit a certificate from web enrollment I got this error massege: Certificate Request Denied Your certificate request was denied. Your Request Id is

  • How to use LIKE Operator with my query requriment

    HI all, I have a requirement as follows EMPID ENAME JOB SAL 10 RAJ KAMAL MANAGER 25000 20 KAMAL RAJ NAYAK CLERK 4000 30 NARENDAR GUPTA ANALYST 20000 40 ASHUTOSH GUPTA DEVELOPER 10000 50 ASHUTOSH NAYAR PROGRAMMER 15000 i am searching enames such that

  • Create FB03 attachments to external Website

    Hi Gurus, I have a requirement where my client wants to use FB03 create attachment functionality but at the same time, they don't want the attachments to store in SAP Sood table or related ones for there may be a time when the tables will be clogged.

  • Integrate OpenJMS with Orion/OC4j

    Hi I need to integrate OC4J with OpenJMS How i can do this, currenlty we are using OC4JS JMS for messaging . plz help me Renjith