I don't understand your question.
To learn about data binding, you can read http://msdn.microsoft.com/en-us/library/ms752347.aspx
To bind a ListView to underlaying data, you need a data model.
You can look into the screens of the default skin to see how we use the ListView. Look into the code of the referenced models to see how a model is written.
Hi, my problem is that accessor get function in GetContacts property works correctly but ListView still doesn't show anything. Where is the problem here?
Here is how implemented my property:
private ItemsList _listContacts=null;
public ItemsList GetContacts
{
get
{
return _listContacts;
}
set
{
if (_listContacts == value) return;
_listContacts = value;
OnPropertyChanged("GetContacts");
}
}
That seems well, as far as I can see.
One of Context/DataContext is obsolete in your example, they both assign the same data context and it is inherited to child elements.
Is the model you're using registered in the plugin.xml file?
Which items are in the ItemsList which is returned by GetContacts? Btw, you should name the property Contacts, not GetContacts.
Oh, I missed something: Your DockPanel doesn't contain a key. I guess you're using one of the templates master_bare or master_menu for your include. Depending on that template, you must assign an appropriate key to your DockPanel, see the description in the template screen you're using.
Could you give an example of adding rows to ListView (how to implement String property which is linked to itemsSource ListView). This property returns a list of simple strings.
I would like to ask few more questions.
How do I make property password in MediaPortal2 to keep data secret while entering the text into textBox like in WPF PasswordBox ?
How do I implement Visible property correctly? If I make property for texBox this way it will be ignored.
public Plugin()
{
_registrContentVisibility = new WProperty(typeof(Visibility), null);
RegistrContentVisibility = Visibility.Collapsed;
}
public AbstractProperty RegistrContentVisibilityProperty
{
get { return _registrContentVisibility; }
}
public Visibility RegistrContentVisibility
{
get { return (Visibility)_registrContentVisibility.GetValue(); }
set { _registrContentVisibility.SetValue(value); }
}
If you’re planning to submit a pull request, let’s go through the list of issues and their solutions.
I or someone from the team will create a Jira ticket, and for each ticket, you’ll make the changes and submit a pull request.
This will be transparent and straightforward.
If you’re planning to submit a pull request, let’s go through the list of issues and their solutions.
I or someone from the team...
I'm very glad to see that mediaportal 1 is on github, where ordinary devs with github accounts can make contributions.
Please can...
I don't know about MP2 but as you said you tried MP1 too, how is the MP music config ?
MP(1) will only use LAV if you select "Internal DirectShow player" as music output, but then you lose gapless playback.
If you you don't have multichannel music you can choose WASAPI as the output and set the number of speakers to stereo.
I have...
I don't know about MP2 but as you said you tried MP1 too, how is the MP music config ?
MP(1) will only use LAV if you select...
Not sure if this a a bug/config/settings problem.
I am running a media portal 2.5 server with 2.41 client but it seems I get the...
wow this is a weird construction,that will heavily depend on execution order of those 2 parameters in the iff
And as you found out, in your case the order is probably the other way around than you expected...
wow this is a weird construction,that will heavily depend on execution order of those 2 parameters in the iff
And as you found out...
onfocus
Recently I tried coding this:
<onfocus>#(iif(eq(#skin.search.id,0),skin.setstring('#skin.search.id',10)))</onfocus>...