Click here to Skip to main content
15,898,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi...

I want to create a window application in which I want to add button on the title bar like ms office 2007 and the apprience on window xp and on window 7 should be like ms office 7. Can anyone help me to do so. Is it necessary to use Ribbon to do so?

Thanks
Posted

1 solution

XML
I have done it by using Micosoft.windows.Shell.dll but it workes only on windows 7 not in windows xp It is because of GlassFrameThickness attribut if I set it -1 it workes properly else the minimize, maximize and close buttons are disabled.How can I solve this problem. The code I have used is given below-

 <Window.Resources>
        <Style x:Key="GlassStyle" TargetType="{x:Type local:Window1}">
            <Setter Property="shell:WindowChrome.WindowChrome">
                <Setter.Value>
                    <shell:WindowChrome GlassFrameThickness="-1" ResizeBorderThickness="6" CaptionHeight="40" CornerRadius="6,0,6,20" />
                </Setter.Value>
            </Setter>
</Window.Resources>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900