Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6972863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:01:42+00:00 2026-05-27T17:01:42+00:00

I am using around 10-15 controls inside a WPF ToolbarTray control, Now the issue

  • 0

I am using around 10-15 controls inside a WPF ToolbarTray control, Now the issue is while I am changing the resolution the controls present in it is not adjusting according to my need in case of Maximized window. For more detail I attached the screenshot below.

Toolbar Tray control appearing originally:
Toolbar Tray control appearing originally

Toolbar Tray need to appear like this(Which I am trying):
Toolbar Tray need to appear like this

Can anybody tell me how to customize or what to do to achieve the second image like ToolbarTray.Any help is appreciated.

Thanks in advance,

Update:

<ToolBarTray Background="White">
    <ToolBar>

        <Button
        Width="50" Content="hi"/>
        <Button
        Width="100" Content="bye"/>
        <Button
        Content="welcome"/>
        <Button
        Width="20"/>
        <Button Content="Welcome"/>
        <Separator />
        <Button
        ToolBar.OverflowMode="Always" Content="save" />
        <Button
        ToolBar.OverflowMode="Always" Content="open" />
        <Button
        ToolBar.OverflowMode="AsNeeded" Content="bmp" />
    </ToolBar>
    <ToolBar HorizontalAlignment="Right">
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
            <Button Content="New Hi1"/>
            <Button Content="New Hi2"/>
            <Button Content="New Hi3"/>
        </StackPanel>
    </ToolBar>
</ToolBarTray>

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:01:43+00:00Added an answer on May 27, 2026 at 5:01 pm

    I found the solution of my problem, now I am using a Grid inside the ToolBar control and adjusting the size of one column of the Grid(toolbarGrid) to make my controls as seen in my second Image.

    Code:

    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="0"/>
        <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
    
    <Stackpanel
        Grid.Column ="0">
    
        <Button Width="50" Content="hi"/>
            <Button Width="100" Content="bye"/>
            <Button Content="welcome"/>
            <Button Width="20"/>
            <Button Content="Welcome"/>
            <Separator />
            <Button ToolBar.OverflowMode="Always" Content="save" />
            <Button ToolBar.OverflowMode="Always" Content="open" />
            <Button ToolBar.OverflowMode="AsNeeded" Content="bmp" />
    </StackPanel>
    
        <ToolBarTray x:Name ="toolBarTray" Grid.Column ="1" HorizontalAlignment ="Right" IsLocked="True">
    
            <!--First Toolbar for the controls from Print to Zoom Control-->
            <ToolBar x:Name ="topToolBar" FocusVisualStyle="{x:Null}">
                <Grid x:Name="toolbarGrid">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="0"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <Button Content="New Hi1"/>
                    <Button Content="New Hi2"/>
                    <Button Content="New Hi3"/>
                </Grid>
            </ToolBar>
        </ToolBarTray>
    </Grid>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a PlaceHolder control inside of a ListView that I am using to
For several days now I've been messing around with Ajax calls using different combinations
Possible Duplicate: Need the clientId of a textbox inside a content control using javascript
Trying to wrap my head around updating UI controls from other threads. Currently using
I'm using the Microsoft.Windows.Controls.Ribbon in my WPF application, and it is stretching the RibbonCommand
I am a newbie to using activex controls in matlab. Am trying to control
I have been searching around using Google but I can't find an answer to
I'm still trying to get my head around using Java's generics. I have no
I was curious if anyone had any problems creating unit tests around using the
I just have an XP machine, and i want to play around using CC.NET.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.