C#Windows应用商店应用输入框

时间:2013-10-02 11:30:42

标签: c# visual-studio-2012 windows-runtime windows-store-apps

我目前正在使用Visual Studio 2012上的c#和.Net 4.5在Windows Store App上进行开发。 在我的应用程序中,我想创建像他们的日历应用程序中制作的微软输入框。

what i want to make

我可以这样做吗?谢谢,抱歉我的英语不好。

更新: 我只是按照here的指示,我得到了这个错误:
错误1命名空间“Microsoft.VisualBasic”中不存在类型或命名空间名称“Interaction”(您是否缺少程序集引用?)C:\ Users \ user \ AppData \ Local \ Temporary Projects \ TestApp \ MainPage.xaml。 cs 41 50 TestApp

我在我的应用程序中引用了microsoft.visualbasic,但它仍然是错误的。请帮忙。

1 个答案:

答案 0 :(得分:2)

Callisto toolkit有自定义对话框,您可以使用它来创建此类对话框。您可以使用任何UI元素。

xmlns:callisto="using:Callisto.Controls"

中使用<Page />
<callisto:CustomDialog x:FieldModifier="public" x:Name="LoginDialog" 
                        Title="Bacon Terms and Conditions" 
                        Background="Teal" BackButtonVisibility="Visible">
    <StackPanel>
        <TextBlock Margin="0,0,0,8" FontSize="14.6667" FontWeight="SemiLight" TextWrapping="Wrap">
            Bacon sausage frankfurter tenderloin turkey salami andouille bresaola. Venison salami prosciutto, pork belly turducken tri-tip spare ribs chicken strip steak fatback shankle tongue boudin andouille. Meatloaf salami pork ground round turkey jerky meatball ball tip, filet mignon fatback flank prosciutto shank. Turkey boudin ham hock, filet mignon tri-tip bresaola tongue venison spare ribs meatloaf flank beef pancetta. Leberkas turducken flank ground round biltong chuck bacon kielbasa. Beef pastrami meatball, short loin venison swine pork loin shank meatloaf spare ribs.
        </TextBlock>
        <CheckBox Margin="0,0,0,8" Foreground="White" Content="I agree to the Terms and Conditions of Bacon" />
        <TextBlock Margin="0,0,0,8" FontSize="14.6667" FontWeight="SemiLight" Text="Enter your name for acceptance" />
        <callisto:WatermarkTextBox HorizontalAlignment="Left" Watermark="Type your name" Width="400" Height="35" />
        <StackPanel Margin="0,20,0,0" HorizontalAlignment="Right" Orientation="Horizontal">
            <Button Content="OK" Width="90" Margin="0,0,20,0" />
            <Button Content="CANCEL" Width="90" />
        </StackPanel>
    </StackPanel>
</callisto:CustomDialog>

输出将是这样的。

enter image description here

Callisto NuGet

Callisto Visual Studio gallery