Dialog Box not inheriting Main WIndow's metro style (Elysium SDK) - c#

I created a dialog box in a WPF Application that uses the Elysium SDK for metro-styling. I used the MessageBox utility class for displaying the dialog box but unlike the main window (and every other control there in) that are metro-styled by default, the dialog box came out as an ugly default windows dialog box which really looks out of place in the application. How can I get Elysium to style my dialog boxes too by default?

The Dialog box is just a wrapper around the OS dialog windows. If you want to control the look, then create your own window and show it modally.
If you need to get a result back from the dialog, set the dialogresult as shown here.
getting a dialogresult from a WPF window

Related

Click outside wpf window without losing focus

I was wondering if there is a window property, for a wpf application, that disables any actions outside of the window. For example, when you open a message dialog and click outside of it, the message dialog background flashes. Kind of saying you can't do any actions outside of the message dialog untill you click the 'OK' button. I want that implemented in some windows that I open in a program i'm developing but can't seem to find any info on it. Looking for ways on how i might approach this.
Try ShowDialog() instead of Show()
Opens a window and returns only when the newly opened window is closed.
Window childWindow = new Window();
childWindow.ShowDialog();
Note that it will prevent clicks only on parent window(s). Clicks on other applications or Desktop can't be prevented by the Dialog.

c# open explorer window ont top

I'm using
System.Diagnostics.Process.Start("explorer", Application.StartupPath);
To open the applications path with a button press, but the window opens behind my application, how can I get it on top?
It may be due to TopMost property of the form may be true, or any of the properties of the form is making your application to stay on top. Just try to change the form properties and you will get the required result

Need walkthrough for choose file dialog or open file dialog to appear Awesomium

Guys i have the awesomium webcontrol that was available in the toolbox and it doesnot display choose file or any dialog box for uploading files(e.g. uploading pic/video in facebook).pls give the complete procedure on how to enable it.i am using visual c# and it is a wpf application.
Some more info is needed.
Are you referring to the WinForms or the WPF WebControl?
Have you downloaded the latest RC? Download it here.
The WinForms WebControl provides all dialogs. The WPF WebControl provides all dialogs too, however, folder selection dialogs are only supported on Windows Vista and newer. If the dialogs do not appear, you may have to handle the SelectLocalFiles event. Make sure the event is fired. If it is but you still see no dialog, handle the event yourself and display your own modal dialog. Provide the result to FileDialogEventArgs.SelectedFile or FileDialogEventArgs.SelectedFiles and don't forget to set FileDialogEventArgs.Handled to true.
What version of Awesomium? You need probably 1.7RC2 which has modal dialog boxes.

Don't show window on shell tray

I want to create a gadget. when opening windows they appear on the shell tray as:
how can I prevent a window from showing on that tray. I already know how to send a window to the back to make it appear as a gadget. I found that example in here. It will be nice if that menu does not show up meanwhile the window is active and open.
Use the Window property ShowInTaskbar to restrict or allow your Window to appear in the taskbar.

How can I be notified when Windows XP fades the screen to gray?

We have an application developed in C# with WPF (.NET Framework 3.0)
The main window has a glass border, and a child window containing a WebBrowser is centered within it:
WPF main window
-> Child window - frame control
-> Page
-> WindowsFormsHost
-> WebBrowser
Because we used .NET 3.0, we have to put WebBrowser in WindowsFormsHost, and it can't show if we set the window property AllowTransparency to true.
Now, on Windows XP, when the user clicks the Shutdown button on the Start menu, a dialog is displayed with various choices (shutdown, restart, etc.) while behind it the entire desktop appears to fade from color to shades of gray. When this occurs, our main window becomes hidden, while the page window is still displayed on the screen.
We have already set page window's owner to be the main window, but this did not help. Therefore, I have come to the conclusion that I must intercept the "fade to gray" event and... do something to mitigate this ugliness. So: does anyone know how I might allow my program to be notified prior to the fade to gray?
As I know there is no way to be notified when Windows fades the screen to gray.
System.SystemEvents class doesn't have such an event either.

Categories

Resources