private void Listbox_SelectionChanged (object sender, SelectionChangedEventArgs e)
{
ProductClass productClass = BaseGoodsCategorylb.SelectedItem as ProductClass;
/ / How do I change which one I click on the style , for example , ListBox displays four , followed by study, travel , climb , watching the sea, these four default font is black , for example, I click on to learn from the font turns red , when I click on travel time , travel font is required in addition to red , the other three have become the default black , how do ? Thanks in advance !
}
------ Solution ------------------------------------ --------
modify ItemContainerStyle
------ Solution ------------------------- -------------------
this is more complicated , and not able to speak a sentence of two to clear the
------ Solution --- -----------------------------------------
I was the next, and if ItemTemplate do so, the system default is to click on another red , other reducing effect,
you
this.ListBox.DisplayMemberPath = "Name" Try
------ Solution ------------------------ --------------------
head upstairs , specify only DisplayMemberPath, which turns red , the other will be reduced to black.
------ Solution ---------------------------------------- ----
then knot posted it .
------ eference --------------------------------------- < br> not be used , can point to the code ? Thank
------ eference ---------------------------------------
or to the point of thinking , but also with reference to the connection line ,
------ eference --------------------------- ------------
I have solved , thank you .
没有评论:
发表评论