I´m trying to use the ASP.NET TreeView control to display informations like some sites do. For example:
http://www.codeproject.com/KB/webforms/ClientSideTreeView.aspx
The site of the link above have some code snippets that can be collapsed or expandend, showing a rectangle with the code snippets.
The first question is: Is this a TreeView control?
If positive how can I do that? Otherwise, what is this control?
Thanks
Yes, it is a TreeView control. (Like it says "TreeView control from Microsoft with C# and ASP.NET")
More information:
http://msdn.microsoft.com/en-us/library/ms529261.aspx
http://www.codeguru.com/csharp/.net/net_asp/controls/article.php/c12285
Related
Sorry but I am a newbie to WPF, I would really appreciate if you could help me-
Tag 1 in pic- Which control can I use to create a menu similar to that in the picture ? The closest I came was using a gridview within a listview but that ends up using a header for the gridview. Normal listview just highlights the entire strip and doesn't look good at all.
Tag 2 in pic // (No longer relevant, sorry)
Edit:
Looking for something simple like when using gridview with listview (as in pic below) there is automatically that standard window gradient & bevel effect etc. (As an idea, implementing it with buttons seems to cumbersome, first strip button border, then create all these effects.) So essentially anything already inbuilt in WPF.
Thanks for any help :-D !!!
ListBox or ListView are good controls to use. If it's just the 'pretty' factor you don't like, you can provide Templates to change the appearance. But functionally, ListBox and ListView provide the function of that menu.
When working with WPF, that should be your primary motivation when choose controls. What FUNCTIONS the way you want. You can always make it LOOK different with Templates, but getting the right FUNCTION is the primary goal for the control.
I am currently looking for a control that allows me to show only few informations when the control is fold. And when we click on the control, the control is unfold and all the information of the control are showed. I have checked if I could use ListView but I did not see a match and the TreeView does not fit my will because it's not a child node but the same node showed in a different way.
Can you help me find a control that could fit my needs ?
Thanks in advance.
You could look into the Expander control. You can modify the control template to customize how it looks and behaves.
I am trying to modify a custom content control I've created. Specifically I want to add a minibar containing one or two buttons to a quick and short modification of the text included in my content control. The image below shows the outcome I want to have - the problem is that these buttons are only shown in built-in table content control and I can't find any useful information on the web about how to create something like that myself... Could you help me?
Unfortunately, the commands shown next to the content control title are not customizable; it's definitely something we've thought about, but this isn't possible today.
You could use the ContentControlOnEnter and ContentControlOnExit events to show buttons on the context menu or the ribbon; depending on your scenario, that might work?
I am creating an App in which I have a menu that will display on every page. The menu contains navigation to another page, so I can avoid repeating the same code on every page and in XAML. How can I change the view of a page without navigating to another page?
Xaml allows you to handle Frames, which are quite like html's iframes :
http://msdn.microsoft.com/fr-fr/library/cc838245(v=vs.95).aspx
some frameworks, like caliburn micro, ease the use of such frames.
Hey Dont know exactly What you want,but according to my understanding you can use Pivot and Panorama control.
This is the best control according to your requirement.
Here is the sample code and description.
http://code.msdn.microsoft.com/wpapps/PanoramaPivot-Sample-332a7e06
I have a user control that contains multiple controls (CheckBox, Button, Label...).
I want to change the layout of this user control to support right to left languages but i can't find how to do it.
Currently i can change the controls alignement using the RightToLeft property. But how can i change their positions?
Thank you for your time.
Thank you guys for your answers but there is a better way to do it.
First we go to the user control properties and select the language property.
After changing it to another language a new resource file will be created for the user control.
After that, using the designer we can change the controls positions in the user control as we like.
The new values will be saved in the created resource file.
When the language has changed, the corresponding resource file will be loaded and the positions will be changed.
If the language is a right to left one, don't forget to specify the right to left property for the controls.
Hope this helps.
Use the layout controls with the RightToLeft property and follow the following links for implementation:
RightToLeft property in Form in C#
http://msdn.microsoft.com/en-us/library/system.windows.forms.form.righttoleftlayout(vs.80).aspx:
Developing Arabic applications should be easy!
Implementing Mirror-Aware Controls for Windows Application with Visual Studio .NET
Try to use FlowLayoutPanel or TableLayoutPanel to hold your controls and change panels RightToLeft property
User control mirroring is not supported for user controls, see this connect article: http://connect.microsoft.com/VisualStudio/feedback/details/121202/usercontrol-mirroring-is-not-inherited-from-the-form
Their suggested workaround is to use a table layout panel which will mirror the controls in right to left.