[源码下载]

背水一战 Windows 10 (70) - 控件(控件基类): UIElement - Transform3D(3D变换), Projection(3D投影)

作者:webabcd

介绍
背水一战 Windows 10 之 控件(控件基类 - UIElement)

  • Transform3D(3D变换)
  • Projection(3D投影)

示例
1、演示 UIElement 的 3D 变换的应用
Controls/BaseControl/UIElementDemo/Transform3DDemo.xaml

<Page
x:Class="Windows10.Controls.BaseControl.UIElementDemo.Transform3DDemo"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Windows10.Controls.BaseControl.UIElementDemo"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"> <Grid Background="Transparent"> <!--
UIElement - UIElement
Transform3D - 3D 变换(通过 CompositeTransform3D 结合 PerspectiveTransform3D 来完成 3D 变换)
--> <Grid.Transform3D>
<!--
PerspectiveTransform3D - 让指定的空间内的元素支持通过 CompositeTransform3D 来实现 3D 变换
OffsetX - 透视原点相对于元素中心的 x 方向的偏移量
OffsetY - 透视原点相对于元素中心的 y 方向的偏移量
Depth - 到 z=0 的平面的距离,必须大于 0,默认值为 1000
-->
<PerspectiveTransform3D OffsetX="{x:Bind sliderOX.Value, Mode=OneWay}"
OffsetY="{x:Bind sliderOY.Value, Mode=OneWay}"
Depth="{x:Bind sliderD.Value, Mode=OneWay}"> </PerspectiveTransform3D>
</Grid.Transform3D> <StackPanel HorizontalAlignment="Center">
<Image Source="/Assets/hololens.jpg" Width="200" Height="200" Name="image" Margin="5">
<Image.Transform3D>
<!--
CompositeTransform3D - 为 UIElement 实现 3D 变换(此 UIElement 的祖辈必须要设置了 PerspectiveTransform3D)
CenterX, CenterY, CenterZ - 3D 变换的中心点位置(单位:像素)
RotationX, RotationY, RotationZ - 3D 变换的旋转角度(单位:度)
ScaleX, ScaleY, ScaleZ - 3D 变换的缩放比例
TranslateX, TranslateY, TranslateZ - 3D 变换的位移距离(单位:像素) 注意:x 坐标向右为正,y 坐标向下为正,z 坐标向你为正(左手坐标系)
-->
<CompositeTransform3D CenterX="{x:Bind sliderCX.Value, Mode=OneWay}"
CenterY="{x:Bind sliderCY.Value, Mode=OneWay}"
CenterZ="{x:Bind sliderCZ.Value, Mode=OneWay}" RotationX="{x:Bind sliderRX.Value, Mode=OneWay}"
RotationY="{x:Bind sliderRY.Value, Mode=OneWay}"
RotationZ="{x:Bind sliderRZ.Value, Mode=OneWay}" ScaleX="{x:Bind sliderSX.Value, Mode=OneWay}"
ScaleY="{x:Bind sliderSY.Value, Mode=OneWay}"
ScaleZ="{x:Bind sliderSZ.Value, Mode=OneWay}" TranslateX="{x:Bind sliderTX.Value, Mode=OneWay}"
TranslateY="{x:Bind sliderTY.Value, Mode=OneWay}"
TranslateZ="{x:Bind sliderTZ.Value, Mode=OneWay}">
</CompositeTransform3D>
</Image.Transform3D>
</Image> <StackPanel Orientation="Horizontal" Margin="5">
<Slider Name="sliderOX" Minimum="-100" Maximum="100" Width="200" Foreground="Orange" Background="White" Style="{StaticResource MySliderStyle}" Margin="10">
<Slider.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="OffsetX: "/>
<TextBlock Text="{x:Bind sliderOX.Value, Mode=OneWay}" />
</StackPanel>
</Slider.Header>
</Slider>
<Slider Name="sliderOY" Minimum="-100" Maximum="100" Width="200" Foreground="Orange" Background="White" Style="{StaticResource MySliderStyle}" Margin="10">
<Slider.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="OffsetY: "/>
<TextBlock Text="{x:Bind sliderOY.Value, Mode=OneWay}" />
</StackPanel>
</Slider.Header>
</Slider>
<Slider Name="sliderD" Minimum="100" Maximum="5000" Value="1000" Width="200" Foreground="Orange" Background="White" Style="{StaticResource MySliderStyle}" Margin="10">
<Slider.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="Depth: "/>
<TextBlock Text="{x:Bind sliderD.Value, Mode=OneWay}" />
</StackPanel>
</Slider.Header>
</Slider>
</StackPanel> <StackPanel Orientation="Horizontal" Margin="5">
<Slider Name="sliderCX" Minimum="-300" Maximum="300" Width="200" Foreground="Orange" Background="White" Style="{StaticResource MySliderStyle}" Margin="10">
<Slider.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="CenterX: "/>
<TextBlock Text="{x:Bind sliderCX.Value, Mode=OneWay}" />
</StackPanel>
</Slider.Header>
</Slider>
<Slider Name="sliderCY" Minimum="-300" Maximum="300" Width="200" Foreground="Orange" Background="White" Style="{StaticResource MySliderStyle}" Margin="10">
<Slider.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="CenterY: "/>
<TextBlock Text="{x:Bind sliderCY.Value, Mode=OneWay}" />
</StackPanel>
</Slider.Header>
</Slider>
<Slider Name="sliderCZ" Minimum="-300" Maximum="300" Width="200" Foreground="Orange" Background="White" Style="{StaticResource MySliderStyle}" Margin="10">
<Slider.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="CenterZ: "/>
<TextBlock Text="{x:Bind sliderCZ.Value, Mode=OneWay}" />
</StackPanel>
</Slider.Header>
</Slider>
</StackPanel> <StackPanel Orientation="Horizontal" Margin="5">
<Slider Name="sliderRX" Minimum="0" Maximum="360" Width="200" Foreground="Orange" Background="White" Style="{StaticResource MySliderStyle}" Margin="10">
<Slider.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="RotationX: "/>
<TextBlock Text="{x:Bind sliderRX.Value, Mode=OneWay}" />
</StackPanel>
</Slider.Header>
</Slider>
<Slider Name="sliderRY" Minimum="0" Maximum="360" Width="200" Foreground="Orange" Background="White" Style="{StaticResource MySliderStyle}" Margin="10">
<Slider.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="RotationY: "/>
<TextBlock Text="{x:Bind sliderRY.Value, Mode=OneWay}" />
</StackPanel>
</Slider.Header>
</Slider>
<Slider Name="sliderRZ" Minimum="0" Maximum="360" Width="200" Foreground="Orange" Background="White" Style="{StaticResource MySliderStyle}" Margin="10">
<Slider.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="RotationZ: "/>
<TextBlock Text="{x:Bind sliderRZ.Value, Mode=OneWay}" />
</StackPanel>
</Slider.Header>
</Slider>
</StackPanel> <StackPanel Orientation="Horizontal" Margin="5">
<Slider Name="sliderSX" Minimum="0.1" Maximum="10" StepFrequency="0.1" Value="1" Width="200" Foreground="Orange" Background="White" Style="{StaticResource MySliderStyle}" Margin="10">
<Slider.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="ScaleX: "/>
<TextBlock Text="{x:Bind sliderSX.Value, Mode=OneWay}" />
</StackPanel>
</Slider.Header>
</Slider>
<Slider Name="sliderSY" Minimum="0.1" Maximum="10" StepFrequency="0.1" Value="1" Width="200" Foreground="Orange" Background="White" Style="{StaticResource MySliderStyle}" Margin="10">
<Slider.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="ScaleY: "/>
<TextBlock Text="{x:Bind sliderSY.Value, Mode=OneWay}" />
</StackPanel>
</Slider.Header>
</Slider>
<Slider Name="sliderSZ" Minimum="0.1" Maximum="10" StepFrequency="0.1" Value="1" Width="200" Foreground="Orange" Background="White" Style="{StaticResource MySliderStyle}" Margin="10">
<Slider.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="ScaleZ: "/>
<TextBlock Text="{x:Bind sliderSZ.Value, Mode=OneWay}" />
</StackPanel>
</Slider.Header>
</Slider>
</StackPanel> <StackPanel Orientation="Horizontal" Margin="5">
<Slider Name="sliderTX" Minimum="-100" Maximum="100" Width="200" Foreground="Orange" Background="White" Style="{StaticResource MySliderStyle}" Margin="10">
<Slider.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="TranslateX: "/>
<TextBlock Text="{x:Bind sliderTX.Value, Mode=OneWay}" />
</StackPanel>
</Slider.Header>
</Slider>
<Slider Name="sliderTY" Minimum="-100" Maximum="100" Width="200" Foreground="Orange" Background="White" Style="{StaticResource MySliderStyle}" Margin="10">
<Slider.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="TranslateY: "/>
<TextBlock Text="{x:Bind sliderTY.Value, Mode=OneWay}" />
</StackPanel>
</Slider.Header>
</Slider>
<Slider Name="sliderTZ" Minimum="-100" Maximum="100" Width="200" Foreground="Orange" Background="White" Style="{StaticResource MySliderStyle}" Margin="10">
<Slider.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="TranslateZ: "/>
<TextBlock Text="{x:Bind sliderTZ.Value, Mode=OneWay}" />
</StackPanel>
</Slider.Header>
</Slider>
</StackPanel>
</StackPanel>
</Grid>
</Page>

Controls/BaseControl/UIElementDemo/Transform3DDemo.xaml.cs

/*
* UIElement - UIElement(继承自 DependencyObject, 请参见 /Controls/BaseControl/DependencyObjectDemo/)
* Transform3D - 3D 变换
*
*
* 本例用于演示 UIElement 的 3D 变换的应用
*/ using Windows.UI.Xaml.Controls; namespace Windows10.Controls.BaseControl.UIElementDemo
{
public sealed partial class Transform3DDemo : Page
{
public Transform3DDemo()
{
this.InitializeComponent();
}
}
}

2、演示 UIElement 的投影(模拟 3D 效果)的应用
Controls/BaseControl/UIElementDemo/ProjectionDemo.xaml

<Page
x:Class="Windows10.Controls.BaseControl.UIElementDemo.ProjectionDemo"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Windows10.Controls.BaseControl.UIElementDemo"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"> <Grid Background="Transparent">
<StackPanel Margin="10 0 10 10" HorizontalAlignment="Center"> <!--
Projection - 投影(模拟 3D 效果,可用类型有 PlaneProjection 和 Matrix3DProjection) PlaneProjection - 将对象投影到平面(通过 x,y,z 方向的旋转和位移控制投影),用于模拟出 UIElement 的 3D 效果
RotationX, RotationY, RotationZ - 绕 X轴, Y轴, Z轴 旋转的角度
CenterOfRotationX, CenterOfRotationY, CenterOfRotationZ - X轴, Y轴, Z轴 旋转中心点的位置
CenterOfRotationX - 相对值,默认值为 0.5 即中心,0 代表 UIElement 的最左端,1 代表 UIElement 的最右端,可以小于 0 也可以大于 1
CenterOfRotationY - 相对值,默认值为 0.5 即中心,0 代表 UIElement 的最顶端,1 代表 UIElement 的最底端,可以小于 0 也可以大于 1
CenterOfRotationZ - 像素值,默认值为 0,靠向你的方向为正,远离你的方向为负(即左手坐标系)
GlobalOffsetX, GlobalOffsetY, GlobalOffsetZ - 沿 X轴, Y轴, Z轴 的偏移量,此 3 个方向与屏幕的 3 个方向相同
LocalOffsetX, LocalOffsetY, LocalOffsetZ - 沿 X轴, Y轴, Z轴 的偏移量,此 3 个方向与相关的 UIElement 当前的 3 个方向相同
ProjectionMatrix - 获取当前投影的 Matrix3D 投影矩阵 Matrix3DProjection - 将对象投影到平面(通过 Matrix3D 矩阵控制投影),用于模拟出 UIElement 的 3D 效果
ProjectionMatrix - 获取或设置当前投影的 Matrix3D 投影矩阵
--> <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0 20 0 0">
<Rectangle Width="200" Height="100" StrokeDashArray="3,1" Stroke="Blue" StrokeThickness="3" />
<Rectangle Width="200" Height="100" Fill="Yellow" Stroke="Red" StrokeThickness="3" Opacity="0.3">
<Rectangle.Projection>
<PlaneProjection x:Name="planeProjection"
CenterOfRotationX="{x:Bind sliderCRX.Value, Mode=OneWay}"
CenterOfRotationY="{x:Bind sliderCRY.Value, Mode=OneWay}"
CenterOfRotationZ="{x:Bind sliderCRZ.Value, Mode=OneWay}" RotationX="{x:Bind sliderRX.Value, Mode=OneWay}"
RotationY="{x:Bind sliderRY.Value, Mode=OneWay}"
RotationZ="{x:Bind sliderRZ.Value, Mode=OneWay}" LocalOffsetX="{x:Bind sliderLOX.Value, Mode=OneWay}"
LocalOffsetY="{x:Bind sliderLOY.Value, Mode=OneWay}"
LocalOffsetZ="{x:Bind sliderLOZ.Value, Mode=OneWay}" GlobalOffsetX="{x:Bind sliderGOX.Value, Mode=OneWay}"
GlobalOffsetY="{x:Bind sliderGOY.Value, Mode=OneWay}"
GlobalOffsetZ="{x:Bind sliderGOZ.Value, Mode=OneWay}">
</PlaneProjection>
</Rectangle.Projection>
</Rectangle>
</Grid> <StackPanel Orientation="Horizontal" Margin="0 30 0 0">
<Slider Name="sliderCRX" Minimum="-1" Maximum="2" StepFrequency="0.1" Value="0.5" Width="200" HorizontalAlignment="Left" Foreground="Orange" Background="White" Style="{StaticResource MySliderStyle}" Margin="10">
<Slider.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="CenterOfRotationX: "/>
<TextBlock Text="{x:Bind sliderCRX.Value, Mode=OneWay}" />
</StackPanel>
</Slider.Header>
</Slider>
<Slider Name="sliderCRY" Minimum="-1" Maximum="2" StepFrequency="0.1" Value="0.5" Width="200" HorizontalAlignment="Left" Foreground="Orange" Background="White" Style="{StaticResource MySliderStyle}" Margin="10">
<Slider.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="CenterOfRotationY: "/>
<TextBlock Text="{x:Bind sliderCRY.Value, Mode=OneWay}" />
</StackPanel>
</Slider.Header>
</Slider>
<Slider Name="sliderCRZ" Minimum="-100" Maximum="100" Value="0" Width="200" HorizontalAlignment="Left" Foreground="Orange" Background="White" Style="{StaticResource MySliderStyle}" Margin="10">
<Slider.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="CenterOfRotationZ: "/>
<TextBlock Text="{x:Bind sliderCRZ.Value, Mode=OneWay}" />
</StackPanel>
</Slider.Header>
</Slider>
</StackPanel> <StackPanel Orientation="Horizontal">
<Slider Name="sliderRX" Minimum="0" Maximum="360" Width="200" HorizontalAlignment="Left" Foreground="Orange" Background="White" Style="{StaticResource MySliderStyle}" Margin="10">
<Slider.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="RotationX: "/>
<TextBlock Text="{x:Bind sliderRX.Value, Mode=OneWay}" />
</StackPanel>
</Slider.Header>
</Slider>
<Slider Name="sliderRY" Minimum="0" Maximum="360" Width="200" HorizontalAlignment="Left" Foreground="Orange" Background="White" Style="{StaticResource MySliderStyle}" Margin="10">
<Slider.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="RotationY: "/>
<TextBlock Text="{x:Bind sliderRY.Value, Mode=OneWay}" />
</StackPanel>
</Slider.Header>
</Slider>
<Slider Name="sliderRZ" Minimum="0" Maximum="360" Width="200" HorizontalAlignment="Left" Foreground="Orange" Background="White" Style="{StaticResource MySliderStyle}" Margin="10">
<Slider.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="RotationZ: "/>
<TextBlock Text="{x:Bind sliderRZ.Value, Mode=OneWay}" />
</StackPanel>
</Slider.Header>
</Slider>
</StackPanel> <StackPanel Orientation="Horizontal">
<Slider Name="sliderLOX" Minimum="-150" Maximum="150" Width="200" HorizontalAlignment="Left" Foreground="Orange" Background="White" Style="{StaticResource MySliderStyle}" Margin="10">
<Slider.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="LocalOffsetX: "/>
<TextBlock Text="{x:Bind sliderLOX.Value, Mode=OneWay}" />
</StackPanel>
</Slider.Header>
</Slider>
<Slider Name="sliderLOY" Minimum="-150" Maximum="150" Width="200" HorizontalAlignment="Left" Foreground="Orange" Background="White" Style="{StaticResource MySliderStyle}" Margin="10">
<Slider.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="LocalOffsetY: "/>
<TextBlock Text="{x:Bind sliderLOY.Value, Mode=OneWay}" />
</StackPanel>
</Slider.Header>
</Slider>
<Slider Name="sliderLOZ" Minimum="-150" Maximum="150" Width="200" HorizontalAlignment="Left" Foreground="Orange" Background="White" Style="{StaticResource MySliderStyle}" Margin="10">
<Slider.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="LocalOffsetZ: "/>
<TextBlock Text="{x:Bind sliderLOZ.Value, Mode=OneWay}" />
</StackPanel>
</Slider.Header>
</Slider>
</StackPanel> <StackPanel Orientation="Horizontal">
<Slider Name="sliderGOX" Minimum="-150" Maximum="150" Width="200" HorizontalAlignment="Left" Foreground="Orange" Background="White" Style="{StaticResource MySliderStyle}" Margin="10">
<Slider.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="GlobalOffsetX: "/>
<TextBlock Text="{x:Bind sliderGOX.Value, Mode=OneWay}" />
</StackPanel>
</Slider.Header>
</Slider>
<Slider Name="sliderGOY" Minimum="-150" Maximum="150" Width="200" HorizontalAlignment="Left" Foreground="Orange" Background="White" Style="{StaticResource MySliderStyle}" Margin="10">
<Slider.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="GlobalOffsetY: "/>
<TextBlock Text="{x:Bind sliderGOY.Value, Mode=OneWay}" />
</StackPanel>
</Slider.Header>
</Slider>
<Slider Name="sliderGOZ" Minimum="-150" Maximum="150" Width="200" HorizontalAlignment="Left" Foreground="Orange" Background="White" Style="{StaticResource MySliderStyle}" Margin="10">
<Slider.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="GlobalOffsetZ: "/>
<TextBlock Text="{x:Bind sliderGOZ.Value, Mode=OneWay}" />
</StackPanel>
</Slider.Header>
</Slider>
</StackPanel>
</StackPanel>
</Grid>
</Page>

Controls/BaseControl/UIElementDemo/ProjectionDemo.xaml.cs

/*
* UIElement - UIElement(继承自 DependencyObject, 请参见 /Controls/BaseControl/DependencyObjectDemo/)
* Projection - 投影(模拟 3D 效果)
* PlaneProjection - 将对象投影到平面(通过 x,y,z 方向的旋转和位移控制投影)
* Matrix3DProjection - 将对象投影到平面(通过 Matrix3D 矩阵控制投影)
*
*
* 本例用于演示 UIElement 的投影(模拟 3D 效果)的应用
*/ using Windows.UI.Xaml.Controls; namespace Windows10.Controls.BaseControl.UIElementDemo
{
public sealed partial class ProjectionDemo : Page
{
public ProjectionDemo()
{
this.InitializeComponent();
}
}
}

OK
[源码下载]

背水一战 Windows 10 (70) - 控件(控件基类): UIElement - Transform3D(3D变换), Projection(3D投影)的更多相关文章

  1. 背水一战 Windows 10 (16) - 动画: ThemeAnimation(主题动画)

    [源码下载] 背水一战 Windows 10 (16) - 动画: ThemeAnimation(主题动画) 作者:webabcd 介绍背水一战 Windows 10 之 动画 PopInThemeA ...

  2. 背水一战 Windows 10 (37) - 控件(弹出类): MessageDialog, ContentDialog

    [源码下载] 背水一战 Windows 10 (37) - 控件(弹出类): MessageDialog, ContentDialog 作者:webabcd 介绍背水一战 Windows 10 之 控 ...

  3. 背水一战 Windows 10 (36) - 控件(弹出类): ToolTip, Popup, PopupMenu

    [源码下载] 背水一战 Windows 10 (36) - 控件(弹出类): ToolTip, Popup, PopupMenu 作者:webabcd 介绍背水一战 Windows 10 之 控件(弹 ...

  4. 背水一战 Windows 10 (35) - 控件(弹出类): FlyoutBase, Flyout, MenuFlyout

    [源码下载] 背水一战 Windows 10 (35) - 控件(弹出类): FlyoutBase, Flyout, MenuFlyout 作者:webabcd 介绍背水一战 Windows 10 之 ...

  5. 背水一战 Windows 10 (34) - 控件(进度类): RangeBase, Slider, ProgressBar, ProgressRing

    [源码下载] 背水一战 Windows 10 (34) - 控件(进度类): RangeBase, Slider, ProgressBar, ProgressRing 作者:webabcd 介绍背水一 ...

  6. 背水一战 Windows 10 (33) - 控件(选择类): ListBox, RadioButton, CheckBox, ToggleSwitch

    [源码下载] 背水一战 Windows 10 (33) - 控件(选择类): ListBox, RadioButton, CheckBox, ToggleSwitch 作者:webabcd 介绍背水一 ...

  7. 背水一战 Windows 10 (32) - 控件(选择类): Selector, ComboBox

    [源码下载] 背水一战 Windows 10 (32) - 控件(选择类): Selector, ComboBox 作者:webabcd 介绍背水一战 Windows 10 之 控件(选择类) Sel ...

  8. 背水一战 Windows 10 (31) - 控件(按钮类): ButtonBase, Button, HyperlinkButton, RepeatButton, ToggleButton, AppBarButton, AppBarToggleButton

    [源码下载] 背水一战 Windows 10 (31) - 控件(按钮类): ButtonBase, Button, HyperlinkButton, RepeatButton, ToggleButt ...

  9. 背水一战 Windows 10 (30) - 控件(文本类): AutoSuggestBox

    [源码下载] 背水一战 Windows 10 (30) - 控件(文本类): AutoSuggestBox 作者:webabcd 介绍背水一战 Windows 10 之 控件(文本类) AutoSug ...

随机推荐

  1. centos下安装djangobb

    曾经在freenas虚拟环境下安装过djangobb,因为要安装的依赖文件太多,最后没有安装成功. 今晚在centos6.9 下,先创建了虚拟环境,然后照着官方网站的快速安装指南,安装后也运行不了,后 ...

  2. CentOS开机自动运行自己的脚本详解

    一.root权限编辑/etc/rc.d/rc.local su cd /etc/rc.d/ vi rc.local 二.在这个文件加上你要执行的脚本,全部内容如下: #!/bin/sh # # Thi ...

  3. 手写注解实现SpringMVC

    参考:https://www.cnblogs.com/Shock-W/p/6617068.html

  4. springmvc转页面

    @RequestMapping("/aa") public String zuan(){ return "redirect:/bb.jsp"; } 如果没有带r ...

  5. Unity网格合并_材质合并

    [转]Unity网格合并_材质合并 原帖请戳:Unity网格合并_材质合并 写在前面: 从优化角度,Mesh需要合并. 从换装的角度(这里指的是换形状.换组成部件的换装,而不是挂点型的换装),都需要网 ...

  6. 吴裕雄 python深度学习与实践(10)

    import tensorflow as tf input1 = tf.constant(1) print(input1) input2 = tf.Variable(2,tf.int32) print ...

  7. python 关于文件的操作

    1.打开文件: f=open(r'E:\PythonProjects\test7\a.txt',mode='rt',encoding='utf-8') 以上三个单引号内分别表示:要打开的文件的路径,m ...

  8. Linux redhat 7 进入单用户模式

    redhat  7 进入单用户模式修复系统故障 1.启动机器,grub界面选择第一个,按e 2.往下翻,找到Linux16 开头的那一行 3.将ro改为"rw init=/sysroot/b ...

  9. http 连接 analysis service (ssas)

    当数据仓库搭建好后,我们就可以通过sqlserver的管理工具查看服务器上的数据集了.但是这样挺不方便的,如果要远程访问,那么就可以通过http来连接数据仓库.要配置数据仓库http连接非常的简单.如 ...

  10. pythonj基础(六)函数初识

    一.什么是函数 函数是组织好的,可重复使用的,用来实现单一,或相关联功能的代码段. 函数能提高应用的模块性,和代码的重复利用率.你已经知道Python提供了许多内建函数,比如print().但你也可以 ...