Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Atach event from static resource

$
0
0

Hi I have the follow code from resources (on App.xaml):

<Button x:Name="BaseWindow_Close" DockPanel.Dock="Right" 
                                                    VerticalAlignment="Center" Margin="5"
                                                    Height="20" Width="20" 
                                                    Style="{DynamicResource MetroWindowButtonStyle}"
                                                    Click="BaseWindow_Close_Click"></Button>

After, I call the resource on a window:

Style="{StaticResource WindowStyle}"

But I need that when I close the window, My custom button call the event from the resource file ...

How to ?? Help !!!


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>