Backup/MyFriends/Windows/MainInterfaceWindow.xaml.cs
(开头部分) 11KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
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.Shapes;
using System.Windows.Media.Animation;
using System.Windows.Markup;
using System.IO;
using System.Xml;
namespace MyFriends
{
public enum DisplayStyle { GrowShrink = 1, ThreeDimension };
/// <summary>
/// Interaction logic for MainInterfaceWindow.xaml
/// </summary>
public partial class MainInterfaceWindow : Window
{
private enum CurrentDisplayOption { AddIsShown = 1, AddIsHidden, ViewIsShown, ViewIsHidden };
private CurrentDisplayOption currentDisplayOption;
private DisplayStyle currentDisplayStyle;
private ItemsControl items3d;
private Storyboard Grow_Hide_AddUserControlStoryBoard;
private Storyboard Grow_Show_ViewUsersControlStoryBoard;
private Storyboard Shrink_Show_AddUserControlStoryBoard;
private Storyboard Shrink_Hide_ViewUsersControlStoryBoard;
private AddNewFriendControl addfriendsControl3D = null;
private Point topleft;
public MainInterfaceWindow()
{
InitializeComponent();
CreateAlphaGrowArea(true);//创建缩放显示区域
btnViewAllFriends.IsEnabled = true;//启用查看联系人按钮
btnAddFriend.IsEnabled = false;//关闭添加联系人按钮
}
private void CreateAlphaGrowArea(bool initialCall)
{
//初始化添加联系人控年
addFriendsControl.ReInitialise();
//设置当前的显示风格
currentDisplayStyle = DisplayStyle.GrowShrink;
mainGrid.Children.Clear();//首先清除Grid中的控件
后面还有 189 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
