• WPF : 3D 最简单的WPF 3D


    <Window x:Class="SimplestWpf3D.Window1"
        xmlns
    ="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x
    ="http://schemas.microsoft.com/winfx/2006/xaml"
        Title
    ="Window1" Height="300" Width="300">
        
    <Grid>
            
    <Viewport3D>
                
    <!--Camera-->
                <Viewport3D.Camera>
                    
    <PerspectiveCamera />
                
    </Viewport3D.Camera>
                
                
    <!--Lights and Objects in the Children-->
                <Viewport3D.Children>                
                    
    <!--Light-->
                    <ModelVisual3D>
                        
    <ModelVisual3D.Content>
                            
    <DirectionalLight Color="White" Direction="0,1,-1"/>
                        
    </ModelVisual3D.Content>
                    
    </ModelVisual3D>
                    
                    
    <!--Object-->
                    <ModelVisual3D>
                        
    <ModelVisual3D.Content>
                            
    <GeometryModel3D>
                                
    <GeometryModel3D.Geometry>
                                    
    <MeshGeometry3D Positions="-1 0 -8, 1 0 -8, 0 1 -8"/>
                                
    </GeometryModel3D.Geometry>
                                
    <GeometryModel3D.Material>
                                    
    <DiffuseMaterial Brush="Red" />
                                
    </GeometryModel3D.Material>
                            
    </GeometryModel3D>
                        
    </ModelVisual3D.Content>
                    
    </ModelVisual3D>
                
    </Viewport3D.Children> 
            
    </Viewport3D>
        
    </Grid>
    </Window>
  • 相关阅读:
    经过改良后可以导出超过70000条数据的导出公共excel类
    一个简单的文档导出公共处理类
    网上找的正则验证邮箱手机等代码
    springMvc IE浏览器 前台中文参数 乱码问题解决方法
    国际化
    验证框架
    基于注解来装配Bean的属性
    aop
    自定义属性编辑器
    propertyPlaceholderConfigurer 和propertyOverrideConfigurer
  • 原文地址:https://www.cnblogs.com/mrfangzheng/p/1179559.html
Copyright © 2020-2023  润新知