mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-26 03:59:34 +08:00
Misc
This commit is contained in:
@@ -2,8 +2,54 @@
|
||||
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:spp="https://steampp.net/ui"
|
||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||
x:Class="BD.WTTS.UI.Views.Windows.ContentWindow"
|
||||
Title="ContentWindow">
|
||||
|
||||
xmlns:uip="using:FluentAvalonia.UI.Controls.Primitives"
|
||||
xmlns:wnd="using:FluentAvalonia.UI.Windowing"
|
||||
xmlns:ui="using:FluentAvalonia.UI.Controls"
|
||||
Title="ContentWindow"
|
||||
x:DataType="spp:ContentWindowViewModel"
|
||||
x:CompileBindings="True">
|
||||
<Grid RowDefinitions="Auto, *">
|
||||
<Grid
|
||||
Name="TitleBarHost"
|
||||
Height="{StaticResource TitleBarHeight}"
|
||||
VerticalAlignment="Center"
|
||||
Background="Transparent"
|
||||
ColumnDefinitions="Auto,Auto,*,Auto">
|
||||
|
||||
<Image
|
||||
Name="WindowIcon"
|
||||
Grid.Column="0"
|
||||
Width="48"
|
||||
Height="48"
|
||||
Margin="10,4"
|
||||
DockPanel.Dock="Left"
|
||||
IsHitTestVisible="False"
|
||||
Source="/UI/Assets/ApplicationIcon.ico" />
|
||||
|
||||
<TextBlock
|
||||
Grid.Column="1"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="14"
|
||||
IsHitTestVisible="False"
|
||||
Text="{Binding Title, RelativeSource={RelativeSource FindAncestor, AncestorType=Window}}" />
|
||||
|
||||
<Separator
|
||||
Grid.Column="3"
|
||||
Height="18"
|
||||
Margin="10,0"
|
||||
VerticalAlignment="Center"
|
||||
Background="{DynamicResource ButtonBorderBrush}"
|
||||
Classes="Vertical" />
|
||||
</Grid>
|
||||
<ContentControl DataContext="{Binding PageViewModel}">
|
||||
<ContentControl.DataTemplates>
|
||||
<DataTemplate DataType="spp:SettingsPageViewModel">
|
||||
<spp:SettingsPage/>
|
||||
</DataTemplate>
|
||||
</ContentControl.DataTemplates>
|
||||
</ContentControl>
|
||||
</Grid>
|
||||
</Window>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using Avalonia.Controls;
|
||||
|
||||
namespace BD.WTTS.UI.Views.Windows;
|
||||
|
||||
public partial class ContentWindow : AppWindow
|
||||
{
|
||||
public ContentWindow()
|
||||
|
||||
@@ -5,5 +5,5 @@
|
||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||
x:Class="BD.WTTS.UI.Views.Windows.MessageBoxWindow"
|
||||
Title="MessageBoxWindow">
|
||||
|
||||
|
||||
</Window>
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace BD.WTTS.Services.UI.ViewModels;
|
||||
|
||||
public class ContentWindowViewModel : WindowViewModel
|
||||
{
|
||||
[Reactive]
|
||||
public ViewModelBase? PageViewModel { get; set; }
|
||||
|
||||
public ContentWindowViewModel()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user