Advertisement
Guest User

Untitled

a guest
Oct 17th, 2013
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 13.05 KB | None | 0 0
  1. <Window x:Class="Blender.MainWindow"
  2.        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3.        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4.        Title="Blender">
  5.     <Window.Resources>
  6.         <SolidColorBrush x:Key="3DRenderBackgroundColor" Color="#393939" />
  7.         <SolidColorBrush x:Key="PropertyBackgroundColor" Color="#252525" />
  8.         <SolidColorBrush x:Key="ButtonSidebarBackgroundColor" Color="#464646" />
  9.         <SolidColorBrush x:Key="PropertyInfoPanelBackgroundColor" Color="#727272" />
  10.     </Window.Resources>
  11.     <Grid>
  12.         <DockPanel>
  13.             <Grid DockPanel.Dock="Top" Height="170" Panel.ZIndex="2">
  14.                 <Grid.Effect>
  15.                     <DropShadowEffect BlurRadius="10" ShadowDepth="5" />
  16.                 </Grid.Effect>
  17.                 <TabControl>
  18.                     <TabItem>
  19.                         <TabItem.Header>
  20.                             <StackPanel Orientation="Horizontal" Margin="0">
  21.                                 <Image Height="20" Width="20" Source="Icons/Tab_Home.png"/>
  22.                                 <TextBlock Text="Home" Margin="2,0,0,0" VerticalAlignment="Center" />
  23.                             </StackPanel>
  24.                         </TabItem.Header>
  25.                     </TabItem>
  26.                     <TabItem>
  27.                         <TabItem.Header>
  28.                             <StackPanel Orientation="Horizontal" Margin="0">
  29.                                 <Image Height="20" Width="20" Source="Icons/Tab_Modeling.png"/>
  30.                                 <TextBlock Text="Modeling" Margin="2,0,0,0" VerticalAlignment="Center" />
  31.                             </StackPanel>
  32.                         </TabItem.Header>
  33.                     </TabItem>
  34.                     <TabItem>
  35.                         <TabItem.Header>
  36.                             <StackPanel Orientation="Horizontal" Margin="0">
  37.                                 <Image Height="20" Width="20" Source="Icons/Tab_Materials.png"/>
  38.                                 <TextBlock Text="Materials" Margin="2,0,0,0" VerticalAlignment="Center" />
  39.                             </StackPanel>
  40.                         </TabItem.Header>
  41.                     </TabItem>
  42.                     <TabItem>
  43.                         <TabItem.Header>
  44.                             <StackPanel Orientation="Horizontal" Margin="0">
  45.                                 <Image Height="20" Width="20" Source="Icons/Tab_Texturing.png"/>
  46.                                 <TextBlock Text="Texturing" Margin="2,0,0,0" VerticalAlignment="Center" />
  47.                             </StackPanel>
  48.                         </TabItem.Header>
  49.                     </TabItem>
  50.                     <TabItem>
  51.                         <TabItem.Header>
  52.                             <StackPanel Orientation="Horizontal" Margin="0">
  53.                                 <Image Height="20" Width="20" Source="Icons/Tab_Modifiers.png"/>
  54.                                 <TextBlock Text="Modifiers" Margin="2,0,0,0" VerticalAlignment="Center" />
  55.                             </StackPanel>
  56.                         </TabItem.Header>
  57.                     </TabItem>
  58.                     <TabItem>
  59.                         <TabItem.Header>
  60.                             <StackPanel Orientation="Horizontal" Margin="0">
  61.                                 <Image Height="20" Width="20" Source="Icons/Tab_Background.png"/>
  62.                                 <TextBlock Text="Background" Margin="2,0,0,0" VerticalAlignment="Center" />
  63.                             </StackPanel>
  64.                         </TabItem.Header>
  65.                     </TabItem>
  66.                     <TabItem>
  67.                         <TabItem.Header>
  68.                             <StackPanel Orientation="Horizontal" Margin="0">
  69.                                 <Image Height="20" Width="20" Source="Icons/Tab_Render.png"/>
  70.                                 <TextBlock Text="Render" Margin="2,0,0,0" VerticalAlignment="Center" />
  71.                             </StackPanel>
  72.                         </TabItem.Header>
  73.                     </TabItem>
  74.                     <TabItem>
  75.                         <TabItem.Header>
  76.                             <StackPanel Orientation="Horizontal" Margin="0">
  77.                                 <Image Height="20" Width="20" Source="Icons/Tab_Animation.png"/>
  78.                                 <TextBlock Text="Animation" Margin="2,0,0,0" VerticalAlignment="Center" />
  79.                             </StackPanel>
  80.                         </TabItem.Header>
  81.                     </TabItem>
  82.                     <TabItem>
  83.                         <TabItem.Header>
  84.                             <StackPanel Orientation="Horizontal" Margin="0">
  85.                                 <Image Height="20" Width="20" Source="Icons/Tab_Rigging.png"/>
  86.                                 <TextBlock Text="Rigging" Margin="2,0,0,0" VerticalAlignment="Center" />
  87.                             </StackPanel>
  88.                         </TabItem.Header>
  89.                     </TabItem>
  90.                     <TabItem>
  91.                         <TabItem.Header>
  92.                             <StackPanel Orientation="Horizontal" Margin="0">
  93.                                 <Image Height="20" Width="20" Source="Icons/Tab_Weight.png"/>
  94.                                 <TextBlock Text="Weight" Margin="2,0,0,0" VerticalAlignment="Center" />
  95.                             </StackPanel>
  96.                         </TabItem.Header>
  97.                     </TabItem>
  98.                     <TabItem>
  99.                         <TabItem.Header>
  100.                             <StackPanel Orientation="Horizontal" Margin="0">
  101.                                 <Image Height="20" Width="20" Source="Icons/Tab_Simulation.png"/>
  102.                                 <TextBlock Text="Simulation" Margin="2,0,0,0" VerticalAlignment="Center" />
  103.                             </StackPanel>
  104.                         </TabItem.Header>
  105.                     </TabItem>
  106.                     <TabItem>
  107.                         <TabItem.Header>
  108.                             <StackPanel Orientation="Horizontal" Margin="0">
  109.                                 <Image Height="20" Width="20" Source="Icons/Tab_Nodes.png"/>
  110.                                 <TextBlock Text="Nodes" Margin="2,0,0,0" VerticalAlignment="Center" />
  111.                             </StackPanel>
  112.                         </TabItem.Header>
  113.                     </TabItem>
  114.                     <TabItem>
  115.                         <TabItem.Header>
  116.                             <StackPanel Orientation="Horizontal" Margin="0">
  117.                                 <Image Height="20" Width="20" Source="Icons/Tab_Hair.png"/>
  118.                                 <TextBlock Text="Hair" Margin="2,0,0,0" VerticalAlignment="Center" />
  119.                             </StackPanel>
  120.                         </TabItem.Header>
  121.                     </TabItem>
  122.                     <TabItem>
  123.                         <TabItem.Header>
  124.                             <StackPanel Orientation="Horizontal" Margin="0">
  125.                                 <Image Height="20" Width="20" Source="Icons/Tab_VideoEditor.png"/>
  126.                                 <TextBlock Text="Video Editor" Margin="2,0,0,0" VerticalAlignment="Center" />
  127.                             </StackPanel>
  128.                         </TabItem.Header>
  129.                     </TabItem>
  130.                     <TabItem>
  131.                         <TabItem.Header>
  132.                             <StackPanel Orientation="Horizontal" Margin="0">
  133.                                 <Image Height="20" Width="20" Source="Icons/Tab_Sculpting.png"/>
  134.                                 <TextBlock Text="Sculpting" Margin="2,0,0,0" VerticalAlignment="Center" />
  135.                             </StackPanel>
  136.                         </TabItem.Header>
  137.                     </TabItem>
  138.                     <TabItem>
  139.                         <TabItem.Header>
  140.                             <StackPanel Orientation="Horizontal" Margin="0">
  141.                                 <Image Height="20" Width="20" Source="Icons/Tab_Tracking.png"/>
  142.                                 <TextBlock Text="Tracking" Margin="2,0,0,0" VerticalAlignment="Center" />
  143.                             </StackPanel>
  144.                         </TabItem.Header>
  145.                     </TabItem>
  146.                 </TabControl>
  147.             </Grid>
  148.             <Grid DockPanel.Dock="Left" Width="40">
  149.                 <Grid.Background>
  150.                     <SolidColorBrush Color="{Binding Source={StaticResource ButtonSidebarBackgroundColor}, Path=Color}" />
  151.                 </Grid.Background>
  152.                 <StackPanel Margin="0,2,0,0">
  153.                     <Button Margin="1" Content="Grab">
  154.                         <Button.Background>
  155.                             <SolidColorBrush Color="{Binding Source={StaticResource ButtonSidebarBackgroundColor}, Path=Color}" />
  156.                         </Button.Background>
  157.                     </Button>
  158.                     <Button Margin="1" Content="Rot"></Button>
  159.                     <Button Margin="1" Content="Scl"></Button>
  160.                 </StackPanel>
  161.             </Grid>
  162.             <Grid DockPanel.Dock="Right" Width="160">
  163.                 <Grid.Background>
  164.                     <SolidColorBrush Color="{Binding Source={StaticResource PropertyBackgroundColor}, Path=Color}" />
  165.                 </Grid.Background>
  166.                 <Grid Height="160">
  167.                     <Grid.Background>
  168.                         <SolidColorBrush Color="{Binding Source={StaticResource PropertyInfoPanelBackgroundColor}, Path=Color}" />
  169.                     </Grid.Background>
  170.                 </Grid>
  171.             </Grid>
  172.             <Grid>
  173.                 <Grid.Background>
  174.                     <SolidColorBrush Color="{Binding Source={StaticResource 3DRenderBackgroundColor}, Path=Color}" />
  175.                 </Grid.Background>
  176.                 <Viewport3D>
  177.                     <Viewport3D.Camera>
  178.                         <OrthographicCamera Position="5,5,5" LookDirection="-1,-1,-1" Width="5"/>
  179.                     </Viewport3D.Camera>
  180.                     <Viewport3D.Children>
  181.                         <ModelVisual3D x:Name="Light">
  182.                             <ModelVisual3D.Content>
  183.                                 <AmbientLight/>
  184.                             </ModelVisual3D.Content>
  185.                         </ModelVisual3D>
  186.                         <ModelVisual3D>
  187.                             <ModelVisual3D.Content>
  188.                                 <Model3DGroup x:Name="House">
  189.                                     <GeometryModel3D x:Name="Roof">
  190.                                         <GeometryModel3D.Material>
  191.                                             <DiffuseMaterial Brush="Blue"/>
  192.                                         </GeometryModel3D.Material>
  193.                                         <GeometryModel3D.Geometry>
  194.                                             <MeshGeometry3D Positions="-1,1,1 0,2,1 0,2,-1 -1,1,-1 0,2,1 1,1,1
  195.                                  1,1,-1 0,2,-1"
  196.                                TriangleIndices="0 1 2 0 2 3 4 5 6 4 6 7"/>
  197.                                         </GeometryModel3D.Geometry>
  198.                                     </GeometryModel3D>
  199.                                     <GeometryModel3D x:Name="Sides">
  200.                                         <GeometryModel3D.Material>
  201.                                             <DiffuseMaterial Brush="Green"/>
  202.                                         </GeometryModel3D.Material>
  203.                                         <GeometryModel3D.Geometry>
  204.                                             <MeshGeometry3D Positions="-1,1,1 -1,1,-1 -1,-1,-1 -1,-1,1 1,1,-1
  205.                                  1,1,1 1,-1,1 1,-1,-1"
  206.                                TriangleIndices="0 1 2 0 2 3 4 5 6 4 6 7"/>
  207.                                         </GeometryModel3D.Geometry>
  208.                                     </GeometryModel3D>
  209.                                     <GeometryModel3D x:Name="Ends">
  210.                                         <GeometryModel3D.Material>
  211.                                             <DiffuseMaterial Brush="Red"/>
  212.                                         </GeometryModel3D.Material>
  213.                                         <GeometryModel3D.Geometry>
  214.                                             <MeshGeometry3D
  215.                  Positions="-0.25,0,1 -1,1,1 -1,-1,1 -0.25,-1,1 -0.25,0,1
  216.                    -1,-1,1 0.25,0,1 1,-1,1 1,1,1 0.25,0,1 0.25,-1,1 1,-1,1
  217.                    1,1,1 0,2,1 -1,1,1 -1,1,1 -0.25,0,1 0.25,0,1 1,1,1 1,1,-1
  218.                    1,-1,-1 -1,-1,-1 -1,1,-1 1,1,-1 -1,1,-1 0,2,-1"
  219.                  TriangleIndices="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 15
  220.                   17 18 19 20 21 19 21 22 23 24 25"/>
  221.                                         </GeometryModel3D.Geometry>
  222.                                     </GeometryModel3D>
  223.                                 </Model3DGroup>
  224.                             </ModelVisual3D.Content>
  225.                         </ModelVisual3D>
  226.                     </Viewport3D.Children>
  227.                 </Viewport3D>
  228.             </Grid>
  229.         </DockPanel>
  230.     </Grid>
  231. </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement