Click here to Skip to main content
15,923,910 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Late binding Pin
Mycroft Holmes11-Dec-08 3:59
professionalMycroft Holmes11-Dec-08 3:59 
GeneralRe: Late binding Pin
Jammer12-Dec-08 8:02
Jammer12-Dec-08 8:02 
Questioncontrol name in datatemplate Pin
sydney1239-Dec-08 19:23
sydney1239-Dec-08 19:23 
AnswerRe: control name in datatemplate Pin
Pete O'Hanlon9-Dec-08 22:34
mvePete O'Hanlon9-Dec-08 22:34 
QuestionListView Grouping W/Expander Help Pin
aaj239-Dec-08 8:51
aaj239-Dec-08 8:51 
AnswerRe: ListView Grouping W/Expander Help Pin
Insincere Dave9-Dec-08 13:44
Insincere Dave9-Dec-08 13:44 
GeneralRe: ListView Grouping W/Expander Help Pin
aaj239-Dec-08 15:59
aaj239-Dec-08 15:59 
QuestionWhy do WPF storyboards lock/freeze target properties? Pin
Josh Fischer9-Dec-08 8:40
Josh Fischer9-Dec-08 8:40 
Hi everyone. I might be missing something obvious, but after I run a simple WPF storyboard to animate an object's width, I am no longer able to change the width manually. I have created the simple example below to demonstrate my point. The width change done by the first button works before you animate with the second button, but not after.
What am I missing here? How can I "unfreeze" my width property so I can set it again?

XAML:
<Canvas>
    <Button Click="Button_Click">
        Set width to 100
    </Button>
              
    <Button Canvas.Top="30"
        Animate width to 250
    <Button.Triggers>
        <EventTrigger RoutedEvent="Button.Click">
            <BeginStoryboard>
                <Storyboard>
                    <DoubleAnimation Storyboard.TargetName="RedRectangle" Storyboard.TargetProperty="Width" To="250" Duration="0:0:1" />
                </Storyboard>
            </BeginStoryboard>
        </EventTrigger>
    </Button.Triggers>
    </Button>

    <Rectangle Name="RedRectangle" Width="25" Height="25" Canvas.Top="70" Fill="Red" Stroke="Black" />
</Canvas>

C# code behind:
private void Button_Click(object sender, RoutedEventArgs e)
{
    RedRectangle.Width = 100;
}

Thanks in advance

Josh Fischer

AnswerRe: Why do WPF storyboards lock/freeze target properties? [modified] Pin
Josh Fischer10-Dec-08 3:02
Josh Fischer10-Dec-08 3:02 
GeneralRe: Why do WPF storyboards lock/freeze target properties? Pin
Member 33786674-Mar-09 7:43
Member 33786674-Mar-09 7:43 
QuestionWPF base class DependencyProperty Pin
Doug Hagerman9-Dec-08 8:23
Doug Hagerman9-Dec-08 8:23 
QuestionGridViewColumn Pin
Mohammed Elkholy9-Dec-08 2:17
Mohammed Elkholy9-Dec-08 2:17 
AnswerRe: GridViewColumn Pin
Gideon Engelberth9-Dec-08 3:25
Gideon Engelberth9-Dec-08 3:25 
GeneralRe: GridViewColumn Pin
Mohammed Elkholy10-Dec-08 0:41
Mohammed Elkholy10-Dec-08 0:41 
QuestionWPF user controls Pin
koleraba7-Dec-08 9:46
koleraba7-Dec-08 9:46 
AnswerRe: WPF user controls Pin
ColinM1237-Dec-08 14:30
ColinM1237-Dec-08 14:30 
GeneralRe: WPF user controls Pin
koleraba7-Dec-08 20:43
koleraba7-Dec-08 20:43 
GeneralRe: WPF user controls Pin
Mark Salsbery8-Dec-08 7:36
Mark Salsbery8-Dec-08 7:36 
QuestionHow to drag-and-drop an .msg file from MS Outlook? Pin
Vipul Mehta6-Dec-08 1:34
Vipul Mehta6-Dec-08 1:34 
QuestionDataGrid for WPF - lc.exe not found Pin
Arijit Manna5-Dec-08 19:35
Arijit Manna5-Dec-08 19:35 
QuestionRe: DataGrid for WPF - lc.exe not found Pin
Mark Salsbery6-Dec-08 6:26
Mark Salsbery6-Dec-08 6:26 
AnswerRe: DataGrid for WPF - lc.exe not found Pin
Pete O'Hanlon6-Dec-08 9:32
mvePete O'Hanlon6-Dec-08 9:32 
QuestionPassword!!! Pin
VisualLive5-Dec-08 14:36
VisualLive5-Dec-08 14:36 
AnswerRe: Password!!! Pin
Jammer5-Dec-08 22:05
Jammer5-Dec-08 22:05 
GeneralRe: Password!!! Pin
VisualLive7-Dec-08 21:18
VisualLive7-Dec-08 21:18 

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.