开发者

Change user control's objects properties from properties panel in visual studio

How could I enable to edit the properties of my user control in the properties window of visual studio. Let me show you what I mean:

here I have a date Picker control and note how I can modify the date and o开发者_运维问答ther properties within the properties window:

Change user control's objects properties from properties panel in visual studio

An here I have a simple user control that just consists of two textblocks in order to produce a glow effect:

Change user control's objects properties from properties panel in visual studio

So when I place that user control on my main window how could I modify the text withing the properties window in visual studio?

Change user control's objects properties from properties panel in visual studio

It will be nice if I could create a custom property that will be visible in that property window just like the date picker control. I change the properties of that user control with code when the window loads.


Take a look at this example. It may be that you need to define dependency properties in addition to standard .net properties. You might want to post your C# code, too.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜