Beispiel #1
0
    public MainPage()
    {
        this.InitializeComponent();
        PivotTestlist = new List <PivotTest>();
        PivotTest PivotTest1 = new PivotTest();

        PivotTest1.ListBoxTestlist = new List <ListBoxTest>();
        PivotTest1.ListBoxTestlist.Add(new ListBoxTest()
        {
            name = "name1", id = "id1"
        });
        PivotTest1.ListBoxTestlist.Add(new ListBoxTest()
        {
            name = "name2", id = "id2"
        });
        PivotTest1.header = "header1";
        PivotTestlist.Add(PivotTest1);
        PivotTest PivotTest2 = new PivotTest();

        PivotTest2.ListBoxTestlist = new List <ListBoxTest>();
        PivotTest2.ListBoxTestlist.Add(new ListBoxTest()
        {
            name = "name11", id = "id11"
        });
        PivotTest2.ListBoxTestlist.Add(new ListBoxTest()
        {
            name = "name22", id = "id22"
        });
        PivotTest2.header = "header2";
        PivotTestlist.Add(PivotTest2);
        this.DataContext = this;
    }
Beispiel #2
0
        private void PivotTestButton_Click(object sender, RoutedEventArgs e)
        {
            var win = new PivotTest();

            win.Show();
        }