本文整理汇总了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");
}
示例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;
}
}
示例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;
}
示例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;
}