と結合し、私は結合WPFのListBoxの条件付き表示
public class Contact
{
int ContactId { get; set; }
int ContactType { get; set; } // 1 = phone number, 2 = email address
string Value { get; set; }
}
私の現在のListBoxに似て私は連絡先オブジェクトのコレクションにバインドしていますWPFのListBoxコントロールを、私はしたいと思います
<ListBox Name="ContactsListBox"
ItemsSource="{Binding Contacts, Mode=Oneway}"
SelectedValuePath="ContactId"
DisplayMemberPath="Value"
</ListBox>
されてい電話番号をテキストと電子メールで表示し、クリック可能な "mailto:"というハイパーリンクを表示しますが、必要な方法でバインディングを取得する方法は不明です。
移動する方法をします。http://stackoverflow.com/questions/23020377/link-to-open-new-email-message-in -default-e-mail-handler-in-wpf-application – leapold