Click here to Skip to main content
15,886,664 members
Home / Discussions / WPF
   

WPF

 
QuestionSendMessage in C# WPF Pin
dominioYP28-Sep-12 6:11
dominioYP28-Sep-12 6:11 
AnswerRe: SendMessage in C# WPF Pin
Pete O'Hanlon29-Sep-12 10:30
mvePete O'Hanlon29-Sep-12 10:30 
GeneralRe: SendMessage in C# WPF Pin
dominioYP29-Sep-12 12:08
dominioYP29-Sep-12 12:08 
I can not use App.MyMetod(...) in the file MainWindow.xaml.cs
don't work

how do I call a method written in the class App from the class MainWindow?


C#
private void button4_Click(object sender, RoutedEventArgs e)
        {
           App.MetodoMute(new WindowInteropHelper(this).Handle);            
        }

GeneralRe: SendMessage in C# WPF Pin
Pete O'Hanlon29-Sep-12 20:45
mvePete O'Hanlon29-Sep-12 20:45 

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.