visual-studio-designer

How do you unpin and move the form in the Visual Studio designer?

痞子三分冷 提交于 2019-12-30 07:52:00
问题 In Visual Studio, the forms are stuck to the top left corner of the IDE working area like they are pinned there. How do you unpin them? 回答1: They're not "pinned", they're actually being drawn there in that position by the designer. This is a simulated drawing only. The form does not actually function in the designer the same way that it does at run-time. You cannot move forms around or interact with their non-client area in any way (e.g., you also can't click the minimize or close boxes).

How do you unpin and move the form in the Visual Studio designer?

心已入冬 提交于 2019-12-30 07:51:50
问题 In Visual Studio, the forms are stuck to the top left corner of the IDE working area like they are pinned there. How do you unpin them? 回答1: They're not "pinned", they're actually being drawn there in that position by the designer. This is a simulated drawing only. The form does not actually function in the designer the same way that it does at run-time. You cannot move forms around or interact with their non-client area in any way (e.g., you also can't click the minimize or close boxes).

Implement Dispose(bool) on a UserControl

痞子三分冷 提交于 2019-12-24 18:16:29
问题 How to implement the Dispose(boolean) at a UserControl... when the VS Designer already implemented it with a DebuggerNonUserCode attribute? Will my modifications on this method removed? (code from UserControl.Designer.vb) <System.Diagnostics.DebuggerNonUserCode()> _ Protected Overrides Sub Dispose(ByVal disposing As Boolean) 回答1: You need to remove the Dispose method from the designer file and add it to your source file. You should probably also remove the DebuggerNonUserCode attribute. At

Can I preview my DataTemplate(s) in my collection-based controls in the designer?

心已入冬 提交于 2019-12-24 12:18:32
问题 I have an application that I've near-finished that makes use of multiple Data Templates. Specifically, I have a ListView and a DataGrid. I've created some special formatting for these items and I'd like to preview one of these list items, so that I can tweak the visual layout, coloring, padding, margins, etc. Can this be done within the Visual Studio designer, or am I forced to design these templates by hand in Xaml, and preview by running my application? 回答1: you can use a design time

Visual Studio 2015 Designer Crashes in all Win10 UAP projects (“The app didn't start.”)

混江龙づ霸主 提交于 2019-12-20 04:04:22
问题 The xaml visual designer crashes for all WIN10 UWP projects, including ones created from the standard template with no code added. I don't know when it started because I thought it was a problem with my project until I tried creating some new ones. The error is given below and in the screen shot at the bottom. System.Runtime.InteropServices.COMException The app didn't start. (Exception from HRESULT: 0x8027025B) at Microsoft.VisualStudio.DesignTools.HostUtility.AppPackage

Visual Studio Designer Bottom Pane

孤街浪徒 提交于 2019-12-19 12:22:04
问题 What does it mean in the designer when you add something like saveFileDialog to a form, and it appears in the bottom pane at the bottom of the designer window rather than inside the form like a button would? 回答1: When something like a SerialPort or SaveFileDialog appears at the bottom the designer, it just means that component is not a physical thing that gets drawn on the form/window. To avoid confusion, it is displayed outside of the window. You can click on it to see and change its

Could not find type 'xxx.xxx.xxx'. Please make sure that the assembly

假如想象 提交于 2019-12-17 17:47:12
问题 I've searched StackOverflow and found similar problems when I try and open a form that references a UserControl in a different project. I get the To prevent possible data loss before loading the designer, the following errors must be resolved: message relating to the following two errors: Could not find type 'MyNamespace.CommonUi.InformationBox'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the

Silverlight Designer not finding custom controls

試著忘記壹切 提交于 2019-12-13 06:09:57
问题 I'm having an issue where silverlight doesn't recognise custom controls or resources. I include the namespace and intelisense recognises the item, the application builds fine and runs fine however the designer throws the following error. The type 'x' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built. Usually I'm able to sort out the issue by performing a clean/rebuild of the project. however recently this route has been

Building Visual studio like application, need inputs

血红的双手。 提交于 2019-12-13 03:38:08
问题 I am working on a Visual studio like application i.e. have a toolbox, an editor and property grid similar to VS. User can drag and drop the controls(custom and third party) to the editor window and perform operations like resize, move, align, group etc.; Properties of that control needs to be displayed in property grid and user can update them from there. As per my current understanding I will have to extend the Canvas to create my own editor and and Interface for controls which it supports;

Xamarin.Android, Visual Studio - Designer doesn't work with v7 AppCompat library

浪子不回头ぞ 提交于 2019-12-08 02:01:45
问题 I want to create an app with Material Design using Xamarin and Visual Studio. I want to achieve this using the v7 AppCompat library, so my app runs well on older devices. I have an activity with a toolbar and a button. But in the Visual Studio Designer the layout isn't as it's supposed to be(No Material theme and no Toolbar): But the strange thing is that it runs properly on my phone(without any changes made): How can I fix this? 回答1: Currently the Visual Studio Designer doesn't show Support