├── .gitattributes ├── .gitignore ├── Content ├── Models.wedir ├── Models │ ├── scene.bin │ ├── scene.bin.wefile │ ├── scene.gltf │ ├── scene.gltf.wemd │ ├── scene_Embedded.wedir │ └── scene_Embedded │ │ ├── Materials.wedir │ │ └── Materials │ │ ├── accent_yellow.wemt │ │ ├── metal_bright.wemt │ │ ├── metal_dark.wemt │ │ ├── metal_mid.wemt │ │ ├── plastic_cone_black.wemt │ │ └── plastic_grey.wemt ├── Scenes.wedir └── Scenes │ ├── MyScene.wescene │ ├── MyScene.wescene.wesc │ └── MyScene │ ├── Environment.wedir │ └── Environment │ ├── SceneReflectionProbe.werp │ └── SceneReflectionProbe │ ├── Irradiance.texdmp │ ├── Irradiance.texdmp.wetx │ ├── Radiance.texdmp │ └── Radiance.texdmp.wetx ├── Directory.Build.props ├── Images ├── FormsSample.png ├── MAUISample.png ├── SDLSample.png ├── WinUISample.png └── WpfSample.png ├── LICENSE ├── README.md ├── UIWindowSystemsDemo.Editor ├── MyCustomClassEditor.cs ├── Properties │ └── AssemblyInfo.cs └── UIWindowSystemsDemo.Editor.csproj ├── UIWindowSystemsDemo.MAUI.sln ├── UIWindowSystemsDemo.MAUI ├── App.xaml ├── App.xaml.cs ├── AppShell.xaml ├── AppShell.xaml.cs ├── Evergine │ ├── AppBuilderExtensions.cs │ ├── EvergineView.cs │ └── EvergineViewHandler.cs ├── MainPage.xaml ├── MainPage.xaml.cs ├── MauiProgram.cs ├── Platforms │ ├── Android │ │ ├── AndroidManifest.xml │ │ ├── EvergineViewHandler.Android.cs │ │ ├── MainActivity.cs │ │ ├── MainApplication.cs │ │ ├── Resources │ │ │ └── values │ │ │ │ └── colors.xml │ │ └── linker.xml │ ├── Windows │ │ ├── App.xaml │ │ ├── App.xaml.cs │ │ ├── EvergineViewHandler.Windows.cs │ │ ├── Package.appxmanifest │ │ └── app.manifest │ └── iOS │ │ ├── AppDelegate.cs │ │ ├── EvergineAppViewController.cs │ │ ├── EvergineViewHandler.iOS.cs │ │ ├── Info.plist │ │ └── Program.cs ├── Properties │ └── launchSettings.json ├── Resources │ ├── AppIcon │ │ ├── appicon.svg │ │ └── appiconfg.svg │ ├── Fonts │ │ ├── OpenSans-Regular.ttf │ │ └── OpenSans-Semibold.ttf │ ├── Images │ │ └── dotnet_bot.svg │ ├── Raw │ │ └── AboutAssets.txt │ ├── Splash │ │ └── splash.svg │ └── Styles │ │ ├── Colors.xaml │ │ └── Styles.xaml └── UIWindowSystemsDemo.MAUI.csproj ├── UIWindowSystemsDemo.SDL.sln ├── UIWindowSystemsDemo.SDL ├── Program.cs └── UIWindowSystemsDemo.SDL.csproj ├── UIWindowSystemsDemo.WPF.sln ├── UIWindowSystemsDemo.WPF ├── App.xaml ├── App.xaml.cs ├── AssemblyInfo.cs ├── EvergineDisplayHelper.cs ├── MainWindow.xaml ├── MainWindow.xaml.cs ├── SecondaryWindow.xaml ├── SecondaryWindow.xaml.cs ├── SeparatedWindows.xaml ├── SeparatedWindows.xaml.cs └── UIWindowSystemsDemo.WPF.csproj ├── UIWindowSystemsDemo.WinUI (Package) ├── Images │ ├── LockScreenLogo.scale-200.png │ ├── SplashScreen.scale-200.png │ ├── Square150x150Logo.scale-200.png │ ├── Square44x44Logo.scale-200.png │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ ├── StoreLogo.png │ └── Wide310x150Logo.scale-200.png ├── Package.appxmanifest └── UIWindowSystemsDemo.WinUI (Package).wapproj ├── UIWindowSystemsDemo.WinUI.sln ├── UIWindowSystemsDemo.WinUI ├── App.xaml ├── App.xaml.cs ├── MainWindow.xaml ├── MainWindow.xaml.cs ├── UIWindowSystemsDemo.WinUI.csproj └── app.manifest ├── UIWindowSystemsDemo.Windows.sln ├── UIWindowSystemsDemo.Windows ├── CustomForm.Designer.cs ├── CustomForm.cs ├── CustomForm.resx ├── Program.cs └── UIWindowSystemsDemo.Windows.csproj ├── UIWindowSystemsDemo.weproj ├── UIWindowSystemsDemo ├── DisplacementBehavior.cs ├── InteractionService.cs ├── MyApplication.cs ├── MyScene.cs ├── Properties │ └── AssemblyInfo.cs ├── ResetCameraComponent.cs └── UIWindowSystemsDemo.csproj └── nuget.config /.gitattributes: -------------------------------------------------------------------------------- 1 | *.weproj eol=crlf -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.suo 8 | *.user 9 | *.userosscache 10 | *.sln.docstates 11 | 12 | # User-specific files (MonoDevelop/Xamarin Studio) 13 | *.userprefs 14 | 15 | # Build results 16 | [Dd]ebug/ 17 | [Dd]ebugPublic/ 18 | [Rr]elease/ 19 | [Rr]eleases/ 20 | x64/ 21 | x86/ 22 | bld/ 23 | [Bb]in/ 24 | [Oo]bj/ 25 | [Ll]og/ 26 | 27 | # Visual Studio 2015/2017 cache/options directory 28 | .vs/ 29 | # Uncomment if you have tasks that create the project's static files in wwwroot 30 | #wwwroot/ 31 | 32 | # Visual Studio 2017 auto generated files 33 | Generated\ Files/ 34 | 35 | # MSTest test Results 36 | [Tt]est[Rr]esult*/ 37 | [Bb]uild[Ll]og.* 38 | 39 | # NUNIT 40 | *.VisualState.xml 41 | TestResult.xml 42 | 43 | # Build Results of an ATL Project 44 | [Dd]ebugPS/ 45 | [Rr]eleasePS/ 46 | dlldata.c 47 | 48 | # Benchmark Results 49 | BenchmarkDotNet.Artifacts/ 50 | 51 | # .NET Core 52 | project.lock.json 53 | project.fragment.lock.json 54 | artifacts/ 55 | **/Properties/launchSettings.json 56 | 57 | # StyleCop 58 | StyleCopReport.xml 59 | 60 | # Files built by Visual Studio 61 | *_i.c 62 | *_p.c 63 | *_i.h 64 | *.ilk 65 | *.meta 66 | *.obj 67 | *.iobj 68 | *.pch 69 | *.pdb 70 | *.ipdb 71 | *.pgc 72 | *.pgd 73 | *.rsp 74 | *.sbr 75 | *.tlb 76 | *.tli 77 | *.tlh 78 | *.tmp 79 | *.tmp_proj 80 | *.log 81 | *.vspscc 82 | *.vssscc 83 | .builds 84 | *.pidb 85 | *.svclog 86 | *.scc 87 | 88 | # Chutzpah Test files 89 | _Chutzpah* 90 | 91 | # Visual C++ cache files 92 | ipch/ 93 | *.aps 94 | *.ncb 95 | *.opendb 96 | *.opensdf 97 | *.sdf 98 | *.cachefile 99 | *.VC.db 100 | *.VC.VC.opendb 101 | 102 | # Visual Studio profiler 103 | *.psess 104 | *.vsp 105 | *.vspx 106 | *.sap 107 | 108 | # Visual Studio Trace Files 109 | *.e2e 110 | 111 | # TFS 2012 Local Workspace 112 | $tf/ 113 | 114 | # Guidance Automation Toolkit 115 | *.gpState 116 | 117 | # ReSharper is a .NET coding add-in 118 | _ReSharper*/ 119 | *.[Rr]e[Ss]harper 120 | *.DotSettings.user 121 | 122 | # JustCode is a .NET coding add-in 123 | .JustCode 124 | 125 | # TeamCity is a build add-in 126 | _TeamCity* 127 | 128 | # DotCover is a Code Coverage Tool 129 | *.dotCover 130 | 131 | # AxoCover is a Code Coverage Tool 132 | .axoCover/* 133 | !.axoCover/settings.json 134 | 135 | # Visual Studio code coverage results 136 | *.coverage 137 | *.coveragexml 138 | 139 | # NCrunch 140 | _NCrunch_* 141 | .*crunch*.local.xml 142 | nCrunchTemp_* 143 | 144 | # MightyMoose 145 | *.mm.* 146 | AutoTest.Net/ 147 | 148 | # Web workbench (sass) 149 | .sass-cache/ 150 | 151 | # Installshield output folder 152 | [Ee]xpress/ 153 | 154 | # DocProject is a documentation generator add-in 155 | DocProject/buildhelp/ 156 | DocProject/Help/*.HxT 157 | DocProject/Help/*.HxC 158 | DocProject/Help/*.hhc 159 | DocProject/Help/*.hhk 160 | DocProject/Help/*.hhp 161 | DocProject/Help/Html2 162 | DocProject/Help/html 163 | 164 | # Click-Once directory 165 | publish/ 166 | 167 | # Publish Web Output 168 | *.[Pp]ublish.xml 169 | *.azurePubxml 170 | # Note: Comment the next line if you want to checkin your web deploy settings, 171 | # but database connection strings (with potential passwords) will be unencrypted 172 | *.pubxml 173 | *.publishproj 174 | 175 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 176 | # checkin your Azure Web App publish settings, but sensitive information contained 177 | # in these scripts will be unencrypted 178 | PublishScripts/ 179 | 180 | # NuGet Packages 181 | *.nupkg 182 | # The packages folder can be ignored because of Package Restore 183 | **/[Pp]ackages/* 184 | # except build/, which is used as an MSBuild target. 185 | !**/[Pp]ackages/build/ 186 | # Uncomment if necessary however generally it will be regenerated when needed 187 | #!**/[Pp]ackages/repositories.config 188 | # NuGet v3's project.json files produces more ignorable files 189 | *.nuget.props 190 | *.nuget.targets 191 | 192 | # Microsoft Azure Build Output 193 | csx/ 194 | *.build.csdef 195 | 196 | # Microsoft Azure Emulator 197 | ecf/ 198 | rcf/ 199 | 200 | # Windows Store app package directories and files 201 | AppPackages/ 202 | BundleArtifacts/ 203 | Package.StoreAssociation.xml 204 | _pkginfo.txt 205 | *.appx 206 | 207 | # Visual Studio cache files 208 | # files ending in .cache can be ignored 209 | *.[Cc]ache 210 | # but keep track of directories ending in .cache 211 | !*.[Cc]ache/ 212 | 213 | # Others 214 | ClientBin/ 215 | ~$* 216 | *~ 217 | *.dbmdl 218 | *.dbproj.schemaview 219 | *.jfm 220 | *.pfx 221 | *.publishsettings 222 | orleans.codegen.cs 223 | 224 | # Including strong name files can present a security risk 225 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 226 | #*.snk 227 | 228 | # Since there are multiple workflows, uncomment next line to ignore bower_components 229 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 230 | #bower_components/ 231 | 232 | # RIA/Silverlight projects 233 | Generated_Code/ 234 | 235 | # Backup & report files from converting an old project file 236 | # to a newer Visual Studio version. Backup files are not needed, 237 | # because we have git ;-) 238 | _UpgradeReport_Files/ 239 | Backup*/ 240 | UpgradeLog*.XML 241 | UpgradeLog*.htm 242 | ServiceFabricBackup/ 243 | *.rptproj.bak 244 | 245 | # SQL Server files 246 | *.mdf 247 | *.ldf 248 | *.ndf 249 | 250 | # Business Intelligence projects 251 | *.rdl.data 252 | *.bim.layout 253 | *.bim_*.settings 254 | *.rptproj.rsuser 255 | 256 | # Microsoft Fakes 257 | FakesAssemblies/ 258 | 259 | # GhostDoc plugin setting file 260 | *.GhostDoc.xml 261 | 262 | # Node.js Tools for Visual Studio 263 | .ntvs_analysis.dat 264 | node_modules/ 265 | 266 | # Visual Studio 6 build log 267 | *.plg 268 | 269 | # Visual Studio 6 workspace options file 270 | *.opt 271 | 272 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 273 | *.vbw 274 | 275 | # Visual Studio LightSwitch build output 276 | **/*.HTMLClient/GeneratedArtifacts 277 | **/*.DesktopClient/GeneratedArtifacts 278 | **/*.DesktopClient/ModelManifest.xml 279 | **/*.Server/GeneratedArtifacts 280 | **/*.Server/ModelManifest.xml 281 | _Pvt_Extensions 282 | 283 | # Paket dependency manager 284 | .paket/paket.exe 285 | paket-files/ 286 | 287 | # FAKE - F# Make 288 | .fake/ 289 | 290 | # JetBrains Rider 291 | .idea/ 292 | *.sln.iml 293 | 294 | # CodeRush 295 | .cr/ 296 | 297 | # Python Tools for Visual Studio (PTVS) 298 | __pycache__/ 299 | *.pyc 300 | 301 | # Cake - Uncomment if you are using it 302 | # tools/** 303 | # !tools/packages.config 304 | 305 | # Tabs Studio 306 | *.tss 307 | 308 | # Telerik's JustMock configuration file 309 | *.jmconfig 310 | 311 | # BizTalk build output 312 | *.btp.cs 313 | *.btm.cs 314 | *.odx.cs 315 | *.xsd.cs 316 | 317 | # OpenCover UI analysis results 318 | OpenCover/ 319 | 320 | # Azure Stream Analytics local run output 321 | ASALocalRun/ 322 | 323 | # MSBuild Binary and Structured Log 324 | *.binlog 325 | 326 | # NVidia Nsight GPU debugger configuration file 327 | *.nvuser 328 | 329 | # MFractors (Xamarin productivity tool) working folder 330 | .mfractor/ 331 | 332 | # Evergine 333 | .Evergine/ 334 | EvergineContent.cs 335 | !**/Content/**/*.obj 336 | -------------------------------------------------------------------------------- /Content/Models.wedir: -------------------------------------------------------------------------------- 1 | !Evergine.Assets.Exporters.DirectoryMetaFile,Evergine.Assets 2 | Id: 8347b956-d6de-475e-950d-a9070e4709c8 3 | DefaultProfile: 4 | ExcludeAsset: false 5 | Name: null 6 | OutputName: null 7 | Platform: Undefined 8 | ExportAsRaw: false 9 | Profiles: {} 10 | -------------------------------------------------------------------------------- /Content/Models/scene.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvergineTeam/UIWindowSystemsDemo/f2d68c6daa0acf4def7593c3a7f75077fecd722b/Content/Models/scene.bin -------------------------------------------------------------------------------- /Content/Models/scene.bin.wefile: -------------------------------------------------------------------------------- 1 | !Evergine.Assets.Exporters.FileMetaFile,Evergine.Assets 2 | Id: 9b72e8ac-4001-4b2d-b544-ed9e17373d9e 3 | DefaultProfile: 4 | ExcludeAsset: false 5 | Name: null 6 | Platform: Undefined 7 | Profiles: {} 8 | Source: 9 | Header: 10 | Id: 65597d43-11a5-41c5-98c3-f896a976d2ce 11 | IsCompressed: true 12 | LastModified: 0001-01-01T00:00:00.0000000 13 | -------------------------------------------------------------------------------- /Content/Models/scene.gltf.wemd: -------------------------------------------------------------------------------- 1 | !Evergine.Assets.Exporters.ModelMetaFile,Evergine.Assets 2 | Id: fbf972d8-435f-4fef-a4b8-15985eb15396 3 | Clips: [] 4 | DefaultProfile: 5 | ExcludeAsset: false 6 | Name: null 7 | Platform: Undefined 8 | ExportAnimations: true 9 | ExportAsRaw: false 10 | GenerateTangentSpace: true 11 | Profiles: {} 12 | Source: 13 | Header: 14 | Id: 8f5edc0b-7a7a-4c51-b384-156ffa7b8baf 15 | IsCompressed: true 16 | LastModified: 0001-01-01T00:00:00.0000000 17 | ModelInfo: 18 | Id: 886b6454-2271-4a7b-8bc3-f3f01d748da5 19 | AnimationTracks: [] 20 | EmbeddedResources: null 21 | Materials: 22 | - Item1: accent-yellow 23 | Item2: e9b2b5c2-e48b-4b5b-80ff-0f19c96280a3 24 | - Item1: metal-bright 25 | Item2: 22fe1a38-6f62-4cfc-9fed-ee4660a4536a 26 | - Item1: metal-dark 27 | Item2: 91a1069e-669a-4cc2-b4dd-4a76ee651661 28 | - Item1: metal-mid 29 | Item2: 6c351fe7-5428-453a-a33b-f651ae470e29 30 | - Item1: plastic-cone-black 31 | Item2: d9a9f4d9-f4fd-46a5-a433-8869f4475242 32 | - Item1: plastic-grey 33 | Item2: 4e1e89d7-f07a-475e-ad11-2460207d4b8d 34 | Nodes: 35 | - RootNode (gltf orientation matrix) 36 | - RootNode (gltf orientation matrix).RootNode (model correction matrix) 37 | - RootNode (gltf orientation matrix).RootNode (model correction matrix).turbine-01_obj_cleaner_materialmerger_gles 38 | - RootNode (gltf orientation matrix).RootNode (model correction matrix).turbine-01_obj_cleaner_materialmerger_gles._Node_3 39 | - RootNode (gltf orientation matrix).RootNode (model correction matrix).turbine-01_obj_cleaner_materialmerger_gles._Node_4 40 | - RootNode (gltf orientation matrix).RootNode (model correction matrix).turbine-01_obj_cleaner_materialmerger_gles._Node_5 41 | - RootNode (gltf orientation matrix).RootNode (model correction matrix).turbine-01_obj_cleaner_materialmerger_gles._Node_6 42 | - RootNode (gltf orientation matrix).RootNode (model correction matrix).turbine-01_obj_cleaner_materialmerger_gles._Node_7 43 | - RootNode (gltf orientation matrix).RootNode (model correction matrix).turbine-01_obj_cleaner_materialmerger_gles._Node_8 44 | - RootNode (gltf orientation matrix).RootNode (model correction matrix).turbine-01_obj_cleaner_materialmerger_gles._Node_9 45 | - RootNode (gltf orientation matrix).RootNode (model correction matrix).turbine-01_obj_cleaner_materialmerger_gles._Node_10 46 | - RootNode (gltf orientation matrix).RootNode (model correction matrix).turbine-01_obj_cleaner_materialmerger_gles._Node_11 47 | - RootNode (gltf orientation matrix).RootNode (model correction matrix).turbine-01_obj_cleaner_materialmerger_gles._Node_12 48 | - RootNode (gltf orientation matrix).RootNode (model correction matrix).turbine-01_obj_cleaner_materialmerger_gles._Node_13 49 | - RootNode (gltf orientation matrix).RootNode (model correction matrix).turbine-01_obj_cleaner_materialmerger_gles._Node_14 50 | - RootNode (gltf orientation matrix).RootNode (model correction matrix).turbine-01_obj_cleaner_materialmerger_gles._Node_15 51 | - RootNode (gltf orientation matrix).RootNode (model correction matrix).turbine-01_obj_cleaner_materialmerger_gles._Node_16 52 | - RootNode (gltf orientation matrix).RootNode (model correction matrix).turbine-01_obj_cleaner_materialmerger_gles._Node_17 53 | - RootNode (gltf orientation matrix).RootNode (model correction matrix).turbine-01_obj_cleaner_materialmerger_gles._Node_18 54 | - RootNode (gltf orientation matrix).RootNode (model correction matrix).turbine-01_obj_cleaner_materialmerger_gles._Node_19 55 | - RootNode (gltf orientation matrix).RootNode (model correction matrix).turbine-01_obj_cleaner_materialmerger_gles._Node_20 56 | - RootNode (gltf orientation matrix).RootNode (model correction matrix).turbine-01_obj_cleaner_materialmerger_gles._Node_21 57 | SwapWindingOrder: false 58 | -------------------------------------------------------------------------------- /Content/Models/scene_Embedded.wedir: -------------------------------------------------------------------------------- 1 | !Evergine.Assets.Exporters.DirectoryMetaFile,Evergine.Assets 2 | Id: 2e880c10-9d1a-46b3-8ff5-4dc9dc887a3a 3 | DefaultProfile: 4 | ExcludeAsset: false 5 | Name: null 6 | OutputName: null 7 | Platform: Undefined 8 | ExportAsRaw: false 9 | Profiles: {} 10 | -------------------------------------------------------------------------------- /Content/Models/scene_Embedded/Materials.wedir: -------------------------------------------------------------------------------- 1 | !Evergine.Assets.Exporters.DirectoryMetaFile,Evergine.Assets 2 | Id: c11c86b9-d33c-4b6a-8a34-29f39982dee7 3 | DefaultProfile: 4 | ExcludeAsset: false 5 | Name: null 6 | OutputName: null 7 | Platform: Undefined 8 | ExportAsRaw: false 9 | Profiles: {} 10 | -------------------------------------------------------------------------------- /Content/Models/scene_Embedded/Materials/accent_yellow.wemt: -------------------------------------------------------------------------------- 1 | !Evergine.Assets.Exporters.MaterialMetaFile,Evergine.Assets 2 | Id: e9b2b5c2-e48b-4b5b-80ff-0f19c96280a3 3 | DefaultProfile: 4 | ExcludeAsset: false 5 | Name: null 6 | Platform: Undefined 7 | ExportAsRaw: false 8 | MaterialInfo: 9 | Id: 1b6b6beb-85e5-42c7-8ada-61f59e3bd6f4 10 | ActiveDirectives: 11 | - LIT 12 | - IBL 13 | AllowInstancing: false 14 | EffectID: daa1f60a-82ad-40fc-8fbb-7b85caa6de0a 15 | Layer: 0db59561-b3f5-444f-b5de-e62e3a5b42bf 16 | OrderBias: 0 17 | Parameters: 18 | - Name: BaseColor 19 | Type: Evergine.Mathematics.Vector3,Evergine.Mathematics 20 | ValueByteArray: AACAPwj11T4AAAAA 21 | - Name: EmissiveColor 22 | Type: Evergine.Mathematics.Vector3,Evergine.Mathematics 23 | ValueByteArray: AAAAAAAAAAAAAAAA 24 | - Name: Alpha 25 | Type: System.Single 26 | ValueByteArray: AACAPw== 27 | - Name: Metallic 28 | Type: System.Single 29 | ValueByteArray: AAAAAA== 30 | - Name: Roughness 31 | Type: System.Single 32 | ValueByteArray: KVwPPg== 33 | - Name: ReferenceAlpha 34 | Type: System.Single 35 | ValueByteArray: AAAAAA== 36 | Samplers: [] 37 | Textures: [] 38 | Profiles: {} 39 | -------------------------------------------------------------------------------- /Content/Models/scene_Embedded/Materials/metal_bright.wemt: -------------------------------------------------------------------------------- 1 | !Evergine.Assets.Exporters.MaterialMetaFile,Evergine.Assets 2 | Id: 22fe1a38-6f62-4cfc-9fed-ee4660a4536a 3 | DefaultProfile: 4 | ExcludeAsset: false 5 | Name: null 6 | Platform: Undefined 7 | ExportAsRaw: false 8 | MaterialInfo: 9 | Id: a5b394bd-9e0e-4a91-baf8-094e23ea318d 10 | ActiveDirectives: 11 | - LIT 12 | - IBL 13 | AllowInstancing: false 14 | EffectID: daa1f60a-82ad-40fc-8fbb-7b85caa6de0a 15 | Layer: 0db59561-b3f5-444f-b5de-e62e3a5b42bf 16 | OrderBias: 0 17 | Parameters: 18 | - Name: BaseColor 19 | Type: Evergine.Mathematics.Vector3,Evergine.Mathematics 20 | ValueByteArray: zcxMP+VgPj+Rmyk/ 21 | - Name: EmissiveColor 22 | Type: Evergine.Mathematics.Vector3,Evergine.Mathematics 23 | ValueByteArray: AAAAAAAAAAAAAAAA 24 | - Name: Alpha 25 | Type: System.Single 26 | ValueByteArray: AACAPw== 27 | - Name: Metallic 28 | Type: System.Single 29 | ValueByteArray: AACAPw== 30 | - Name: Roughness 31 | Type: System.Single 32 | ValueByteArray: DmH4PQ== 33 | - Name: ReferenceAlpha 34 | Type: System.Single 35 | ValueByteArray: AAAAAA== 36 | Samplers: [] 37 | Textures: [] 38 | Profiles: {} 39 | -------------------------------------------------------------------------------- /Content/Models/scene_Embedded/Materials/metal_dark.wemt: -------------------------------------------------------------------------------- 1 | !Evergine.Assets.Exporters.MaterialMetaFile,Evergine.Assets 2 | Id: 91a1069e-669a-4cc2-b4dd-4a76ee651661 3 | DefaultProfile: 4 | ExcludeAsset: false 5 | Name: null 6 | Platform: Undefined 7 | ExportAsRaw: false 8 | MaterialInfo: 9 | Id: 073f465c-44d0-4a80-9436-d2cc9f235fe3 10 | ActiveDirectives: 11 | - LIT 12 | - IBL 13 | AllowInstancing: false 14 | EffectID: daa1f60a-82ad-40fc-8fbb-7b85caa6de0a 15 | Layer: 0db59561-b3f5-444f-b5de-e62e3a5b42bf 16 | OrderBias: 0 17 | Parameters: 18 | - Name: BaseColor 19 | Type: Evergine.Mathematics.Vector3,Evergine.Mathematics 20 | ValueByteArray: 7nn+PO55/jzuef48 21 | - Name: EmissiveColor 22 | Type: Evergine.Mathematics.Vector3,Evergine.Mathematics 23 | ValueByteArray: AAAAAAAAAAAAAAAA 24 | - Name: Alpha 25 | Type: System.Single 26 | ValueByteArray: AACAPw== 27 | - Name: Metallic 28 | Type: System.Single 29 | ValueByteArray: AACAPw== 30 | - Name: Roughness 31 | Type: System.Single 32 | ValueByteArray: qbeBPg== 33 | - Name: ReferenceAlpha 34 | Type: System.Single 35 | ValueByteArray: AAAAAA== 36 | Samplers: [] 37 | Textures: [] 38 | Profiles: {} 39 | -------------------------------------------------------------------------------- /Content/Models/scene_Embedded/Materials/metal_mid.wemt: -------------------------------------------------------------------------------- 1 | !Evergine.Assets.Exporters.MaterialMetaFile,Evergine.Assets 2 | Id: 6c351fe7-5428-453a-a33b-f651ae470e29 3 | DefaultProfile: 4 | ExcludeAsset: false 5 | Name: null 6 | Platform: Undefined 7 | ExportAsRaw: false 8 | MaterialInfo: 9 | Id: 60382c48-e291-42c8-a173-ade211203c59 10 | ActiveDirectives: 11 | - LIT 12 | - IBL 13 | AllowInstancing: false 14 | EffectID: daa1f60a-82ad-40fc-8fbb-7b85caa6de0a 15 | Layer: 0db59561-b3f5-444f-b5de-e62e3a5b42bf 16 | OrderBias: 0 17 | Parameters: 18 | - Name: BaseColor 19 | Type: Evergine.Mathematics.Vector3,Evergine.Mathematics 20 | ValueByteArray: V7FIPlexSD5XsUg+ 21 | - Name: EmissiveColor 22 | Type: Evergine.Mathematics.Vector3,Evergine.Mathematics 23 | ValueByteArray: AAAAAAAAAAAAAAAA 24 | - Name: Alpha 25 | Type: System.Single 26 | ValueByteArray: AACAPw== 27 | - Name: Metallic 28 | Type: System.Single 29 | ValueByteArray: AACAPw== 30 | - Name: Roughness 31 | Type: System.Single 32 | ValueByteArray: OCZwPg== 33 | - Name: ReferenceAlpha 34 | Type: System.Single 35 | ValueByteArray: AAAAAA== 36 | Samplers: [] 37 | Textures: [] 38 | Profiles: {} 39 | -------------------------------------------------------------------------------- /Content/Models/scene_Embedded/Materials/plastic_cone_black.wemt: -------------------------------------------------------------------------------- 1 | !Evergine.Assets.Exporters.MaterialMetaFile,Evergine.Assets 2 | Id: d9a9f4d9-f4fd-46a5-a433-8869f4475242 3 | DefaultProfile: 4 | ExcludeAsset: false 5 | Name: null 6 | Platform: Undefined 7 | ExportAsRaw: false 8 | MaterialInfo: 9 | Id: 80e198a8-bba4-4222-b810-970a635dc422 10 | ActiveDirectives: 11 | - LIT 12 | - IBL 13 | AllowInstancing: false 14 | EffectID: daa1f60a-82ad-40fc-8fbb-7b85caa6de0a 15 | Layer: 0db59561-b3f5-444f-b5de-e62e3a5b42bf 16 | OrderBias: 0 17 | Parameters: 18 | - Name: BaseColor 19 | Type: Evergine.Mathematics.Vector3,Evergine.Mathematics 20 | ValueByteArray: It8lOyLfJTsi3yU7 21 | - Name: EmissiveColor 22 | Type: Evergine.Mathematics.Vector3,Evergine.Mathematics 23 | ValueByteArray: AAAAAAAAAAAAAAAA 24 | - Name: Alpha 25 | Type: System.Single 26 | ValueByteArray: AACAPw== 27 | - Name: Metallic 28 | Type: System.Single 29 | ValueByteArray: AAAAAA== 30 | - Name: Roughness 31 | Type: System.Single 32 | ValueByteArray: dkUpPg== 33 | - Name: ReferenceAlpha 34 | Type: System.Single 35 | ValueByteArray: AAAAAA== 36 | Samplers: [] 37 | Textures: [] 38 | Profiles: {} 39 | -------------------------------------------------------------------------------- /Content/Models/scene_Embedded/Materials/plastic_grey.wemt: -------------------------------------------------------------------------------- 1 | !Evergine.Assets.Exporters.MaterialMetaFile,Evergine.Assets 2 | Id: 4e1e89d7-f07a-475e-ad11-2460207d4b8d 3 | DefaultProfile: 4 | ExcludeAsset: false 5 | Name: null 6 | Platform: Undefined 7 | ExportAsRaw: false 8 | MaterialInfo: 9 | Id: 4adde616-5b6c-494a-8627-0a1c7f83f999 10 | ActiveDirectives: 11 | - LIT 12 | - IBL 13 | AllowInstancing: false 14 | EffectID: daa1f60a-82ad-40fc-8fbb-7b85caa6de0a 15 | Layer: 0db59561-b3f5-444f-b5de-e62e3a5b42bf 16 | OrderBias: 0 17 | Parameters: 18 | - Name: BaseColor 19 | Type: Evergine.Mathematics.Vector3,Evergine.Mathematics 20 | ValueByteArray: 3J9rPtyfaz7cn2s+ 21 | - Name: EmissiveColor 22 | Type: Evergine.Mathematics.Vector3,Evergine.Mathematics 23 | ValueByteArray: AAAAAAAAAAAAAAAA 24 | - Name: Alpha 25 | Type: System.Single 26 | ValueByteArray: AACAPw== 27 | - Name: Metallic 28 | Type: System.Single 29 | ValueByteArray: AAAAAA== 30 | - Name: Roughness 31 | Type: System.Single 32 | ValueByteArray: DWQcPg== 33 | - Name: ReferenceAlpha 34 | Type: System.Single 35 | ValueByteArray: AAAAAA== 36 | Samplers: [] 37 | Textures: [] 38 | Profiles: {} 39 | -------------------------------------------------------------------------------- /Content/Scenes.wedir: -------------------------------------------------------------------------------- 1 | !Evergine.Assets.Exporters.DirectoryMetaFile,Evergine.Assets 2 | DefaultProfile: 3 | ExcludeAsset: false 4 | Name: null 5 | OutputName: null 6 | Platform: Undefined 7 | Id: f9eeba63-78a8-45d2-a434-9df129b69392 8 | Profiles: {} 9 | -------------------------------------------------------------------------------- /Content/Scenes/MyScene.wescene.wesc: -------------------------------------------------------------------------------- 1 | !Evergine.Assets.Exporters.SceneMetaFile,Evergine.Assets 2 | Id: 760b2dad-8a54-4cd1-9158-5da1b99358e8 3 | DefaultProfile: 4 | ExcludeAsset: false 5 | Name: null 6 | Platform: Undefined 7 | ExportAsRaw: false 8 | Profiles: {} 9 | Source: 10 | Header: 11 | Id: 05234673-871f-4a45-828b-ad26a2cf56a7 12 | IsCompressed: true 13 | LastModified: 0001-01-01T00:00:00.0000000 14 | SceneData: 15 | Id: 1f9bdd7c-ef51-44cd-bb5a-daf97ff0bcaf 16 | -------------------------------------------------------------------------------- /Content/Scenes/MyScene/Environment.wedir: -------------------------------------------------------------------------------- 1 | !Evergine.Assets.Exporters.DirectoryMetaFile,Evergine.Assets 2 | Id: 39a008c7-2977-4dc1-85dd-4283083ff8d9 3 | DefaultProfile: 4 | ExcludeAsset: false 5 | Name: null 6 | OutputName: null 7 | Platform: Undefined 8 | ExportAsRaw: false 9 | Profiles: {} 10 | -------------------------------------------------------------------------------- /Content/Scenes/MyScene/Environment/SceneReflectionProbe.werp: -------------------------------------------------------------------------------- 1 | !Evergine.Assets.Exporters.ReflectionProbeMetaFile,Evergine.Assets 2 | Id: cb4c9738-03a0-494f-a839-20a22581fb59 3 | DefaultProfile: 4 | ExcludeAsset: false 5 | Name: default 6 | Platform: Undefined 7 | ExportAsRaw: false 8 | Profiles: {} 9 | SHCoefficients: null 10 | -------------------------------------------------------------------------------- /Content/Scenes/MyScene/Environment/SceneReflectionProbe/Irradiance.texdmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvergineTeam/UIWindowSystemsDemo/f2d68c6daa0acf4def7593c3a7f75077fecd722b/Content/Scenes/MyScene/Environment/SceneReflectionProbe/Irradiance.texdmp -------------------------------------------------------------------------------- /Content/Scenes/MyScene/Environment/SceneReflectionProbe/Irradiance.texdmp.wetx: -------------------------------------------------------------------------------- 1 | !Evergine.Assets.Exporters.TextureMetaFile,Evergine.Assets 2 | Id: ff1efe11-6f7e-42ca-8e6f-e417875fb91a 3 | DefaultProfile: 4 | ExcludeAsset: false 5 | ExportedItem: null 6 | Name: default 7 | PixelFormat: R8G8B8A8_UNorm 8 | Platform: Undefined 9 | ScaledHeight: 32 10 | ScaledPercentage: 1.0 11 | ScaledWidth: 32 12 | ScalingType: Original 13 | ExportAsRaw: false 14 | GenerateMipMaps: true 15 | NinePatchType: None 16 | PremultipliedAlpha: true 17 | Profiles: {} 18 | SamplerID: 00000000-0000-0000-0000-000000000000 19 | Source: 20 | Header: 21 | Id: 14e4659d-6b67-4248-b7eb-1b2f89391318 22 | IsCompressed: true 23 | LastModified: 0001-01-01T00:00:00.0000000 24 | TextureInfo: 25 | Id: b4ecfc26-e2fb-4260-8c48-3c9c2c1898cb 26 | Description: 27 | ArraySize: 1 28 | CpuAccess: None 29 | Depth: 1 30 | Faces: 6 31 | Flags: ShaderResource, UnorderedAccess 32 | Format: R8G8B8A8_UNorm 33 | Height: 32 34 | MipLevels: 1 35 | SampleCount: None 36 | Type: TextureCube 37 | Usage: Default 38 | Width: 32 39 | HasData: true 40 | SamplerID: 9018edf8-ea96-4721-bf83-5561942432e0 41 | -------------------------------------------------------------------------------- /Content/Scenes/MyScene/Environment/SceneReflectionProbe/Radiance.texdmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvergineTeam/UIWindowSystemsDemo/f2d68c6daa0acf4def7593c3a7f75077fecd722b/Content/Scenes/MyScene/Environment/SceneReflectionProbe/Radiance.texdmp -------------------------------------------------------------------------------- /Content/Scenes/MyScene/Environment/SceneReflectionProbe/Radiance.texdmp.wetx: -------------------------------------------------------------------------------- 1 | !Evergine.Assets.Exporters.TextureMetaFile,Evergine.Assets 2 | Id: d0e7bc4b-3c46-45e2-a97d-8229da67bb4d 3 | DefaultProfile: 4 | ExcludeAsset: false 5 | ExportedItem: null 6 | Name: default 7 | PixelFormat: R8G8B8A8_UNorm 8 | Platform: Undefined 9 | ScaledHeight: 128 10 | ScaledPercentage: 1.0 11 | ScaledWidth: 128 12 | ScalingType: Original 13 | ExportAsRaw: false 14 | GenerateMipMaps: true 15 | NinePatchType: None 16 | PremultipliedAlpha: true 17 | Profiles: {} 18 | SamplerID: 00000000-0000-0000-0000-000000000000 19 | Source: 20 | Header: 21 | Id: 2109ca07-92ed-4547-9940-581be93619f6 22 | IsCompressed: true 23 | LastModified: 0001-01-01T00:00:00.0000000 24 | TextureInfo: 25 | Id: 961abd36-bce4-481e-aa42-4106a1904130 26 | Description: 27 | ArraySize: 1 28 | CpuAccess: None 29 | Depth: 1 30 | Faces: 6 31 | Flags: ShaderResource, UnorderedAccess 32 | Format: R8G8B8A8_UNorm 33 | Height: 128 34 | MipLevels: 5 35 | SampleCount: None 36 | Type: TextureCube 37 | Usage: Default 38 | Width: 128 39 | HasData: true 40 | SamplerID: 9018edf8-ea96-4721-bf83-5561942432e0 41 | -------------------------------------------------------------------------------- /Directory.Build.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | $(DefineConstants);$(AdditionalDefineConstants) 5 | 6 | 7 | -------------------------------------------------------------------------------- /Images/FormsSample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvergineTeam/UIWindowSystemsDemo/f2d68c6daa0acf4def7593c3a7f75077fecd722b/Images/FormsSample.png -------------------------------------------------------------------------------- /Images/MAUISample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvergineTeam/UIWindowSystemsDemo/f2d68c6daa0acf4def7593c3a7f75077fecd722b/Images/MAUISample.png -------------------------------------------------------------------------------- /Images/SDLSample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvergineTeam/UIWindowSystemsDemo/f2d68c6daa0acf4def7593c3a7f75077fecd722b/Images/SDLSample.png -------------------------------------------------------------------------------- /Images/WinUISample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvergineTeam/UIWindowSystemsDemo/f2d68c6daa0acf4def7593c3a7f75077fecd722b/Images/WinUISample.png -------------------------------------------------------------------------------- /Images/WpfSample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EvergineTeam/UIWindowSystemsDemo/f2d68c6daa0acf4def7593c3a7f75077fecd722b/Images/WpfSample.png -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 WaveEngine Team 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # UI API integrations Demo 2 | 3 | This demo shows how you can integrate Evergine in an application using the WindowSystem. The Windows Forms, SDL and UWP samples use the full window to render the application, the WPF, WinUI and MAUI samples demonstrate a way to include a Evergine renderer and how it can interact with WPF controls. 4 | 5 | Video: https://www.youtube.com/watch?v=MOgKXaxselg 6 | 7 | ![alt WPF sample](Images/WpfSample.png) 8 | 9 | ![alt WinUI sample](Images/WinUISample.png) 10 | 11 | ![alt MAUI sample](Images/MAUISample.png) 12 | 13 | ![alt Windows Forms sample](Images/FormsSample.png) 14 | 15 | ![alt SDL sample](Images/SDLSample.png) 16 | 17 | ## Extended samples 18 | Some of windows system samples provide additional features. 19 | - **WPF**: You have the option in _App.xaml_ file to choose between creating a single window with two rendering surfaces, or create two windows, and each one of them with an independent rendering surface. 20 | - **WinForms**: Changing value of _ShowSingleWindowSample_ you can test a rendering surface for the full window, or have a rendering surface that can be with other native UI elements. 21 | 22 | ## Build and Test 23 | 24 | Required Visual Studio 2022 with .NET6 support and .NET7 support. 25 | 26 | You can also test the binaries in the [Releases](https://github.com/Evergine/UIWindowSystemsDemo/releases) section. 27 | 28 | ---- 29 | Powered by **[Evergine](http://www.evergine.com)** 30 | 31 | LET'S CONNECT! 32 | 33 | - [Youtube](https://www.youtube.com/c/Evergine) 34 | - [Twitter](https://x.com/EvergineTeam) 35 | - [Blog](https://evergine.com/news/) 36 | -------------------------------------------------------------------------------- /UIWindowSystemsDemo.Editor/MyCustomClassEditor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Evergine.Common.Graphics; 3 | using Evergine.Editor.Extension; 4 | using Evergine.Editor.Extension.Attributes; 5 | 6 | namespace UIWindowSystemsDemo 7 | { 8 | // Sample class for a custom Property editor. 9 | // This property editor will be used for a property or field of type MyCustomClass when is used in a component of an entity. 10 | // 11 | // [CustomPropertyEditor(typeof(MyCustomClass))] 12 | // public class MyCustomClassEditor : PropertyEditor 13 | // { 14 | // MyCustomClass property; 15 | // 16 | // protected override void Loaded() 17 | // { 18 | // this.property = this.GetMemberValue(); 19 | // } 20 | // 21 | // public override void GenerateUI() 22 | // { 23 | // // Add MyCustomClass properties. 24 | // this.propertyPanelContainer.AddLabel("MyLabel", "My label"); 25 | // this.propertyPanelContainer.AddNumeric(nameof(MyCustomClass.Number), nameof(MyCustomClass.Number), getValue: () => property.Number, setValue: x => property.Number = x); 26 | // this.propertyPanelContainer.AddText(nameof(MyCustomClass.String), nameof(MyCustomClass.String), () => property.String, x => property.String = x); 27 | // } 28 | // } 29 | } 30 | -------------------------------------------------------------------------------- /UIWindowSystemsDemo.Editor/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using Evergine.Common.Attributes; 2 | 3 | [assembly: EvergineAssembly(EvergineAssemblyUsage.Editor)] 4 | -------------------------------------------------------------------------------- /UIWindowSystemsDemo.Editor/UIWindowSystemsDemo.Editor.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | net8.0 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /UIWindowSystemsDemo.MAUI.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.7.34024.191 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UIWindowSystemsDemo.MAUI", "UIWindowSystemsDemo.MAUI\UIWindowSystemsDemo.MAUI.csproj", "{BCFD4FD5-36DA-421D-A0CF-6331EDB95BEB}" 7 | EndProject 8 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UIWindowSystemsDemo", "UIWindowSystemsDemo\UIWindowSystemsDemo.csproj", "{6DEA9C6A-667D-49F8-89FA-40A1F595B48B}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Debug|Any CPU = Debug|Any CPU 13 | Release|Any CPU = Release|Any CPU 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {BCFD4FD5-36DA-421D-A0CF-6331EDB95BEB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 17 | {BCFD4FD5-36DA-421D-A0CF-6331EDB95BEB}.Debug|Any CPU.Build.0 = Debug|Any CPU 18 | {BCFD4FD5-36DA-421D-A0CF-6331EDB95BEB}.Debug|Any CPU.Deploy.0 = Debug|Any CPU 19 | {BCFD4FD5-36DA-421D-A0CF-6331EDB95BEB}.Release|Any CPU.ActiveCfg = Release|Any CPU 20 | {BCFD4FD5-36DA-421D-A0CF-6331EDB95BEB}.Release|Any CPU.Build.0 = Release|Any CPU 21 | {BCFD4FD5-36DA-421D-A0CF-6331EDB95BEB}.Release|Any CPU.Deploy.0 = Release|Any CPU 22 | {6DEA9C6A-667D-49F8-89FA-40A1F595B48B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 23 | {6DEA9C6A-667D-49F8-89FA-40A1F595B48B}.Debug|Any CPU.Build.0 = Debug|Any CPU 24 | {6DEA9C6A-667D-49F8-89FA-40A1F595B48B}.Release|Any CPU.ActiveCfg = Release|Any CPU 25 | {6DEA9C6A-667D-49F8-89FA-40A1F595B48B}.Release|Any CPU.Build.0 = Release|Any CPU 26 | EndGlobalSection 27 | GlobalSection(SolutionProperties) = preSolution 28 | HideSolutionNode = FALSE 29 | EndGlobalSection 30 | GlobalSection(ExtensibilityGlobals) = postSolution 31 | SolutionGuid = {F925F91C-69BD-48DC-A39A-63F045514047} 32 | EndGlobalSection 33 | EndGlobal 34 | -------------------------------------------------------------------------------- /UIWindowSystemsDemo.MAUI/App.xaml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /UIWindowSystemsDemo.MAUI/App.xaml.cs: -------------------------------------------------------------------------------- 1 | namespace UIWindowSystemsDemo.MAUI 2 | { 3 | public partial class App : Application 4 | { 5 | public App() 6 | { 7 | InitializeComponent(); 8 | 9 | MainPage = new AppShell(); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /UIWindowSystemsDemo.MAUI/AppShell.xaml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /UIWindowSystemsDemo.MAUI/AppShell.xaml.cs: -------------------------------------------------------------------------------- 1 | namespace UIWindowSystemsDemo.MAUI 2 | { 3 | public partial class AppShell : Shell 4 | { 5 | public AppShell() 6 | { 7 | InitializeComponent(); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /UIWindowSystemsDemo.MAUI/Evergine/AppBuilderExtensions.cs: -------------------------------------------------------------------------------- 1 | namespace UIWindowSystemsDemo.MAUI.Evergine 2 | { 3 | internal static class AppBuilderExtensions 4 | { 5 | public static MauiAppBuilder UseMauiEvergine(this MauiAppBuilder builder) 6 | { 7 | builder.ConfigureMauiHandlers(h => 8 | { 9 | h.AddHandler(); 10 | }); 11 | 12 | return builder; 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /UIWindowSystemsDemo.MAUI/Evergine/EvergineView.cs: -------------------------------------------------------------------------------- 1 | using EvergineApplication = global::Evergine.Framework.Application; 2 | 3 | namespace UIWindowSystemsDemo.MAUI.Evergine 4 | { 5 | public class EvergineView : View 6 | { 7 | public static readonly BindableProperty ApplicationProperty = 8 | BindableProperty.Create(nameof(Application), typeof(EvergineApplication), typeof(EvergineView), null); 9 | 10 | public static readonly BindableProperty DisplayNameProperty = 11 | BindableProperty.Create(nameof(DisplayName), typeof(string), typeof(EvergineView), string.Empty); 12 | 13 | public EvergineApplication Application 14 | { 15 | get { return (EvergineApplication)this.GetValue(ApplicationProperty); } 16 | set { this.SetValue(ApplicationProperty, value); } 17 | } 18 | 19 | public string DisplayName 20 | { 21 | get { return (string)this.GetValue(DisplayNameProperty); } 22 | set { this.SetValue(DisplayNameProperty, value); } 23 | } 24 | 25 | public event EventHandler PointerPressed; 26 | 27 | public event EventHandler PointerMoved; 28 | 29 | public event EventHandler PointerReleased; 30 | 31 | internal void StartInteraction() => this.PointerPressed?.Invoke(this, EventArgs.Empty); 32 | 33 | internal void MovedInteraction() => this.PointerMoved?.Invoke(this, EventArgs.Empty); 34 | 35 | internal void EndInteraction() => this.PointerReleased?.Invoke(this, EventArgs.Empty); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /UIWindowSystemsDemo.MAUI/Evergine/EvergineViewHandler.cs: -------------------------------------------------------------------------------- 1 | namespace UIWindowSystemsDemo.MAUI.Evergine 2 | { 3 | public partial class EvergineViewHandler 4 | { 5 | public static IPropertyMapper PropertyMapper = new PropertyMapper(ViewMapper) 6 | { 7 | [nameof(EvergineView.Application)] = MapApplication, 8 | }; 9 | 10 | public static CommandMapper CommandMapper = new(ViewCommandMapper); 11 | 12 | public EvergineViewHandler() 13 | : base(PropertyMapper, CommandMapper) 14 | { 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /UIWindowSystemsDemo.MAUI/MainPage.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 36 | 40 | 69 | 70 | 71 | 72 | 73 | 74 |