/Release/Silverlight4/SampleSource/Controls.Samples/Navigation/Page1.xaml.cs

# · C# · 26 lines · 13 code · 3 blank · 10 comment · 0 complexity · 6cc5243337ebbecb7ea0509099332d1f MD5 · raw file

  1. // (c) Copyright Microsoft Corporation.
  2. // This source is subject to the Microsoft Public License (Ms-PL).
  3. // Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
  4. // All other rights reserved.
  5. using System.Linq;
  6. using System.Windows.Navigation;
  7. namespace System.Windows.Controls.Samples
  8. {
  9. /// <summary>
  10. /// A Page that displays an image to which a frame can navigate.
  11. /// </summary>
  12. public partial class Page1 : Page
  13. {
  14. /// <summary>
  15. /// Initializes a Page1.
  16. /// </summary>
  17. public Page1()
  18. {
  19. InitializeComponent();
  20. DataContext = Photograph.GetPhotographs().First().Image;
  21. }
  22. }
  23. }