private void HardwareButtons_BackPressed(object sender, BackPressedEventArgs e)
{
Frame frame = Window.Current.Content as Frame;
if (frame == null)
{
return;
}
if (frame.CanGoBack)
{
frame.GoBack();
e.Handled = true;
}
}
while using this code in windows 8.1 silverlight i get error
Error 1 :The type or namespace name 'Frame' could not be found (are you missing a using directive or an assembly reference?)
Error 2 :The name 'Window' does not exist in the current context
plz help! Thank you in adnvance