Questions tagged [design-surface]

13 questions
4
votes
2 answers

Set Value of Property When Delete Key is Pressed in PropertyGrid

I am currently working on a project that hosts WinForms designer. I am using PropertyGrid to display manipulate properties of the controls that are dropped on the DesignSurface. I have created UITypeEditor's to modify values of my custom controls…
Zuhaib
  • 1,420
  • 3
  • 18
  • 34
3
votes
1 answer

BeginResize/EndResize Event for Control on WinForms Design Surface

TLDR: I would like to know how I can create a hook into a begin-resize and an end-resize event for a design-time control instance on the designer surface. Detail: Specifically, I am working with a design surface produced by a BasicLoader in the…
Jazimov
  • 12,626
  • 9
  • 52
  • 59
3
votes
1 answer

Inherited Control Visible/Enabled Property Value Always True: PropertyGrid

I have created a custom WinForms hosting environment. Which has a toolbox and a PropertyGrid. The controls displayed in the Toolbox are inherited from existing WinForm controls. DropDownList Source: public interface IPropertyFilter :…
Zuhaib
  • 1,420
  • 3
  • 18
  • 34
3
votes
1 answer

Serialize alread-built instance of a WinForms.Form to VB or C# Sourcecode, just like the IDE does

I have about 500 WinForms that are generated dynamically from XML files by an old app. I would like to automatically convert these to VB or C# code I can edit in the designer. I can do it by hand, which would take forever... Or write an app that…
FastAl
  • 6,194
  • 2
  • 36
  • 60
1
vote
1 answer

Need To Hide A Designer-Only Property From PropertyGrid For A .NET Winforms Control Part II

This is a follow-up question to: Need To Hide A Designer-Only Property From PropertyGrid For A .NET Winforms Control I have replaced the default TypeDescriptorFilterService with my own implementation (so cool!), and the FilterProperties event…
Jazimov
  • 12,626
  • 9
  • 52
  • 59
1
vote
1 answer

Need To Hide A Designer-Only Property From PropertyGrid For A .NET Winforms Control

I am deep into using the Winforms designer (System.ComponentModel.Design namespace) in my C#/.NET solution so that my users have access to a form designer within my running application. Much of it works well, but I ran into a very specific problem:…
Jazimov
  • 12,626
  • 9
  • 52
  • 59
1
vote
0 answers

DesignSurface and Zoom

I am trying to implement Zoom feature on a DesignSurface, which uses .Net 2 based Designer time architecture. I have two approaches to handle ZoomChanged event: Unload the Design surface and reload with Zoomed content. Identify the affected…
NileshChauhan
  • 5,469
  • 2
  • 29
  • 43
0
votes
1 answer

Keeping Adorner Glyphs On Top for Selected Control in Winforms Designer

TLDR: I'm seeking the correct method for timing the rendering of a juxtaposed graphic for a particular control on a design surface so that the graphic always is painted ahead of the adornment glyphs when that control is selected. This question…
Jazimov
  • 12,626
  • 9
  • 52
  • 59
0
votes
3 answers

Broken Silverlight Design-Surface in VS2008

In VisualStudio 2008, the design surface is just empty since I added this style to App.xaml: