Click here to Skip to main content
15,905,782 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: ListViewItem background Pin
ProtoBytes29-Jan-10 3:58
ProtoBytes29-Jan-10 3:58 
Try using Google: I use the site tage so it only searches microsoft:

'listview WPF C# .NET site:microsoft.com'

You have to make a template for it....

XML
<Style x:Key="{x:Type ListView}" TargetType="ListView">
  <Setter Property="SnapsToDevicePixels" Value="true"/>
  <Setter Property="OverridesDefaultStyle" Value="true"/>
  <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
  <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
  <Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
  <Setter Property="VerticalContentAlignment" Value="Center"/>
  <Setter Property="Template">
    <Setter.Value>
      <ControlTemplate TargetType="ListView">
        <Border Name="Border"
          BorderThickness="1"
          BorderBrush="{StaticResource SolidBorderBrush}"
          Background="{StaticResource WindowBackgroundBrush}">
          <ScrollViewer Style="{DynamicResource
                        {x:Static GridView.GridViewScrollViewerStyleKey}}">
            <ItemsPresenter />
          </ScrollViewer>
        </Border>
        <ControlTemplate.Triggers>
          <Trigger Property="IsGrouping"
                   Value="true">
            <Setter Property="ScrollViewer.CanContentScroll"
                    Value="false"/>
          </Trigger>
          <Trigger Property="IsEnabled"
                   Value="false">
            <Setter TargetName="Border"
                    Property="Background"
                    Value="{StaticResource DisabledBorderBrush}"/>
          </Trigger>
        </ControlTemplate.Triggers>
      </ControlTemplate>
    </Setter.Value>
 </Setter>
</Style>


~TheArch
Thumbs Up | :thumbsup:


QuestionHow to know DataGrid sorting changed (any Event)? Pin
Frank W. Wu28-Jan-10 3:43
Frank W. Wu28-Jan-10 3:43 
AnswerRe: How to know DataGrid sorting changed (any Event)? Pin
Covean28-Jan-10 4:52
Covean28-Jan-10 4:52 
GeneralRe: How to know DataGrid sorting changed (any Event)? Pin
Frank W. Wu28-Jan-10 5:42
Frank W. Wu28-Jan-10 5:42 
GeneralRe: How to know DataGrid sorting changed (any Event)? Pin
Covean28-Jan-10 5:52
Covean28-Jan-10 5:52 
QuestionAnimation in code behind Pin
V.27-Jan-10 23:53
professionalV.27-Jan-10 23:53 
AnswerRe: Animation in code behind Pin
ProtoBytes28-Jan-10 3:28
ProtoBytes28-Jan-10 3:28 
GeneralRe: Animation in code behind Pin
V.28-Jan-10 3:56
professionalV.28-Jan-10 3:56 
GeneralRe: Animation in code behind Pin
V.28-Jan-10 23:58
professionalV.28-Jan-10 23:58 
GeneralRe: Animation in code behind Pin
ProtoBytes29-Jan-10 3:45
ProtoBytes29-Jan-10 3:45 
GeneralRe: Animation in code behind Pin
V.29-Jan-10 4:03
professionalV.29-Jan-10 4:03 
AnswerRe: Animation in code behind Pin
ProtoBytes29-Jan-10 4:08
ProtoBytes29-Jan-10 4:08 
GeneralRe: Animation in code behind Pin
V.29-Jan-10 4:12
professionalV.29-Jan-10 4:12 
QuestionInput date as UK format Pin
surfluds27-Jan-10 3:41
surfluds27-Jan-10 3:41 
AnswerRe: Input date as UK format Pin
Abhinav S27-Jan-10 5:30
Abhinav S27-Jan-10 5:30 
QuestionVS 2008 WPF Designer Bug? Pin
PMBT27-Jan-10 1:24
PMBT27-Jan-10 1:24 
QuestionDrag and drop between ListBox items and Grid cells in WPF? Pin
mittalpa26-Jan-10 13:59
mittalpa26-Jan-10 13:59 
AnswerRe: Drag and drop between ListBox items and Grid cells in WPF? Pin
ProtoBytes27-Jan-10 7:17
ProtoBytes27-Jan-10 7:17 
QuestionPlaying games over internet with WPF apps? Pin
mittalpa26-Jan-10 13:56
mittalpa26-Jan-10 13:56 
AnswerRe: Playing games over internet with WPF apps? Pin
Mark Salsbery27-Jan-10 5:28
Mark Salsbery27-Jan-10 5:28 
AnswerRe: Playing games over internet with WPF apps? Pin
nagisetty128-Jan-10 1:20
nagisetty128-Jan-10 1:20 
QuestionWays to identify which cell was clicked on WPF Grid? Pin
mittalpa26-Jan-10 13:54
mittalpa26-Jan-10 13:54 
AnswerRe: Ways to identify which cell was clicked on WPF Grid? Pin
Mark Salsbery27-Jan-10 5:22
Mark Salsbery27-Jan-10 5:22 
QuestionMVVM application ? Pin
Mohammad Dayyan25-Jan-10 21:38
Mohammad Dayyan25-Jan-10 21:38 
AnswerRe: MVVM application ? Pin
ProtoBytes29-Jan-10 4:04
ProtoBytes29-Jan-10 4:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.