/// <summary>
 /// gets all departments using DepartmentService
 /// and buid a Expander control with header= department name and content= department description
 /// for each expander create a new row in  gridDepartaments
 /// </summary>
 private void PopulateDepartmentGrid()
 {
     _deptService = new DepartmentService();
     List<Department> depts = _deptService.FindAll();
     int i = 0;
     if (depts != null)
     {
         foreach (var dept in depts)
         {
             Expander expander = new Expander();
             expander.HorizontalAlignment = HorizontalAlignment.Stretch;
             expander.Header = dept.Name;
             StackPanel stackPanel = new StackPanel();
             TextBlock txt = new TextBlock();
             txt.Text = dept.Description + ", " + dept.Floor;
             stackPanel.Children.Add(txt);
             expander.Content = stackPanel;
             gridDepartaments.RowDefinitions.Add(new RowDefinition());
             gridDepartaments.RowDefinitions[i].Height = new GridLength(50);
             Grid.SetRow(expander, i);
             i++;
             gridDepartaments.Children.Add(expander);
         }
     }
 }
Exemplo n.º 2
0
        private void build_gui()
        {
            this.DataContext = options;

            StackPanel threads = this.build_lbltxt(" Threads: ", "Threads");
            StackPanel spp1 = this.build_lbltxt(" SPP: ", "Spp");
            StackPanel pixel_size = this.build_lbltxt(" Pixel size: ", "PixelSize");
            StackPanel asm = this.build_lblcb(" Asm: ", "Asm");
            StackPanel spectral = this.build_lblcb(" Spectral: ", "Spectral");
            StackPanel width = this.build_lbltxt(" Width: ", "Width");
            StackPanel height = this.build_lbltxt(" Height: ", "Height");

            StackPanel sp = new StackPanel();
            sp.Children.Add(threads);
            sp.Children.Add(spp1);
            sp.Children.Add(pixel_size);
            sp.Children.Add(asm);
            sp.Children.Add(spectral);
            sp.Children.Add(width);
            sp.Children.Add(height);

            Expander expander = new Expander();
            expander.Header = "Options";
            expander.Foreground = Brushes.White;
            expander.Content = sp;
            this.Content = expander;
        }
Exemplo n.º 3
0
        public void addHitView(int jobNumber,HITView view)
        {
            StackPanel sp = new StackPanel();
            sp.MouseUp += option1_click;
            //sp.Background = Brushes.LightGray;

            panels[jobNumber] = sp;
            views.Add(sp, view);

            jobs.Children.Add(sp);

            Border border = new Border();
            border.BorderThickness = new Thickness(2.0); border.Height = 1;
            border.BorderBrush = Brushes.Gray;

            sp.Cursor = Cursors.Hand;

            jobs.Children.Add(border);

            sp.Children.Add(view.stub);

            view.stub.registerSidebar(this);

            //sp.LayoutUpdated += child_updated;

            Expander ex = new Expander();
            //ex.Header = view.stub;
            //ex.Content = view;

            //jobs.Children.Add(ex);
        }
Exemplo n.º 4
0
        private void AddReply(SPTopic reply)
        {
            string htmlReply = reply.Body;
            Debug.WriteLine(htmlReply);

            // increase the default font size
            htmlReply = htmlReply.Replace(";font-size:12;", ";font-size:18;");
            Debug.WriteLine(htmlReply);

            RichTextEditor richTextEditor = new RichTextEditor(htmlReply, false);
            // TODO: set font size from user settings

            Label headerLabel = new Label();
            headerLabel.Content = string.Format("{0} wrote {1}", reply.Author, reply.Created);
            headerLabel.FontStyle = FontStyles.Italic;
            headerLabel.FontSize = 12;

            Expander replyExpander = new Expander();
            replyExpander.Header = headerLabel;
            replyExpander.Content = richTextEditor;
            replyExpander.IsExpanded = expander.IsExpanded;

            if (reply.LastModified > reply.LastViewed)
            {
                Label label = (Label)replyExpander.Header;
                label.FontWeight = FontWeights.Bold;
            }

            repliesListView.Children.Add(replyExpander);
        }
Exemplo n.º 5
0
        private void build_gui()
        {
            this.DataContext = camera;

            StackPanel sp_x = this.build_lbltxt("  X: ", "Eye_x");
            StackPanel sp_y = this.build_lbltxt("  Y: ", "Eye_y");
            StackPanel sp_z = this.build_lbltxt("  Z: ", "Eye_z");
            StackPanel row1 = build_row(" Eye :      ", sp_x, sp_y, sp_z);
            StackPanel look_x = this.build_lbltxt("  X: ", "Lookat_x");
            StackPanel look_y = this.build_lbltxt("  Y: ", "Lookat_y");
            StackPanel loop_z = this.build_lbltxt("  Z: ", "Lookat_z");
            StackPanel row2 = build_row(" LookAt : ", look_x, look_y, loop_z);

            StackPanel sp = new StackPanel();
            sp.Children.Add(row1);
            sp.Children.Add(row2);

            // Distance
            StackPanel dist = this.build_lbltxt(" Distance: ", "Distance");

            sp.Children.Add(dist);

            Expander expand = new Expander();
            expand.Header = "Camera";
            expand.Foreground = Brushes.White;
            expand.Content = sp;
            this.Content = expand;
        }
        private Expander CreateUITasklist(TaskList list, Google.Apis.Tasks.v1.Data.Tasks tasks)
        {
            var expander = new Expander();

            // Add a bold title.
            expander.Header = list.Title;
            expander.FontWeight = FontWeights.Bold;

            // Add the taskItems (if applicable).
            if (tasks.Items != null)
            {
                var container = new StackPanel();
                foreach (CheckBox box in tasks.Items.Select(CreateUITask))
                {
                    container.Children.Add(box);
                }
                expander.Content = container;
            }
            else
            {
                expander.Content = "There are no tasks in this list.";
            }

            return expander;
        }
Exemplo n.º 7
0
      void MakeExpander()
      {
        //Create containing stack panel and assign to Grid row/col
        StackPanel sp = new StackPanel();
        Grid.SetRow(sp, 0);
        Grid.SetColumn(sp, 1);
        sp.Background = Brushes.LightSalmon;

        //Create column title
        TextBlock colTitle = new TextBlock();
        colTitle.Text = "EXPANDER CREATED FROM CODE";
        colTitle.HorizontalAlignment= HorizontalAlignment.Center;
        colTitle.Margin.Bottom.Equals(20);
        sp.Children.Add(colTitle);

        //Create Expander object
        Expander exp = new Expander();

        //Create Bullet Panel for Expander Header
        BulletDecorator bp = new BulletDecorator();
        Image i = new Image();
        BitmapImage bi= new BitmapImage(); 
        bi.UriSource = new Uri(@"pack://application:,,/images/icon.jpg");
        i.Source = bi;
        i.Width = 10;
        bp.Bullet = i;
        TextBlock tb = new TextBlock();
        tb.Text = "My Expander";
        tb.Margin = new Thickness(20,0,0,0);     
        bp.Child = tb;
        exp.Header = bp;

        //Create TextBlock with ScrollViewer for Expander Content
        StackPanel spScroll = new StackPanel();
        TextBlock tbc = new TextBlock();
        tbc.Text =
                "Lorem ipsum dolor sit amet, consectetur adipisicing elit," +
                "sed do eiusmod tempor incididunt ut labore et dolore magna" +
                "aliqua. Ut enim ad minim veniam, quis nostrud exercitation" +
                "ullamco laboris nisi ut aliquip ex ea commodo consequat." +
                "Duis aute irure dolor in reprehenderit in voluptate velit" +
                "esse cillum dolore eu fugiat nulla pariatur. Excepteur sint" +
                "occaecat cupidatat non proident, sunt in culpa qui officia" +
                "deserunt mollit anim id est laborum.";
        tbc.TextWrapping = TextWrapping.Wrap;

        spScroll.Children.Add(tbc);
        ScrollViewer scr = new ScrollViewer();
        scr.Content = spScroll;
        scr.Height = 50;
        exp.Content = scr;

        exp.Width=200;  
        exp.HorizontalContentAlignment= HorizontalAlignment.Stretch;
        //Insert Expander into the StackPanel and add it to the
        //Grid
        sp.Children.Add(exp);
        myGrid.Children.Add(sp);
      }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.DownloadParameters = ((System.Windows.Controls.Expander)(target));
     return;
     }
     this._contentLoaded = true;
 }
        public void SetFilter(TestCaseFilter filter)
        {
            RuleList.Items.Clear();
            foreach (var group in filter)
            {
                TreeView ruleTree = new TreeView();
                CheckBox selectAll = new CheckBox()
                {
                    Content = "(Select All)",
                    IsChecked = group.IsSelected,
                    Focusable = false,
                    Tag = group
                };
                selectAll.Checked += (sender, arg) =>
                {
                    if (group.IsSelected != true) group.IsSelected = true;
                };
                selectAll.Unchecked += (sender, arg) =>
                {
                    if (group.IsSelected != false) group.IsSelected = false;
                };
                group.PropertyChanged += (sender, arg) =>
                {
                    if (arg.PropertyName == "IsSelected")
                    {
                        selectAll.IsChecked = group.IsSelected;
                    }
                };

                ruleTree.Items.Add(selectAll);

                AddItems(ruleTree.Items, group);
                Expander expander = new Expander()
                {
                    Header = group.Name,
                    Content = ruleTree,
                    IsExpanded = true
                };
                RuleList.Items.Add(expander);
                ruleTree.KeyDown += (sender, arg) =>
                {
                    if (arg.Key != Key.Space) return;
                    var tv = sender as TreeView;
                    if (tv == null) return;
                    ToggleTreeview(tv);
                };
                ruleTree.PreviewMouseWheel += ScrollViewer_PreviewMouseWheel;
                ruleTree.MouseDoubleClick += (sender, arg) =>
                {
                    if (arg.ChangedButton != MouseButton.Left) return;
                    var tv = sender as TreeView;
                    if (tv == null) return;
                    ToggleTreeview(tv);
                };
            }
        }
Exemplo n.º 10
0
 public virtual void ExpanderAutomationPeerTypeAndClass()
 {
     Expander item = new Expander();
     ExpanderAutomationPeer peer = null;
     TestAsync(
         item,
         () => peer = FrameworkElementAutomationPeer.CreatePeerForElement(item) as ExpanderAutomationPeer,
         () => Assert.AreEqual(AutomationControlType.Group, peer.GetAutomationControlType(), "Unexpected AutomationControlType!"),
         () => Assert.AreEqual("Expander", peer.GetClassName(), "Unexpected ClassType!"));
 }
        public InstanceDetailsDialogExtensions(System.Windows.Controls.UserControl dialogControl, ListBox productVersionControl, ListBox productRevisionControl, Expander moreSettinsExpander, TextBox instanceName)
        {
            this.DialogControl = dialogControl;
              this.ParentWindow = FindParentWindow(this.DialogControl.Parent);

              this.ProductVersion = productVersionControl;
              this.ProductRevision = productRevisionControl;
              this.MoreSettingsExpander = moreSettinsExpander;
              this.InstanceName = instanceName;
        }
Exemplo n.º 12
0
 public ShyTabs()
 {
     Loaded += (s, e) =>
     {
         _expander    = this.Find<Expander>("_expander");
         _vacantSpace = this.Find<Border>(name: "_vacantSpace");
         _vacantSpace.MouseDown += (t, f) 
             => { _expander.Toggle(); };
     };
 }
Exemplo n.º 13
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/gMVVM;component/Views/Common/ToolHeader.xaml", System.UriKind.Relative));
     this.RootItem = ((System.Windows.Controls.UserControl)(this.FindName("RootItem")));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ToolLog = ((System.Windows.Controls.Expander)(this.FindName("ToolLog")));
 }
Exemplo n.º 14
0
        private void RemoveUserControl()
        {
            if (m_expander_level != null)
                m_grid_main.Children.Remove(m_expander_level);
            m_expander_level = null;
            m_userControl_level = null;

            if (m_userControl_levelLayout != null)
                m_grid_main.Children.Remove(m_userControl_levelLayout);
            m_userControl_levelLayout = null;
        }
Exemplo n.º 15
0
        public ExpanderBackend()
        {
            Widget = new SWC.Expander();

            Widget.Expanded += delegate {
                EventSink.OnPreferredSizeChanged();
            };
            Widget.Collapsed += delegate {
                EventSink.OnPreferredSizeChanged();
            };
        }
 static void MessageBoxEvent(Expander expander)
 {
     expander.Expanded += delegate
     {
         MessageBox.Show("");
     };
     expander.Collapsed += delegate
     {
         MessageBox.Show("");
     };
 }
Exemplo n.º 17
0
        /// <summary>
        /// public function that created a power element
        /// </summary>
        /// <param name="itemcount">used to uniquily identify the element</param>
        /// <param name="powertype">used to uniquily identify the element</param>
        /// <returns>created power element</returns>
        public Expander CreateElement(int itemcount = 0, string powertype = "power")
        {
            Expander expndr = new Expander();

             expndr.Name = powertype + "_" + itemcount.ToString() + "_expndr";
             expndr.HorizontalAlignment = HorizontalAlignment.Stretch;

             expndr.Header = CreateHeader();
             expndr.Content = CreateContent();

             return expndr;
        }
Exemplo n.º 18
0
        private void Select(Level level)
        {
            RemoveUserControl();
            m_userControl_level = new UserControl_Level(level);
            m_expander_level = new Expander() { Header = level.Name, Content = m_userControl_level, ExpandDirection = System.Windows.Controls.ExpandDirection.Down, IsExpanded = !level.HasLayout() };
            m_grid_main.SetRowColumn(m_expander_level, 1, 0);

            if (level != null)
            {
                m_userControl_levelLayout = new UserControl_LevelEditor(level);
                m_grid_main.SetRowColumn(m_userControl_levelLayout, 2, 0);
            }
        }
        public void DisplayList()
        {

            Brush wBrush = new SolidColorBrush(Colors.White);
            Brush bBrush = new SolidColorBrush(Colors.Black);
            Brush gBrush = new SolidColorBrush(Colors.WhiteSmoke);

            Thickness marpad = new Thickness();
            marpad.Bottom = 1;
            marpad.Left = 1;
            marpad.Right = 1;
            marpad.Top = 1;

            int counter = 1;
            int remainder = 0;

            foreach (BaseTask x in listoftasks)
            {
                
                Expander exptemp = new Expander();

                exptemp.Header = "Rank: " + x.TaskRank.ToString() + "Sev: " + x.TaskSeverity.ToString() + " Summary: " + x.Summary;
                exptemp.Name = "Task" + x.TaskRank.ToString();

                Math.DivRem( counter++, 2,out remainder);

                if(remainder != 0)
                    exptemp.Background = wBrush;
                else
                    exptemp.Background = gBrush;
                exptemp.BorderBrush = bBrush;
                exptemp.Margin = marpad;
                exptemp.Padding = marpad;
                TextBlock tb = new TextBlock();
                tb.TextWrapping = TextWrapping.Wrap;
                tb.Inlines.Add(new Bold(new Run("Creation Date: ")));
                tb.Inlines.Add(x.Creation.ToString() + "\n");
                tb.Inlines.Add(new Bold(new Run("Due Date: ")));
                tb.Inlines.Add(x.DueDate.ToString() + "\n");
                tb.Inlines.Add(new Bold(new Run("Status: ")));
                tb.Inlines.Add(x.Status + "\n");
                tb.Inlines.Add(new Bold(new Run("Reminder Types: ")));
                tb.Inlines.Add("-Not Completed\n");
                tb.Inlines.Add(new Bold(new Run("Description:\n")));
                tb.Inlines.Add(x.Description);

                exptemp.Content = tb;

                ListStacker.Children.Add(exptemp);
            }
        }
Exemplo n.º 20
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/hybrid;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.myMap = ((ESRI.ArcGIS.Client.Map)(this.FindName("myMap")));
     this.sideBar = ((System.Windows.Controls.Border)(this.FindName("sideBar")));
     this.expanderMain = ((System.Windows.Controls.Expander)(this.FindName("expanderMain")));
     this.navTools = ((System.Windows.Controls.StackPanel)(this.FindName("navTools")));
     this.image1 = ((System.Windows.Controls.Image)(this.FindName("image1")));
     this.textBlock1 = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock1")));
 }
Exemplo n.º 21
0
        private void AddContinent(string continent, bool open, string[] countryList)
        {
            Expander exp = new Expander();
            exp.Header = continent;
            exp.IsExpanded = open;

            ListBox lb = new ListBox();
            lb.BorderThickness = new Thickness(0);
            lb.MouseDoubleClick += new MouseButtonEventHandler(lb_MouseDoubleClick);
            foreach (string country in countryList)
                lb.Items.Add(country);
            exp.Content = lb;

            continentStackPanel.Children.Add(exp);
        }
        private void addRightScrollerItems(int amount)
        {
            for (int i = 0; i < amount; i++) {
                Expander expTemp = new Expander();
                expTemp.Header = "Dit is een expander " + i;
                expTemp.HorizontalAlignment = HorizontalAlignment.Left;
                expTemp.Foreground = Brushes.LightGray;
                expTemp.Height = 50;
                expTemp.Margin = new Thickness(10);
                expTemp.IsExpanded = false;
                expTemp.Content = "Dit is de content van een expander.";

                rightScrollerGrid.Children.Add(expTemp);
            }
        }
Exemplo n.º 23
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.@this = ((TraceLab.UI.WPF.Views.Nodes.ReadOnlyComponentNodeInfo)(target));
                return;

            case 2:
                this.resizeThumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 50 "..\..\..\..\Views\Nodes\ReadOnlyComponentNodeInfo.xaml"
                this.resizeThumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.resizeThumb_DragDelta);

            #line default
            #line hidden
                return;

            case 3:
                this.iospecRow = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 4:
                this.iospecExpander = ((System.Windows.Controls.Expander)(target));

            #line 63 "..\..\..\..\Views\Nodes\ReadOnlyComponentNodeInfo.xaml"
                this.iospecExpander.Expanded += new System.Windows.RoutedEventHandler(this.iospecExpander_Expanded);

            #line default
            #line hidden

            #line 63 "..\..\..\..\Views\Nodes\ReadOnlyComponentNodeInfo.xaml"
                this.iospecExpander.Collapsed += new System.Windows.RoutedEventHandler(this.iospecExpander_Collapsed);

            #line default
            #line hidden
                return;

            case 5:
                this.inputsLV = ((System.Windows.Controls.ListView)(target));
                return;

            case 7:
                this.outputsLV = ((System.Windows.Controls.ListView)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 24
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DangerousViolatorDetailsUIcontrol = ((STC.Projects.WPFControlLibrary.SOPBox.UserControls.DangerousViolatorDetailsUserControl)(target));
                return;

            case 2:
                this.gridNotifiedViolatorDetails = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.Btnback = ((System.Windows.Controls.Button)(target));

            #line 2675 "..\..\..\UserControls\DangerousViolatorDetailsUserControl.xaml"
                this.Btnback.Click += new System.Windows.RoutedEventHandler(this.ClosePopup_OnClick);

            #line default
            #line hidden
                return;

            case 4:
                this.expanderNotifiedViolatorDetails = ((System.Windows.Controls.Expander)(target));
                return;

            case 5:
                this.txtBoxComment = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.radBusyIndicator = ((Telerik.Windows.Controls.RadBusyIndicator)(target));
                return;

            case 7:
                this.expanderNotifiedViolatorHiostory = ((System.Windows.Controls.Expander)(target));
                return;

            case 8:
                this.imgMediaGalleryUc = ((STC.Projects.WPFControlLibrary.SOPBox.UserControls.ImageMediaGalleryUserControl)(target));
                return;

            case 9:
                this.violatorItemImgUc = ((STC.Projects.WPFControlLibrary.SOPBox.UserControls.VoilatiorItemDetailsUserControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 25
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\..\View\MainWindow.xaml"
                ((HeatmapParserWPF.MainWindow)(target)).ContentRendered += new System.EventHandler(this.Window_ContentRendered);

            #line default
            #line hidden

            #line 12 "..\..\..\View\MainWindow.xaml"
                ((HeatmapParserWPF.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden

            #line 13 "..\..\..\View\MainWindow.xaml"
                ((HeatmapParserWPF.MainWindow)(target)).StateChanged += new System.EventHandler(this.Window_StateChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.mainGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.Expand = ((System.Windows.Controls.Expander)(target));

            #line 41 "..\..\..\View\MainWindow.xaml"
                this.Expand.Collapsed += new System.Windows.RoutedEventHandler(this.Test_Collapsed);

            #line default
            #line hidden

            #line 41 "..\..\..\View\MainWindow.xaml"
                this.Expand.Expanded += new System.Windows.RoutedEventHandler(this.Test_Expanded);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 26
0
        public ExpanderBackend()
        {
            Widget = new SWC.Expander();

            Widget.Expanded += delegate {
                System.Windows.Application.Current.Dispatcher.BeginInvoke((System.Action) delegate()
                {
                    EventSink.OnPreferredSizeChanged();
                });
            };
            Widget.Collapsed += delegate {
                System.Windows.Application.Current.Dispatcher.BeginInvoke((System.Action) delegate()
                {
                    EventSink.OnPreferredSizeChanged();
                });
            };
        }
        public static void SaveState(Expander exp, bool collapsed, IList<string> collapsedGroups)
        {
            var collectionViewGroup = exp.DataContext as CollectionViewGroup;
            if (collectionViewGroup == null)
                return;

            string groupId = GetGroupIdentifier(collectionViewGroup);
            if (collapsed)
            {
                if (!collapsedGroups.Contains(groupId))
                    collapsedGroups.Add(groupId);
            }
            else
            {
                collapsedGroups.Remove(groupId);
            }
        }
Exemplo n.º 28
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.view1 = ((HelixToolkit.SharpDX.Wpf.Viewport3DX)(target));
                return;

            case 2:
                this.model1 = ((HelixToolkit.SharpDX.Wpf.MeshGeometryModel3D)(target));
                return;

            case 3:
                this.model2 = ((HelixToolkit.SharpDX.Wpf.MeshGeometryModel3D)(target));
                return;

            case 4:
                this.model3 = ((HelixToolkit.SharpDX.Wpf.MeshGeometryModel3D)(target));
                return;

            case 5:
                this.lines1 = ((HelixToolkit.SharpDX.Wpf.LineGeometryModel3D)(target));
                return;

            case 6:
                this.lines2 = ((HelixToolkit.SharpDX.Wpf.LineGeometryModel3D)(target));
                return;

            case 7:
                this.lines3 = ((HelixToolkit.SharpDX.Wpf.LineGeometryModel3D)(target));
                return;

            case 8:
                this.grid = ((HelixToolkit.SharpDX.Wpf.LineGeometryModel3D)(target));
                return;

            case 9:
                this.shadingPanel = ((System.Windows.Controls.Expander)(target));
                return;

            case 10:
                this.linesPanel = ((System.Windows.Controls.Expander)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 29
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.Settings = ((System.Windows.Controls.Expander)(target));
                return;

            case 3:
                this.status = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:
                this.colorPanel = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:
                this.colorViewer = ((Microsoft.Samples.Kinect.WpfViewers.KinectColorViewer)(target));
                return;

            case 6:
                this.KinectSkeletonViewerOnColor = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonViewer)(target));
                return;

            case 7:
                this.kinectAudioViewer = ((Microsoft.Samples.Kinect.WpfViewers.KinectAudioViewer)(target));
                return;

            case 8:
                this.depthPanel = ((System.Windows.Controls.Grid)(target));
                return;

            case 9:
                this.KinectDepthViewer = ((Microsoft.Samples.Kinect.WpfViewers.KinectDepthViewer)(target));
                return;

            case 10:
                this.KinectSkeletonViewerOnDepth = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonViewer)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 30
0
        private string User; // Name of user type

        #endregion Fields

        #region Methods

        /// <summary>
        /// Function that will fill in all the fields in a power element
        /// </summary>
        /// <param name="expndr">Power element</param>
        /// <param name="ePower">XML data for power</param>
        /// <param name="user">Name of user type</param>
        public void InsertPowerInformationController(Expander expndr, XElement ePower, string user)
        {
            User = user;

             // set header
             (expndr.Header as Label).Content = ePower.Element("name").Value;

             // set body
             StackPanel body_stckpnl = new StackPanel();
             body_stckpnl = (expndr.Content as StackPanel);
             InsertPowerInfomation(body_stckpnl, ePower, "none");

             foreach (XElement eErrata in ePower.Elements("errata"))
             {
            InsertPowerInfomation(body_stckpnl, eErrata, eErrata.Element("todo").Value);
             }
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.OpenCasesExpander = ((System.Windows.Controls.Expander)(target));

            #line 60 "..\..\OpenCaseControl.xaml"
                this.OpenCasesExpander.Expanded += new System.Windows.RoutedEventHandler(this.OpenCases_Expanded);

            #line default
            #line hidden
                return;

            case 2:
                this.ClosedCasesExpander = ((System.Windows.Controls.Expander)(target));

            #line 77 "..\..\OpenCaseControl.xaml"
                this.ClosedCasesExpander.Expanded += new System.Windows.RoutedEventHandler(this.ClosedCasesExpander_Expanded);

            #line default
            #line hidden
                return;

            case 3:
                this.AutoRepliedCasesExpander = ((System.Windows.Controls.Expander)(target));

            #line 95 "..\..\OpenCaseControl.xaml"
                this.AutoRepliedCasesExpander.Expanded += new System.Windows.RoutedEventHandler(this.AutoRepliedCasesExpander_Expanded);

            #line default
            #line hidden
                return;

            case 4:
                this.custSentimentIndex = ((System.Windows.Controls.Expander)(target));

            #line 117 "..\..\OpenCaseControl.xaml"
                this.custSentimentIndex.Expanded += new System.Windows.RoutedEventHandler(this.custSentimentIndex_Expanded);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 32
0
		public ExpanderBackend()
		{
			Widget = new SWC.Expander();

			Widget.Expanded += delegate {
				System.Windows.Application.Current.Dispatcher.BeginInvoke ((System.Action)delegate ()
				{
					EventSink.OnPreferredSizeChanged ();
				});
			};
			Widget.Collapsed += delegate {
				System.Windows.Application.Current.Dispatcher.BeginInvoke ((System.Action)delegate ()
				{
					EventSink.OnPreferredSizeChanged ();
				});
			};
		}
 private void AddChildren(FormElement element)
 {
     if (element.Children.Count > 0)
     {
         var expander = new Expander();
         var panel = new FormPanel();
         foreach (var child in element.Children)
         {
             var visitor = new FormElementVisitorImpl();
             visitor.VisitFormElement(child);
             visitor.Result.Margin = new Thickness(20, 0, 0, 0);
             panel.Children.Add(visitor.Result);
         }
         expander.Content = panel;
         _result.Children.Add(expander);
     }
 }
Exemplo n.º 34
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Root = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.MainGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.expander = ((System.Windows.Controls.Expander)(target));
                return;

            case 4:

            #line 16 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NewGame);

            #line default
            #line hidden
                return;

            case 5:

            #line 17 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GameSearch);

            #line default
            #line hidden
                return;

            case 6:
                this.Main = ((System.Windows.Controls.Frame)(target));

            #line 21 "..\..\MainWindow.xaml"
                this.Main.Navigated += new System.Windows.Navigation.NavigatedEventHandler(this.Main_Navigated);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.grdData = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.lstElements = ((System.Windows.Controls.ListBox)(target));
                return;

            case 3:
                this.BreakFast = ((System.Windows.Controls.Expander)(target));

            #line 55 "..\..\..\Pages\New Order.xaml"
                this.BreakFast.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.BreakFast_MouseDown);

            #line default
            #line hidden
                return;

            case 4:
                this.spdata = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 5:
                this.btnLunch = ((System.Windows.Controls.Button)(target));
                return;

            case 6:
                this.btnCombo = ((System.Windows.Controls.Button)(target));
                return;

            case 7:
                this.btnFamilyPack = ((System.Windows.Controls.Button)(target));

            #line 106 "..\..\..\Pages\New Order.xaml"
                this.btnFamilyPack.Click += new System.Windows.RoutedEventHandler(this.btnFamilyPack_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 36
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Flow_Chart = ((System.Windows.Controls.Expander)(target));
                return;

            case 2:

            #line 38 "..\..\..\Screens\Window1.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Chart_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.Top_Size_Lbl = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.Top_Size = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 5:
                this.Mass_Lbl = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.Mass = ((System.Windows.Controls.TextBox)(target));

            #line 58 "..\..\..\Screens\Window1.xaml"
                this.Mass.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.NumberValidationTextBox);

            #line default
            #line hidden
                return;

            case 7:
                this.MyDesigner = ((RobotRecipeManager.DesignerCanvas)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ExpanderControl = ((System.Windows.Controls.Expander)(target));
                return;

            case 2:
                this.velikostFontaCbx = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 3:
                this.barvaFontaCbx = ((System.Windows.Controls.ComboBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 38
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            IAddChild container = sp;

            Expander ex = new Expander();
            ex.Header = "meu expander";
            ex.Margin = new Thickness(30);
            ex.Expanded += new RoutedEventHandler(Expander_Expanded);

            container.AddChild(ex);

            Button button1 = new Button();
            button1.Content = "Clique aqui";
            button1.Margin = new Thickness(30);

            container = ex;
            container.AddChild(button1);
        }
Exemplo n.º 39
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.hccCat1 = ((System.Windows.Controls.HeaderedContentControl)(target));
                return;

            case 2:
                this.gpCat2 = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 3:
                this.expCat3 = ((System.Windows.Controls.Expander)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 40
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.FixtureExpander = ((System.Windows.Controls.Expander)(target));
                return;

            case 2:
                this.FixtureList = ((System.Windows.Controls.ListView)(target));
                return;

            case 3:
                this.MatchList = ((System.Windows.Controls.ListView)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 41
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.expander1 = ((System.Windows.Controls.Expander)(target));
                return;

            case 2:
                this.expander2 = ((System.Windows.Controls.Expander)(target));
                return;

            case 3:
                this.expander3 = ((System.Windows.Controls.Expander)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 42
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Title = ((System.Windows.Controls.Expander)(target));
                return;

            case 2:
                this.TextBoxTitle = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 3:
                this.ExpanderListView = ((System.Windows.Controls.ListView)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 43
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.label = ((System.Windows.Controls.Label)(target));
                return;

            case 2:
                this.label_Copy = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.txtfrom = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.groupBox = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 5:
                this.btngerar = ((System.Windows.Controls.Button)(target));

            #line 14 "..\..\MainWindow.xaml"
                this.btngerar.Click += new System.Windows.RoutedEventHandler(this.btngerar_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.expander = ((System.Windows.Controls.Expander)(target));
                return;

            case 7:
                this.listvalores = ((System.Windows.Controls.ListBox)(target));
                return;

            case 8:
                this.listBox_Copy = ((System.Windows.Controls.ListBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 44
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.txtTitel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 2:
                this.icon = ((System.Windows.Controls.Image)(target));
                return;

            case 3:
                this.colorPicker = ((Telerik.Windows.Controls.RadDropDownButton)(target));
                return;

            case 4:
                this.topDetailsGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:
                this.contentControl = ((System.Windows.Controls.ContentControl)(target));
                return;

            case 6:

            #line 260 "..\..\..\..\UserControls\AddSecureItemWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.notesTxt = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.advancedExpander = ((System.Windows.Controls.Expander)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.signInWindow = ((SoBasicEnglish.Views.SignInWindow)(target));
                return;

            case 2:
                this.stpLoginInfo = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.txtUserLoginName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.txtUserLoginpassWord = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 5:
                this.ExpanderControl = ((System.Windows.Controls.Expander)(target));
                return;

            case 6:
                this.gForgetPass = ((System.Windows.Controls.Grid)(target));
                return;

            case 7:
                this.txtEmailToResetPassword = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.txtLoginNameToReSetPassWord = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.child01 = ((MahApps.Metro.SimpleChildWindow.ChildWindow)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 46
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.stackPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 2:
                this.expanderFileInfo = ((System.Windows.Controls.Expander)(target));
                return;

            case 3:
                this.textBoxMajorBrand = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.textBoxMinorVersion = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.textBoxCompatibleBrands = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.expanderMovieInfo = ((System.Windows.Controls.Expander)(target));
                return;

            case 7:
                this.textBoxDurationMs = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.textBoxTimeScale = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.textBoxTracks = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 47
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ListViewItemMenu = ((System.Windows.Controls.ListBoxItem)(target));
                return;

            case 2:
                this.ExpanderMenu = ((System.Windows.Controls.Expander)(target));
                return;

            case 3:
                this.ListViewMenu = ((System.Windows.Controls.ListView)(target));

            #line 13 "..\..\..\Views\UserControlMenuItem.xaml"
                this.ListViewMenu.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ListViewMenu_SelectionChanged_1);

            #line default
            #line hidden

            #line 13 "..\..\..\Views\UserControlMenuItem.xaml"
                this.ListViewMenu.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.ListViewMenu_MouseDoubleClick);

            #line default
            #line hidden

            #line 13 "..\..\..\Views\UserControlMenuItem.xaml"
                this.ListViewMenu.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.ListViewMenu_MouseDown);

            #line default
            #line hidden

            #line 13 "..\..\..\Views\UserControlMenuItem.xaml"
                this.ListViewMenu.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ListViewMenu_PreviewMouseLeftButtonDown);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 48
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.exp1 = ((System.Windows.Controls.Expander)(target));
                return;

            case 2:
                this.ListOfPorts = ((System.Windows.Controls.ListBox)(target));
                return;

            case 3:
                this.getData = ((System.Windows.Controls.Button)(target));

            #line 16 "..\..\MainWindow.xaml"
                this.getData.Click += new System.Windows.RoutedEventHandler(this.getData_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.UpdatePorts = ((System.Windows.Controls.Button)(target));

            #line 17 "..\..\MainWindow.xaml"
                this.UpdatePorts.Click += new System.Windows.RoutedEventHandler(this.UpdatePorts_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.tbtest = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.Graph = ((LiveCharts.Wpf.CartesianChart)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 49
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.remotePnlMain = ((Dynamo_TORO.NodeUI.RemotePanelMain)(target));
                return;

            case 2:
                this.UpdateRapid = ((System.Windows.Controls.Button)(target));
                return;

            case 3:
                this.ControlerExpander = ((System.Windows.Controls.Expander)(target));

            #line 282 "..\..\..\NodeUI\RemotePanelMain.xaml"
                this.ControlerExpander.Collapsed += new System.Windows.RoutedEventHandler(this.ControlerExpander_Collapsed);

            #line default
            #line hidden

            #line 282 "..\..\..\NodeUI\RemotePanelMain.xaml"
                this.ControlerExpander.Expanded += new System.Windows.RoutedEventHandler(this.ControlerExpander_Expanded);

            #line default
            #line hidden
                return;

            case 4:
                this.tabControl = ((System.Windows.Controls.TabControl)(target));
                return;

            case 5:
                this.ProgramPanel = ((Dynamo_TORO.NodeUI.tab_program)(target));
                return;

            case 6:
                this.SetupPanel = ((Dynamo_TORO.NodeUI.tab_Setup)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 50
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWnd = ((DecoratorPattern.MainPizzaStoreView)(target));
                return;

            case 2:
                this.OpenCloseStoreBtn = ((System.Windows.Controls.Expander)(target));

            #line 32 "..\..\..\Views\MainPizzaStoreView.xaml"
                this.OpenCloseStoreBtn.Collapsed += new System.Windows.RoutedEventHandler(this.OpenCloseStoreBtn_Collapsed);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 51
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ExpanderMenu = ((System.Windows.Controls.Expander)(target));
                return;

            case 2:
                this.ListViewMenu = ((System.Windows.Controls.ListView)(target));

            #line 11 "..\..\..\userControls\userControlMenuItem.xaml"
                this.ListViewMenu.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ListViewMenu_SelectionChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 52
0
        public ChildMenu(List<MyChildMenu> childMenus)
        {
            InitializeComponent();
            this.childMenus = childMenus;
            //定义数组存放:二级菜单外部大控件
            Expander[] expanders = new Expander[] { _expander_0, _expander_1, _expander_2, _expander_3, _expander_4, _expander_5, _expander_6 };

            //先让所有控件都可见
            for (int i = 0; i < 7; i++)
            {
                expanders[i].Visibility = Visibility.Visible;
            }
            //再根据二级菜单的个数隐藏部门控件
            for (int i = childMenus.Count; i < 7; i++)
            {
                expanders[i].Visibility = Visibility.Hidden;
            }
            //加载二、三级菜单
            loadMenu();
        }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Microsoft.SilverlightMediaFramework.Samples;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.trv = ((System.Windows.Controls.TreeView)(this.FindName("trv")));
     this.sourceCodeExpander = ((System.Windows.Controls.Expander)(this.FindName("sourceCodeExpander")));
     this.tabCode = ((System.Windows.Controls.TabControl)(this.FindName("tabCode")));
     this.blendTabItem = ((System.Windows.Controls.TabItem)(this.FindName("blendTabItem")));
     this.BlendInstructionsTextBox = ((System.Windows.Controls.TextBox)(this.FindName("BlendInstructionsTextBox")));
     this.htmlTabItem = ((System.Windows.Controls.TabItem)(this.FindName("htmlTabItem")));
     this.HtmlTextBox = ((System.Windows.Controls.TextBox)(this.FindName("HtmlTextBox")));
     this.xamlTabItem = ((System.Windows.Controls.TabItem)(this.FindName("xamlTabItem")));
     this.XamlTextBox = ((System.Windows.Controls.TextBox)(this.FindName("XamlTextBox")));
     this.csharpTabItem = ((System.Windows.Controls.TabItem)(this.FindName("csharpTabItem")));
     this.CSharpTextBox = ((System.Windows.Controls.TextBox)(this.FindName("CSharpTextBox")));
     this.displayArea = ((System.Windows.Controls.ContentControl)(this.FindName("displayArea")));
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\..\..\Views\Controls\StoneNotFinishedBuyTradeRecordControl.xaml"
                ((SuperMinersWPF.Views.Controls.StoneNotFinishedBuyTradeRecordControl)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.btnRefreshMySelfOrders = ((System.Windows.Controls.Button)(target));

            #line 16 "..\..\..\..\Views\Controls\StoneNotFinishedBuyTradeRecordControl.xaml"
                this.btnRefreshMySelfOrders.Click += new System.Windows.RoutedEventHandler(this.btnRefreshMySelfOrders_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.expBuyOrders = ((System.Windows.Controls.Expander)(target));
                return;

            case 4:
                this.listboxMyBuyOrders = ((System.Windows.Controls.ListBox)(target));
                return;

            case 8:
                this.expSellOrders = ((System.Windows.Controls.Expander)(target));
                return;

            case 9:
                this.listboxMySellOrders = ((System.Windows.Controls.ListBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 55
0
        private static void UpdateExpanderArrow(Expander expander, bool visible)
        {
            Grid headerGrid =
                    VisualTreeHelper.GetChild(
                            VisualTreeHelper.GetChild(
                                            VisualTreeHelper.GetChild(
                                                    VisualTreeHelper.GetChild(
                                                            VisualTreeHelper.GetChild(
                                                                    expander,
                                                                    0),
                                                            0),
                                                    0),
                                            0),
                                    0) as Grid;

            headerGrid.Children[0].Visibility = visible ? Visibility.Collapsed : Visibility.Visible; // Hide or show the Ellipse
            headerGrid.Children[1].Visibility = visible ? Visibility.Collapsed : Visibility.Visible; // Hide or show the Arrow
            headerGrid.Children[2].SetValue(Grid.ColumnProperty, visible ? 0 : 1); // If the Arrow is not visible, then shift the Header Content to the first column.
            headerGrid.Children[2].SetValue(Grid.ColumnSpanProperty, visible ? 2 : 1); // If the Arrow is not visible, then set the Header Content to span both rows.
            headerGrid.Children[2].SetValue(ContentPresenter.MarginProperty, visible ? new Thickness(0) : new Thickness(4, 0, 0, 0)); // If the Arrow is not visible, then remove the margin from the Content.
        }
Exemplo n.º 56
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.exit = ((System.Windows.Controls.Button)(target));

            #line 25 "..\..\registration.xaml"
                this.exit.Click += new System.Windows.RoutedEventHandler(this.exit_Click);

            #line default
            #line hidden
                return;

            case 2:
                this.first = ((System.Windows.Controls.Expander)(target));
                return;

            case 3:
                this.second = ((System.Windows.Controls.Expander)(target));

            #line 39 "..\..\registration.xaml"
                this.second.Expanded += new System.Windows.RoutedEventHandler(this.second_Expanded);

            #line default
            #line hidden
                return;

            case 4:
                this.Create = ((System.Windows.Controls.Button)(target));

            #line 54 "..\..\registration.xaml"
                this.Create.Click += new System.Windows.RoutedEventHandler(this.Create_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 57
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Icon = ((MaterialDesignThemes.Wpf.PackIcon)(target));
                return;

            case 2:
                this.ListViewItemMenu = ((System.Windows.Controls.ListBoxItem)(target));

            #line 41 "..\..\..\UserControls\UserControlMenuItem.xaml"
                this.ListViewItemMenu.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ListViewItemMenu_PreviewMouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 3:
                this.ExpanderMenu = ((System.Windows.Controls.Expander)(target));
                return;

            case 4:
                this.ListViewMenu = ((System.Windows.Controls.ListView)(target));

            #line 45 "..\..\..\UserControls\UserControlMenuItem.xaml"
                this.ListViewMenu.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ListViewItemMenu_PreviewMouseLeftButtonDown);

            #line default
            #line hidden

            #line 45 "..\..\..\UserControls\UserControlMenuItem.xaml"
                this.ListViewMenu.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ListViewMenu_SelectionChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 58
0
        void OutputParagraphString(string message, string expanderHeader, string expanderContent, Brush foreground)
        {
            Task.Factory.StartNew(() =>
            {
                var p = new Paragraph();

                p.Foreground = foreground;
                if (null != message)
                {
                    p.Inlines.Add(message);
                }
                if (null != expanderHeader || null != expanderContent)
                {
                    var expander = new System.Windows.Controls.Expander();

                    expander.Foreground = foreground;
                    if (null != expanderHeader)
                    {
                        expander.Header = expanderHeader;
                    }

                    var content = new System.Windows.Controls.TextBox();

                    content.Foreground = foreground;
                    content.Text       = expanderContent;
                    content.HorizontalScrollBarVisibility = System.Windows.Controls.ScrollBarVisibility.Auto;
                    expander.Content = content;

                    p.Inlines.Add(new InlineUIContainer(expander));
                }
                DiagnosticOutputDocument.Blocks.Add(p);
                if (ScrollToEndOnOutputCheckBox.IsChecked.HasValue && ScrollToEndOnOutputCheckBox.IsChecked.Value)
                {
                    DiagnosticOutputTextBox.ScrollToEnd();
                }
            },
                                  System.Threading.CancellationToken.None,
                                  TaskCreationOptions.None,
                                  UiSynchronizationContext);
        }
Exemplo n.º 59
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.remind_title = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 2:
     this.remind_expander = ((System.Windows.Controls.Expander)(target));
     
     #line 15 "..\..\ShowActiveRemind.xaml"
     this.remind_expander.Collapsed += new System.Windows.RoutedEventHandler(this.remind_expander_Collapsed);
     
     #line default
     #line hidden
     
     #line 15 "..\..\ShowActiveRemind.xaml"
     this.remind_expander.Expanded += new System.Windows.RoutedEventHandler(this.remind_expander_Expanded);
     
     #line default
     #line hidden
     return;
     case 3:
     this.remind_date = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 4:
     this.remind_discription = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 5:
     this.btn_complete = ((System.Windows.Controls.Button)(target));
     
     #line 31 "..\..\ShowActiveRemind.xaml"
     this.btn_complete.Click += new System.Windows.RoutedEventHandler(this.btn_complete_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Exemplo n.º 60
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Microsoft.SilverlightMediaFramework.Samples;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot               = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.trv                      = ((System.Windows.Controls.TreeView)(this.FindName("trv")));
     this.sourceCodeExpander       = ((System.Windows.Controls.Expander)(this.FindName("sourceCodeExpander")));
     this.tabCode                  = ((System.Windows.Controls.TabControl)(this.FindName("tabCode")));
     this.blendTabItem             = ((System.Windows.Controls.TabItem)(this.FindName("blendTabItem")));
     this.BlendInstructionsTextBox = ((System.Windows.Controls.TextBox)(this.FindName("BlendInstructionsTextBox")));
     this.htmlTabItem              = ((System.Windows.Controls.TabItem)(this.FindName("htmlTabItem")));
     this.HtmlTextBox              = ((System.Windows.Controls.TextBox)(this.FindName("HtmlTextBox")));
     this.xamlTabItem              = ((System.Windows.Controls.TabItem)(this.FindName("xamlTabItem")));
     this.XamlTextBox              = ((System.Windows.Controls.TextBox)(this.FindName("XamlTextBox")));
     this.csharpTabItem            = ((System.Windows.Controls.TabItem)(this.FindName("csharpTabItem")));
     this.CSharpTextBox            = ((System.Windows.Controls.TextBox)(this.FindName("CSharpTextBox")));
     this.displayArea              = ((System.Windows.Controls.ContentControl)(this.FindName("displayArea")));
 }