Shawn wildermuth released a new WP7 tool Library Project on codeplex, including WP7 controls, conversion classes, and help classes.
Project address: http://phoney.codeplex.com/
This is the project solution and contains the sample file.
If you have not installed the Silverlight toolkit, run it directly.ProgramThe following error will be reported:Because the testing library of Silverlight is not installed when dev10 is installed by default.
Project Description
This project contains some classes and controls for Windows Phone 7 applications, as shown below:
Standard converter, some controls, phone logs, fade-in and fade-out messages, bitlyhelper, and Twitter help
Instance
Bitlyhelper class
A class that shortens the URI by setting key-value pairs of its own keywords/usernames
Usage:
Bitlyhelper. Setcredentials ("Mybitlyapikey","Mybitlyusername");
Bitlyhelper. Shorten (Http://phoney.codeplex.com", (Result, error) =>
{
If(Error! =Null)
{
MessageBox. Show (String. Concat ("Error shortening URL :", Error. Message ));
}
Else
{
MessageBox. Show (result, 3000 );
}
});
Fadingmessage class
Create a prompt message that is displayed as follows:
Fadingmessage. Showtextmessage ("Saved ...");
Of course, you can also customize the message style:
FadingmessageMSG =NewFadingmessage()
{
Messagetoshow = themessage,
Verticalalignment =Verticalalignment. Top,
Horizontalalignment =Horizontalalignment. Right
};
MSG. Show (3000 );// 3 seconds
Phone log
This class is used to help you record simple logs in phone. The usage is as follows:
Phonelogger. Logerror ("Test logging message");
VaR log =Phonelogger. Logcontents;
This project also contains color, brush, font and other resources.
Project source file: http://phoney.codeplex.com/
Source files that can be directly run are provided here: