Esempio n. 1
0
        public Toolbar()
        {
            InitializeComponent();

            TollbarViewModel tool_bar_view_model = new TollbarViewModel();

            tool_bar_view_model.Background_Color = Brushes.Blue;
            tool_bar_view_model.Font_Color       = Brushes.White;

            // Add Item Modifer Buttons
            tool_bar_view_model.ItemModifers.Add(tool_bar_view_model.BuildImageButton("../images/DeleteWhite.png", DeleteBtn_Click));
            tool_bar_view_model.ItemModifers.Add(tool_bar_view_model.BuildImageButton("../images/EditWhite.png", EditBtn_Click));

            // Display the navigation button in our parrent container.
            NavigationSp.Children.Add(tool_bar_view_model.BuildImageButton("../images/BackArrowWhite.png", NavigationBtn_Click));

            // Display Item Modifer Buttons
            foreach (Button temp_button in tool_bar_view_model.ItemModifers)
            {
                ItemModifersSp.Children.Add(temp_button);
            }


            this.DataContext = tool_bar_view_model;
        }
Esempio n. 2
0
        public Toolbar()
        {
            InitializeComponent();

            TollbarViewModel tool_bar_view_model = new TollbarViewModel();

            tool_bar_view_model.Background_Color = Brushes.Blue;
            tool_bar_view_model.Font_Color       = Brushes.White;

            this.DataContext = tool_bar_view_model;
        }
Esempio n. 3
0
        public Toolbar()
        {
            InitializeComponent();

            TollbarViewModel tool_bar_view_model = new TollbarViewModel();

            tool_bar_view_model.Background_Color = Brushes.Blue;
            tool_bar_view_model.Font_Color       = Brushes.White;

            // Assign Button Properties
            tool_bar_view_model.Navigation_img = "../images/HamburgerMenuWhite.png";
            tool_bar_view_model.Navigation_reh = NavigationBtn_Click;
            NavigationBtn.Click += tool_bar_view_model.Navigation_reh;

            this.DataContext = tool_bar_view_model;
        }