Skip to content

Commit

Permalink
Editor Settings Page PreWork
Browse files Browse the repository at this point in the history
  • Loading branch information
Offline-R503B committed Jan 28, 2021
1 parent 9097b9e commit 2bb355e
Show file tree
Hide file tree
Showing 9 changed files with 85 additions and 4 deletions.
2 changes: 2 additions & 0 deletions WolvenKit/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ protected override async void OnStartup(StartupEventArgs e)


viewModelLocator.Register(typeof(Views.SettingsPages.EditorSettingsView), typeof(ViewModels.SettingsPages.EditorSettingsViewModel));
viewModelLocator.Register(typeof(Views.SettingsPages.SubPages.Editor.GeneralSubSettingsView), typeof(ViewModels.SettingsPages.SubPages.Editor.GeneralSubSettingsViewModel));
viewModelLocator.Register(typeof(Views.SettingsPages.SubPages.Editor.CompatibilitySubSettingsView), typeof(ViewModels.SettingsPages.SubPages.Editor.CompatibilitySubSettingsViewModel));


viewModelLocator.Register(typeof(Views.SettingsPages.PackagingSettingsView), typeof(ViewModels.SettingsPages.PackagingSettingsViewModel));
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using Catel.MVVM;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WolvenKit.ViewModels.SettingsPages.SubPages.Editor
{
class CompatibilitySubSettingsViewModel : ViewModelBase
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using Catel.MVVM;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WolvenKit.ViewModels.SettingsPages.SubPages.Editor
{
class GeneralSubSettingsViewModel : ViewModelBase
{
}
}
5 changes: 3 additions & 2 deletions WolvenKit/Views/SettingsPages/EditorSettingsView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@

<hc:SideMenuItem >
<hc:SideMenuItem.Header>
<TextBlock Text="Global" FontSize="10.5"/>
<TextBlock Text="General" FontSize="10.5"/>
</hc:SideMenuItem.Header>
</hc:SideMenuItem>
<hc:SideMenuItem >
<hc:SideMenuItem.Header>
<TextBlock Text="Personalize" FontSize="10.5"/>
<TextBlock Text="Compatibility Library Paths" FontSize="10.5"/>
</hc:SideMenuItem.Header>
</hc:SideMenuItem>

</hc:SideMenu>


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<catel:UserControl x:Class="WolvenKit.Views.SettingsPages.SubPages.Editor.CompatibilitySubSettingsView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:catel="http://schemas.catelproject.com">

<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>

<Label Grid.Row="0" Content="{Binding Title}" />
<Label Grid.Row="1" Content="Here goes your real content" />
</Grid>

</catel:UserControl>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

namespace WolvenKit.Views.SettingsPages.SubPages.Editor
{
public partial class CompatibilitySubSettingsView
{
public CompatibilitySubSettingsView()
{
InitializeComponent();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<catel:UserControl x:Class="WolvenKit.Views.SettingsPages.SubPages.Editor.GeneralSubSettingsView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:catel="http://schemas.catelproject.com">

<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>

<Label Grid.Row="0" Content="{Binding Title}" />
<Label Grid.Row="1" Content="Here goes your real content" />
</Grid>

</catel:UserControl>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

namespace WolvenKit.Views.SettingsPages.SubPages.Editor
{
public partial class GeneralSubSettingsView
{
public GeneralSubSettingsView()
{
InitializeComponent();
}
}
}
2 changes: 0 additions & 2 deletions WolvenKit/WolvenKit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,8 @@
<ItemGroup>
<Folder Include="Resources\Styles\CustomBase\" />
<Folder Include="Resources\Styles\Custom\" />
<Folder Include="ViewModels\SettingsPages\SubPages\Editor\" />
<Folder Include="ViewModels\SettingsPages\SubPages\Integration\" />
<Folder Include="ViewModels\SettingsPages\SubPages\Packaging\" />
<Folder Include="Views\SettingsPages\SubPages\Editor\" />
<Folder Include="Views\SettingsPages\SubPages\Integration\" />
<Folder Include="Views\SettingsPages\SubPages\Packaging\" />
</ItemGroup>
Expand Down

0 comments on commit 2bb355e

Please sign in to comment.