<Application x:Class="SimpleXamlApp.MyApp" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" StartupUri="MainWindow.xaml" Exit ="AppExit" > <x:Code> void AppExit(object sender, ExitEventArgs e) { MessageBox.Show("App has exited"); } </x:Code> </Application>
24.154.Xaml | ||||
24.154.1. | Property Inheritance | |||
24.154.2. | Attached Properties | |||
24.154.3. | Property Element Syntax | |||
24.154.4. | Embedded Code in Window.xaml | |||
24.154.5. | Xaml Button with namespace | |||
24.154.6. | Markup Extensions for Button | |||
24.154.7. | Markup Extensions with Property Elements.xaml | |||
24.154.8. | Inner element with xml namespace | |||
24.154.9. | Embedded code for Application | |||
24.154.10. | Set button properties with Linq style | |||
24.154.11. | Xaml and Code behind | |||
24.154.12. | Use Linq to get control from a container | |||
24.154.13. | My First WPF App with code behind | |||
24.154.14. | Create Button from Xaml string | |||
24.154.15. | Reference name defined in Xaml in cs file | |||
24.154.16. | Insert new line character to xaml attribute |