星空网 > 软件开发 > 操作系统

【Windows Universal Platform】只是学习笔记

我是初学,之前没有windows/windows phone的应用开发经验;开博的目的只是记录和督促自己学习。

心血来潮也好,或是个人喜好的原因,想学着自己开发APP了(PS:以前做过web 开发)

本来如果要学APP开发,第一选择是IOS平台。可谁让我是软粉呢,以前也是做.net的。话说自家的“武功”尚未学到家,也不好意思贪别人家的武功秘籍了(见:天龙八部)

我不擅长码字,所以废话就不多说了,最后说一句:这只是我个人的学习笔记。

 

试试XAML

在页面上加一个按钮(Button):

<Button Content="普通按钮"></Button>

也可以这么写,一样一样的:

<Button>  <Button.Content>普通按钮</Button.Content></Button>

再加个颜色,你懂的:

<Button Background="Black">  <Button.Content>普通按钮</Button.Content>  <Button.Foreground>White</Button.Foreground></Button>

 再来个“下拉选择":

<ComboBox HorizontalAlignment="Center" Margin="0 100 0 0">  <ComboBoxItem Content="Select item" IsSelected="True"></ComboBoxItem>  <ComboBoxItem Content="Item 1"></ComboBoxItem>  <ComboBoxItem Content="Item 2"></ComboBoxItem></ComboBox>

注意,这里是省略了 <ComboBox.Items>,因为可以省略所以省略了(哪那么多为什么!)

不省略是这样的

<ComboBox HorizontalAlignment="Center" Margin="0 100 0 0">  <ComboBox.Items>    <ComboBoxItem Content="Select item" IsSelected="True"></ComboBoxItem>    <ComboBoxItem Content="Item 1"></ComboBoxItem>    <ComboBoxItem Content="Item 2"></ComboBoxItem>  </ComboBox.Items></ComboBox>

 

下回见:标记扩展

1. Binding

2. StaticResource

3. TemplateBinding

4. RelativeSource

 




原标题:【Windows Universal Platform】只是学习笔记

关键词:Windows

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

德国VAT申报指南让你轻松完成申报:https://www.kjdsnews.com/a/1387930.html
德国VAT申报的步骤及流程指南:https://www.kjdsnews.com/a/1387931.html
德国VAT申报的最新规定及申报周期:https://www.kjdsnews.com/a/1387932.html
多国启用人民币结算,德国大罢工波及全球海运,南非对华产品反倾销,等|本周外贸大事:https://www.kjdsnews.com/a/1387933.html
阿根廷超过80%企业遭遇进口困难:https://www.kjdsnews.com/a/1387934.html
微软必应bing搜索推出ChatGPT有哪些优势:https://www.kjdsnews.com/a/1387935.html
长治婚庆女司仪和主持人:https://www.vstour.cn/a/366176.html
北京丰台区水上乐园哪家好玩?:https://www.vstour.cn/a/366177.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流