سلام بر تمامی برنامه نویسان #C 😉 در این پست کد تغییر window resize mode => دو حالت CanResize و NoResize با wpf و c#.net را آماده کردم. امیدوارم که این کد برای شما مفید باشد.
کد تغییر window resize mode => دو حالت CanResize و NoResize با wpf و c#.net :
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Input;
using System.Windows.Media;
public class ToggleTheButton : Window
{
[STAThread]
public static void Main()
{
Application app = new Application();
app.Run(new ToggleTheButton());
}
public ToggleTheButton()
{
ToggleButton btn = new ToggleButton();
btn.Content = "click";
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Input;
using System.Windows.Media;
public class ToggleTheButton : Window
{
[STAThread]
public static void Main()
{
Application app = new Application();
app.Run(new ToggleTheButton());
}
public ToggleTheButton()
{
ToggleButton btn = new ToggleButton();
btn.Content = "click";