Is there a way to create windows, such as the native Windows 7 notification area of Windows with the Windows Presentation Foundation? For example, audio controls or power plan settings.
I managed to create a Window with Windows Forms that looked equal, but still had a resize cursor when you hovered over borders. Im using the following code:
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
ResizeMode="NoResize" ShowInTaskbar="False" Topmost="True"
DataContext="{Binding}" WindowStyle="SingleBorderWindow"
WindowStartupLocation="Manual" ShowActivated="False"
IsManipulationEnabled="False" mc:Ignorable="d"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
d:DesignHeight="218" d:DesignWidth="368" SizeToContent="WidthAndHeight">
<Grid>
</Grid>
</Window>
My problem is that I could not completely remove the title bar and close the button. Or is there a library for creating such windows?
I wanted to post screenshots, but I couldn’t, because I do not have 10 reputation points yet.
Thanks for any help!
pvorb