AngularJS - uibmodal - drag from modal and drop onto parent - angularjs

Is it possible to drag an element from a modal window (opened with uibmodal) and drop it on to an area on the parent window? My issue is that the parent window is always disabled and greyed out and the 'drop area' is disabled.
I have tried playing with the backdrop property but none of the options are enabling the background.
Thanks in advance

Related

Ensure focus stays on menu after closing dialog

I am using #material-ui with react. I've got the following problem:
With the keyboard, open the context menu, select "Assignee details" or "Requester details"
Close the dialog. When you tab again, the focus is now back at the top of the page, it should stay on the menu. How can I achieve this behavior?
https://codesandbox.io/s/hardcore-breeze-s4mkez?file=/src/Test.js
You can save the current focused element (you can get it with document.activeElement) and after closing the menu, set focus to the desired element with element.focus()

Why is the cursor icon not changing on drag/drop ReactJS?

I am trying to drag child component it works good but i could not change the cursor icon.
I tried in child and parent, it changed with dragover(on parent) event but i dont want that icon. Do you have solutions?
Do not use drag and drop events for drag and drop. Use mouse events for changing cursor(and also drag and drop). Drag and drop events have different meaning for browsers like drag and drop files,images.

How to open modal wpf window scoped to a tab item

I have a use case where we have an application with a tabcontrol with 2 or more tab items . I want to be able to open a modal Window (using Window.showDialogue()) so the user is blocked to do any thing else within the active tab item from where the modal window was opened . But should be able to click on other tab item and continue to do the work .
Currently Window.showDialogue() completely blocks all user interactions until the window is closed . Is it possible to change the scope of the blocking window to just the initiating tab item ?
As an alternative , I have a overlay design to show the popup content using the Panel.Zindex and then disable the underlying controls container . But I would prefer to do the simple way of window.showdialogue().
Any help would be appreciated.
As far as I know, here is no way to block only part of a Window when calling ShowDialog. The blocking is done at the Window level by the OS. You'll have to manually disable that tab.
Be aware that if you simply put another element on top of the tab to obscure it, the user may still be able to access the controls below by using the Tab key. You might need to set IsEnabled to false, or maybe IsHitTestVisible, depending on the how you want the application to behave.

how to drag a button and drop the controls in angularjs?

I have button "textbox".
What I am trying is when i drag that button and drop a text a box must be dropped ..Can anyone help me to solve this..I just tried to drag the button .But the content must be textbox .That I am unable to identify it.

WPF window and element focus

I've got a WPF form inside a window and a short series of events like this:
1) 1st form has series of selection buttons
2) Clicking a button brings up a progress bar window over the existing window
3) Progress window closes and 1st form switches to a new 2nd form using page navigation
The problem is that the 2nd form (and the entire window) no longer has any focus and what's really killing me is that the window is no longer getting OnKeyDown() calls (it's still the top winow). If I hit the tab key the first menu option is highlighted and the following key stroke will fire a OnKeyDown(). Also, if I alt-tab to another app and then alt-tab back to my window it will begin receiving OnKeyDown() again.
How do I figure out where the focus is after the dialog?
If you are using navigation then the focus will have switched to the Page that you have navigated to, assuming that it is Focusable.
You can check that by setting up a breakpoint in a Focused event handle for the Page.
Alternatively you can use an explicit control.SetFocus() in the page.Navigated handler.

Resources