Click here to Skip to main content
14,696,481 members
Home » Discussions » Silverlight / WPF
   

Silverlight / WPF

 
GeneralRe: Bind TabItem ContexMenu Command To Window VM Pin
Kevin Marois10-Jul-18 8:38
professionalKevin Marois10-Jul-18 8:38 
GeneralRe: Bind TabItem ContexMenu Command To Window VM Pin
Pete O'Hanlon10-Jul-18 11:40
subeditorPete O'Hanlon10-Jul-18 11:40 
GeneralRe: Bind TabItem ContexMenu Command To Window VM Pin
Kevin Marois10-Jul-18 12:21
professionalKevin Marois10-Jul-18 12:21 
GeneralRe: Bind TabItem ContexMenu Command To Window VM Pin
Kevin Marois15-Jul-18 17:08
professionalKevin Marois15-Jul-18 17:08 
AnswerRe: Bind TabItem ContexMenu Command To Window VM Pin
NaBian18-Sep-18 6:11
MemberNaBian18-Sep-18 6:11 
QuestionListBox of Hyperlinks - Selected Item Pin
Kevin Marois6-Jul-18 20:37
professionalKevin Marois6-Jul-18 20:37 
AnswerRe: ListBox of Hyperlinks - Selected Item Pin
Mycroft Holmes7-Jul-18 14:38
professionalMycroft Holmes7-Jul-18 14:38 
AnswerRe: ListBox of Hyperlinks - Selected Item Pin
Richard Deeming9-Jul-18 9:32
mveRichard Deeming9-Jul-18 9:32 
QuestionWhat is Silverlight / WPF??? Pin
Arnav12130-Jun-18 21:03
MemberArnav12130-Jun-18 21:03 
AnswerRe: What is Silverlight / WPF??? Pin
Richard MacCutchan30-Jun-18 21:50
mveRichard MacCutchan30-Jun-18 21:50 
QuestionNested Borders Mouse Over Pin
Kevin Marois14-Jun-18 8:44
professionalKevin Marois14-Jun-18 8:44 
AnswerRe: Nested Borders Mouse Over Pin
Richard Deeming14-Jun-18 10:35
mveRichard Deeming14-Jun-18 10:35 
Unfortunately, the IsMouseOver property doesn't work unless you have a background. However, you can set the background to "Transparent":
<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 11:51
professionalKevin Marois14-Jun-18 11:51 
QuestionWPF DataGrid uses a lot of memory, or is slow to scroll Pin
Leif Simon Goodwin14-Jun-18 6:16
mvaLeif Simon Goodwin14-Jun-18 6:16 
AnswerRe: WPF DataGrid uses a lot of memory, or is slow to scroll Pin
Pete O'Hanlon14-Jun-18 6:21
subeditorPete O'Hanlon14-Jun-18 6:21 
GeneralRe: WPF DataGrid uses a lot of memory, or is slow to scroll Pin
Leif Simon Goodwin14-Jun-18 22:18
mvaLeif Simon Goodwin14-Jun-18 22:18 
AnswerRe: WPF DataGrid uses a lot of memory, or is slow to scroll Pin
Gerry Schmitz14-Jun-18 9:01
mveGerry Schmitz14-Jun-18 9:01 
GeneralRe: WPF DataGrid uses a lot of memory, or is slow to scroll Pin
Leif Simon Goodwin14-Jun-18 22:59
mvaLeif Simon Goodwin14-Jun-18 22:59 
GeneralRe: WPF DataGrid uses a lot of memory, or is slow to scroll Pin
Gerry Schmitz15-Jun-18 9:16
mveGerry Schmitz15-Jun-18 9:16 
GeneralRe: WPF DataGrid uses a lot of memory, or is slow to scroll Pin
Leif Simon Goodwin18-Jun-18 6:40
mvaLeif Simon Goodwin18-Jun-18 6:40 
GeneralRe: WPF DataGrid uses a lot of memory, or is slow to scroll Pin
Gerry Schmitz18-Jun-18 8:04
mveGerry Schmitz18-Jun-18 8:04 
GeneralRe: WPF DataGrid uses a lot of memory, or is slow to scroll Pin
Mycroft Holmes19-Jun-18 14:10
professionalMycroft Holmes19-Jun-18 14:10 
GeneralRe: WPF DataGrid uses a lot of memory, or is slow to scroll Pin
Leif Simon Goodwin19-Jun-18 23:43
mvaLeif Simon Goodwin19-Jun-18 23:43 
GeneralRe: WPF DataGrid uses a lot of memory, or is slow to scroll Pin
Pete O'Hanlon19-Jun-18 23:56
subeditorPete O'Hanlon19-Jun-18 23:56 
GeneralRe: WPF DataGrid uses a lot of memory, or is slow to scroll Pin
Leif Simon Goodwin20-Jun-18 0:27
mvaLeif Simon Goodwin20-Jun-18 0:27 

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.