2
I am creating a project in wpf and needed to replace the buttons minimize, maximize and close, follows condition used:
if (sender == checklist.btnMaximizar)
{
if (WindowState == WindowState.Maximized)
{
WindowState = WindowState.Normal;
}
else
{
WindowState = WindowState.Maximized;
}
}
else if (sender == checklist.btnMinimizar)
{
WindowState = WindowState.Minimized;
}
else if (sender == checklist.btnFechar)
{
InformacaoSistema.FECHAR_CHECKLIST = false;
Close();
}
But when I maximize the application overlaps the taskbar making it difficult to use, every example I searched the internet solved problems in windows form.
Perfect João Martins, I set up these two properties before changing the Windowstate and it worked, thank you very much for your help.
– Hudson S. Carlos
If the solution worked, mark the answer as correct :)
– João Martins