I started with wpf 4.0. I have a textBox where i shall enter linq expressions. So i want to enable intellisense support in the textEditor. All i do now is bringing a popUp which has the list of items. Do i have anyother way to do this in WPF.
Thanks.
No, none of the built-in controls provide Intellisense functionality. It's a feature provided by code editors, and I doubt Microsoft intends for you to re-implement Visual Studio.
You'll have to write it yourself. See here for a sample: Intellisense-like Method Selection Pop-up Window
A commercial control package is another option. For example: Actipro's WPF SyntaxEditor
Related
I have a textbox in my Application (WPF). That textbox like a small code editor (for powershell cmdlet). How can i get that textbox displays "intellisense" or "tab-completion" for the user easy to work with powershell cmdlet? Thank you all.
Quoted from here
No, none of the built-in controls provide Intellisense functionality. It's a feature provided by code editors, and I doubt Microsoft intends for you to re-implement Visual Studio.
You'll have to write it yourself. See here for a sample: Intellisense-like Method Selection Pop-up Window
A commercial control package is another option. For example: Actipro's WPF SyntaxEditor
Is there a way to disable the design view of an individual UserControl - without disabling the design view for other controls?
Certain controls of mine do not support design view, and in these cases I would prefer them to just load up the xaml editor.
Is there something I can place in the code to disable the design view?
This question intrigued me. I never use the VS designer anyway. For visual tools I prefer Blend. I only use VS for editing the XAML directly (or code).
If you want to go straight to the XAML editor instead of the designer, here's an option. I don't know of any way to disable the designer only for certain views. I suspect that it is not possible unless you write a VS extension.
When I return from debug mode, my visual studio 2008 environment takes a really long time to display the properties of a UI control (e.g. text box) I click on.
why does this happen? Is there a hotfix or update for this from microsoft?
Thanks for any help in advance.
Subbu
If you are using WPF, then this might be normal :) VS doesn't have a very quick WPF UI designer. Get Expression Blend, its designed for such things. If you're using WinForms, I'm not sure. I've often felt slowdowns when using 3rd party WinForms controls, such as Telerik or DevComponent's DotNetBar, but it is because references to these controls bring in huge DLL's of which you often only use a small portion of. It leads to bloat, which can slow down a UI designer. Hope this helps.
I want to create control that seems and works like the Solution Explorer of Visual Studio.
I mean not the functionality of solution explorer, the control should be seems like that control. That means, server explorer, toolbox, error List,... All these controls will pop-out when we put mouse and pop-in when we leave. We can lock and unlock those controls also.
So can anyone help me, to get the solution for this problem.
Thanks!!!!!!!!!!!
I am assuming you are using C#/VB.NET for development. The dockpanel suite will provide a docking framework for an application. Basically in terms of dockpanel, it is the forms which can be docked on the application using drag and drop like visual studio.
So create a treeview control in the form and dock it to the parent. You can populate the treeview control based on file directories or any specific needs of your project. Please note in dockpanel you create a form by not inheriting from Form class but from DockContent class. Documentation will give you more insight of how to create applications. It has a good example along with the source code in which it simulates the all the visual studio panes. It also provides and option to save the position of various docks which can act as a user preference. For eg, you may like to position solution explorer on left side whereas i may want it on right side. this get stored in a conf file which gets read next time when you start the application.
Incase you using MFC, then visual studio 2008 SP1 provides you with docking framwork and within that use the treeview control.
XAML also provides a docking framework. But i am not sure, you need to verify.
Win32 API does not have any native docking framework.
Where to find Generic.xaml (or other code with the default look) for native WPF controls such as Button, CheckBox, TextBox, etc?
In Silverlight (and I know that your question is about WPF) this information is more accessible than in WPF. You can get this information from any of these sources:
Control Styles and Templates on MSDN.
You can look at the resources of the relevant Silverlight assembly and extract the themes/generic.xaml embedded in a resource. I use Reflector to do this.
You can extract the control template of a specific control using a tool. I use Expression Blend to do this. This also works for WPF.
Unfortunately the XAML for native controls is not directly available as a file. You need to use a program for peeking into the WPF assemblies and extracting that info. I personally have used the Mole for Visual Studio tool, which has done the job very well. It integrates as a debugger-visualiser, which is quite handy.