简体   繁体   English

.NET Compact Framework透明的UserControl

[英].NET Compact Framework Transparent UserControl

I am programming a mobile application. 我正在编写一个移动应用程序。 I need a UserControl (emulating the TabContol navigation - the customer wants the tabs at the top) with a transparent background. 我需要一个具有透明背景的UserControl (模拟TabContol导航-客户希望标签位于顶部)。 The control contains three buttons each with an OnClick handler. 该控件包含三个按钮,每个按钮都有一个OnClick处理程序。

In Googling, I've found a number of solutions for WinForms. 在Googling中,我找到了许多WinForms解决方案。 But they seemed incompatible with Win Mobile. 但是它们似乎与Win Mobile不兼容。 I used the Christian Helle blog for a transparent label used in the app, but cannot wrap my mind around modifying it for UserControl s. 我使用Christian Helle博客作为该应用程序中使用的透明标签,但无法将其修改为UserControl

TIA, Gus TIA,古斯

Yeah, it's a complex task - way more complex than it should be, but it is what it is. 是的,这是一项复杂的任务-比原本应该的复杂得多,但事实就是如此。 While I never actually finished Project Resistance , it does have code for transparent user controls 虽然我从未真正完成过Project Resistance ,但它确实具有用于透明用户控件的代码

The resistor body itself is a UserControl, the background shows through the surrounding area and it even dynamically draws the color bands so that the resistor body shows through the band transparent areas. 电阻器主体本身是一个UserControl,背景显示通过周围区域,它甚至动态绘制色带,以便电阻器主体通过透明区域显示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM