[C#] Chrome like window appearance

Discussion in 'Programming General' started by Flaming Idiots, Sep 13, 2008.

[C#] Chrome like window appearance
  1. Unread #1 - Sep 13, 2008 at 4:08 AM
  2. Flaming Idiots
    Joined:
    Dec 22, 2005
    Posts:
    235
    Referrals:
    1
    Sythe Gold:
    0
    Two Factor Authentication User

    Flaming Idiots Active Member
    Visual Basic Programmers

    [C#] Chrome like window appearance

    Here is a library I made for C# which allows you to place controls on the window frame, like Chrome and Office 2007. This is useful when you want to use more space than normally given by the system. How it works is that there is no window border, in Vista, it extends the glass, and in XP it draws a different frame.

    To use it, create a WPF application. Add a reference to "WPF Aero Window.dll", and in Window1.xaml change the Window references to AeroWindow instead.

    It should look something like this:
    Code:
    <AeroWindow x:Class="Window1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Background="White" FrameThickness="30">
      <Grid>
    
      </Grid>
    </AeroWindow>
    
    To change the frame thickness, change the FrameThickness value of the window to something like "30" to make the border 30 pixels thick or "{x:Null}" to get rid of the white box.
    [​IMG]

    There is a sample tabbed browser packed in with the source for this. Here is how it appears in Vista then XP:
    [​IMG]
    [​IMG]
    This source code requires Visual C# 2008 SP1 and .NET 3.5 SP1 to work.
    I may add an example for the office pearl if there is enough intrest.
    Download source: http://uppit.com/UE4BX5
     
  3. Unread #2 - Sep 27, 2008 at 11:59 PM
  4. x&#8313;
    Referrals:
    1

    x&#8313; Guest

    [C#] Chrome like window appearance

    Thankyou, Flaming Idiots.

    Your skill with WPF amazes me.
     
  5. Unread #3 - Oct 8, 2008 at 2:31 PM
  6. Jansen
    Joined:
    Apr 22, 2005
    Posts:
    5,213
    Referrals:
    6
    Sythe Gold:
    11
    Discord Unique ID:
    1072865532082147429
    Discord Username:
    jan.sen.

    Jansen Retired Admin :'(
    Retired Global Moderator

    [C#] Chrome like window appearance

    Well done

    I haven't talked to you in ages
     
  7. Unread #4 - Nov 23, 2009 at 12:33 PM
  8. dondonvizcayno
    Joined:
    Nov 23, 2009
    Posts:
    1
    Referrals:
    0
    Sythe Gold:
    0

    dondonvizcayno Newcomer

    [C#] Chrome like window appearance

    Hi! Do you have another link for the download? The current link is no longer working it seems. I am really interested to see your code. Wondering how you have done it. Also, the closeable tabs is a plus. Very interesting.
     
  9. Unread #5 - Nov 23, 2009 at 2:55 PM
  10. Flaming Idiots
    Joined:
    Dec 22, 2005
    Posts:
    235
    Referrals:
    1
    Sythe Gold:
    0
    Two Factor Authentication User

    Flaming Idiots Active Member
    Visual Basic Programmers

    [C#] Chrome like window appearance

  11. Unread #6 - Nov 24, 2009 at 10:35 PM
  12. Molotov
    Joined:
    Aug 26, 2009
    Posts:
    149
    Referrals:
    0
    Sythe Gold:
    0

    Molotov Active Member
    Banned

    [C#] Chrome like window appearance

    dude, this is awesome!

    Nice job :)
     
  13. Unread #7 - Nov 25, 2009 at 12:31 PM
  14. super_
    Joined:
    Dec 20, 2008
    Posts:
    91
    Referrals:
    0
    Sythe Gold:
    0

    super_ Member

    [C#] Chrome like window appearance

    that is very intriguing. do you have source code?
     
  15. Unread #8 - Nov 25, 2009 at 12:38 PM
  16. super_
    Joined:
    Dec 20, 2008
    Posts:
    91
    Referrals:
    0
    Sythe Gold:
    0

    super_ Member

    [C#] Chrome like window appearance

< Hiring A Coder | Runescape autominer pro >

Users viewing this thread
1 guest


 
 
Adblock breaks this site