Add files via upload
parent
c36bc6e671
commit
b363eabfe2
@ -0,0 +1,9 @@
|
||||
<Application x:Class="Wpf_3D.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="clr-namespace:Wpf_3D"
|
||||
StartupUri="MainWindow.xaml">
|
||||
<Application.Resources>
|
||||
|
||||
</Application.Resources>
|
||||
</Application>
|
@ -0,0 +1,10 @@
|
||||
using System.Windows;
|
||||
|
||||
[assembly: ThemeInfo(
|
||||
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
|
||||
//(used if a resource is not found in the page,
|
||||
// or application resource dictionaries)
|
||||
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
|
||||
//(used if a resource is not found in the page,
|
||||
// app, or any theme specific resource dictionaries)
|
||||
)]
|
@ -0,0 +1,37 @@
|
||||
<Window x:Class="Wpf_3D.MainWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="clr-namespace:Wpf_3D"
|
||||
Title="Window1" Height="398" Width="608" KeyDown="Window_KeyDown">
|
||||
<Window.Resources>
|
||||
<local:Maze3DGenerator x:Key="maze3DGenerator" />
|
||||
<Model3DGroup x:Key="Model3D">
|
||||
<AmbientLight Color="Gray" />
|
||||
<DirectionalLight Color="Gray" Direction="1,-2,-3" />
|
||||
</Model3DGroup>
|
||||
</Window.Resources>
|
||||
<Grid>
|
||||
<Viewport3D Margin="4,4,4,0" Name="viewport3D1" Focusable="True">
|
||||
<ModelVisual3D>
|
||||
<ModelVisual3D.Content>
|
||||
<Model3DGroup>
|
||||
<StaticResource ResourceKey="Model3D" />
|
||||
</Model3DGroup>
|
||||
</ModelVisual3D.Content>
|
||||
</ModelVisual3D>
|
||||
<ModelVisual3D>
|
||||
<ModelVisual3D.Content>
|
||||
<DirectionalLight x:Name="dirLightMain" Direction="-1,0,2" Color="Gray"></DirectionalLight>
|
||||
</ModelVisual3D.Content>
|
||||
</ModelVisual3D>
|
||||
<Viewport3D.Camera>
|
||||
<PerspectiveCamera
|
||||
Position="0,0,15"
|
||||
LookDirection="0,0,-1"
|
||||
UpDirection="0,1,0"
|
||||
FieldOfView="90">
|
||||
</PerspectiveCamera>
|
||||
</Viewport3D.Camera>
|
||||
</Viewport3D>
|
||||
</Grid>
|
||||
</Window>
|
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup />
|
||||
<ItemGroup>
|
||||
<ApplicationDefinition Update="App.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
</ApplicationDefinition>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Page Update="MainWindow.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
</ItemGroup>
|
||||
</Project>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,50 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v7.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v7.0": {
|
||||
"Wpf_3D/1.0.0": {
|
||||
"dependencies": {
|
||||
"Global": "1.0.0",
|
||||
"Logic": "1.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"Wpf_3D.dll": {}
|
||||
}
|
||||
},
|
||||
"Global/1.0.0": {
|
||||
"runtime": {
|
||||
"Global.dll": {}
|
||||
}
|
||||
},
|
||||
"Logic/1.0.0": {
|
||||
"dependencies": {
|
||||
"Global": "1.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"Logic.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"Wpf_3D/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"Global/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"Logic/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,15 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net7.0",
|
||||
"frameworks": [
|
||||
{
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "7.0.0"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.WindowsDesktop.App",
|
||||
"version": "7.0.0"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue