Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Window x:Class="Blender.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- Title="Blender">
- <Window.Resources>
- <SolidColorBrush x:Key="3DRenderBackgroundColor" Color="#393939" />
- <SolidColorBrush x:Key="PropertyBackgroundColor" Color="#252525" />
- <SolidColorBrush x:Key="ButtonSidebarBackgroundColor" Color="#464646" />
- <SolidColorBrush x:Key="PropertyInfoPanelBackgroundColor" Color="#727272" />
- </Window.Resources>
- <Grid>
- <DockPanel>
- <Grid DockPanel.Dock="Top" Height="170" Panel.ZIndex="2">
- <Grid.Effect>
- <DropShadowEffect BlurRadius="10" ShadowDepth="5" />
- </Grid.Effect>
- <TabControl>
- <TabItem>
- <TabItem.Header>
- <StackPanel Orientation="Horizontal" Margin="0">
- <Image Height="20" Width="20" Source="Icons/Tab_Home.png"/>
- <TextBlock Text="Home" Margin="2,0,0,0" VerticalAlignment="Center" />
- </StackPanel>
- </TabItem.Header>
- </TabItem>
- <TabItem>
- <TabItem.Header>
- <StackPanel Orientation="Horizontal" Margin="0">
- <Image Height="20" Width="20" Source="Icons/Tab_Modeling.png"/>
- <TextBlock Text="Modeling" Margin="2,0,0,0" VerticalAlignment="Center" />
- </StackPanel>
- </TabItem.Header>
- </TabItem>
- <TabItem>
- <TabItem.Header>
- <StackPanel Orientation="Horizontal" Margin="0">
- <Image Height="20" Width="20" Source="Icons/Tab_Materials.png"/>
- <TextBlock Text="Materials" Margin="2,0,0,0" VerticalAlignment="Center" />
- </StackPanel>
- </TabItem.Header>
- </TabItem>
- <TabItem>
- <TabItem.Header>
- <StackPanel Orientation="Horizontal" Margin="0">
- <Image Height="20" Width="20" Source="Icons/Tab_Texturing.png"/>
- <TextBlock Text="Texturing" Margin="2,0,0,0" VerticalAlignment="Center" />
- </StackPanel>
- </TabItem.Header>
- </TabItem>
- <TabItem>
- <TabItem.Header>
- <StackPanel Orientation="Horizontal" Margin="0">
- <Image Height="20" Width="20" Source="Icons/Tab_Modifiers.png"/>
- <TextBlock Text="Modifiers" Margin="2,0,0,0" VerticalAlignment="Center" />
- </StackPanel>
- </TabItem.Header>
- </TabItem>
- <TabItem>
- <TabItem.Header>
- <StackPanel Orientation="Horizontal" Margin="0">
- <Image Height="20" Width="20" Source="Icons/Tab_Background.png"/>
- <TextBlock Text="Background" Margin="2,0,0,0" VerticalAlignment="Center" />
- </StackPanel>
- </TabItem.Header>
- </TabItem>
- <TabItem>
- <TabItem.Header>
- <StackPanel Orientation="Horizontal" Margin="0">
- <Image Height="20" Width="20" Source="Icons/Tab_Render.png"/>
- <TextBlock Text="Render" Margin="2,0,0,0" VerticalAlignment="Center" />
- </StackPanel>
- </TabItem.Header>
- </TabItem>
- <TabItem>
- <TabItem.Header>
- <StackPanel Orientation="Horizontal" Margin="0">
- <Image Height="20" Width="20" Source="Icons/Tab_Animation.png"/>
- <TextBlock Text="Animation" Margin="2,0,0,0" VerticalAlignment="Center" />
- </StackPanel>
- </TabItem.Header>
- </TabItem>
- <TabItem>
- <TabItem.Header>
- <StackPanel Orientation="Horizontal" Margin="0">
- <Image Height="20" Width="20" Source="Icons/Tab_Rigging.png"/>
- <TextBlock Text="Rigging" Margin="2,0,0,0" VerticalAlignment="Center" />
- </StackPanel>
- </TabItem.Header>
- </TabItem>
- <TabItem>
- <TabItem.Header>
- <StackPanel Orientation="Horizontal" Margin="0">
- <Image Height="20" Width="20" Source="Icons/Tab_Weight.png"/>
- <TextBlock Text="Weight" Margin="2,0,0,0" VerticalAlignment="Center" />
- </StackPanel>
- </TabItem.Header>
- </TabItem>
- <TabItem>
- <TabItem.Header>
- <StackPanel Orientation="Horizontal" Margin="0">
- <Image Height="20" Width="20" Source="Icons/Tab_Simulation.png"/>
- <TextBlock Text="Simulation" Margin="2,0,0,0" VerticalAlignment="Center" />
- </StackPanel>
- </TabItem.Header>
- </TabItem>
- <TabItem>
- <TabItem.Header>
- <StackPanel Orientation="Horizontal" Margin="0">
- <Image Height="20" Width="20" Source="Icons/Tab_Nodes.png"/>
- <TextBlock Text="Nodes" Margin="2,0,0,0" VerticalAlignment="Center" />
- </StackPanel>
- </TabItem.Header>
- </TabItem>
- <TabItem>
- <TabItem.Header>
- <StackPanel Orientation="Horizontal" Margin="0">
- <Image Height="20" Width="20" Source="Icons/Tab_Hair.png"/>
- <TextBlock Text="Hair" Margin="2,0,0,0" VerticalAlignment="Center" />
- </StackPanel>
- </TabItem.Header>
- </TabItem>
- <TabItem>
- <TabItem.Header>
- <StackPanel Orientation="Horizontal" Margin="0">
- <Image Height="20" Width="20" Source="Icons/Tab_VideoEditor.png"/>
- <TextBlock Text="Video Editor" Margin="2,0,0,0" VerticalAlignment="Center" />
- </StackPanel>
- </TabItem.Header>
- </TabItem>
- <TabItem>
- <TabItem.Header>
- <StackPanel Orientation="Horizontal" Margin="0">
- <Image Height="20" Width="20" Source="Icons/Tab_Sculpting.png"/>
- <TextBlock Text="Sculpting" Margin="2,0,0,0" VerticalAlignment="Center" />
- </StackPanel>
- </TabItem.Header>
- </TabItem>
- <TabItem>
- <TabItem.Header>
- <StackPanel Orientation="Horizontal" Margin="0">
- <Image Height="20" Width="20" Source="Icons/Tab_Tracking.png"/>
- <TextBlock Text="Tracking" Margin="2,0,0,0" VerticalAlignment="Center" />
- </StackPanel>
- </TabItem.Header>
- </TabItem>
- </TabControl>
- </Grid>
- <Grid DockPanel.Dock="Left" Width="40">
- <Grid.Background>
- <SolidColorBrush Color="{Binding Source={StaticResource ButtonSidebarBackgroundColor}, Path=Color}" />
- </Grid.Background>
- <StackPanel Margin="0,2,0,0">
- <Button Margin="1" Content="Grab">
- <Button.Background>
- <SolidColorBrush Color="{Binding Source={StaticResource ButtonSidebarBackgroundColor}, Path=Color}" />
- </Button.Background>
- </Button>
- <Button Margin="1" Content="Rot"></Button>
- <Button Margin="1" Content="Scl"></Button>
- </StackPanel>
- </Grid>
- <Grid DockPanel.Dock="Right" Width="160">
- <Grid.Background>
- <SolidColorBrush Color="{Binding Source={StaticResource PropertyBackgroundColor}, Path=Color}" />
- </Grid.Background>
- <Grid Height="160">
- <Grid.Background>
- <SolidColorBrush Color="{Binding Source={StaticResource PropertyInfoPanelBackgroundColor}, Path=Color}" />
- </Grid.Background>
- </Grid>
- </Grid>
- <Grid>
- <Grid.Background>
- <SolidColorBrush Color="{Binding Source={StaticResource 3DRenderBackgroundColor}, Path=Color}" />
- </Grid.Background>
- <Viewport3D>
- <Viewport3D.Camera>
- <OrthographicCamera Position="5,5,5" LookDirection="-1,-1,-1" Width="5"/>
- </Viewport3D.Camera>
- <Viewport3D.Children>
- <ModelVisual3D x:Name="Light">
- <ModelVisual3D.Content>
- <AmbientLight/>
- </ModelVisual3D.Content>
- </ModelVisual3D>
- <ModelVisual3D>
- <ModelVisual3D.Content>
- <Model3DGroup x:Name="House">
- <GeometryModel3D x:Name="Roof">
- <GeometryModel3D.Material>
- <DiffuseMaterial Brush="Blue"/>
- </GeometryModel3D.Material>
- <GeometryModel3D.Geometry>
- <MeshGeometry3D Positions="-1,1,1 0,2,1 0,2,-1 -1,1,-1 0,2,1 1,1,1
- 1,1,-1 0,2,-1"
- TriangleIndices="0 1 2 0 2 3 4 5 6 4 6 7"/>
- </GeometryModel3D.Geometry>
- </GeometryModel3D>
- <GeometryModel3D x:Name="Sides">
- <GeometryModel3D.Material>
- <DiffuseMaterial Brush="Green"/>
- </GeometryModel3D.Material>
- <GeometryModel3D.Geometry>
- <MeshGeometry3D Positions="-1,1,1 -1,1,-1 -1,-1,-1 -1,-1,1 1,1,-1
- 1,1,1 1,-1,1 1,-1,-1"
- TriangleIndices="0 1 2 0 2 3 4 5 6 4 6 7"/>
- </GeometryModel3D.Geometry>
- </GeometryModel3D>
- <GeometryModel3D x:Name="Ends">
- <GeometryModel3D.Material>
- <DiffuseMaterial Brush="Red"/>
- </GeometryModel3D.Material>
- <GeometryModel3D.Geometry>
- <MeshGeometry3D
- Positions="-0.25,0,1 -1,1,1 -1,-1,1 -0.25,-1,1 -0.25,0,1
- -1,-1,1 0.25,0,1 1,-1,1 1,1,1 0.25,0,1 0.25,-1,1 1,-1,1
- 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
- 1,-1,-1 -1,-1,-1 -1,1,-1 1,1,-1 -1,1,-1 0,2,-1"
- TriangleIndices="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 15
- 17 18 19 20 21 19 21 22 23 24 25"/>
- </GeometryModel3D.Geometry>
- </GeometryModel3D>
- </Model3DGroup>
- </ModelVisual3D.Content>
- </ModelVisual3D>
- </Viewport3D.Children>
- </Viewport3D>
- </Grid>
- </DockPanel>
- </Grid>
- </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement