designer

Visual Studio 2013 (XAML?) Designer crash on all Windows Phone projects even after aquiring developer license

故事扮演 提交于 2019-12-02 06:55:22
My designer started to crash, even on clean projects. The error message is as follows: System.Exception Package failed updates, dependency or conflict validation. Windows cannot install package App.afbb198c1.a50af.a4b90.aa065.a08732a9e43b0 because this package depends on another package that could not be found. This package requires minimum version 0.0.0.0 of framework Microsoft.VCLibs.120.00.Debug published by any publisher to install. Provide the framework along with this package. at Microsoft.Expression.HostUtility.Platform.AppContainerProcessDomainFactory.CreateDesignerProcess(String

Using UIC on Qt (c++)

感情迁移 提交于 2019-12-02 03:22:14
问题 I'm looking for using Qt Designer and generate the cpp source corresponding to the .ui files. After some researches, i've found that the UIC can do it. Here is an example. But there is no explanation about where to use the command .. I've tried to put it on .pro file an on command line argument(on project parameters). My command : uic -i mainwindow.h -o fruit.cpp mainwindow.ui 回答1: If you have foo.ui and want to generate the ui_foo.h file, you should add the foo.ui to the FORMS list in the

How to Change Base class of Designer generated class from System.Windows.Forms.Form to my own BaseForm

久未见 提交于 2019-12-02 00:00:55
问题 Everytime I add a new Form to my WinForms project, the designer generates code of a new class which inherits from System.Windows.Forms.Form. For some reason, I want it to inherit from my own BaseForm class. Any way to automate it other than editing the generated file myself? Thanks! 回答1: This is actually a scenario that Visual Studio supports directly. From your project add a new item. From the dialog that is displayed select "Inherited Form." The next window should let you select the base

How to change size and image in TabControl

自作多情 提交于 2019-12-01 22:14:27
I want to change size of TabPage in my TabControl , each tab should be in one line without scroll. the second question is about how to change Text into Image like here (Please, ignore the green line): edit. I used Winforms. Ad 1. There is no way to adjust width of tab pages to fit width you want automatically, so you just have to do some maths to achieve this. Ad 2. First you have to create an ImageList object, which you will then pass to your TabControl : ImageList il = new ImageList(); il.Images.Add("your_graphics_name", Image.FromFile(@"C:\Graphics\example.png")); (...) yourTabControl

Is there a designer for Xamarin xaml files?

只谈情不闲聊 提交于 2019-12-01 21:51:32
I am currently starting an Xamarin Application. Now i wonder if there is any form of designer for the UI, so I do not have to start the application over and over again to test the UI while designing? Unfortunately there is no designer. The closest thing will be the Xamarin Live Player which is currently in Preview. Another alternative is the Xaml Previewer for Xamarin.Forms There are two tools used as said by cheddy - Gorilla Player and Live XAML. I have tried the gorilla player but it doesnot work for dot Net standards. then I found Live XAML which is a great live development toolalong with

How to change size and image in TabControl

别等时光非礼了梦想. 提交于 2019-12-01 21:49:36
问题 I want to change size of TabPage in my TabControl , each tab should be in one line without scroll. the second question is about how to change Text into Image like here (Please, ignore the green line): edit. I used Winforms. 回答1: Ad 1. There is no way to adjust width of tab pages to fit width you want automatically, so you just have to do some maths to achieve this. Ad 2. First you have to create an ImageList object, which you will then pass to your TabControl : ImageList il = new ImageList();

How to Change Base class of Designer generated class from System.Windows.Forms.Form to my own BaseForm

那年仲夏 提交于 2019-12-01 21:29:43
Everytime I add a new Form to my WinForms project, the designer generates code of a new class which inherits from System.Windows.Forms.Form. For some reason, I want it to inherit from my own BaseForm class. Any way to automate it other than editing the generated file myself? Thanks! This is actually a scenario that Visual Studio supports directly. From your project add a new item. From the dialog that is displayed select "Inherited Form." The next window should let you select the base form you want to use for your new form. 来源: https://stackoverflow.com/questions/5347498/how-to-change-base

Event using generic EventHandler<> not visible in Designer

跟風遠走 提交于 2019-12-01 21:04:21
问题 I've just noticed that if I add an event using a generic eventhandler to my UserControl, the event is not visible in the designer when I add the user control to a form. public event EventHandler<TEventArgs<int>> EventNotVisibleInDesigner; public event EventHandler EventVisibleInDesigner; Not particularly worrisome, but is this by-design/normal, or am I doing something wrong? 回答1: The Windows Forms designer has limited support for generic types. It will work okay when you avoid the generic

Event using generic EventHandler<> not visible in Designer

天涯浪子 提交于 2019-12-01 18:50:59
I've just noticed that if I add an event using a generic eventhandler to my UserControl, the event is not visible in the designer when I add the user control to a form. public event EventHandler<TEventArgs<int>> EventNotVisibleInDesigner; public event EventHandler EventVisibleInDesigner; Not particularly worrisome, but is this by-design/normal, or am I doing something wrong? The Windows Forms designer has limited support for generic types. It will work okay when you avoid the generic type argument for EventHandler<T> : public class TEventArgs<T> : EventArgs { } public class MyEventArgs :

Why does the Windows Forms Designer cast int to byte then back to int for FromArgb?

六月ゝ 毕业季﹏ 提交于 2019-12-01 17:57:39
I was looking through some code today and saw something like the following: var colour = Color.FromArgb(((int)(((byte)(227)))), ((int)(((byte)(213)))), ((int)(((byte)(193))))); When I asked why it was so, since Resharper confirmed that all the casts are redundant, I was told that the Designer done it that way and they had copied that. I had a look and sure enough the Designer generates code the same as above when setting a property to a custom colour. Does anyone know why the Designer would do this? It doesn't appear to make sense on the face of it, unless I am missing something? This code is