示例#1
0
        private void DesignTheForm()
        {
            APMBorder APMBorder = new APMBorder();

            this.Content = APMBorder;
            APMDockPanel APMDockPanel = new APMDockPanel();

            APMBorder.Child = APMDockPanel;
            APMToolBar      = new APMToolBar()
            {
                XType = XWindowType.SelectWindow
            };
            APMDockPanel.Children.Add(APMToolBar);
            APMDockPanel.Children.Add(APMStatusBar);
            APMDockPanel.Children.Add(APMGroupBoxFilter);
            APMGroupBoxFilter.SetValue(DockPanel.DockProperty, Dock.Bottom);
            StackPanel StackPanel = new StackPanel()
            {
                Orientation = Orientation.Horizontal
            };

            lblName = new APMLabel()
            {
                Content = "نام:"
            };
            txtName = new APMTextBox();
            lblCode = new APMLabel()
            {
                Content = "کد:"
            };
            txtCode = new APMTextBox();
            StackPanel.Children.Add(new APMLabel()
            {
                Width = 40
            });
            StackPanel.Children.Add(lblName);
            StackPanel.Children.Add(txtName);
            StackPanel.Children.Add(new APMLabel()
            {
                Width = 100
            });
            StackPanel.Children.Add(lblCode);
            StackPanel.Children.Add(txtCode);
            APMGroupBoxFilter.Content = StackPanel;
            APMGroupBoxGridGroup.SetValue(DockPanel.DockProperty, Dock.Top);
            WrapPanel WrapPanel = new WrapPanel()
            {
                Margin = new Thickness(8)
            };

            WrapPanel.Children.Add(aPMComboBox);
            APMGroupBoxGridGroup.Content = WrapPanel;
            APMDockPanel.Children.Add(APMGroupBoxGridGroup);
            tree = new APMTree()
            {
                Background = System.Windows.Media.Brushes.Transparent, Margin = new Thickness(7)
            };
            APMDockPanel.Children.Add(APMGroupBoxDisplay);
        }
示例#2
0
        private void DesignTheForm()
        {
            APMBorder APMBorder = new APMBorder();

            this.Content = APMBorder;
            APMDockPanel APMDockPanel = new APMDockPanel();

            APMBorder.Child = APMDockPanel;
            APMDockPanel.Children.Add(APMToolBar);
            var str = typeof(RT).Name.Substring(4);

            str = str.Substring(0, (str.Length) - 10);
            APMDocumentHeader.Name = typeof(RT).Name;
            APMDockPanel.Children.Add(APMDocumentHeader);
            this.Content       = APMBorder;
            this.SizeToContent = SizeToContent.WidthAndHeight;
        }