NavigationCommands.Refresh Proprietà

Definizione

Ottiene il valore che rappresenta il Refresh comando.

public:
 static property System::Windows::Input::RoutedUICommand ^ Refresh { System::Windows::Input::RoutedUICommand ^ get(); };
public static System.Windows.Input.RoutedUICommand Refresh { get; }
static member Refresh : System.Windows.Input.RoutedUICommand
Public Shared ReadOnly Property Refresh As RoutedUICommand

Valore della proprietà

Comando indirizzato dell'interfaccia utente.

Valori predefiniti
Movimento della chiave F5
Testo dell'interfaccia utente Aggiornare

Esempio

Nell'esempio seguente viene illustrato come usare Refresh insieme a un oggetto Frame. Frame fornisce un'implementazione che risponde al Refresh comando ricaricando il contenuto correnteFrame.

<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<!-- NavigationCommands.Refresh -->
<MenuItem
  Command="NavigationCommands.Refresh"
  CommandTarget="{Binding ElementName=frame}" />
<!-- The following Frame is used to process NavigationCommands.Refresh commands -->
<Frame Name="frame" NavigationUIVisibility="Hidden" Source="Page1.xaml" />
</Window>

Commenti

Questo comando indica l'intenzione di aggiornare la pagina corrente.

Frame e NavigationWindow implementano il supporto per rispondere al Refresh comando, anche se non è necessario usarlo. In molti casi l'implementazione in risposta a tale comando è responsabilità del writer dell'applicazione.

Utilizzo degli attributi XAML

<object property="NavigationCommands.Refresh"/>

Si applica a

Vedi anche