DefaultHeader.xaml.cs CampusAppWP8::Utility::Lui::Header::DefaultHeader CampusAppWP8::Utility::Lui::Header //----------------------------------------------------------------------- //<copyrightfile="DefaultHeader.xaml.cs"company="BTU/IIT"> //TheMITLicense(MIT).Copyright(c)2013BTU/IIT. //</copyright> //<author>fiedlchr</author> //<date>15.10.2013</date> //<summary>Implementsthedefaultheader.xamlclass</summary> //----------------------------------------------------------------------- namespaceCampusAppWP8.Utility.Lui.Header { usingSystem.Windows; usingSystem.Windows.Controls; usingCampusAppWP8.Resources; publicpartialclassDefaultHeader:UserControl { publicstaticreadonlyDependencyPropertyAppTitleProperty=DependencyProperty.Register("AppTitle",typeof(string),typeof(DefaultHeader),newPropertyMetadata(null)); publicstaticreadonlyDependencyPropertyHeaderNameProperty=DependencyProperty.Register("HeaderName",typeof(string),typeof(DefaultHeader),newPropertyMetadata(null)); publicstaticreadonlyDependencyPropertyProgressVisibilityProperty=DependencyProperty.Register("ProgressVisibility",typeof(Visibility),typeof(DefaultHeader),newPropertyMetadata(null)); publicDefaultHeader() { this.InitializeComponent(); this.AppTitle=AppResources.ApplicationTitle; this.ProgressVisibility=Visibility.Collapsed; } publicstringAppTitle { get { return(string)this.GetValue(AppTitleProperty); } set { this.SetValue(AppTitleProperty,value); } } publicstringHeaderName { get { return(string)this.GetValue(HeaderNameProperty); } set { this.SetValue(HeaderNameProperty,value); } } publicVisibilityProgressVisibility { get { return(Visibility)this.GetValue(ProgressVisibilityProperty); } set { this.SetValue(ProgressVisibilityProperty,value); } } } }