Hi Moondaddy,
Thank you for your reply! I understand what you really want now.
You have posted a thread named "Style trigger not firing in wpf app" in
the
microsoft.public.dotnet.languages.csharp newsgroup, in which you want the
child element to get notified when the IsMouseOver property of the parent
element is changed. I consider you discuss the same problem in this post
and that one.
I have replied to that post in the newsgroup.
The main reason why the style trigger is not fired is that the DataTrigger
you use in the "ConnectionGroupStyle" is not correct. You should use the
relative source mode of FindAncestor to get notified when the IsMouseOver
property of the parent element of the ChildControl changes.
In addition, in the SomeControl.xaml file, you shouldn't set the
Visibility
property explicitly because it will override the style that is applied to
the element. You should set the initial value of the Visibility property
in
the style.
I also provide the modified code in that thread. Please check my reply to
that thread for more details.
If you have any question, please reply to that thread in the newsgroup and
I will follow up with you in time.
Thank you for your cooperation!
Sincerely,
Linda Liu
Microsoft Online Community Support
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.