Visual Studio 2017 Live Visual Tree shows empty for WPF - wpf

I installed VS 2017 v.15.6.3 and trying to debug a WPF application (running Test method to start WPF instance in same solution with attached process). Live Visual Tree shows blank and returns no result. I couldn't select any control to view in the visual tree. Any help would be appreciated.
Note: I checked all options under Enable UI debugging Tools for XAML and valdiated XamlDiagnostics.DLL in the machine.

Visual Studio 2017 Live Visual Tree shows empty for WPF
I do not think Visual Studio support Live Visual Tree for test project even if it start WPF instance in same solution with attached process.
The application should be WPF for Live Visual Tree to work.
So, to get the Live Visual Tree, please debug the WPF application directly.
Hope this helps.

Related

Bug in VS 2022 (Enable XAML Designer not working)

I recently started to use Visual Studio 2022 Professional edition. Whenever I enable visual designer from :
Tools -> Options -> XAML Designer -> General
I check to enable the XAML designer:
When I restart the Visual Studio IDE, nothing is changed, and the option is unchecked again. I tried multiple times, and unfortunately, the XAML code is only visible while the XAML designer is always unchecked.
Hey I was having a similar issue.
Make sure you're opening the project via the actual C# project file and not through the folder explorer.

Apply changes from Live Property Explorer in WPF

I am new to WPF.
I am debugging a simple program and playing around with the the Live Visual Tree and Live Property Explorer to make changes on the fly.
My simple question is, Can I apply those changes straight into my XAML code or to I have to keep 2 versions of Visual Studio open? One for Debugging and one for editing?
Can I apply those changes straight into my XAML code or to I have to keep 2 versions of Visual Studio open?
No and Yes. Visual Studio won't update the XAML for you. You will have to do this manually yourself.
You may want to suggest this as a new Visual Studio feature on uservoice.com.

Unable to add WPF controls to the toolbox in Visual Studio 2013

First of all, I am completely new to Visual Studio, so please don't be too judgmental. I have a project I need to do in C# for my studies and my team uses a GitHub repository. I am in charge of creating the GUI and I am stuck at the very beggining.
I want to create the main application window using WPF, but when I use toolbox > choose items, I can not see the WPF tab. Also, when I am trying to enable the designer view, nothing happens.
Is it perhaps the software version being Visual Studio Community 2013 causing the issue? Do I need to have the Visual Studio Professional version in order to use WPF toolbox?
I'm attaching a link to the screen of the situation below.
As I presumed, all I needed was the professional version of Visual Studio. After obtaining and installing it everything works fine.

How to unit test the value of a control once a wpf form has loaded in Visual Studio?

Currently I'm testing visually by running the app and looking at the form. How can I automate this with Visual Studio ?
If you have Visual Studio 2010 Ultimate you can use the Coded UI feature:
Creating Automated Tests
and here's a walk through with WPF:
Walkthrough: Creating, Editing and Maintaining a Coded UI Test

ReportViewer (.rdlc) light designer for WinForms

Are there any other ReportViewer designer beside the Visual Studio (with GUI of course I know that any XML/TEXT editor can change definition of .rdlc file) ?
One day when I finish my rich (fat) client application at all, Ill love to try embed in report designer, so end users can do cosmetics modification of theirs report files without having installed Visual Studio.
Sub question, does this feature have CrystalReport service ?
I tried an opensource editor: http://www.fyireporting.com/products.html, and it works! (I have several WinForms apps which use the ReportViewer from Visual Studio 2008). You can, of course, download the sources also and adapt it if needed.
Visual Studio Community is Free and includes all the functionality of Visual Studio Professional.
http://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx

Resources