当前位置: 首页>>代码示例>>C#>>正文


C# Viewport3D.FindName方法代码示例

本文整理汇总了C#中System.Windows.Controls.Viewport3D.FindName方法的典型用法代码示例。如果您正苦于以下问题:C# Viewport3D.FindName方法的具体用法?C# Viewport3D.FindName怎么用?C# Viewport3D.FindName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Windows.Controls.Viewport3D的用法示例。


在下文中一共展示了Viewport3D.FindName方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GenieTransition

 public GenieTransition()
 {
     _viewport =
         Application.LoadComponent(new Uri("/FluidKit;component/Controls/Transition/Genie/Genie.xaml",
                                           UriKind.Relative)) as Viewport3D;
     _slidingScreen = _viewport.FindName("SlidingScreen") as GeometryModel3D;
     NameScope.GetNameScope(_viewport).UnregisterName("SlidingScreen");
 }
开发者ID:GroupXTech,项目名称:Yatse2,代码行数:8,代码来源:GenieTransition.cs

示例2: LoadViewport

 private void LoadViewport()
 {
     _viewport = Application.LoadComponent(new Uri("/FluidKit;component/Controls/VirtFlow/Viewport.xaml", UriKind.Relative)) as Viewport3D;
     if (_viewport != null)
     {
         InternalResources = _viewport.Resources;
         RenderOptions.SetEdgeMode(_viewport, EdgeMode.Aliased);
         RenderOptions.SetCachingHint(_viewport, CachingHint.Cache);
         RenderOptions.SetBitmapScalingMode(_viewport, BitmapScalingMode.LowQuality);
         // Container for containing the mesh models of elements
         _modelContainer = _viewport.FindName("ModelContainer") as ContainerUIElement3D;
     }
 }
开发者ID:Ghawken,项目名称:FrontView,代码行数:13,代码来源:VirtElementFlow.cs

示例3: LoadViewport

        private void LoadViewport()
        {
            _viewport =
                Application.LoadComponent(new Uri("/FluidKit;component/Controls/ElementFlow/Viewport.xaml", UriKind.Relative)) as
                Viewport3D;
            InternalResources = _viewport.Resources;

            // Container for containing the mesh models of elements
            _modelContainer = _viewport.FindName("ModelContainer") as ContainerUIElement3D;
        }
开发者ID:fivesixty,项目名称:StandaloneMB,代码行数:10,代码来源:ElementFlow.cs

示例4: LoadViewport

        protected void LoadViewport()
        {
            Uri uri = new Uri("/RoDuino.SMS;component/Components/RoApplicationMenu/Viewport3D.xaml", UriKind.Relative);
            _viewport = Application.LoadComponent(uri) as Viewport3D;
            InternalResources = _viewport.Resources;

            // Container for containing the mesh models of elements
            _modelContainer = _viewport.FindName("ModelContainer") as ContainerUIElement3D;
        }
开发者ID:CraigCary,项目名称:roduino,代码行数:9,代码来源:ElementFlow.cs


注:本文中的System.Windows.Controls.Viewport3D.FindName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。