MenuProfile.xaml.cs 1.38 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
using MultiLayout;
using MultiLayout.UiModule;
using System.Windows;
using System.Windows.Controls;
using Unity;

namespace FLY.Thick.Blowing.UI.Fix.Client.UiModule
{


    /// <summary>
    /// MenuProfile.xaml 的交互逻辑
    /// </summary>
    public partial class MenuProfile : UserControl
    {
        IUnityContainer container;
        public MenuProfile()
        {
            InitializeComponent();
        }
        [InjectionMethod]
        public void Init(IUnityContainer container)
        {
            this.container = container;
        }
        private void btnProfileClick(object sender, RoutedEventArgs e)
        {
            PgProfileBlowing p = new PgProfileBlowing();
            container.BuildUp(p);
            FlyLayoutManager.NavigationService.Navigate(p);
        }

    }

    public class UiModule2_MenuProfile : IUiModule2
    {
        public string Title => "产品";

        public ComponentType Type => ComponentType.Menu;

        public bool IsUnique => true;

        public FrameworkElement GetComponent(int id, IUnityContainer container)
        {
            MenuProfile menu = new MenuProfile();
            container.BuildUp(menu);
            return menu;
        }

        public FrameworkElement GetThumbnail()
        {
            return new System.Windows.Controls.Grid();
        }

        public void MatchParam(int[] IDs)
        {

        }
    }
}