I've built a small Out-Of-Browser Silverlight 4 application on which I have an exit button. Clicking on this button is supposed to deliver the same behaviour as clicking close (X button) on the upper right corner - close (exit) application. But I can't figure out how this is done... I've already tried suggestions like Application.Current.MainWindow.Close() calling from my button's Click event, but it won't work-nothing happens. Note: Maybe important - executing that line ( Application.Current.MainWindow.Close() ) from In-Browser mode generates the following exception> "Out-of-browser specific settings do not affect in-browser applications." but I suppose that's normal.
Exit Silverlight OOB application
222 Views Asked by Leonidas 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 EXIT
- How to close an express and a websocket server on the git bash terminal close on Windows
- Problems with docker nodejs app exit code 137
- Why does this Python script hang? async-await? Django-ORM?
- python does not recognize "quit()"
- Exiting a timer macro before calling it again
- exit() status does not act accordingly
- C++ exit(1) causes IO loss?
- Using Python and YOLOv8 for simple bounding box creation. Program won't stop and can't be aborted
- Framer-motion AnimatePresence - apply dynamic color change before fade begins
- I tried to do exit the app on second tap using Popscope but it didn't work on the way I expected, It didn't even exit
- Are you allowed to have fork as a for condition?
- framer motion exist transition is not working
- Why does getattr() exit a program when it raises an exception inside a try statement?
- Why pressing Ctrl + C to interrupt a node js server application doesn't close previous opened ports?
- How do I exit GNU APL?
Related Questions in OUT-OF-BROWSER
- Create a file in JavaScript without web browser
- event handler on silverlight out of browser uninstalling
- Silverlight OOB How to throw exception and exit program with Messagebox
- Prevent Silverlight Out-Of-Browser App from opening twice
- Exit Silverlight OOB application
- Installing Silverlight OOB with Safari 6.1
- Unable to Uninstall SIlverlight Out Of Browser Application Programatically
- Unable to install OOB SL5 programmatically
- How to get xml file from server in OOB Application using web client method
- How to use web.config file in out of browser silverlight application
- Silverlight OOB User Menu Control
- SL 5 exception using FileSystem
- SL5 OOB app - after minimizing, restores to different size
- Would a Silverlight full trust in-browser application on the Internet work?
- Running Silverlight Application Out Of Browser As default
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 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?
I have just ran into solution to this 'issue': In order to use Application.Current.MainWindow.Close() to exit your OOB app, it is necessary to enforce ElevatedPermissions within your application's Out-Of-Browser settings. Hope this will save lots of someone's time...