Click here to Skip to main content
15,922,007 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to load a user control which acts as the app's dashboard. The dashboard has a scroll viewer with inertia turned on, when scrolling when the dashboard is loaded in the panel, the animations tend to blur the text and lag noticeably. But when I run the dashboard alone(as the main window) everything works fine. Is there a way to load it in a panel and maintain smooth animations ??

Thank you so much for your attention and participation.

What I have tried:

Dashboard Dasn = new Dashboard();
EmpManage Emp = new EmpManage();

public MainUI()
    if (Mains == null)
        Mains = this;


//adding the dashboard at MainUI loaded event
private void Window_Loaded(object sender, RoutedEventArgs e)

Updated 6-Dec-22 20:51pm
[no name] 3-Dec-22 8:34am    
Why is it in a "Panel"? It doesn't even make sense since Panel is an abstract class.
0071974 4-Dec-22 9:02am    
What would you suggest or recommend?
im fairly new to WPF
BillWoodruff 5-Dec-22 0:17am    
Describe your usage of 'Panel' in terms of structure: href="

please review:
0071974 7-Dec-22 2:46am    
Thanks, @BillWoodruff, but I fixed it with another method. thanks for your time.

1 solution

I finally fixed it. I used a TabControl to achieve this.
Here's the solution I used.

TabItem _UserPage;
private void BtnPayroll_Click(object sender, RoutedEventArgs e)
     TxtOpenPage.Text = "Payroll management";

     var userControls = new Payroll();
     _UserPage = new TabItem { Content = userControls };
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900