MainWindow.xaml.cs
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace WpfApplication1
{
/// <summary>
/// MainWindow.xaml 的交互逻辑
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
Set3D(Str);
}
private const byte ShowItemCount = 10;
private double AddAngle = 1;
private double StartPosition = 0;
private double AngleOffset = 0;
private string ItemCount = "0";
private int ItemCountInt = 0;
private int SelectItemIndex = 0;
private int SelectImage = 0;
private String[] Str = new string[] { $@"{Environment.CurrentDirectory}\pic\1.jpg", $@"{Environment.CurrentDirectory}\pic\2.jpg", $@"{Environment.CurrentDirectory}\pic\3.jpg" , $@"{Environment.CurrentDirectory}\pic\4.jpg" , $@"{Environment.CurrentDirectory}\pic\5.jpg", $@"{Environment.CurrentDirectory}\pic\6.jpg" };
private void Control_MouseMove(System.Object sender, System.Windows.Input.MouseEventArgs e)
{
if (e.LeftButton == MouseButtonState.Pressed)
{
SetControlAngle(e.GetPosition(this).X - StartPosition, 1);
StartPosition = e.GetPosition(this).X;
}
}
private void Control_MouseLeftButtonDown(System.Object sender, System.Windows.Input.MouseButtonEventArgs e)
{
StartPosition = e.GetPosition(this).X;
}
private void Control_MouseWheel(object sender, MouseWheelEventArgs e)
{
SetControlAngle(0 - e.Delta, 5);
}
private void SetControlAngle(double i, int j)
{
后面还有 144 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
