Intersoft ClientUI Documentation
GotoToday Property
See Also  Send Feedback
Intersoft.Client.UI.Aqua.UXInput Namespace > DateTimeCommands Class : GotoToday Property






Identifies the GotoToday routed command.

Syntax

Visual Basic (Declaration) 
Public Shared ReadOnly Property GotoToday As RoutedUICommand
Visual Basic (Usage)Copy Code
Dim value As RoutedUICommand
 
value = DateTimeCommands.GotoToday
C# 
public static RoutedUICommand GotoToday {get;}
Delphi 
public read-only property GotoToday: RoutedUICommand; static; 
JScript 
public static function get GotoToday : RoutedUICommand
Managed Extensions for C++ 
public: __property static RoutedUICommand* get_GotoToday();
C++/CLI 
public:
static property RoutedUICommand^ GotoToday {
   RoutedUICommand^ get();
}

Remarks

UXCalendar is included with predefined commands for navigation which integrated in  DateTimeCommands that you can use in your application. To learn about using commands in your application, see Commanding Overview.
The following are built-in commands that related to date time operation. You can use these commands to navigate to specific date based on each command charactersitic.

Commands Description
GotoDate Command action to navigate to a certain date.
GotoToday Command action to navigate to today date.
GotoNextDay Command action to navigate to next day.
GotoNextMonth Command action to navigate to next month.
GotoNextYear Command action to navigate to next year.
GotoNextDecade Command action to navigate to next decade.
GotoNextCentury Command action to navigate to next century.
GotoPreviousDay Command action to navigate to previous day.
GotoPreviousMonth Command action to navigate to previous month.
GotoPreviousYear Command action to navigate to previous year.
GotoPreviousDecade Command action to navigate to previous decade.
GotoPreviousCentury Command action to navigate to previous century.

The following code shows how to use GotoDate and GotoToday command as UXCalendar navigation using UXButton.

XAML Copy Code
<UserControl xmlns:Intersoft="http://intersoft.clientui.com/schemas"  x:Class="SilverlightApplication4.UXCalendarDateTimeCommand"
    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:intersoft="clr-namespace:Intersoft.Client.UI.Aqua.UXInput;assembly=Intersoft.Client.UI.Aqua.UXInput"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    
    <Grid x:Name="LayoutRoot" Background="White">
        <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
            <Intersoft:UXCalendar DisplayDate="1/1/2010" x:Name="UXCalendar1" HorizontalAlignment="Center" CalendarTodayVisibility="Collapsed">
            </Intersoft:UXCalendar>
            <StackPanel Orientation="Vertical">
                <TextBlock Text="Special Date:" />
                <Intersoft:UXButton Command="intersoft:DateTimeCommands.GotoToday" CommandTarget="{Binding ElementName=UXCalendar1}" Content="Goto Today" Height="23" Width="150" Margin="5,5"/>
                <Intersoft:UXButton Command="intersoft:DateTimeCommands.GotoDate" CommandParameter="12/25/2010" CommandTarget="{Binding ElementName=UXCalendar1}" Content="Goto Christmas" Height="23" Width="150" Margin="5,5"/>
            </StackPanel>
        </StackPanel>
    </Grid>
</UserControl>

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.