Print Page | Close Window

many ViewModels to look the same View

Printed From: IdeaBlade
Category: Cocktail
Forum Name: Community Forum
Forum Discription: A professional application framework using Caliburn.Micro and DevForce
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3419
Printed Date: 21-Sep-2025 at 9:37am


Topic: many ViewModels to look the same View
Posted By: giotis
Subject: many ViewModels to look the same View
Date Posted: 02-May-2012 at 9:31am
is possible  many ViewModels to look the same View,
i.e. AddressTypeSelectorViewModel, RateTypeSelectorViewModel, PhoneTypeSelectorViewModel
may have the same TypeSelectorView ?

If it is possible you could embed it into some version of Cocktail ?



Replies:
Posted By: mgood
Date Posted: 02-May-2012 at 2:33pm
Yes, that is possible by defining your own convention by how CM finds the View that goes with the ViewModel.
 
More to this here: http://caliburnmicro.codeplex.com/wikipage?title=Using%20the%20NameTransformer&referringTitle=Documentation - http://caliburnmicro.codeplex.com/wikipage?title=Using%20the%20NameTransformer&referringTitle=Documentation
 
When I get a chance I'll take a stab at it in TempHire.


Posted By: giotis
Date Posted: 02-May-2012 at 3:47pm
before I send to you this post I read the same doc

xexe thanks



Print Page | Close Window