Answered by:
dialog window

Question
-
Hi,
I have a few questions regarding dialog windows...
I have a few windows in xaml which I call using window.ShowDialog()... however It opens a new "item" in the operating system (in this case windows vista) status bar.. What do I have to do to make it appear as a dialog window and NOT appear in the OS status bar?
I Can't seem to make a window which can be resized and not have the minimize and maximize buttons (similar to WindowStyle=ToolWindow but without being a toolwindow)..
Thanks in advanceFriday, May 29, 2009 3:13 PM
Answers
-
I think you mean TaskBar.
You could set the Window's ShowInTaskbar property to false.
For example:
<Window x:Class="WpfApplication2.Window2" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" WindowState="Normal" WindowStyle="ToolWindow" ShowInTaskbar="False" Title="Window2" Height="300" Width="300"> <Grid> </Grid> </Window>
Monday, June 1, 2009 5:21 AM
All replies
-
Window has a separate property AppearInTaskBar that you can set.
- Edited by JRQ Friday, May 29, 2009 4:54 PM
Friday, May 29, 2009 3:36 PM -
I can't seem to find it...
Can you provide some sample code?
Thanks in advanceFriday, May 29, 2009 5:12 PM -
Sorry, it is ShowInTaskbar right after the ResizeMode.
Also you might want to give it a parent. Here is the sample . . .
http://stackoverflow.com/questions/315164/how-to-use-a-folderbrowserdialog-from-a-wpf-applicationFriday, May 29, 2009 10:09 PM -
Hi,
You could use PopUp. PopUp do not appear in the status bar.
I have a few questions regarding dialog windows...
I have a few windows in xaml which I call using window.ShowDialog()... however It opens a new "item" in the operating system (in this case windows vista) status bar.. What do I have to do to make it appear as a dialog window and NOT appear in the OS status bar?
I Can't seem to make a window which can be resized and not have the minimize and maximize buttons (similar to WindowStyle=ToolWindow but without being a toolwindow)..
Thanks in advanceMonday, June 1, 2009 5:17 AM -
I think you mean TaskBar.
You could set the Window's ShowInTaskbar property to false.
For example:
<Window x:Class="WpfApplication2.Window2" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" WindowState="Normal" WindowStyle="ToolWindow" ShowInTaskbar="False" Title="Window2" Height="300" Width="300"> <Grid> </Grid> </Window>
Monday, June 1, 2009 5:21 AM