Click here to Skip to main content
15,888,454 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: MVVM FolderBrowserDialog Pin
SledgeHammer0117-Nov-10 9:47
SledgeHammer0117-Nov-10 9:47 
GeneralRe: MVVM FolderBrowserDialog Pin
Kevin Marois17-Nov-10 11:14
professionalKevin Marois17-Nov-10 11:14 
GeneralRe: MVVM FolderBrowserDialog Pin
SledgeHammer0117-Nov-10 12:31
SledgeHammer0117-Nov-10 12:31 
GeneralRe: MVVM FolderBrowserDialog Pin
Pete O'Hanlon17-Nov-10 10:00
mvePete O'Hanlon17-Nov-10 10:00 
GeneralRe: MVVM FolderBrowserDialog Pin
_Maxxx_17-Nov-10 16:11
professional_Maxxx_17-Nov-10 16:11 
GeneralRe: MVVM FolderBrowserDialog Pin
Pete O'Hanlon17-Nov-10 21:50
mvePete O'Hanlon17-Nov-10 21:50 
QuestionDataGrid - merging cells Pin
urinspiration15-Nov-10 7:41
urinspiration15-Nov-10 7:41 
QuestionWPF Style Question Pin
Kevin Marois15-Nov-10 7:08
professionalKevin Marois15-Nov-10 7:08 
I'm styling a treeview so that when the mouse is over a treeviewitem it appears as a gradient bar. I'm trying to get the same effect as the VS2010 menu bars, except in a gold-ish gradient:

<UserControl.Resources>

    <HierarchicalDataTemplate DataType="{x:Type local:TreeNode}"
                                ItemsSource="{Binding Path=Nodes}">

        <Border BorderBrush="#E5C365" BorderThickness="1" CornerRadius="5">
            <StackPanel Orientation="Horizontal" 
                        Margin="10,0,0,10">
                <TextBlock Text="{Binding Path=Caption}" Height="25"></TextBlock>
            </StackPanel>
        </Border>
            
    </HierarchicalDataTemplate>

    <LinearGradientBrush x:Key="TreeItemMouseOverStyle" StartPoint="0.5,0" EndPoint="0.5,1">
        <GradientStop Color="#FFFFFF" Offset="0.0" />
        <GradientStop Color="#FFF3CF" Offset="0.25" />
        <GradientStop Color="#FFECB5" Offset="0.75" />
        <GradientStop Color="#FFECB5" Offset="1.0" />
    </LinearGradientBrush>

    <Style TargetType="TreeViewItem">
        <Setter Property="IsExpanded" Value="True" />
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Background" Value="{StaticResource TreeItemMouseOverStyle}"/>
            </Trigger>
        </Style.Triggers>

    </Style>

</UserControl.Resources>


The problem is, I don't want the border to be visible unless the mouse is over the item. How do I do this?
Everything makes sense in someone's mind

AnswerRe: WPF Style Question Pin
#realJSOP15-Nov-10 8:03
mve#realJSOP15-Nov-10 8:03 
GeneralRe: WPF Style Question Pin
Kevin Marois15-Nov-10 8:05
professionalKevin Marois15-Nov-10 8:05 
GeneralRe: WPF Style Question [modified] Pin
SledgeHammer0115-Nov-10 8:55
SledgeHammer0115-Nov-10 8:55 
GeneralRe: WPF Style Question Pin
Kevin Marois15-Nov-10 12:13
professionalKevin Marois15-Nov-10 12:13 
GeneralRe: WPF Style Question Pin
SledgeHammer0115-Nov-10 13:29
SledgeHammer0115-Nov-10 13:29 
GeneralRe: WPF Style Question Pin
Kevin Marois16-Nov-10 4:37
professionalKevin Marois16-Nov-10 4:37 
GeneralRe: WPF Style Question Pin
SledgeHammer0116-Nov-10 14:06
SledgeHammer0116-Nov-10 14:06 
GeneralRe: WPF Style Question Pin
SledgeHammer0116-Nov-10 14:10
SledgeHammer0116-Nov-10 14:10 
Questionexecute code on Server-side - Silverlight Pin
jadughar14-Nov-10 19:40
jadughar14-Nov-10 19:40 
AnswerRe: execute code on Server-side - Silverlight Pin
Vimalsoft(Pty) Ltd14-Nov-10 20:10
professionalVimalsoft(Pty) Ltd14-Nov-10 20:10 
AnswerRe: execute code on Server-side - Silverlight Pin
Abhinav S14-Nov-10 20:40
Abhinav S14-Nov-10 20:40 
GeneralRe: execute code on Server-side - Silverlight Pin
jadughar14-Nov-10 21:07
jadughar14-Nov-10 21:07 
QuestionMouse Move - how to determine span of move (i.e. delta x and delta y) Pin
devvvy14-Nov-10 16:10
devvvy14-Nov-10 16:10 
AnswerRe: Mouse Move - how to determine span of move (i.e. delta x and delta y) Pin
Dr.Walt Fair, PE14-Nov-10 16:23
professionalDr.Walt Fair, PE14-Nov-10 16:23 
QuestionXenApp vs WPF Popup (repaint problem when Popup Minimized") Pin
devvvy14-Nov-10 15:43
devvvy14-Nov-10 15:43 
QuestionData Trigger Problem Pin
carrigart13-Nov-10 15:13
carrigart13-Nov-10 15:13 
QuestionAccordion add/remove Items at runtime Pin
ekimpl13-Nov-10 0:47
ekimpl13-Nov-10 0:47 

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.