This topic will walk you through creating a C1DateTimeSelector control and applying some basic styling to the control via code.
Follow these steps:
Markup |
Copy Code
|
---|---|
<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}" x:Name="LayoutRoot"> </Grid> |
C# |
Copy Code
|
---|---|
using C1.Xaml;
|
Visual Basic |
Copy Code
|
---|---|
Imports C1.Xaml |
C# |
Copy Code
|
---|---|
C1DateTimeSelector c1DTS1 = new C1DateTimeSelector();
|
Visual Basic |
Copy Code
|
---|---|
Dim c1DTS1 As C1DateTimeSelector = New C1DateTimeSelector |
C# |
Copy Code
|
---|---|
c1DTS1.Height = 55; c1DTS1.Width = 600; |
Visual Basic |
Copy Code
|
---|---|
c1DTS1.Height = 55 c1DTS1.Width = 600 |
C# |
Copy Code
|
---|---|
LayoutRoot.Children.Add(c1DTS1); |
Visual Basic |
Copy Code
|
---|---|
LayoutRoot.Children.Add(c1DTS1) |