
Visual Basic (Declaration) | |
---|---|
Public Class DateTimeCommands |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As DateTimeCommands |
C# | |
---|---|
public class DateTimeCommands |
Delphi | |
---|---|
public class DateTimeCommands |
JScript | |
---|---|
public class DateTimeCommands |
Managed Extensions for C++ | |
---|---|
public __gc class DateTimeCommands |
C++/CLI | |
---|---|
public ref class DateTimeCommands |
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 | ![]() |
---|---|
<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> |
Intersoft.Client.UI.Aqua.UXInput.DateTimeCommands
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