Try with the script it will monitor the MAC address of the device. It will also helpful for the computer MAC address.
Code:
public partial class MainPage : PhoneApplicationPage
{
DispatcherTimer timer;
// Constructor
public MainPage()
{
InitializewirelessMACComponent();
timer = new DispatcherTimer();
timer.Interval = new TimeSpan(0,0,10);
timer.Tick += new EventHandler(timer_Tick);
timer.Start();
}
void timer_Tick(object sender, EventArgs e)
{
try
{
// These are TextBlock controls that are created in the page’s XAML file
MemoryTextBlock.Text = DeviceExtendedProperties.GetValue("ApplicationCurrentMemoryUsage").ToString();
PeakMemoryTextBlock.Text = DeviceExtendedProperties.GetValue("ApplicationPeakMemoryUsage").ToString();
}
catch (Exception ex)
{
MemoryTextBlock.Text = ex.Message;
}
}
}
Bookmarks