c# - Refresh WPF usercontrol when navigated to it -


i'm new wpf , i'm making app gets data ms sql server, places table , allows modify it. i'm using m:ui template make app metro-styled. app structure: mainwindow.xaml , usercontrols placed itemsource="page" etc. navigation between usercontrols made links , linkgroups, generated upon mainwindow after successful login.

what want launch method gets data sql every time go of usercontrols. data retrieved server sqldatareader , placed observablecollection (one usercontrol - 1 collection). @ moment method works fine when first go of usercontrols, because it's placed constructor of usercontrol class, , want changes in tables when other table edited. how can this? there event can raise or other way update table?

since communicating or background tasks running server might take overhead , bit of memory wastage prefer u start using push notification :) here's link guide through push notification

push notification overview

raw notifications

please go through them design proper object pass app , display in table :) once receive change notification can map object table using .... or read through sql reader records wont practice send records can go ahead fetch latest data , append table ... next time when user visits page refreshed :)


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -