Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Page Reload issue

Page Reload issue

Scheduled Pinned Locked Moved WPF
help
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Santhosh Sebastian Mattathil
    wrote on last edited by
    #1

    I want to reload the same page when the user clicks on the same link again. As said in some forums I tried NavigationService.Refresh but it says Refresh is not available in NavigationService. Iam using Sl4. Anyhelp will be appreciated. Thanks Santhosh

    Santhosh

    R 1 Reply Last reply
    0
    • S Santhosh Sebastian Mattathil

      I want to reload the same page when the user clicks on the same link again. As said in some forums I tried NavigationService.Refresh but it says Refresh is not available in NavigationService. Iam using Sl4. Anyhelp will be appreciated. Thanks Santhosh

      Santhosh

      R Offline
      R Offline
      RobCroll
      wrote on last edited by
      #2

      There are a number of ways to skin this cat. I don't know if this is best practise but one of the simpler ways is to create a static property that is a pointer to the page. If null open as normal with the constructor setting the static property. If not null then call a method within the page (ie. RefreshPage) which will do the work to refresh the page as required.

      S 1 Reply Last reply
      0
      • R RobCroll

        There are a number of ways to skin this cat. I don't know if this is best practise but one of the simpler ways is to create a static property that is a pointer to the page. If null open as normal with the constructor setting the static property. If not null then call a method within the page (ie. RefreshPage) which will do the work to refresh the page as required.

        S Offline
        S Offline
        Santhosh Sebastian Mattathil
        wrote on last edited by
        #3

        Thanks Robert for the reply But how do we refresh it (I mean the code)..

        Santhosh

        R 1 Reply Last reply
        0
        • S Santhosh Sebastian Mattathil

          Thanks Robert for the reply But how do we refresh it (I mean the code)..

          Santhosh

          R Offline
          R Offline
          RobCroll
          wrote on last edited by
          #4

          Well assuming the page is already displayed, by refreshing I mean applying some UI logic, displaying/hiding/enabling/disabling controls, requesting and displaying data, that sort of thing.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups