Setting Dependencie Properties for a UserControl

Topics: Prism v2 - Silverlight 2
Feb 26, 2009 at 3:23 PM
I am porting an existing Silverlight application to Prism v2 and am moving logic to Modules, etc. In what has now become my Shell.xaml, I had the following XAML:

        <!-- Placed here so that the Z-Order would be over the top of the other controls -->
        <Views:LibraryFilter x:Name="LibraryFilter"
                             Grid.Row="0"
                             Grid.ColumnSpan="2"
                             Visibility="Collapsed"
                             FullFlowLayout="False"
                             HiddenCategories="999,4,5,7,8,9"
                             FilterHeight="400"/>

As you can probably see, I have 3 additional DependencyProperties that wish to be exposed to the consumer of the control. As I understand regions, I would need to replace the above with something like:

        <ItemsControl Name="LibraryFilterRegion"
                      Grid.Row="0"
                      Grid.ColumnSpan="2"                     
                      Regions:RegionManager.RegionName="LibraryFilterRegion" />

What would be the recommended approach to still exposing this properties to be edited by a designer in Blend, etc?