This project is read-only.

Date Range Selector

Quality Band - Preview
Status - In Use

About

DateRangeSlider.jpg
Date Range Control, for simple selection of a date range with Zoomable fidality
  • Added a throttled changed event, 500ms delay when the user stops interaction, useful for webservice calls for data
  • Added calculated labels to the bar to indicate the range
  • Dynamic Date/Time formater to show:
    • Time when range < day
    • Day when range < week
    • Week when range < month
    • Month when range < year
    • Year when range < decade
    • etc.

Usage

Bing Maps example:
XAML:
<UserControl x:Class="ExampleControlBing.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:m="clr-namespace:Microsoft.VirtualEarth.MapControl;assembly=Microsoft.VirtualEarth.MapControl" 
    xmlns:d="clr-namespace:DeepEarth.Client.Controls.DateRangeSlider;assembly=DeepEarth.Client.Controls.DateRangeSlider">
    <Grid x:Name="LayoutRoot" Background="White">
        <m:Map x:Name="map" ScaleVisibility="Collapsed" NavigationVisibility="Collapsed" />
        <d:DateRangeSlider x:Name="dateRange" Height="80" VerticalAlignment="Bottom" Margin="100,8,100,100" />
    </Grid>
</UserControl>


Reference:
  • DeepEarth.Client.Common.dll
  • DeepEarth.Client.Controls.DateRangeSlider.dll

Full Blend support, simply add these DLLs, then the control appears in your toolbox, drop on the page. Feel free to override the template.

Developers

soulsolutions

Roadmap

Version Feature Date
0.1 Initial Architecture 14/07/2009
0.2 Moved to Preview 15/07/2009
0.3 Added new features 17/07/2009

Tasks

  • Complete MaxRange and MinRange properties - forces both the actual values and the total display bounds within range.
  • Add increment property to snap values to a specific increment eg:
    • minute
    • hour
    • day
    • month
    • year

Last edited Jul 17, 2009 at 1:07 AM by soulsolutions, version 4

Comments

crpietschmann Oct 15, 2009 at 3:42 PM 
This control isn't really mapping specific. This may be something that would be worth breaking out into a separate project of its own. Also, you could maybe see if the guys running the Silverlight Toolkit project (http://silverlight.codeplex.com/) would maybe want to integrate it into their project. Just a thought.