- February 7, 2013
- 240
- 202
- 53
- Home Country
- Germany
I come from germany and can no Chinese.
And sorry, but my English is only slightly better.
I have said morpheus_xx, I would have some experiences with WPF and xaml.
However, apparently these do not reach by far.
Since 2 days, I fight with a simple Listview.
This is so depressing.
In WPF ordinarily I use
XAML:
CODE:
And its works fine.
In the Plugin Workflow, I use
In The Plugin xaml
What must I do, to make it work in plugin?
And sorry, but my English is only slightly better.
I have said morpheus_xx, I would have some experiences with WPF and xaml.
However, apparently these do not reach by far.
Since 2 days, I fight with a simple Listview.
This is so depressing.
In WPF ordinarily I use
XAML:
Code:
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<ListView HorizontalAlignment="Left" Height="267" Margin="24,10,0,0" VerticalAlignment="Top" Width="341" ItemsSource="{Binding Path=meineListe}">
<ListView.View>
<GridView>
<GridViewColumn DisplayMemberBinding="{Binding Path=Titel}" />
</GridView>
</ListView.View>
</ListView>
</Grid>
</Window>
CODE:
Code:
using System.Collections.ObjectModel;
using System.Windows;
namespace WpfApplication1
{
public partial class MainWindow : Window
{
public MainWindow()
{
fillList();
DataContext = this;
}
private void fillList()
{
meineListe = new ObservableCollection<TestListe>();
for (int i = 1; i <= 10; i++)
{
TestListe _liste = new TestListe();
_liste.Titel = "Zeile " + i;
meineListe.Add(_liste);
}
}
public class TestListe
{
public string Titel { get; set; }
}
public ObservableCollection<TestListe> meineListe { get; private set; }
}
}
In the Plugin Workflow, I use
Code:
public void EnterModelContext(NavigationContext oldContext, NavigationContext newContext)
{
fillList ();
}
In The Plugin xaml
Code:
<ListView x:Name="Test" DockPanel.Dock="Center" Style="{ThemeResource ListViewStyle}"
VerticalAlignment="Center" HorizontalAlignment="Center" Width="1100" Height="500" ItemsSource="{Binding Path=meineListe,Mode=OneTime}">
</ListView>
What must I do, to make it work in plugin?