Exemplos de WPF 3.5 (Windows Presentation Foundation) - 004 - Application - start e shutdown

<!--App.xaml-->
<Application x:Class="_004_ApplicationStartShutdown.App"
    xmlns
="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x
="http://schemas.microsoft.com/winfx/2006/xaml"
    StartupUri
="Window1.xaml" ShutdownMode="OnMainWindowClose">
</Application>
using System.Windows;

namespace 
_004_ApplicationStartShutdown
{
    
public partial class App : Application
    {
    }
}
<!--Window1.xaml-->
<Window x:Class="_004_ApplicationStartShutdown.Window1"
    xmlns
="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x
="http://schemas.microsoft.com/winfx/2006/xaml"
    Title
="Window1" Height="300" Width="300">
    
<Grid>
    
</Grid>
</Window>
//Window1.xaml.cs
using System.Windows;

namespace 
_004_ApplicationStartShutdown
{
    public partial class Window1 : Window
    {
        
public Window1()
        {
            InitializeComponent()
;
        
}
    }
}

Comentar

  Country flag

biuquote
  • Comentário
  • Pré-visualização
Loading