hai am develping a application in c#(WPF). when i run the application 开发者_运维问答in windows xp, i want to show windows like how we look in windows 7 or in vista..
am using WPF with c#. is it possible. how can i doI know it's late, but I'm post something here that can help other people.
This can be a start:
<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" AllowsTransparency="True" WindowStyle="None" Background="Transparent" WindowStartupLocation="CenterScreen">
<Grid>
<Rectangle Name="rectangle1" Stroke="#111111" Fill="#dd334455" RadiusX="5" RadiusY="5" />
<Border BorderThickness="1" Margin="1" BorderBrush="#ddffffff" CornerRadius="5" />
<Label Content="Window title">
<Label.Effect>
<DropShadowEffect ShadowDepth="0" Color="White" BlurRadius="10" />
</Label.Effect>
</Label>
<Grid Margin="8,25,8,8" Background="White">
<Label Content="Controls here" />
</Grid>
<Border Margin="6,23,6,6" BorderThickness="1" BorderBrush="#99ffffff" CornerRadius="1" />
<Border Margin="7,24,7,7" BorderThickness="1" BorderBrush="#333333" CornerRadius="1" />
</Grid>
</Window>
精彩评论