Click here to Skip to main content
11,429,154 members (63,037 online)

Silverlight / WPF

 
AnswerRe: Problem in flow direction when value is right to left in Telerik Pin
Pete O'Hanlon3-Oct-12 21:21
protectorPete O'Hanlon3-Oct-12 21:21 
GeneralRe: Problem in flow direction when value is right to left in Telerik Pin
Hossein Khalaj3-Oct-12 21:23
memberHossein Khalaj3-Oct-12 21:23 
GeneralRe: Problem in flow direction when value is right to left in Telerik Pin
Hossein Khalaj4-Oct-12 23:48
memberHossein Khalaj4-Oct-12 23:48 
Questionbinding: not work property Mode=TwoWay and UpdateSourceTrigger Pin
dominioYP3-Oct-12 1:25
memberdominioYP3-Oct-12 1:25 
AnswerRe: binding: not work property Mode=TwoWay and UpdateSourceTrigger Pin
Pete O'Hanlon3-Oct-12 1:54
protectorPete O'Hanlon3-Oct-12 1:54 
GeneralRe: binding: not work property Mode=TwoWay and UpdateSourceTrigger Pin
dominioYP3-Oct-12 23:24
memberdominioYP3-Oct-12 23:24 
QuestionHow do I reference embedded resources in Xaml? Pin
Gil Yoder2-Oct-12 19:57
memberGil Yoder2-Oct-12 19:57 
AnswerRe: How do I reference embedded resources in Xaml? Pin
Gil Yoder4-Oct-12 8:52
memberGil Yoder4-Oct-12 8:52 
Questionsilverlight Pin
rameshchetu30-Sep-12 10:12
memberrameshchetu30-Sep-12 10:12 
AnswerRe: silverlight Pin
Pete O'Hanlon30-Sep-12 10:45
protectorPete O'Hanlon30-Sep-12 10:45 
AnswerRe: silverlight Pin
Kenneth Haugland30-Sep-12 23:36
memberKenneth Haugland30-Sep-12 23:36 
AnswerRe: silverlight Pin
Abhinav S3-Oct-12 21:40
mvpAbhinav S3-Oct-12 21:40 
QuestionCheckk For WCF Service Running & Exit Pin
Kevin Marois29-Sep-12 10:51
memberKevin Marois29-Sep-12 10:51 
QuestionSendMessage in C# WPF Pin
dominioYP28-Sep-12 7:11
memberdominioYP28-Sep-12 7:11 
hello
I say first that this code works with windowsFormApplication, but no work with wpf, help me please

 
namespace WpfApplication22
{
public partial class App : Application
{
 

[DllImport("user32.dll", CharSet = CharSet.Auto)]
static extern IntPtr SendMessage(IntPtr hWnd, UInt32 Msg, IntPtr wParam, IntPtr lParam);
 
private const int APPCOMMAND_XXX = 0x80000;
 
private void MetodoMute(object sender, EventArgs e)
// Mute
        {
            SendMessageW(this.Handle, WM_APPCOMMAND, this.Handle,
                (IntPtr)APPCOMMAND_xxx);
 
        }
}
}

when I use:
        private void button4_Click(object sender, RoutedEventArgs e)
        {
            App x = new App();
            x.MetodoMute(new WindowInteropHelper(this).Handle);
       
        }

not works, It's launch exception:
"Eccezione non gestita di tipo 'System.InvalidOperationException' in PresentationFramework.dll

Informazioni aggiuntive: Impossibile creare più di un'istanza System.Windows.Application nello stesso AppDomain."



how do I call a method written in App.xaml.cs from another window?
AnswerRe: SendMessage in C# WPF Pin
Pete O'Hanlon29-Sep-12 11:30
protectorPete O'Hanlon29-Sep-12 11:30 
GeneralRe: SendMessage in C# WPF Pin
dominioYP29-Sep-12 13:08
memberdominioYP29-Sep-12 13:08 
GeneralRe: SendMessage in C# WPF Pin
Pete O'Hanlon29-Sep-12 21:45
protectorPete O'Hanlon29-Sep-12 21:45 
QuestionNew to .net/ previous programming background Pin
ljv_az27-Sep-12 9:29
memberljv_az27-Sep-12 9:29 
AnswerRe: New to .net/ previous programming background Pin
Richard MacCutchan27-Sep-12 10:47
mvpRichard MacCutchan27-Sep-12 10:47 
GeneralRe: New to .net/ previous programming background Pin
ljv_az27-Sep-12 11:00
memberljv_az27-Sep-12 11:00 
GeneralRe: New to .net/ previous programming background Pin
Richard MacCutchan27-Sep-12 22:16
mvpRichard MacCutchan27-Sep-12 22:16 
GeneralRe: New to .net/ previous programming background Pin
ljv_az28-Sep-12 9:14
memberljv_az28-Sep-12 9:14 
GeneralRe: New to .net/ previous programming background Pin
Richard MacCutchan28-Sep-12 22:57
mvpRichard MacCutchan28-Sep-12 22:57 
GeneralRe: New to .net/ previous programming background Pin
ljv_az29-Sep-12 8:29
memberljv_az29-Sep-12 8:29 
GeneralRe: New to .net/ previous programming background Pin
Richard MacCutchan29-Sep-12 8:34
mvpRichard MacCutchan29-Sep-12 8:34 
GeneralRe: New to .net/ previous programming background Pin
ljv_az29-Sep-12 17:46
memberljv_az29-Sep-12 17:46 
GeneralRe: New to .net/ previous programming background Pin
Richard MacCutchan29-Sep-12 22:38
mvpRichard MacCutchan29-Sep-12 22:38 
GeneralRe: New to .net/ previous programming background Pin
ljv_az30-Sep-12 7:23
memberljv_az30-Sep-12 7:23 
GeneralRe: New to .net/ previous programming background Pin
Richard MacCutchan30-Sep-12 7:59
mvpRichard MacCutchan30-Sep-12 7:59 
GeneralRe: New to .net/ previous programming background Pin
ljv_az30-Sep-12 8:51
memberljv_az30-Sep-12 8:51 
GeneralRe: New to .net/ previous programming background Pin
Richard MacCutchan30-Sep-12 22:57
mvpRichard MacCutchan30-Sep-12 22:57 
AnswerRe: New to .net/ previous programming background Pin
Pete O'Hanlon30-Sep-12 8:48
protectorPete O'Hanlon30-Sep-12 8:48 
AnswerRe: New to .net/ previous programming background Pin
Blikkies2-Oct-12 6:04
memberBlikkies2-Oct-12 6:04 
GeneralRe: New to .net/ previous programming background Pin
Alisaunder3-Oct-12 18:10
memberAlisaunder3-Oct-12 18:10 
AnswerRe: New to .net/ previous programming background Pin
_Maxxx_7-Oct-12 18:17
member_Maxxx_7-Oct-12 18:17 
QuestionJesús Alvarez Manrique Pin
Member 901299827-Sep-12 7:47
memberMember 901299827-Sep-12 7:47 
AnswerRe: Jesús Alvarez Manrique Pin
Yayozama27-Sep-12 8:37
memberYayozama27-Sep-12 8:37 
GeneralRe: Jesús Alvarez Manrique Pin
Member 901299827-Sep-12 8:57
memberMember 901299827-Sep-12 8:57 
GeneralRe: Jesús Alvarez Manrique Pin
Emmanuel Medina Lopez27-Sep-12 12:33
memberEmmanuel Medina Lopez27-Sep-12 12:33 
GeneralRe: Jesús Alvarez Manrique Pin
Member 901299827-Sep-12 8:59
memberMember 901299827-Sep-12 8:59 
QuestionBobbles in paradise - ViewModel and my personal adventures in WTF Pin
Kenneth Haugland26-Sep-12 19:25
memberKenneth Haugland26-Sep-12 19:25 
Questionbeginner : binding ListBox Pin
dominioYP26-Sep-12 5:05
memberdominioYP26-Sep-12 5:05 
AnswerRe: beginner : binding ListBox Pin
Pete O'Hanlon26-Sep-12 5:26
protectorPete O'Hanlon26-Sep-12 5:26 
GeneralRe: beginner : binding ListBox Pin
dominioYP26-Sep-12 6:41
memberdominioYP26-Sep-12 6:41 
GeneralRe: beginner : binding ListBox Pin
dominioYP28-Sep-12 6:38
memberdominioYP28-Sep-12 6:38 
Questionbeginner : listView, add scrollBar Pin
dominioYP26-Sep-12 4:50
memberdominioYP26-Sep-12 4:50 
QuestionTrying to set focus on DataGrid with DataGridTemplateColumn Pin
abollmeyer23-Sep-12 4:44
memberabollmeyer23-Sep-12 4:44 
AnswerRe: Trying to set focus on DataGrid with DataGridTemplateColumn Pin
abollmeyer24-Sep-12 15:13
memberabollmeyer24-Sep-12 15:13 
QuestionOn ContextMenu MouseLeave Pin
Kenneth Haugland21-Sep-12 4:46
memberKenneth Haugland21-Sep-12 4:46 
AnswerRe: On ContextMenu MouseLeave Pin
Kenneth Haugland21-Sep-12 14:42
memberKenneth Haugland21-Sep-12 14:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.150428.2 | Last Updated 22 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid