
XAML
文章平均质量分 54
笔记
chengyu0726
这个作者很懒,什么都没留下…
展开
-
XAML 浏览器应用程序(xbap)与Html 信息交互
1. xbap项目调用Html 对象Html 页面中通过iframe 引入xbap 项目<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %><!DOCTYPE html><meta http-equiv="X-UA-Compatible" content="IE=8"/> <%--IE原创 2021-02-11 14:43:35 · 1514 阅读 · 1 评论 -
XAML 页面布局
1. Grid 布局(网格控件)<Grid Margin="0,0,0,0" ShowGridLines="True"> <Grid.RowDefinitions><!--行设置--> <!--每个RowDefinition表示一行--> <RowDefinition MaxHeight="50"></RowDefinition> <RowDefinition MaxHei原创 2020-12-18 16:33:40 · 462 阅读 · 1 评论 -
XAML 五种画刷(涂颜色用)
1. SolidColorBrush(实心)<Page x:Class="WpfBrowserApp3.Page1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-com原创 2020-12-18 16:30:56 · 310 阅读 · 1 评论 -
XAML 样式设定(4种)
类似于Html,适用就近原则1. 内联样式通过更改指定标签的属性更改样式,仅适用于指定标签自身。<TextBlock Height="30" FontSize="16" HorizontalAlignment="Left" Margin="162,109,0,0" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Top"/>2. 页面样式在页面跟节点中定义,能够控制整个页面的样式注意:①Resources中的唯一标识原创 2020-12-18 16:25:52 · 794 阅读 · 2 评论 -
XAML 设置属性的方法
1. 简单属性语法属性名 = “”,双引号不可省略<Button Content="Button" HorizontalAlignment="Left" Margin="219,252,0,0" VerticalAlignment="Top" Width="75"/>2. 属性元素语法(灵活性高)1)将标签展开2)在展开的标签之间设置属性<Button Content="Button" HorizontalAlignment="Left" Margin="219,252,0,原创 2020-12-18 16:20:51 · 482 阅读 · 1 评论