How can I know from my Silverlight main UserControl (RootVisual) that a ChildWindow is displaying?
Detect from the Application.Current.RootVisual Silverlight ChildWindow opening
1000 Views Asked by Cornel At
1
There are 1 best solutions below
Related Questions in SILVERLIGHT
- ServiceReferences.ClientConfig use basicHttpsBinding or similar
- How to draw and show map in in ArcGIS C# Silverlight Application
- ESRI.ArcGIS.Client.Symbols.SimpleFillSymbol invoke system crash on Unhandled Error in Silverlight Application
- OpenSilver 'Tapped' event not triggered on phone
- Debugging Silverlight with Microsoft Edge
- Where to download Silverlight Developer Runtime nowadays?
- Where can I download RiaServices.msi nowadays?
- How to build old Silverlight project in Azure DevOps?
- reading of barcodes are badly interpreted in silverlight app with edge
- StringFormat doesnt change number in Silverlight <telerik:GridViewDataColumn>
- Migrate Silverlight check for ElevatedPermission to ASP.NET MVC
- How do I install Silverlight now that it has been discontinued?
- OpenSilver and Dispatcher.CheckAccess
- Port Silverlight Storyboard to WPF
- Silverlight bing maps component are no longer working
Related Questions in CHILDWINDOW
- How to resize maximized child window programmatically
- Passing a stream thorugh IPC
- PyQt5 Parent Window closes when Child widget is closed
- What should I do more for creating controls on popup window?
- c++ Cannot create magnifier window
- New window not opening in cypress
- How to set focus on child window with the same name
- how to create window child window outside primary window
- How to close Child Dialog Window from Another Apps in MFC
- How to detect if a child window is opened or closed in tkinter
- Why I can't set global variable to child window in IE11?
- How to scroll down child/pop-up window using Selenium in Python
- How to get a list of Window Rectangle from EnumChildWindow and store them?
- Java Already opened windows inside the Content pane of Main window goes beneath the main window when a menu item is clicked on the main window
- How to control child windows size+position of Windows 10 UWP App
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Not sure if there's any way more specific than setting up the wiring yourself.
1) You would want to make a public singleton class (ie. ChildWindowManager) that contains an event called OnChildWindowShowing. Your root visual would then subscribe to that event.
2) In order to make that event fire at proper times, you need to set up some wiring on your ChildWindow instances. You can do this on a case by case basis, or you can make a class that inherits from ChildWindow and has custom constructor. But you need to set events on the ChildWindow that would cause OnChildWindowShowing event on the singleton class we created before to fire.
So conceptually it would look something like: ChildWindow.OnShow() <--> ChildWindowManager.OnChildWindowShowing <--> RootVisual