Archive for the ‘C#’ Category

If your objective is to develop a software with highly customized Windows then start a new WPF application in Visual Studio (VS). Currently I am developing a new ‘Desktop Sticky Notes’ software hence it is important that my windows (notes) are designed like an e-replica of a real sticky note on your desktop.

As such I started a new WPF project, dragged a Grid control from the Toolbox and decided to set my WindowStyle property to None, AllowTransparency to True and finally ResizeMode to NoResize. These steps would generate the following XAML code in VS:

1
2
3
4
5
6
7
8
<window x:Class="WpfApplication1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525" ResizeMode="NoResize" AllowsTransparency="True" Opacity="1" WindowStyle="None">
    <grid>
        <grid Height="311" HorizontalAlignment="Left" Name="grid1" VerticalAlignment="Top" Width="503" />
    </grid>
</window>

Read the rest of this entry »

Haider’s WebSpace
Welcome to my technical blog. This is where I write, archive and share computer related articles. Subjects vary from posting technical solutions to researching particular topics. Feel free to comment and talk IT!
Sponsored Links
My Tweets
Posts Calendar
February 2012
M T W T F S S
« Nov    
 12345
6789101112
13141516171819
20212223242526
272829