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");
 }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
 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;
     }
 }