using System; using System.Collections.Generic; using System.Linq; 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.Navigation; using System.Windows.Shapes; namespace Venus_Themes.UserControls { /// /// TMDoor.xaml 的交互逻辑 /// public partial class TMDoor : UserControl { public TMDoor() { InitializeComponent(); } private bool m_doorOpen; public bool DoorOpen { get { return m_doorOpen; } set { if (value == true) { r1.Height = 80; r2.Height = 80; } else { r1.Height = 15; r2.Height = 15; } m_doorOpen = value; } } public static readonly DependencyProperty RotateTransformValueProperty = DependencyProperty.Register( "RotateTransformValue", typeof(int), typeof(TMDoor)); public int RotateTransformValue { get { return (int)this.GetValue(RotateTransformValueProperty); } set { this.SetValue(RotateTransformValueProperty, value); } } } }