PageRenderTime 49ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/Visual Studio 2008/CSWPFNavigationUsage/App.xaml

#
XAML | 45 lines | 14 code | 1 blank | 30 comment | 0 complexity | 5ef957eac702dd2072ce665cfeb7389c MD5 | raw file
  1. <!--================================================================================
  2. WPF Navigation usage Project Overview
  3. ===============================================================================
  4. /////////////////////////////////////////////////////////////////////////////
  5. Use:
  6. The sample demonstrates navigation usages in a WPF application.
  7. /////////////////////////////////////////////////////////////////////////////
  8. Prerequisites:
  9. /////////////////////////////////////////////////////////////////////////////
  10. Demo:
  11. Step1. Build the sample project in Visual Studio 2008.
  12. Step2. When the application is run, click the hyperlink or image to navigate
  13. to another page.
  14. /////////////////////////////////////////////////////////////////////////////
  15. Code Logic:
  16. /////////////////////////////////////////////////////////////////////////////
  17. References:
  18. http://msdn.microsoft.com/en-us/library/ms750478(VS.90).aspx
  19. /////////////////////////////////////////////////////////////////////////////-->
  20. <Application x:Class="CSWPFNavigationUsage.App"
  21. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  22. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  23. xmlns:local="clr-namespace:CSWPFNavigationUsage"
  24. StartupUri="MainPage.xaml">
  25. <Application.Resources>
  26. <DataTemplate DataType="{x:Type local:MyDummy}">
  27. <StackPanel>
  28. <TextBlock Text="{Binding Property1}"/>
  29. <TextBlock Text="{Binding Property2}"/>
  30. </StackPanel>
  31. </DataTemplate>
  32. </Application.Resources>
  33. </Application>