Visual studio form layout tutorial? - visual-studio

I'm a Qt developer, trying to design forms with visual studio.. but the layout toosl are.. lacking? I only see tools for fixed-size forms.
What are the visual studio alternatives to Qt's vertical/horizontal/grid layouts with minimum/maximum/preferred size hints, spacers, etc?? I can't see anything like this.

Closes things you can use are:
FlowLayoutPanel
TableLayoutPanel
Alternatively, you can go for WPF instead of WinForms.

Related

Is it possible to add VSIX XAML Toolbar to Visual Studio?

Is it possible to add XAML toolbar (instead of native Visual Studio in vsct file) to Visual Studio (in this case Visual Studio Shell)?
I cannot find any examples in the Internet.
I would recommend you stick with using a VSCT resource, to keep your extension consistent with the look and feel of the IDE as a whole.
That being said, there is nothing stopping you from designing a toolwindow or custom designer that hosts XAML based toolbars. Some extenders choose to do this, but the buttons hosted are not VS commands, are not exposed to or discoverable via the Tools | Customize dialog, other extensions cannot automate or programmatically access them, and you lose the built in functionality to control visibility/enablement based on active contextUI guids.
Sincerely,

Intellisense Xamarin Forms does not work - Visual Studio Enterprise with Update 3

I installed VS with Xamarin but Intellisense in XAML files is not working properly. In some parts of the code it shows the list of suggestions as shown below.
Except in other parts of the code it does not show the list with all the items (image below).
It is also opening the XAML with the XML Editor, but should it not be with XAML Designer?
Does anyone have any suggestions for resolving or circumventing this problem?
Thank you all.
Those 2 behaviors that you described are by design, you can look at the following screenshot, since you type “<” inside and outside the node , the auto complete member list is different which defined in the XML Schemas.
For the second question, Xamarin.Forms doesn't currently support visual designers for XAML files. There is not yet a visual designer for generating XAML in Xamarin.Forms applications, so all XAML must be hand-written. We can know this from Why doesn't the Visual Studio XAML designer work for Xamarin.Forms XAML files?, but we can try to use the XAML Previewer for Xamarin.Forms to help us to preview the UI.

how to view the design of xaml file in xamarin forms pcl in visula studio?

Now i am going on with the development of xamarin forms pcl project,i have created a xaml file in my portable lib there i can't view the design.
Tried to fix it by the following link:
https://msdn.microsoft.com/en-us/library/hh921077.aspx
http://blog.spinthemoose.com/2013/03/24/disable-the-xaml-designer-in-visual-studio/
How can i solve this issue.
There are no designer support from Xamarin, as it would be bit of complicated, but you might find Xamarin Forms Player a good tool to go,
https://visualstudiogallery.msdn.microsoft.com/4ed9794a-2021-486a-9bca-4851c7ee7316
Visual Studio's XAML Designer currently does not support Xamarin XAML files.There's no designer for it atm.
Even though their syntax are very similiar , there are some slight differences between them.

Optimal XAML editing with Visual Studio 2010

I've recently started developing Silverlight applications in Visual Studio and noticed that the XAML editor there is not optimal. Meaning, I can see the XAML in a text editor with pretty colors, but other than that it doesnt give me much productivity, like C# code, with all the list of methods and parameters in a drop down list and other helpfule views and windows. Is there really not much support in VS2010 for easier editing of XAML files?
u can try to use something like ReSharper

LightSwitch and Expression Blend - Will they work together?

how well can LightSwitch work together with Blend? I saw in some videos that you can use custom Silverlight control in LS and naturally I can create them with Blend.
But can Blend in itself be used to customize the screens of a LightSwitch application? It seems LS doesn't use Xaml but puts all screen in an application.lsml file which is invalid for Blend. Is there support coming here?
Thanks in advance.
No. You will never be able to customize the LightSwitch 'Screens' in Blend, because as you have seen, they live inside the application.lsml file. If you build a Shell Extension, you could use Blend to do the basic layout, but most of the work is in C# or VB. For a Theme Extension, you could certainly use Blend to edit the Theme Visusl Pallette Resource Dictionary. See this link for the a cookbook guide to building the various types of LightSwitch Extensions: http://blogs.msdn.com/b/lightswitch/archive/2011/03/16/lightswitch-beta-2-extensibility-cookbook.aspx. There is also now an accompanying Visual Studio project template available for Beta 2.
LightSwitch works fine with Expression Blend, but only for custom Silverlight controls (Expression Blend will throw an error that it can't load any LightSwitch projects that are part of the solution, but it will load any Silverlight control projects).
You cannot edit any of the automatic LightSwitch UI, but you do not have to use any of the standard LightSwitch UI if you need changes.
I would recommend creating Silverlight custom controls not LightSwitch extensions, the difference is that a control extension has a design-time experience in Visual Studio and is MUCH harder to create (Silverlight custom controls are actually very easy to create).
See this article for an example:
http://lightswitchhelpwebsite.com/Blog/tabid/61/EntryId/2/Creating-A-LightSwitch-Custom-Silverlight-Control.aspx

Resources