<Window x:Class=“DockPanel.MainWindow”
xmlns=“http://schemas.microsoft.com/winfx/2006/xaml/presentation”
xmlns:x=“http://schemas.microsoft.com/winfx/2006/xaml”
Title=“MainWindow” Height=“235” Width=“328”>
Remaining Space
四、StackPanel、WrapPanel、DockPanel嵌套布局
<Window x:Class=“Nesting.MainWindow”
xmlns=“http://schemas.microsoft.com/winfx/2006/xaml/presentation”
xmlns:x=“http://schemas.microsoft.com/winfx/2006/xaml”
Title=“MainWindow” Height=“266” Width=“407”>
OK
Cancel
五、使用Grid布局
<Window x:Class=“Grid.MainWindow”
xmlns=“http://schemas.microsoft.com/winfx/2006/xaml/presentation”
xmlns:x=“http://schemas.microsoft.com/winfx/2006/xaml”
Title=“MainWindow” Height=“173” Width=“353”>
<Grid.RowDefinitions>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
(0,0)
<GridSplitter Grid.Row=“0” Grid.Column=“2” Width=“3”
VerticalAlignment=“Stretch” HorizontalAlignment=“Center” RenderTransformOrigin=“0.5,0.5” Margin=“0,0,83,0”>
六、使用UniformGrid布局
<Window x:Class=“Grid.MainWindow”
xmlns=“http://schemas.microsoft.com/winfx/2006/xaml/presentation”
xmlns:x=“http://schemas.microsoft.com/winfx/2006/xaml”
Title=“MainWindow” Height=“173” Width=“353”>
<Grid.RowDefinitions>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
(0,0)
<GridSplitter Grid.Row=“0” Grid.Column=“2” Width=“3”
VerticalAlignment=“Stretch” HorizontalAlignment=“Center” RenderTransformOrigin=“0.5,0.5” Margin=“0,0,83,0”>
七、使用Canvas面板进行基于坐标的布局
<Window x:Class=“Canvas.MainWindow”
xmlns=“http://schemas.microsoft.com/winfx/2006/xaml/presentation”
xmlns:x=“http://schemas.microsoft.com/winfx/2006/xaml”
Title=“MainWindow” Height=“234” Width=“327”>
Z顺序
如果Canvas面板中有多个相互重叠的元素,可通过设置Canvas.ZIndex附加属性来控制他们的层叠的方式,添加的所有元素通常都有相同的ZIndex值,都为0
<Window x:Class=“Canvas.MainWindow”
xmlns=“http://schemas.microsoft.com/winfx/2006/xaml/presentation”
xmlns:x=“http://schemas.microsoft.com/winfx/2006/xaml”
Title=“MainWindow” Height=“234” Width=“327”>
InkCanvas元素
InkCanvas元素主要目的是用于接收手写笔输入
InkCanvas元素包含两个子内容集合,一个是Children集合,一个是Strokes集合(表示用户在InkCanvas元素上绘制的图形输入)
<Window x:Class=“InkCanvas.MainWindow”
xmlns=“http://schemas.microsoft.com/winfx/2006/xaml/presentation”
xmlns:x=“http://schemas.microsoft.com/winfx/2006/xaml”
Title=“MainWindow” Height=“339” Width=“422”>
EditingMode的枚举值: Ink, GestureOnly, InkAndGesture, EraseByStroke, EraseByPoint, Select, None
八、布局示例:
Ending
Tip:由于文章篇幅有限制,下面还有20个关于MySQL的问题,我都复盘整理成一份pdf文档了,后面的内容我就把剩下的问题的目录展示给大家看一下
如果觉得有帮助不妨【转发+点赞+关注】支持我,后续会为大家带来更多的技术类文章以及学习类文章!(阿里对MySQL底层实现以及索引实现问的很多)
吃透后这份pdf,你同样可以跟面试官侃侃而谈MySQL。其实像阿里p7岗位的需求也没那么难(但也不简单),扎实的Java基础+无短板知识面+对某几个开源技术有深度学习+阅读过源码+算法刷题,这一套下来p7岗差不多没什么问题,还是希望大家都能拿到高薪offer吧。
MySQL的问题,我都复盘整理成一份pdf文档了,后面的内容我就把剩下的问题的目录展示给大家看一下**
如果觉得有帮助不妨【转发+点赞+关注】支持我,后续会为大家带来更多的技术类文章以及学习类文章!(阿里对MySQL底层实现以及索引实现问的很多)
[外链图片转存中…(img-7FjFPvK3-1714481156039)]
[外链图片转存中…(img-WMDRnryv-1714481156039)]
吃透后这份pdf,你同样可以跟面试官侃侃而谈MySQL。其实像阿里p7岗位的需求也没那么难(但也不简单),扎实的Java基础+无短板知识面+对某几个开源技术有深度学习+阅读过源码+算法刷题,这一套下来p7岗差不多没什么问题,还是希望大家都能拿到高薪offer吧。