DefaultTopBar.xaml.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Runtime.InteropServices.WindowsRuntime;
  6. using Windows.Foundation;
  7. using Windows.Foundation.Collections;
  8. using Windows.UI.Xaml;
  9. using Windows.UI.Xaml.Controls;
  10. using Windows.UI.Xaml.Controls.Primitives;
  11. using Windows.UI.Xaml.Data;
  12. using Windows.UI.Xaml.Input;
  13. using Windows.UI.Xaml.Media;
  14. using Windows.UI.Xaml.Navigation;
  15. // The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
  16. namespace Breda_Tour.CustomControls
  17. {
  18. /// <summary>
  19. /// An empty page that can be used on its own or navigated to within a Frame.
  20. /// </summary>
  21. public sealed partial class DefaultTopBar : UserControl
  22. {
  23. public string MySymbol {
  24. get { return (string)GetValue(SymbolProperty); }
  25. set { SetValue(SymbolProperty, value); }
  26. }
  27. public string Header
  28. {
  29. get { return (string)GetValue(HeaderProperty); }
  30. set { SetValue(HeaderProperty, value); }
  31. }
  32. public static readonly DependencyProperty SymbolProperty =
  33. DependencyProperty.Register("MySymbol", typeof(string), typeof(DefaultTopBar), null);
  34. public static readonly DependencyProperty HeaderProperty =
  35. DependencyProperty.Register("Header", typeof(string), typeof(DefaultTopBar), null);
  36. public DefaultTopBar()
  37. {
  38. this.InitializeComponent();
  39. this.DataContext = this;
  40. }
  41. }
  42. }