-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ability to edit game parameters before adding it
- Loading branch information
Showing
4 changed files
with
56 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<UserControl xmlns="https://github.com/avaloniaui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:viewModels="clr-namespace:SightKeeper.Avalonia.ViewModels" | ||
xmlns:system="clr-namespace:System;assembly=System.Runtime" | ||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" | ||
x:Class="SightKeeper.Avalonia.Settings.Games.GameEditor" | ||
x:DataType="viewModels:GameViewModel"> | ||
<StackPanel Spacing="8"> | ||
<StackPanel.Resources> | ||
<ResourceDictionary> | ||
<system:Boolean x:Key="IsEnabledFallbackValue">False</system:Boolean> | ||
</ResourceDictionary> | ||
</StackPanel.Resources> | ||
<HeaderedContentControl Header="Title"> | ||
<TextBox Text="{Binding Title}" | ||
IsEnabled="{Binding Converter={x:Static ObjectConverters.IsNotNull}, FallbackValue={StaticResource IsEnabledFallbackValue}}"/> | ||
</HeaderedContentControl> | ||
<HeaderedContentControl Header="Process name"> | ||
<TextBox Text="{Binding ProcessName}" | ||
IsEnabled="{Binding Converter={x:Static ObjectConverters.IsNotNull}, FallbackValue={StaticResource IsEnabledFallbackValue}}"/> | ||
</HeaderedContentControl> | ||
<HeaderedContentControl Header="Executable path"> | ||
<TextBox Text="{Binding ExecutablePath}" | ||
IsEnabled="{Binding Converter={x:Static ObjectConverters.IsNotNull}, FallbackValue={StaticResource IsEnabledFallbackValue}}"/> | ||
</HeaderedContentControl> | ||
</StackPanel> | ||
</UserControl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using Avalonia.Controls; | ||
|
||
namespace SightKeeper.Avalonia.Settings.Games; | ||
|
||
internal sealed partial class GameEditor : UserControl | ||
{ | ||
public GameEditor() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} |