Answer the question
In order to leave comments, you need to log in
How to access UI page elements loaded into a Frame from a Window element?
There is a Window element that has a XAML Frame element. The page is loaded there if necessary:
namespace N
{
public partial class MainWindow : Window
{
private Page HiringPage;
public MainWindow()
{
InitializeComponent();
}
private void Hrirng_Click(object sender, RoutedEventArgs e)
{
HiringPage = new Pages.HiringPage();
MainFrame.Content = null;
MainFrame.Content = HiringPage;
}
private void FastPrint_Click(object sender, RoutedEventArgs e)
{
HiringPage. // тут я пытаюсь получить доступ к текстбоксам которые в HiringPage размещены.
}
}
}
wpf get page cs from another window
wpf get page ui from another window
x:FieldModifier="public"
- did not help. Then I thought to make a crutch and create a public method inside the HiringPage .cs file, which will return the data I need, but this does not work either. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question