Click here to Skip to main content
15,946,988 members
Home / Discussions / WPF
   

WPF

 
QuestionHelp with ProgressBar Pin
Etienne_12310-Oct-09 3:19
Etienne_12310-Oct-09 3:19 
AnswerRe: Help with ProgressBar Pin
Sperneder Patrick10-Oct-09 4:32
professionalSperneder Patrick10-Oct-09 4:32 
GeneralRe: Help with ProgressBar Pin
Etienne_12310-Oct-09 7:21
Etienne_12310-Oct-09 7:21 
AnswerRe: Help with ProgressBar Pin
Nigel Ferrissey11-Oct-09 9:27
Nigel Ferrissey11-Oct-09 9:27 
AnswerRe: Help with ProgressBar Pin
Pete O'Hanlon11-Oct-09 11:11
mvePete O'Hanlon11-Oct-09 11:11 
QuestionTextBox trigger question Pin
QzRz10-Oct-09 0:55
QzRz10-Oct-09 0:55 
AnswerRe: TextBox trigger question Pin
Daniel Vaughan11-Oct-09 8:10
Daniel Vaughan11-Oct-09 8:10 
QuestionReplacing the desktop instead of running in a window? [SOLVED] Pin
seguso9-Oct-09 20:31
seguso9-Oct-09 20:31 
Hello, I have a WPF application which runs in a Window. I would like to change that and have it replace the Windows desktop (this makes sense since the application is a file manager, among other things.).

I need some generic explanation of how to do that because I have no clue if it's possible and how. So far I only understand that I'll probably have to call some Win32 functions. I am imagining something like "take the hwnd H of your wpf window, call GetDesktopWindow() as W, take the parent P of W, and replace H as the child of P". (This is what I seem to understand that I probably have to do, but I may be completely wrong. For example, I may need to implement some COM interfaces or create shell extensions.).

Currently I am browsing the source code of some "shell replacements" like geoshell, but I still can't locate the piece of code which replaces the desktop, and I am not sure this would apply to a WPF application anyway. So, I would be very grateful if somebody pointed at the right direction. Thank you very much for any pointers. Smile | :)

Update :

it looks like I did it with the help of this link[^]. It seems to work. Here is the code (the language is F#):

let tWnd =
      let help = Interop.WindowInteropHelper mainWindow
      help.Handle

 mainWindow.ResizeMode <- ResizeMode.NoResize  //mainWindow has type System.Windows.Window
 mainWindow.WindowStyle <- WindowStyle.None
 let mutable pWnd = FindWindow("Progman", null)
 pWnd <- FindWindowEx(pWnd, IntPtr.Zero, "SHELLDLL_DefVIew", null)
 pWnd <- FindWindowEx(pWnd, IntPtr.Zero, "SysListView32", null)
 SetParent(tWnd, pWnd) |> ignore

 mainWindow.WindowState <- WindowState.Maximized


modified on Saturday, October 10, 2009 7:47 AM

QuestionUser Control with collection for property Pin
Adam R Harris9-Oct-09 11:24
Adam R Harris9-Oct-09 11:24 
QuestionChange color of ribbon control..... Pin
yogeshdew9-Oct-09 6:31
yogeshdew9-Oct-09 6:31 
QuestionGetting mouse up event on WPF Figure [modified] Pin
fjparisIII9-Oct-09 5:40
fjparisIII9-Oct-09 5:40 
AnswerRe: Getting mouse up event on WPF Figure Pin
Pete O'Hanlon11-Oct-09 11:55
mvePete O'Hanlon11-Oct-09 11:55 
GeneralRe: Getting mouse up event on WPF Figure Pin
fjparisIII11-Oct-09 14:42
fjparisIII11-Oct-09 14:42 
QuestionCan we use control properties in windows forms from a user control create in Wpf .and currently we are using user control in windows forms.... Pin
Anuj Banka9-Oct-09 1:57
Anuj Banka9-Oct-09 1:57 
AnswerRe: Can we use control properties in windows forms from a user control create in Wpf .and currently we are using user control in windows forms.... Pin
Pete O'Hanlon9-Oct-09 2:21
mvePete O'Hanlon9-Oct-09 2:21 
GeneralRe: Can we use control properties in windows forms from a user control create in Wpf .and currently we are using user control in windows forms.... Pin
Anuj Banka9-Oct-09 2:23
Anuj Banka9-Oct-09 2:23 
QuestionStarting to hate silverlight Pin
gantww8-Oct-09 16:59
gantww8-Oct-09 16:59 
AnswerRe: Starting to hate silverlight Pin
lepipele8-Oct-09 18:01
lepipele8-Oct-09 18:01 
QuestionHow to show SSL WCF Service Padlock Pin
Soulforged8-Oct-09 13:48
Soulforged8-Oct-09 13:48 
AnswerRe: How to show SSL WCF Service Padlock Pin
Nigel Ferrissey8-Oct-09 14:22
Nigel Ferrissey8-Oct-09 14:22 
GeneralRe: How to show SSL WCF Service Padlock Pin
Soulforged8-Oct-09 15:31
Soulforged8-Oct-09 15:31 
GeneralRe: How to show SSL WCF Service Padlock Pin
Nigel Ferrissey8-Oct-09 16:15
Nigel Ferrissey8-Oct-09 16:15 
GeneralRe: How to show SSL WCF Service Padlock Pin
Soulforged8-Oct-09 16:49
Soulforged8-Oct-09 16:49 
GeneralRe: How to show SSL WCF Service Padlock Pin
Nigel Ferrissey8-Oct-09 18:07
Nigel Ferrissey8-Oct-09 18:07 
QuestionDynemic Data binding for image within ListBox Pin
grvdarji8-Oct-09 10:40
grvdarji8-Oct-09 10:40 

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.