home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Plugin Development
A Dummy takes a lot of help
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="BigGranu" data-source="post: 1003152" data-attributes="member: 137007"><p>I come from germany and can no Chinese.</p><p>And sorry, but my English is only slightly better. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite10" alt=":oops:" title="Oops! :oops:" loading="lazy" data-shortname=":oops:" /></p><p> </p><p>I have said morpheus_xx, I would have some experiences with WPF and xaml.</p><p>However, apparently these do not reach by far.</p><p> </p><p>Since 2 days, I fight with a simple Listview.</p><p>This is so depressing. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite16" alt=":cry:" title="Crying :cry:" loading="lazy" data-shortname=":cry:" /></p><p> </p><p>In WPF ordinarily I use</p><p>XAML:</p><p>[CODE]<Window x:Class="WpfApplication1.MainWindow"</p><p> xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"</p><p> xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"</p><p> Title="MainWindow" Height="350" Width="525"></p><p> <Grid></p><p> <ListView HorizontalAlignment="Left" Height="267" Margin="24,10,0,0" VerticalAlignment="Top" Width="341" ItemsSource="{Binding Path=meineListe}"></p><p> <ListView.View></p><p> <GridView></p><p> <GridViewColumn DisplayMemberBinding="{Binding Path=Titel}" /></p><p> </GridView></p><p> </ListView.View></p><p> </ListView></p><p> </Grid></p><p></Window>[/CODE]</p><p> </p><p>CODE:</p><p>[CODE]using System.Collections.ObjectModel;</p><p>using System.Windows;</p><p> </p><p>namespace WpfApplication1</p><p>{</p><p> </p><p> public partial class MainWindow : Window</p><p> {</p><p> public MainWindow()</p><p> {</p><p> fillList();</p><p> DataContext = this;</p><p> }</p><p> </p><p> private void fillList()</p><p> {</p><p> meineListe = new ObservableCollection<TestListe>();</p><p> for (int i = 1; i <= 10; i++)</p><p> {</p><p> TestListe _liste = new TestListe();</p><p> _liste.Titel = "Zeile " + i;</p><p> meineListe.Add(_liste);</p><p> }</p><p> }</p><p> </p><p> public class TestListe</p><p> {</p><p> public string Titel { get; set; }</p><p> }</p><p> </p><p> public ObservableCollection<TestListe> meineListe { get; private set; }</p><p> }</p><p>}[/CODE]</p><p>And its works fine.</p><p> </p><p>In the Plugin Workflow, I use</p><p>[CODE] public void EnterModelContext(NavigationContext oldContext, NavigationContext newContext)</p><p> {</p><p> fillList ();</p><p> }[/CODE]</p><p> </p><p>In The Plugin xaml</p><p>[CODE] <ListView x:Name="Test" DockPanel.Dock="Center" Style="{ThemeResource ListViewStyle}"</p><p> VerticalAlignment="Center" HorizontalAlignment="Center" Width="1100" Height="500" ItemsSource="{Binding Path=meineListe,Mode=OneTime}"></p><p> </ListView>[/CODE]</p><p> </p><p>What must I do, to make it work in plugin?</p></blockquote><p></p>
[QUOTE="BigGranu, post: 1003152, member: 137007"] I come from germany and can no Chinese. And sorry, but my English is only slightly better. :oops: 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. :cry: 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: [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; } } }[/CODE] And its works fine. In the Plugin Workflow, I use [CODE] public void EnterModelContext(NavigationContext oldContext, NavigationContext newContext) { fillList (); }[/CODE] 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>[/CODE] What must I do, to make it work in plugin? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
A Dummy takes a lot of help
Contact us
RSS
Top
Bottom