Figured out how to hide the grippy dots on the left side, now how do I hide that add/remove buttons drop-down arrow on the right side?
Overflow. A small upwards facing arrow will sit in the taskbar, close to a collection of other icons in the bottom-right of your screen. Clicking it will show other applications that are running in the background.
Change the Size of the TaskbarRight-click the taskbar and turn off the “Lock the taskbar” option. Then place your mouse at the top edge of the taskbar and drag to resize it just like you would with a window.
Google is full with the answer to this:
private void ToolBar_Loaded(object sender, RoutedEventArgs e)
{
ToolBar toolBar = sender as ToolBar;
var overflowGrid = toolBar.Template.FindName("OverflowGrid", toolBar) as FrameworkElement;
if (overflowGrid != null)
{
overflowGrid.Visibility = Visibility.Collapsed;
}
var mainPanelBorder = toolBar.Template.FindName("MainPanelBorder", toolBar) as FrameworkElement;
if (mainPanelBorder != null)
{
mainPanelBorder.Margin = new Thickness(0);
}
}
And assign this method to your toolbar Loaded event.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With