Click here to Skip to main content
15,887,328 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends.
Can we change ColumnDefinitions via a StoryBoard in WPF?
e.g : I wanna change the following ColumnDefinitions

<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Height="0*"/>
</Grid.ColumnDefinitions>


to this one :

<Grid.ColumnDefinitions>
<ColumnDefinition Height="0.585*"/>
<ColumnDefinition Height="0.415*"/>
</Grid.ColumnDefinitions>


Thanks in advance.
Posted
Updated 25-Dec-09 4:38am
v2

1 solution

Yep, you can do that, but there is some tricky stuff involved. You have to create a custom animation for the GridLength data type. Lucky for you, that trickery has already been done by somebody. Look at the WPF Tutorial - Part 2 : Writing a custom animation class article, which does exactly what you want.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900