DefaultTopBar.xaml.cs 954 B

123456789101112131415161718192021222324252627282930
  1. using Windows.UI.Xaml;
  2. using Windows.UI.Xaml.Controls;
  3. namespace Breda_Tour.CustomControls
  4. {
  5. public sealed partial class DefaultTopBar : UserControl
  6. {
  7. public string MySymbol {
  8. get { return (string)GetValue(SymbolProperty); }
  9. set { SetValue(SymbolProperty, value); }
  10. }
  11. public string Header
  12. {
  13. get { return (string)GetValue(HeaderProperty); }
  14. set { SetValue(HeaderProperty, value); }
  15. }
  16. public static readonly DependencyProperty SymbolProperty =
  17. DependencyProperty.Register("MySymbol", typeof(string), typeof(DefaultTopBar), null);
  18. public static readonly DependencyProperty HeaderProperty =
  19. DependencyProperty.Register("Header", typeof(string), typeof(DefaultTopBar), null);
  20. public DefaultTopBar()
  21. {
  22. this.InitializeComponent();
  23. this.DataContext = this;
  24. }
  25. }
  26. }