Click here to Skip to main content
15,887,746 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Dividing a TextBox into columns Pin
Dwayne Barsotta27-Jan-18 6:24
Dwayne Barsotta27-Jan-18 6:24 
AnswerRe: Dividing a TextBox into columns Pin
Gerry Schmitz7-Jan-18 7:26
mveGerry Schmitz7-Jan-18 7:26 
AnswerRe: Dividing a TextBox into columns Pin
Kenneth Haugland7-Jan-18 17:41
mvaKenneth Haugland7-Jan-18 17:41 
AnswerRe: Dividing a TextBox into columns Pin
Dwayne Barsotta27-Jan-18 6:39
Dwayne Barsotta27-Jan-18 6:39 
GeneralRe: Dividing a TextBox into columns Pin
Gerry Schmitz27-Jan-18 12:47
mveGerry Schmitz27-Jan-18 12:47 
QuestionProblems pausing and restarting animations in XAML Pin
Kenneth Haugland6-Jan-18 0:52
mvaKenneth Haugland6-Jan-18 0:52 
AnswerRe: Problems pausing and restarting animations in XAML Pin
Gerry Schmitz6-Jan-18 7:48
mveGerry Schmitz6-Jan-18 7:48 
GeneralRe: Problems pausing and restarting animations in XAML Pin
Kenneth Haugland6-Jan-18 8:09
mvaKenneth Haugland6-Jan-18 8:09 
I did try out this:
HTML
<StackPanel  Width = "200" Height = "100" Background = "Black" Margin = "5">
    <StackPanel.Resources>
        <Style TargetType="Button">
            <Style.Triggers>
                <EventTrigger RoutedEvent="Click">
                    <BeginStoryboard Name="closing" Storyboard="{StaticResource ImidiateClosePopupAnimation}"/>
                </EventTrigger>
            </Style.Triggers>
        </Style>
    </StackPanel.Resources>

    <TextBlock TextWrapping = "Wrap" Foreground = "White" Text = "Some information goes here"/>
    <Button Click="Button_Click" Content="I'm unstyled, Click me"/>
    <Button Click="Button_Click" Content="Or Click me"></Button>
</StackPanel>


But that throws an error saying that:
Quote:
Cannot resolve all property references in the property path 'IsOpen'. Verify that applicable objects support the properties.

I couldnt figure out what the problem was:
wpf - Cannot resolve all property references in the propertypath - Stack Overflow[^]

The button click does swallow the button pressed, and although I can use PreviewMouseDown, that will stop the click event. I could put all of this in a UserControl and hardcode everything, but this seemed very doable in XAML, or so I thought.
GeneralRe: Problems pausing and restarting animations in XAML Pin
Gerry Schmitz6-Jan-18 8:26
mveGerry Schmitz6-Jan-18 8:26 
GeneralRe: Problems pausing and restarting animations in XAML Pin
Kenneth Haugland6-Jan-18 8:41
mvaKenneth Haugland6-Jan-18 8:41 
GeneralRe: Problems pausing and restarting animations in XAML Pin
Gerry Schmitz6-Jan-18 8:51
mveGerry Schmitz6-Jan-18 8:51 
GeneralRe: Problems pausing and restarting animations in XAML Pin
Kenneth Haugland6-Jan-18 9:17
mvaKenneth Haugland6-Jan-18 9:17 
GeneralRe: Problems pausing and restarting animations in XAML Pin
Gerry Schmitz6-Jan-18 9:32
mveGerry Schmitz6-Jan-18 9:32 
QuestionWPF Pin
Bogadamidi3-Jan-18 16:20
Bogadamidi3-Jan-18 16:20 
AnswerRe: WPF Pin
Kenneth Haugland3-Jan-18 18:31
mvaKenneth Haugland3-Jan-18 18:31 
QuestionBegin a storyboard in a ControlTemplate Pin
Kenneth Haugland1-Jan-18 22:28
mvaKenneth Haugland1-Jan-18 22:28 
AnswerRe: Begin a storyboard in a ControlTemplate Pin
Pete O'Hanlon2-Jan-18 0:55
mvePete O'Hanlon2-Jan-18 0:55 
GeneralRe: Begin a storyboard in a ControlTemplate Pin
Kenneth Haugland2-Jan-18 3:35
mvaKenneth Haugland2-Jan-18 3:35 
GeneralRe: Begin a storyboard in a ControlTemplate Pin
Pete O'Hanlon2-Jan-18 4:38
mvePete O'Hanlon2-Jan-18 4:38 
AnswerRe: Begin a storyboard in a ControlTemplate Pin
Pete O'Hanlon2-Jan-18 6:11
mvePete O'Hanlon2-Jan-18 6:11 
GeneralRe: Begin a storyboard in a ControlTemplate Pin
Kenneth Haugland2-Jan-18 6:41
mvaKenneth Haugland2-Jan-18 6:41 
GeneralRe: Begin a storyboard in a ControlTemplate Pin
Pete O'Hanlon2-Jan-18 7:49
mvePete O'Hanlon2-Jan-18 7:49 
QuestionComboBoxEdit Control Pin
Kevin Marois21-Dec-17 6:09
professionalKevin Marois21-Dec-17 6:09 
AnswerRe: ComboBoxEdit Control Pin
Kenneth Haugland1-Jan-18 23:16
mvaKenneth Haugland1-Jan-18 23:16 
QuestionVB.Net/WPF/XAML "The video does not load via the executable." Pin
Member 1358548219-Dec-17 13:20
Member 1358548219-Dec-17 13:20 

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.