Xamarin

控件

2017-11-18  本文已影响8人  落地成佛
    <ContentPage.Content>
        <StackLayout>
            <Label Text="Welcome to Xamarin.Forms!"
                VerticalOptions="CenterAndExpand" 
                HorizontalOptions="CenterAndExpand" />
            <!--加载中控件-->
            <ActivityIndicator IsRunning="True" Color="Green"></ActivityIndicator>
            <BoxView Color="Red" VerticalOptions="CenterAndExpand" HorizontalOptions="CenterAndExpand"></BoxView>
            <Button Text="456" VerticalOptions="CenterAndExpand" HorizontalOptions="CenterAndExpand"></Button>
            <DatePicker Format="D" VerticalOptions="CenterAndExpand" HorizontalOptions="CenterAndExpand"></DatePicker>
            <Entry VerticalOptions="CenterAndExpand" HorizontalOptions="CenterAndExpand"></Entry>
            <Editor VerticalOptions="CenterAndExpand" WidthRequest="300" HeightRequest="200" HorizontalOptions="CenterAndExpand"></Editor>
            <Image>
                <Image.Source>
                    <UriImageSource Uri="http://hpimges.blob.core.chinacloudapi.cn/coverstory/watermark_zanzibarredcolobus_zh-cn11792109900_1920x1080.jpg">
                        
                    </UriImageSource>
                </Image.Source>
            </Image>
            <Picker x:Name="picker1"></Picker>
            <SearchBar Placeholder = "请输入产品"></SearchBar>
            <Stepper Maximum="10"></Stepper>
            <Switch VerticalOptions="CenterAndExpand" HorizontalOptions="CenterAndExpand"></Switch>
            <TableView>
                <TableRoot>
                    <TableSection>
                        <TextCell Text="456"></TextCell>
                        <EntryCell Text="999"></EntryCell>
                        <SwitchCell Text="33"></SwitchCell>
                    </TableSection>
                </TableRoot>
            </TableView>
        </StackLayout>
    </ContentPage.Content>
图像插件: image.png
上一篇 下一篇

猜你喜欢

热点阅读