1.
<Controls:ProgressOverlay Name="progressOverlay" > <Controls:ProgressOverlay.Content> <TextBlock>Loading</TextBlock> </Controls:ProgressOverlay.Content></Controls:ProgressOverlay>
A text progress bar is searched on the Internet, and the code is concise. However, every time we join the project, we find it useless. Why?
Cause: the Coding4Fun is the old DLL and cannot be used in version 1.61. So we need to reference the DLL of the old version;
2.
You can use SystemTray to start with the design interface's XAML deployment case and program release. First<phone:PhoneApplicationPage>Add the following conformances to the parameter:
<Phone: PhoneApplicationpage... xmlns: shell = "clr-namespace: Microsoft. phone. shell; assembly = Microsoft. phone "... shell: SystemTray. backgroundColor = "<Background Color>" shell: SystemTray. foregroundColor = "<foreground colors>" shell: SystemTray. opacity = "<transparency>" shell: SystemTray. isVisible = "<indicates whether an action is triggered>">... </phone: phoneapplicationpage>
These features are used to specify the SystemTray to control some basic sensory elements, but there is still no way to make it a response, you also need to specify ProgressIndicator in the program. The program operation example is as follows:
Using Microsoft. phone. shell ;... // create a ProgressIndicator and set it to SystemTrayProgressIndicator pi = new ProgressIndicator (); pi. text = "Loading... "; pi. isIndeterminate = true; pi. isVisible = true; SystemTray. setProgressIndicator (this, pi );... // enable SystemTray to indicate or hide SystemTray. isVisible = <true | false>;
The effect is as follows (BackgrounColor="Blue" ForegroundColor="White"):