The road to C# master trapemiya

C#を中心に、.NETの話題を取り上げます。

ホーム 連絡をする 同期する ( RSS 2.0 ) Login
投稿数  256  : 記事  1  : コメント  10619  : トラックバック  30

ニュース

Since 2005年10月26日

わんくま同盟

わんくま同盟

Microsoft MVP


Visual Developer - Visual C#

記事カテゴリ

書庫

日記カテゴリ

小ネタ連続ですがw

<ListView ItemsSource="{Binding}">
   <ListView.ItemContainerStyle>
      <Style TargetType="{x:Type ListViewItem}">
         <Setter Property="ToolTip" Value="{Binding Path=HogeText}" />
      </Style>
   </ListView.ItemContainerStyle>
                      ・
                      ・
                      ・

もしくは、

<Window.Resources>
   <Style TargetType="{x:Type ListViewItem}" x:Key="myItemContainerStyle">
      <Setter Property="ToolTip" Value="{Binding Path=HogeText}" />
   </Style>
</Window.Resources>

<Grid>
   <ListView ItemsSource="{Binding}" ItemContainerStyle="{StaticResource myItemContainerStyle}">
                      ・
                      ・
                      ・
投稿日時 : 2009年3月18日 15:53

コメント

No comments posted yet.

Post Feedback

タイトル
名前
Url:
コメント