VisualState Name and GroupName, WinRT WinPRT - xaml

I'm trying to set custom visual states of multiple items like Button, GridViewItem, and ListBoxItem. It seems like I'm missing some states. I searched through the stackoverflow and msdn and could not find a list of possible visual states so that I can verify if I'm covering them all or not.
Does anyone know somewhere I can find a list of VisualState Names and GroupNames?
Update: you can check the Templates for Button in Visual Studio but not for those items that cannot be added through the toolbox.

One place to find them is in control templates themselves. Right click a control in the designer view and extract the template to see what visual states it responds to.

Related

Trouble traversing Visual Tree in C++/WinRT

I'm implementing an app w/ Excel-style functionality where I have a ListBox of baskets, each containing a ListBox of Items, each containing a StackPanel-nested Button inside it.
XAML, What the layout looks like
Goal: I want to click on the button, such that the item entry (StackPanel) is highlighted via SelectedIndex(). I try to accomplish this in the GotFocus="ItemGotFocus" event handler, by traversing the visual tree to find the parent ListBox, so I can call SelectedIndex() on it.
However, I am getting errors whenever I call VisualTreeHelper::GetParent() or other functions from the namespapce in general:
Do I need to define a template definition somewhere, so it can figure out the type I want it to return, or is there a better way to go about this?
Thank you, it worked!
Turns out I had included <winrt/Microsoft.UI.Xaml.Media.h> in "pch.h", when what I really needed was <winrt/Windows.UI.Xaml.Media.h>.

Is there a way to locate a code block from a GUI in debug mode?

I'm digging through a program that contains a lot of forms with names that aren't as descriptive as I'd like them to be. I am trying to edit some motor control functions, and in the GUI I am able to reach the form that contains buttons controlling the motor, but I'm not sure where the code is that controls this form. Is there a way to open up the code block corresponding to the form I navigate to from the GUI in debug mode?
Or, alternatively, how can I navigate through the GUI without running it? I know I can right click and do "View Code", so if I could navigate to the form I'd be able to that.
I am using VB.NET in Visual Studio 2010
Go by button text. In visual studio search(Ctrl+F) using the text, visual studio will find the designer.vb file holding the button with the text, once it is done try to look at the design of particular then you can figure out which form you need to look at.
thanks

VB.NET - How to Create Information Box

I'm creating a form that will display a long list of properties and their associated value. I'd like to display them in a sort of table-like control. Something with heading values at the top and a list of organized data underneath it. Something like these:
I realize those 2 examples aren't exactly the same but I'm flexible on what I produce as long as it gives a similar effect. My question is, how do I create a list like that? Is there a control in the Visual Studio toolbox that will produce this effect?
I'm sure there's something similar that easy to find but I can't figure out what to call that control so my searches haven't turned up anything useful.
Any help would be greatly appreciated. Thanks!
A combination of ListView and TabControl controls could be used to emulate what you're showing above. See the links for ListView and TabControl to help you get started.
Yes, there are windows form controls that provides this functionality.
For the tabbed windows use the TabControl:
For the different lists use a ListView control in the mode Details - which means a list with columns:
For the second feature, the ListView control has the Group features:
In order to group items togheter set the group for the chosen item(s):
All of this can be of course done programatically. There are good tutorials on MSDN and Channel9.

How can I locate a UI element in VB6 code?

I have no experience with VB, but I have looked around a decent amount and cannot figure this out.
I am currently recreating a VB6 application to a VB.net application. There are a bunch of elements that are hidden until certain options are chosen. Obviously, not having the element created on the form gives me this error:
Looking at the VB6 environment, I find the mDNP variable in the drop down menu on the right, but it does not tell me where it is located, or what type of UI element it is. It says Menu next to it, but I have gone through all of the menus and cannot find it anywhere.
The issue of hidden elements is not the cause of the error; even if not visible, they must exist. More likely, you havent yet (re)created that VB6 object in the new NET project code (especially if you cannot find it in VB6).
Menus were odd in VB6 and used a special editor rather than just being a component or control you added. mDNP likely relates to a drop down menu list/window. To find all these creatures in VB6:
Open the form designer
Right Click
Select Menu Editor
There is also a toolbar button, but it may missing as a result of customization:
This will show all the menu elements for this form including ones which might be set to invisible to be later invoked as PopUps or context menus in today's lingo. There is no indicator that a form has a menu (like the form tray components in .NET) other than opening the Menu Editor.

Removing item level mouseover effect in SharePoint 2010

I am trying to remove the hover effect that brings up the checkbox next to the row item in SharePoint 2010 list item rows. Is there any settings that can make this happen? I would like to keep away from having to tinker with the CSS and javascripts. Please see illustration below. Thank you.
There are no settings for that sort of thing - the selection check box is a default behavior. You are going to have to modify the CSS, for that.
Use SharePoint Designer (Available Here]1) to help determine whitch CSS elements control that behavior, and make a custom style sheet to override it.
You can accomplish this by going to the Modify View option of your list and unchecking the Allow Individual Item Checkboxes under Tabular View options.
Note: If you are using a Web Part to view it you might have to set the view again for the changes to reflect.