csharpc-sharpdotnetxamlavaloniauicross-platformcross-platform-xamlavaloniaguimulti-platformuser-interfacedotnetcore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.4 KiB
61 lines
1.4 KiB
using System;
|
|
using MiniMvvm;
|
|
using Avalonia.Animation;
|
|
|
|
namespace RenderDemo.ViewModels
|
|
{
|
|
public class Transform3DPageViewModel : ViewModelBase
|
|
{
|
|
private double _roationX = 0;
|
|
private double _rotationY = 0;
|
|
private double _rotationZ = 0;
|
|
|
|
private double _x = 0;
|
|
private double _y = 0;
|
|
private double _z = 0;
|
|
|
|
private double _depth = 200;
|
|
|
|
public double RoationX
|
|
{
|
|
get => _roationX;
|
|
set => RaiseAndSetIfChanged(ref _roationX, value);
|
|
}
|
|
|
|
public double RotationY
|
|
{
|
|
get => _rotationY;
|
|
set => RaiseAndSetIfChanged(ref _rotationY, value);
|
|
}
|
|
|
|
public double RotationZ
|
|
{
|
|
get => _rotationZ;
|
|
set => RaiseAndSetIfChanged(ref _rotationZ, value);
|
|
}
|
|
|
|
public double Depth
|
|
{
|
|
get => _depth;
|
|
set => RaiseAndSetIfChanged(ref _depth, value);
|
|
}
|
|
|
|
public double X
|
|
{
|
|
get => _x;
|
|
set => RaiseAndSetIfChanged(ref _x, value);
|
|
}
|
|
|
|
public double Y
|
|
{
|
|
get => _y;
|
|
set => RaiseAndSetIfChanged(ref _y, value);
|
|
}
|
|
|
|
public double Z
|
|
{
|
|
get => _z;
|
|
set => RaiseAndSetIfChanged(ref _z, value);
|
|
}
|
|
}
|
|
}
|
|
|