GroupBox header as image

4 posts, 0 answers
  1. vijay
    vijay avatar
    46 posts
    Member since:
    Jul 2010

    Posted 19 Aug 2011 Link to this post

    Hi all,

    i am working with GROUP BOX.

    I want to place the Image as groupbox header.

    is it possible to achive this.can you please help me.

    Thanks in advance
    -Vijay
  2. Pana
    Admin
    Pana avatar
    748 posts

    Posted 22 Aug 2011 Link to this post

    Hi,

    The Header property is of type object so you could place anything inside. Please consider the following example:

    <Grid x:Name="LayoutRoot" Background="White">
        <telerik:GroupBox Margin="10">
            <telerik:GroupBox.Header>
                <StackPanel Orientation="Horizontal">
                    <Image Width="16" Height="16" Source="cart_16.png" Margin="4 0" />
                    <TextBlock Text="Shopping Cart" />
                </StackPanel>
            </telerik:GroupBox.Header>
            <telerik:GroupBox.Content>
                <ListBox BorderThickness="0" Margin="0 4 0 0">
                    <ListBoxItem Content="Item 1" />
                    <ListBoxItem Content="Item 2" />
                    <ListBoxItem Content="Item 3" />
                </ListBox>
            </telerik:GroupBox.Content>
        </telerik:GroupBox>
    </Grid>


    Greetings,
    Pana
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. vijay
    vijay avatar
    46 posts
    Member since:
    Jul 2010

    Posted 22 Aug 2011 Link to this post

    Working...Thanks
  4. Mask
    Mask avatar
    20 posts
    Member since:
    Sep 2009

    Posted 22 Aug 2011 Link to this post

    Sorry For offtopic :( but Maybe you know Abou t this problem
    plz check this
    http://www.telerik.com/community/forums/silverlight/maskedtextbox/maskedtextbox-problem.aspx
Back to Top