Click here to Skip to main content
15,905,686 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionRe: regex name/value pairs [modified] Pin
campk5-Jan-07 3:16
campk5-Jan-07 3:16 
AnswerRe: regex name/value pairs Pin
Keith Malwitz5-Jan-07 17:55
Keith Malwitz5-Jan-07 17:55 
AnswerRe: regex name/value pairs Pin
Mike Dimmick5-Jan-07 6:27
Mike Dimmick5-Jan-07 6:27 
Questionnon-selectable item in treeview Pin
Russell Jones4-Jan-07 4:18
Russell Jones4-Jan-07 4:18 
QuestionDrawString and text wrapping Pin
Ray Cassick4-Jan-07 3:14
Ray Cassick4-Jan-07 3:14 
AnswerRe: DrawString and text wrapping Pin
Luc Pattyn4-Jan-07 9:05
sitebuilderLuc Pattyn4-Jan-07 9:05 
GeneralRe: DrawString and text wrapping Pin
Ray Cassick4-Jan-07 9:50
Ray Cassick4-Jan-07 9:50 
QuestionProperty paths in .NET 3.0 / WPF Pin
FalkoD3-Jan-07 7:20
FalkoD3-Jan-07 7:20 
Hello,
I am using the final release of .NET 3.0 to create a WPF application containing several Expander controls.
These expanders are customized by a central style:

<Style TargetType="Expander">
<Setter Property="Background">
<Setter.Value>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="White" Offset="0.0"/>
<GradientStop Color="DarkGray" Offset="1.0"/>
</LinearGradientBrush>
</Setter.Value>
</Setter>
</Style>

As reaction to the MouseEnter event I am trying to animate the background color inside the expander markup:

<Expander Name="accountExpander" [...]>
<Expander.Triggers>
<EventTrigger RoutedEvent="Expander.MouseEnter">
<EventTrigger.Actions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetProperty="LayoutTransform.ScaleX" From="1.0" To="1.2" Duration="0Blush | :O Blush | :O .1"/>
<DoubleAnimation Storyboard.TargetProperty="LayoutTransform.ScaleY" From="1.0" To="1.2" Duration="0Blush | :O Blush | :O .1"/>
<ColorAnimation Storyboard.TargetProperty="Background.GradientStop[1].Color" From="DarkGray" To="SteelBlue" Duration="0Blush | :O Blush | :O .1"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
</Expander.Triggers>
</Expander>

Without the ColorAnimation the code is working perfectly, the problem seems to be property path for the Storyboard.TargetProperty. Before I switched to using central styles for the expanders I simply labeled the second gradientstop, which color I wanted to change, with the x:Name property. But as I declare the gradient stop inside a Style this is no longer possible. So i tried to use the longer property path syntax. According to the documentation it should be possible to access specific properties in an array-like fashion but the above code does not work for me.
Any ideas how I can animate the style-set property in my storyboard?

Thanks in advance
FalkoD

PS:
Somehow the board software seems to dislike XAML in its <code> tag so I hat to disable formating sorry for the ugly layout.
QuestionData source updated even if e.Cancel = true in Validating handler Pin
roel_v3-Jan-07 6:59
roel_v3-Jan-07 6:59 
Questionopengl csgl taoframwork or direct3d [modified] Pin
Taylor Kobani3-Jan-07 5:34
Taylor Kobani3-Jan-07 5:34 
Question"Full Screen printing" Pin
Silver-Grey3-Jan-07 3:44
Silver-Grey3-Jan-07 3:44 
AnswerRe: "Full Screen printing" Pin
Ray Cassick4-Jan-07 3:15
Ray Cassick4-Jan-07 3:15 
QuestionCan I get any .net developpped library with proper UI Pin
indian1432-Jan-07 18:40
indian1432-Jan-07 18:40 
AnswerRe: Can I get any .net developpped library with proper UI Pin
Christian Graus2-Jan-07 23:35
protectorChristian Graus2-Jan-07 23:35 
GeneralRe: Can I get any .net developpped library with proper UI Pin
indian1433-Jan-07 2:19
indian1433-Jan-07 2:19 
GeneralRe: Can I get any .net developpped library with proper UI Pin
Christian Graus3-Jan-07 8:52
protectorChristian Graus3-Jan-07 8:52 
GeneralRe: Can I get any .net developpped library with proper UI Pin
Pete O'Hanlon3-Jan-07 9:07
mvePete O'Hanlon3-Jan-07 9:07 
GeneralRe: Can I get any .net developpped library with proper UI Pin
indian1433-Jan-07 18:22
indian1433-Jan-07 18:22 
QuestionAdding Own Buttons To Title Bar Pin
Nagaraju_Focus2-Jan-07 17:59
Nagaraju_Focus2-Jan-07 17:59 
AnswerRe: Adding Own Buttons To Title Bar Pin
Robert Rohde3-Jan-07 1:11
Robert Rohde3-Jan-07 1:11 
QuestionPortable .Net Framework Pin
joejoeiscool2-Jan-07 4:48
joejoeiscool2-Jan-07 4:48 
AnswerRe: Portable .Net Framework Pin
Dave Kreskowiak2-Jan-07 5:46
mveDave Kreskowiak2-Jan-07 5:46 
AnswerRe: Portable .Net Framework Pin
Christian Graus2-Jan-07 23:37
protectorChristian Graus2-Jan-07 23:37 
GeneralRe: Portable .Net Framework Pin
Dave Kreskowiak3-Jan-07 3:29
mveDave Kreskowiak3-Jan-07 3:29 
GeneralRe: Portable .Net Framework Pin
joejoeiscool3-Jan-07 7:04
joejoeiscool3-Jan-07 7: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.