Exemplo n.º 1
0
        public PackageDetailControl()
        {
            InitializeComponent();

            Loaded += (sender, args) =>
            {
                VersionsList.RegisterSort(nameof(IPackageVersion.Version), ListSortDirection.Descending);
                ReferencingPackages.RegisterSort("Value", nameof(IPackageVersion.Package), nameof(IPackage.Name));
                ReferencingProjects.RegisterSort("Value", nameof(IPackage.Name));
            };
        }
Exemplo n.º 2
0
        public PackageVersionControl()
        {
            DataContextChanged += (sender, args) =>
            {
                if (args.OldValue != null)
                {
                    ViewModel.PropertyChanged -= ViewModelOnPropertyChanged;
                }
                if (args.NewValue != null)
                {
                    ViewModel.PropertyChanged += ViewModelOnPropertyChanged;
                }
            };

            InitializeComponent();

            Assemblies.RegisterSort(nameof(AssemblyInfo.Name));
            ReferencingPackages.RegisterSort(nameof(IPackageVersion.Package), nameof(IPackage.Name));
            ReferencingProjects.RegisterSort(nameof(IProject.Name));
            ConfigReferences.RegisterSort(nameof(IProject.Name));
            BindingRedirectReferences.RegisterSort(nameof(IProject.Name));
        }