Questions tagged [prism-6]

Prism 6 is a fully open source version of the Prism guidance originally produced by Microsoft patterns & practices. The core team members were all part of the p&p team that developed Prism 1 through 5, and the effort has now been turned over to the open source community to keep it alive and thriving to support the .NET community.

Prism is a framework for building loosely coupled, maintainable, and testable XAML applications in WPF, Windows 10 UWP, and Xamarin Forms. Separate releases are available for each platform and those will be developed on independent timelines. Prism provides an implementation of a collection of design patterns that are helpful in writing well-structured and maintainable XAML applications, including MVVM, dependency injection, commands, EventAggregator, and others. Prism's core functionality is a shared code base in a Portable Class Library targeting these platforms. Those things that need to be platform specific are implemented in the respective libraries for the target platform. Prism also provides great integration of these patterns with the target platform. For example, Prism for UWP and Xamarin Forms allows you to use an abstraction for navigation that is unit testable, but that layers on top of the platform concepts and APIs for navigation so that you can fully leverage what the platform itself has to offer, but done in the MVVM way.

Prism 6 is a fully open source version of the Prism guidance originally produced by Microsoft patterns & practices. The core team members were all part of the p&p team that developed Prism 1 through 5, and the effort has now been turned over to the open source community to keep it alive and thriving to support the .NET community.

148 questions
0
votes
1 answer

Access App Global variables in Xamarin Prism.Forms Module (Prism.Modularity)

I am developing Xamarin Forms cross platform Application with Prism.Forms. Trying to implement modularity in my app using Prism.Modularity. I have created couple of modules (xamarin forms portable class libraries) in addition to the existing default…
Uday
  • 1
  • 2
0
votes
1 answer

How to create and use a custom DataGridRow Trigger

I'm using Prism 6 to create my application, and I have a need to color the background of DataGridRows based on the date. I started creating a Blend SDK Trigger to accept two parameters: MinDate and MaxDate. The action would then set the background…
Ken
  • 57
  • 1
  • 11
0
votes
1 answer

Prism xamarin Doubts .Can you clarify?

I am trying to understand Prism Xamarin navigation and how to relate to xamarin itself Could somebody correct me where I am wrong? Xamarin Prism Navigation.PopAsync = NavigationService.NavigateAsync(uri, …
developer9969
  • 4,628
  • 6
  • 40
  • 88
0
votes
0 answers

Difference between IUnityContainer.RegisterType() and UnityContainerExtensions.RegisterType()?

I am running a WPF Application using Prism and Unity for DI. I have a Shell: MainWindow.xaml, A Container: AppContainer.xaml, and the startup view: StartupView.xaml. MainWindow.xaml
Moe45673
  • 854
  • 10
  • 20
0
votes
1 answer

How can I set two Content region in a WPF apps using Prism 6

I have a scenario. I am writing a WPF app using Prism 6.0, where I want to POP up a Child Window first that will have three buttons for three different UI design. Similar like this. Based upon the Selection I will update the MainWindowViewModel…
Debhere
  • 1,055
  • 2
  • 19
  • 41
0
votes
0 answers

Prism for Xamarin Forms Absolute Navigation with URI not working properly in Windows 8.1

I'm using Xamarin.Forms 2.3.3.193 and Prism.Forms 6.3.0 My app is crashing in Windows 8.1 when navigating with Absolute URI Pls see below my App Navigation Flow. 1 - App.xaml.cs if (!IsUserLoggedIn) { …
Uday
  • 1
  • 2
0
votes
1 answer

Creating a LightInject Bootstrapper for Prism, missing registration of region adapters

I'm trying to create a LightInject bootstrapper for Prism, I've copied the code of the NinjectBootstrapper (source) and replaced Ninject's IKernel with LightInject's IServiceContainer. I've also created and registered a…
Roy T.
  • 9,429
  • 2
  • 48
  • 70
0
votes
1 answer

Prism: ViewModelLocator creates the view model instance(s) but how can I target it?

Is there a way whereby I can identify a ChildViewModel instance, which was created by prism's ViewModelLocator, upon opening it's corresponding window? I would like to trigger that the ChildViewModel should load it's data, based on parameters…
softbear
  • 485
  • 6
  • 16
0
votes
2 answers

How can I dispose a view when navigating away with Prism?

I'm experimenting with Prism and have created a simple application consisting of a main window with a Prism region, along with two "child" views (and VMs). Each of these child views has a button, and clicking this simply navigates to the other view,…
Andrew Stephens
  • 9,413
  • 6
  • 76
  • 152
0
votes
1 answer

Prism 6 Add Authentication LoginWindow and Mainwindow

I have created WPF C# Project with Prism 6, and my Project Based on https://github.com/PrismLibrary/Prism-Samples-Wpf/tree/master/17-BasicRegionNavigation i want to Add Authentication to it :) , just simple Login and Log out... i have MainWindow…
nbdized
  • 105
  • 2
  • 12
0
votes
1 answer

Xamarin.Forms, Prism.Forms, Android Lolliop 5.1.1, Navigation transitions/animations

I have a problem when using Xamarin.Forms in conjunction with Prism.Forms (Unity) on an Android 5.1.1 (Lollipop) device. Specifically, if I navigate to/from forms with "animation: true" those forms do not always work correctly afterward -…
Martin Robins
  • 6,033
  • 10
  • 58
  • 95
0
votes
2 answers

When using Prism on Xamarin, how can I warn if the names on the View, and ViewModel don't match?

Prism uses MVVM style convention naming to bind a View to a ViewModel on an Xamarin application. I recently altered some of the demo code and realized, after spending way too much time debugging, that the pagename didn't match the view. How can I…
makerofthings7
  • 60,103
  • 53
  • 215
  • 448
0
votes
1 answer

Should there be a Prism . UnloadModule? (Xamarin Forms)

I'm interested in having many dynamic assemblies loaded on demand. Since it's possible all these modules may create too much memory pressure, I want to unload them when directed by the OS, or when lack of activity is detected. How can I unload a…
makerofthings7
  • 60,103
  • 53
  • 215
  • 448
0
votes
1 answer

Xamarin.Forms, using the Prism.Forms NavigationService

I am trying to implement a login scenario with Xamarin Forms and Prism. My application root page is a MasterDetail page (HomeMasterDetailPage); this being used to provide the side menu. What I am trying to do is to have the HomeMasterDetailPage page…
Martin Robins
  • 6,033
  • 10
  • 58
  • 95
0
votes
0 answers

How to use DelegateCommand in ViewModelBase?

I have a ViewModelBase that looks like the following: public class ViewModelBase : BindableBase, INavigationAware, IActiveAware, IDockAware { public ViewModelBase() {SaveCommand = new DelegateCommand(OnSave, CanSave);} public…
kcabral
  • 35
  • 1
  • 8