tag:blogger.com,1999:blog-38895959.post8606990416737827959..comments2023-08-09T10:15:06.189+00:00Comments on Simon Hart: Writing designer friendly controls for Windows MobileSimon Harthttp://www.blogger.com/profile/08526568682625258690noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-38895959.post-17904538595376089562009-11-01T15:04:54.800+00:002009-11-01T15:04:54.800+00:00@Christian:
Thanks, that is probably a simpler wa...@Christian:<br /><br />Thanks, that is probably a simpler way.<br /><br />Simon.Simon Harthttps://www.blogger.com/profile/08526568682625258690noreply@blogger.comtag:blogger.com,1999:blog-38895959.post-292239183882453932009-11-01T15:02:59.971+00:002009-11-01T15:02:59.971+00:00@Daniel: I also prefer to use MVP pattern on devic...@Daniel: I also prefer to use MVP pattern on devices and I don't see how this relates to this post?<br /><br />You still need something in the view to determine what to do. I typically have a base view that contains code that pulls types off the container (IoC) but in the case of design time, I need to mock out the container. This bit of code allows you to detemine desktop/design time for that reason. Other reasons are things like custom user controls that on the desktop you need to call gdi32.dll whereas on the device you call coredll.dll.<br /><br />Simon.Simon Harthttps://www.blogger.com/profile/08526568682625258690noreply@blogger.comtag:blogger.com,1999:blog-38895959.post-58612953910857744462009-11-01T12:24:00.438+00:002009-11-01T12:24:00.438+00:00You can also check if the Environment.OSVersion.Pl...You can also check if the Environment.OSVersion.PlatformID is WinCE (run time) or not (design time)Christian Resma Hellehttps://www.blogger.com/profile/16521776612083091477noreply@blogger.comtag:blogger.com,1999:blog-38895959.post-79960140821912433372009-10-31T09:10:37.963+00:002009-10-31T09:10:37.963+00:00Hy Simon,
I prefer using Model View Presenter patt...Hy Simon,<br />I prefer using Model View Presenter pattern. This allows me to use on the view only controls which are also working in design time on the desktop. When I have special needs I sub class user controls and adapt their behaviors. The actual business logic is then put away in a presenter which is placed in another assembly. <br /><br />DanielDaniel Marbachhttp://www.planetgeek.chnoreply@blogger.com