C
C#3y ago
frknztrk

WPF Navigationservices transfer data

public partial class deneme : Page

{
private string str;

public deneme()
{
InitializeComponent();
NavigationService.LoadCompleted += NavigationService_LoadCompleted1;
}

private void NavigationService_LoadCompleted1(object sender, NavigationEventArgs e)
{
string str = (string)e.ExtraData;

MessageBox.Show(str);
}
}
public partial class deneme : Page

{
private string str;

public deneme()
{
InitializeComponent();
NavigationService.LoadCompleted += NavigationService_LoadCompleted1;
}

private void NavigationService_LoadCompleted1(object sender, NavigationEventArgs e)
{
string str = (string)e.ExtraData;

MessageBox.Show(str);
}
}
private void click_event(object sender, RoutedEventArgs e)
{
deneme de = new deneme();
NavigationService.Navigate(de, "string data");
}
private void click_event(object sender, RoutedEventArgs e)
{
deneme de = new deneme();
NavigationService.Navigate(de, "string data");
}
2 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
frknztrk
frknztrkOP3y ago
NavigationService.Navigate(de, "string data"); shouldn't be
Want results from more Discord servers?
Add your server