Results 1 to 5 of 5

Thread: [RESOLVED] Imitate design of controls in attached image

  1. #1

    Thread Starter
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,123

    Resolved [RESOLVED] Imitate design of controls in attached image

    Anyone who can provide tips on how I can imitate the look and feel of the controls in the attached image? I am particulary interested with the label attached to the controls and the look of the Groupbox but as of now I have no clue where should I begin with.

    TIA
    Attached Images Attached Images  
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  2. #2
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: Imitate design of controls in attached image

    You could just use a Border control with a Grid insider it to create the effect of the label being attached to the textbox/combobox controls. As for the groupbox, that is pretty easy as you can use whatever you like as the Header of the groupbox. So to get something like what is pictured there you could do this for example:

    Code:
    <GroupBox Margin="10" BorderBrush="DarkBlue">
                        <GroupBox.Header>
                            <Border CornerRadius="15" Background="#FF16458A">
                                <TextBlock Foreground="White" Padding="14,5,14,5" Text="Language" />
                            </Border>
                        </GroupBox.Header>
    </GroupBox>
    I'll put together an example of the other controls in a minute
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  3. #3
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: Imitate design of controls in attached image

    Here's my quick mock up:



    and when you click into the textbox:



    XAML code attached to this post. I'm sure it could be done in a much better way and be made to be more re-usable as the way I have done it you would have to make an animation for every single one of those label/textbox combination controls for when they got focus. Hopefully it gives you some idea of how you could go about things though
    Attached Files Attached Files
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  4. #4

    Thread Starter
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,123

    Re: Imitate design of controls in attached image

    Cool, thanks a lot!
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  5. #5
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: Imitate design of controls in attached image

    No worries oh and as for that little strip across the bottom with the horizontal gradient (that says something like "Name Of Contact Required") you could do something like this:

    Code:
    <Border Height="30">
                    	<Border.Background>
                    		<LinearGradientBrush EndPoint="0,0" StartPoint="1,0">
                    			<GradientStop Color="#FF06356E" Offset="0"/>
                    			<GradientStop Color="#FF629EE8" Offset="1"/>
                    		</LinearGradientBrush>
                    	</Border.Background>
                        <StackPanel Margin="6,0,6,0" Orientation="Horizontal">
                            <Image Source="Images\info_24.png" Height="22"/>
                            <TextBlock Foreground="White" VerticalAlignment="Center" Margin="6,0,0,0" Text="Name of Contact (Required)" />
                        </StackPanel>
                    </Border>
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width