PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 2ms 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/////////////////////////////////////////////////////////////////////////////
 6Use:
 7
 8The sample demonstrates navigation usages in a WPF application.
 9   
10/////////////////////////////////////////////////////////////////////////////
11Prerequisites:
12
13
14/////////////////////////////////////////////////////////////////////////////
15Demo:
16
17Step1. Build the sample project in Visual Studio 2008.
18
19Step2. When the application is run, click the hyperlink or image to navigate
20to another page.
21
22/////////////////////////////////////////////////////////////////////////////
23Code Logic:
24    
25/////////////////////////////////////////////////////////////////////////////
26References:
27
28http://msdn.microsoft.com/en-us/library/ms750478(VS.90).aspx  
29
30/////////////////////////////////////////////////////////////////////////////-->
31    
32    <Application x:Class="CSWPFNavigationUsage.App"
33    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
34    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
35    xmlns:local="clr-namespace:CSWPFNavigationUsage"
36    StartupUri="MainPage.xaml">    
37    <Application.Resources>
38        <DataTemplate DataType="{x:Type local:MyDummy}">
39            <StackPanel>
40                <TextBlock Text="{Binding Property1}"/>
41                <TextBlock Text="{Binding Property2}"/>
42            </StackPanel>
43        </DataTemplate>
44    </Application.Resources>
45</Application>