Click here to Skip to main content
15,881,380 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Bind TabItem ContexMenu Command To Window VM Pin
NaBian18-Sep-18 5:11
NaBian18-Sep-18 5:11 
QuestionListBox of Hyperlinks - Selected Item Pin
Kevin Marois6-Jul-18 19:37
professionalKevin Marois6-Jul-18 19:37 
AnswerRe: ListBox of Hyperlinks - Selected Item Pin
Mycroft Holmes7-Jul-18 13:38
professionalMycroft Holmes7-Jul-18 13:38 
AnswerRe: ListBox of Hyperlinks - Selected Item Pin
Richard Deeming9-Jul-18 8:32
mveRichard Deeming9-Jul-18 8:32 
QuestionWhat is Silverlight / WPF??? Pin
Arnav12130-Jun-18 20:03
Arnav12130-Jun-18 20:03 
AnswerRe: What is Silverlight / WPF??? Pin
Richard MacCutchan30-Jun-18 20:50
mveRichard MacCutchan30-Jun-18 20:50 
QuestionNested Borders Mouse Over Pin
Kevin Marois14-Jun-18 7:44
professionalKevin Marois14-Jun-18 7:44 
AnswerRe: Nested Borders Mouse Over Pin
Richard Deeming14-Jun-18 9:35
mveRichard Deeming14-Jun-18 9:35 
Unfortunately, the IsMouseOver property doesn't work unless you have a background. However, you can set the background to "Transparent":
XML
<Style x:Key="mouseOverBorderStyle" TargetType="{x:Type Border}" BasedOn="{StaticResource borderStyle}">
    <Setter Property="BorderBrush" Value="Transparent" />
    <Setter Property="BorderThickness" Value="2"/>
    <Setter Property="Background" Value="Transparent"/>
    <Style.Triggers>
        <Trigger Property="IsMouseOver" Value="True">
            <Setter Property="BorderBrush" Value="Red"/>
        </Trigger>
    </Style.Triggers>
</Style>

You'll want to set the border thickness outside of the trigger; otherwise, the inner border shrinks slightly when you mouse over the control.

There's still a 2px white border around the edge which won't trigger the mouse-over behaviour. But I'm sure most people won't notice it. Smile | :)



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: Nested Borders Mouse Over Pin
Kevin Marois14-Jun-18 10:51
professionalKevin Marois14-Jun-18 10:51 
QuestionWPF DataGrid uses a lot of memory, or is slow to scroll Pin
Leif Simon Goodwin14-Jun-18 5:16
Leif Simon Goodwin14-Jun-18 5:16 
AnswerRe: WPF DataGrid uses a lot of memory, or is slow to scroll Pin
Pete O'Hanlon14-Jun-18 5:21
mvePete O'Hanlon14-Jun-18 5:21 
GeneralRe: WPF DataGrid uses a lot of memory, or is slow to scroll Pin
Leif Simon Goodwin14-Jun-18 21:18
Leif Simon Goodwin14-Jun-18 21:18 
AnswerRe: WPF DataGrid uses a lot of memory, or is slow to scroll Pin
Gerry Schmitz14-Jun-18 8:01
mveGerry Schmitz14-Jun-18 8:01 
GeneralRe: WPF DataGrid uses a lot of memory, or is slow to scroll Pin
Leif Simon Goodwin14-Jun-18 21:59
Leif Simon Goodwin14-Jun-18 21:59 
GeneralRe: WPF DataGrid uses a lot of memory, or is slow to scroll Pin
Gerry Schmitz15-Jun-18 8:16
mveGerry Schmitz15-Jun-18 8:16 
GeneralRe: WPF DataGrid uses a lot of memory, or is slow to scroll Pin
Leif Simon Goodwin18-Jun-18 5:40
Leif Simon Goodwin18-Jun-18 5:40 
GeneralRe: WPF DataGrid uses a lot of memory, or is slow to scroll Pin
Gerry Schmitz18-Jun-18 7:04
mveGerry Schmitz18-Jun-18 7:04 
GeneralRe: WPF DataGrid uses a lot of memory, or is slow to scroll Pin
Mycroft Holmes19-Jun-18 13:10
professionalMycroft Holmes19-Jun-18 13:10 
GeneralRe: WPF DataGrid uses a lot of memory, or is slow to scroll Pin
Leif Simon Goodwin19-Jun-18 22:43
Leif Simon Goodwin19-Jun-18 22:43 
GeneralRe: WPF DataGrid uses a lot of memory, or is slow to scroll Pin
Pete O'Hanlon19-Jun-18 22:56
mvePete O'Hanlon19-Jun-18 22:56 
GeneralRe: WPF DataGrid uses a lot of memory, or is slow to scroll Pin
Leif Simon Goodwin19-Jun-18 23:27
Leif Simon Goodwin19-Jun-18 23:27 
GeneralRe: WPF DataGrid uses a lot of memory, or is slow to scroll Pin
Pete O'Hanlon19-Jun-18 23:59
mvePete O'Hanlon19-Jun-18 23:59 
GeneralRe: WPF DataGrid uses a lot of memory, or is slow to scroll Pin
Mycroft Holmes20-Jun-18 12:04
professionalMycroft Holmes20-Jun-18 12:04 
GeneralRe: WPF DataGrid uses a lot of memory, or is slow to scroll Pin
Leif Simon Goodwin21-Jun-18 21:27
Leif Simon Goodwin21-Jun-18 21:27 
GeneralRe: WPF DataGrid uses a lot of memory, or is slow to scroll Pin
Mycroft Holmes22-Jun-18 11:55
professionalMycroft Holmes22-Jun-18 11:55 

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.