Calendar picker from System.Windows.Controls : Calendar « UI Controls « Silverlight






Calendar picker from System.Windows.Controls

Calendar picker from System.Windows.Controls
    
<UserControl x:Class='SilverlightApplication3.MainPage'
    xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' 
    xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'
    xmlns:d='http://schemas.microsoft.com/expression/blend/2008' 
    xmlns:mc='http://schemas.openxmlformats.org/markup-compatibility/2006' 
    xmlns:swcx="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
    mc:Ignorable='d' 
    d:DesignWidth='640' 
    d:DesignHeight='480'>
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.ColumnDefinitions>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Border Grid.Column="0" Grid.Row="0" Grid.RowSpan="2" BorderBrush="Black" BorderThickness="1">
            <Canvas>
                <swcx:DatePicker x:Name="datePicker" Canvas.Top="30" Canvas.Left="65"/>
            </Canvas>
        </Border>
        <Border Grid.Column="1" Grid.Row="0" Grid.RowSpan="2" BorderBrush="Black" BorderThickness="1"> 
            <Canvas>
                <swcx:Calendar x:Name="calendar" Canvas.Top="30" Canvas.Left="15" SelectionMode="SingleRange"/>
            </Canvas>
        </Border>
    </Grid>
</UserControl>

   
    
    
    
  








Related examples in the same category

1.Creating a CalendarCreating a Calendar
2.Calendar controlCalendar control
3.Calendar selection changed eventCalendar selection changed event