I’m using WPF in VS 2022
I’m creating a media player and put the buttons in a Toolbar. There are a couple of things I would like to remove, but maybe it’s not possible. I’m assuming the object on the right is a scrollbar and I tried to disable and hide it but it still appears.
Not sure what the object on the left is.
If I can’t remove them, then I guess I’ll try to push them to the window border so they are out of the way when the window is maximized.
I tried putting the buttons in a stackpanel but I ran into size problems with the images, so I’m going to stick with the tool bar.
The xaml for the ToolBar
<ToolBar Grid.Row="2" Background="#3C5B6F" ScrollViewer.VerticalScrollBarVisibility="Hidden" HorizontalAlignment="Center" >
<Button Command="ApplicationCommands.Open" >
<Image Source="/Images/search_36.png" />
</Button>
<Separator />
<Button Command="MediaCommands.Pause" >
<Image Source="/Images/pause_36.png" />
</Button>
<Button Command="MediaCommands.Play" >
<Image Source="/Images/play_48.png" />
</Button>
<Button Command="MediaCommands.Stop">
<Image Source="/Images/stop_24.png" />
</Button>
</ToolBar>