In a Powershell WPF Application I have a Drag'n'Drop function with that code:
$droppedfile=$_.Data.GetFileDropList()
basically it's working fine if a file is dropped from Windows Explorer.
The problem is when you drag for example a attachement from Outlook (2016) $_.Data.GetFileDropList() is NULL. Has anyone an idea why?
Related
In the web application, we just right click on the page go to properties and can see the opened page path. How to achieve this in WPF application. I am running a WPF app having windows with many user control. I want to edit a user control. So I want to know its name and location in my project folder.
That is not possible like how you can in a web application, however there are some tools that can help you.
WPF Snoop
Used to inspect WPF application rather like 'Inspect Element' in a webpage. After inspection, pressing ALT+SHIFT will higlight what element is under the mouse and show you its name. Then you can search for that name in Visual Studio to find the class to edit.
See https://github.com/snoopwpf/snoopwpf
Visual Studio XAML Inspector
The microsoft version of the above 'Live Visual Tree Inspector' now built into Visual Studio and compatible with .NET Core 3.0 as well as .NET Framework.
See https://learn.microsoft.com/en-gb/visualstudio/xaml-tools/inspect-xaml-properties-while-debugging?view=vs-2019
I want to create ribbon tab (flat style - look like File Explorer Windows 8.1 and Office 2013) in my windows form C# project. Please help me! I try using OfficeRibbon with dll file (https://officeribbon.codeplex.com/) but it only it only Office 2007 Ribbon. Office 2013 is flat style but it doesn't work.
Use DevExpress Ribbon .This Tool Provide Ribbon form MDI with document manager and lot of customized controls and Skins for windows form .
The OfficeRibbon control's office 2013 style is almost there, straight out of the box:
You might need to apply your own theme to get it similar in color to Windows 8. More on theming HERE
I am using Microsoft expression blend 4 and i want to add a simple button,in a wpf application, which by clicking it(on "Run Project" mode) navigates the user to another existing wpf application in expression blend 4.This can be done by using a method but maybe I used the wrong method or i used the right method the wrong way.To be more specific i dragged on the button(that i want to make the task i mentioned) the "Launch UriOrFile Action" method but i realised(by making experiments with various files on desktop and using internet url's) that i can only link the running wpf application with random files or internet sites and not to another wpf application as i wanted(when i put the path of the wpf application it pops up a window saying"windows explorer has stopped working",something that didnt occured when i put random file's paths or internet sites url's).If anyone understands my problem let me know!thanks!!
Check out Process.Start. Create a command that fires code that calls that method.
By default Windows Form application in VS2010 is targeted to dot net Frame work 4.0 client profile for a windows form template ( i m not changing the original template but the newly created project).
but when I changed it to Dot net Frame work 4.0, the project is not loading into IDE.
It happens every time.
pleas help me.
Regards,
Akhil
I have noticed the same thing. Try closing the solution and re-opening it.
I am having one excel file that i need to host or embed in wpf application. that file need to open inside wpf application.. and user can do modification into that.
is there any solution for this....
Thanks
Brijesh
I am looking for hosting microsoft excel in my WPF application. Searching on internet for some time , i got below answer.
hosting stand alone office in WPF application