Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8818087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:00:50+00:00 2026-06-14T05:00:50+00:00

I have a WPF application where i use Frame to load Page ‘is. On

  • 0

I have a WPF application where i use Frame to load Page‘is. On the Page i call my custom contol <Controls:OrderDataGrid x:Name="cntrlOrderDataGrid" />.
On this control i have DataGrid what is filled with data when i navigate to the Page inside the Frame. Sometimes the loading takes a while and i need to know when the DataGrid finishes loading, so i have set the Loaded event:

private void dgOrders_Loaded(object sender, RoutedEventArgs e)
{ }

But i cant figure out could i notify the MainWindow that the DataGrid has ended loading. When i set the Loaded event to the Frame then its fired right away without waiting for my custom control with datagrid.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T05:00:51+00:00Added an answer on June 14, 2026 at 5:00 am

    You need to effectively pass the event up.

    The Page that holds the datagrid needs to add a new event; something like OrdersLoaded. When the datagrid finishes loading fire that event. The main window can then subscribe to that event, thus telling it when the orders are loaded.

    public event Action OrdersLoaded;
    
    private void dgOrders_Loaded(object sender, RoutedEventArgs e)
    {
        if (OrdersLoaded != null)
            OrdersLoaded();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WPF application where I have defined custom commands that use the
I have a WPF .NET 3.5 SP1 application that is in use on at
I have WPF Application where I have One main form and other user controls
I have a WPF-application with a MediaElement which I use to run a video.
I have a WPF application and I use external library for generating documents. This
I have this WPF application using NHibernate and lazy data loading. I also use
I have a WPF application with three custom configurations. The are as follows: Debug
I have a wpf application (I use CAL) for a tablet pc. I created
I have a frame control in a WPF app which has an HTML page
I have a WPF application in which I use entity framework with mysql connector/net

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.