AddPersonButton.cs CampusAppWP8::Utility::Lui::Button::AddPersonButton CampusAppWP8::Utility::Lui::Button //----------------------------------------------------------------------- //<copyrightfile="AddPersonButton.cs"company="BTU/IIT"> //TheMITLicense(MIT).Copyright(c)2013BTU/IIT. //</copyright> //<author>Stubbfel</author> //<date>15.10.2013</date> //<summary>Implementstheaddpersonbuttonclass</summary> //----------------------------------------------------------------------- namespaceCampusAppWP8.Utility.Lui.Button { usingSystem; usingSystem.Windows; usingSystem.Windows.Controls; usingSystem.Windows.Media.Imaging; usingCampusAppWP8.Resources; publicclassAddPersonButton:System.Windows.Controls.Button { #regionMember publicstaticreadonlyDependencyPropertyPersonIdProperty=DependencyProperty.Register("PersonID",typeof(object),typeof(AddPersonButton),newPropertyMetadata(false)); publicstaticreadonlyDependencyPropertyFunctionIndexProperty=DependencyProperty.Register("FunctionIndex",typeof(object),typeof(AddPersonButton),newPropertyMetadata(false)); privatestaticBitmapImageicon=newBitmapImage(newUri(Icons.AddContact,UriKind.Relative)); #endregion #regionConstructor publicAddPersonButton() :base() { this.Content=newImage { Source=icon }; } #endregion #regionProperty publicobjectPersonId { get{return(object)this.GetValue(PersonIdProperty);} set{this.SetValue(PersonIdProperty,value);} } publicobjectFunctionIndex { get{return(object)this.GetValue(FunctionIndexProperty);} set{this.SetValue(FunctionIndexProperty,value);} } #endregion } }