SfNavigationDrawer Prism RegionAdapter

Hi,

I'm currently implementing a RegionAdapter for Prism to show View into the SfNavigationDrawer's ContentView (https://pastebin.com/ERxxnG2Q) but when I navigate to a View already visited (loaded) it doesn't change the collection thus not changing the View.

Any solution to make it works ?

Thank you.

4 Replies 1 reply marked as answer

SS Suganya Sethuraman Syncfusion Team May 28, 2021 10:02 AM UTC

Hi Geoffrey,

Greetings from Syncfusion.

We have analyzed your query. We have prepared a sample using RegionAdapter for Prism with SfNavigationDrawer but we were unable to replicate the issue.


Please have a sample,

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/PrismNavigationDrawer-1375619888  

Since we are not aware of exact scenario of the issue, could you please check the issue with the attached sample and let us know whether it is reproduced or not? If the issue was not reproduced in this sample, please revert us by modifying the sample based on your application along with replication procedure or provide the runnable sample.  This will be helpful for us to investigate further and provide you a better solution at the earliest.


Regards,
Suganya Sethuraman. 



GE Geoffrey May 28, 2021 11:31 AM UTC

Hi,

Here is a sample of the problem: I created a region adapter for the Drawer to populate the ContentView, but when I navigate from ViewA to ViewB then try to navigate again to ViewA the ViewA doesn't show up.

Here is a video:
https://i.imgur.com/kHVFfQh.mp4



SS Suganya Sethuraman Syncfusion Team May 31, 2021 12:11 PM UTC

Hi Geoffrey,

Currently we are checking the reported issue with provided sample. We will update the full details on June 2, 2021. We appreciate your patience until then.

Regards,
Suganya Sethuraman.
 



SS Suganya Sethuraman Syncfusion Team June 2, 2021 09:07 AM UTC

Hi Geoffrey,

Thanks for your patience.

We have analyzed the provided sample. We have fixed the reported issue by implementing the INavigationAware interface in ViewAViewModel, ViewBViewModel, and FileExplorerViewModel, and returning false in IsNavigationTarget, as shown in the code snippet below.

Code snippet
 
public class ViewAViewModel : BindableBase, INavigationAware 
    { 
        public ViewAViewModel() 
        { 
 
        } 
 
        public bool IsNavigationTarget(NavigationContext navigationContext) 
        { 
            return false;  
        } 
 
        public void OnNavigatedFrom(NavigationContext navigationContext) 
        { 
             
        } 
 
        public void OnNavigatedTo(NavigationContext navigationContext) 
        { 
            
        } 
    } 

Please have a sample for your refer
ence,

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/PrismNavigationDrawer-564357944

Please let us know if you have any concerns.
 
Regards,
Suganya Sethuraman.
 


Marked as answer
Loader.
Up arrow icon