What event is responsible for pressing the button to expand to full screen?
We catch SizeChanged and check the WindowState property:
private void Window_SizeChanged(object sender, SizeChangedEventArgs e) { if (this.WindowState == System.Windows.WindowState.Maximized) { MessageBox.Show("Max"); } }
Just checked on an empty project.
Source: https://ru.stackoverflow.com/questions/160741/More articles:Display code in different browsers.Output of the resultOnline cinema platform [closed]How do the elements of ul, div teach how to properly receive and lose focus?SQL query execution timeWhy children for li closes ul, in which he invested? jQueryAbbreviation of the text in the requestCalling a function from a DLL from the command lineDeveloping games for JavaScript tablets [closed]How to make a class method a callback function?All Articles