Xaml Windows Phone 8.1日期选择器样式

Xaml Windows Phone 8.1日期选择器样式,xaml,windows-phone-8,Xaml,Windows Phone 8,我正在开发一个应用程序,我想使用一个控件,它与“日期选择器”的工作相同 非常感谢您的帮助,我知道它的名字是Telerik控件中的循环列表,但我没有Telerik的订阅。您可以使用Windows Phone Toolkit 在解决方案的项目中,进入参考>管理Nuget软件包>联机>搜索手机。控件> 安装Windows Phone工具包 在Xaml中 添加xmlns名称空间 xmlns:toolkit=“clr命名空间:Microsoft.Phone.Controls;assembly=Micros

我正在开发一个应用程序,我想使用一个控件,它与“日期选择器”的工作相同


非常感谢您的帮助,我知道它的名字是Telerik控件中的循环列表,但我没有Telerik的订阅。

您可以使用Windows Phone Toolkit

在解决方案的项目中,进入参考>管理Nuget软件包>联机>搜索手机。控件> 安装Windows Phone工具包

在Xaml中

添加xmlns名称空间

xmlns:toolkit=“clr命名空间:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.toolkit”

并在网格中添加控件

<toolkit:DatePicker Header="Select Date"/>

样本

  <phone:PhoneApplicationPage
        x:Class="TestApp.MainPage"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
        xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        FontFamily="{StaticResource PhoneFontFamilyNormal}"
        FontSize="{StaticResource PhoneFontSizeNormal}"
        Foreground="{StaticResource PhoneForegroundBrush}"
        xmlns:toolkit="clr-    namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
        SupportedOrientations="Portrait" Orientation="Portrait"
        shell:SystemTray.IsVisible="True">

        <Grid x:Name="LayoutRoot" Background="Transparent">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>

            <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
                <TextBlock Text="MY APPLICATION" Style="{StaticResource PhoneTextNormalStyle}" Margin="12,0"/>
                <TextBlock Text="page name" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
            </StackPanel>

            <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
                //Add the Control
                <toolkit:DatePicker Header="Select Date"/>

            </Grid>
       </Grid>

    </phone:PhoneApplicationPage>

//添加控件

请参考以下适用于Windows Phone 7的示例,希望这适用于WP 8.1

希望这能对你有所帮助


这是关于循环选择器的问题

谢谢你的回答,但这不是我想要的,我的意思是我想用其他数据操作日期选择器,而不是日期和时间:)对不起,我误读了这个问题没关系,伙计,非常感谢你的贡献:)这正是我想要的,谢谢你亿万次!:)