regions

Prism regions not displaying registered views

I'm using PRISM in a SilverLight 4 application. I have a problem where views registered to some regions doesn't get displayed. When loading a module at startup I register some views to regions as follows: RegionManager.RegisterViewWithRegion("MyRegion1", typeof(IMySubView1)); RegionManager.RegisterViewWithRegion("MyRegion2", typeof(IMy...

Assign a block to more than 1 region

How do I assign a block (the very same block) twice or thrice to different regions? The idea is not to have the same block on the same page more than once, but in different locations on different pages, so four 'displays' would be available: Block X in the $top_left region Block X in the $top_right region Block X in the $above_content ...

What is the preferred solution to dealing with dozens of route mappings in Global.asax

I was reading the following answer about regions on the topic of programming standards: http://programmers.stackexchange.com/questions/1338/worst-coding-standard-youve-ever-had-to-follow/1937#1937 I tend to agree with what @Cumbayah is saying, but I have to admit that there's one place where I'm relying on regions to keep the code tidy...

How can I automatically open regions in visual studio 2010

I'd like the regions that show up in my visual studio window to be open by default when I open a code file. Is this possible in VS2010, or is there an extension that will do that for me? Barring that, is my request a thing that be written in an extension? ...

notepad++ user defined regions with folding

I can't figure out how to configure notepad++ to display regions for specific user defined keywords. I have i big trace file which show the start and the end of a procedure. The trace file looks like this: Beginn abc.def; ... Beginn ghi.jkl; ... Ende ghi.jkl; ... Ende abc.def; I would like to fold those regions like th...

Emacs technique for comparing sections of documents?

I'd like to be able to open two windows in Emacs, select a region of text in each window, and get a comparison of the difference between the two selections. This would be very handy for a large-scale maintenance project, where I'm working on a version tree with multiple branches, lots of copy/paste, and code that is being moved around ...

MVVM-PRISM, how to display multiple instances of a view in a region/ItemsControl

Hi! I am building an module for an application that is based on MVVM, CAL and PRISM. I'm fairly new to these concepts, and trying to get my head around all the patterns and right now I'm struggling with the following problem: I am in the need of creating multiple instances of the same View. Each one of the views need to bind to it's o...

An internal error occurred while processing dirty regions

I got this error message in Eclipse today. Any idea what went wrong? ...

Algorithm for finding a set of regions containing a cell

I am working with some spreadsheet data and I have a set of cell regions that are of arbitrary bounds. Given any cell, what is the fastest way to determine the subset of regions which contain the cell? Currently, the best I have is to sort the regions with the primary sort field being the region's starting row index, followed by its en...