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 !!!