controls

MVP - User Controls - Hiding the IView interface from consumers?

Hello, I would like to use Model View Presenter pattern for a library containing user controls which will be used in other projects. According to MVP I have to implement an IView-interface on a user control and pass it on to a Presenter-class. In my case the consumers don't need access to the IView-contract. But because the IView-inte...

Triggers on ScrollViewer child controls

I have a the following code for a ScrollViewer in my Silverlight app. The BasketSymbolsView control contains controls that have custom double click triggers applied to them. For some reason the ScrollViewer is preventing the child controls from triggering an action when I double click the BasketSymbolsView controls. <ScrollViewer x:Na...

Enable or Disable mutiple controls in Silverlight

What is considered the best way of enabling or disabling multiple controls in Silverlight at the same time (textbox, combobox, autocompletebox and the like)? I suppose I could bind the "IsEnabled" property of each control to a boolean property. That property only exists for interactive controls and not textblocks. I could loop through...

How to reset the position within the dropdown of a Silverlight AutoCompleteBox

Lets say I have an AutoCompleteBox with 1000 items. A user first types two characters returning a broad result set (for example, 100 items). They then scroll to the bottom of the list and... They then select the last item which closes the dropdown. The user then returns to the AutoCompleteBox and enters a more refined search returni...

How do you access a Control in a collection by its Type?

How does one target a control by its Type? I have a Control collection "TargetControls" List<Control> TargetControls = new List<Control>(); foreach (Control page in Tabs.TabPages) { foreach (Control SubControl in page.Controls) TargetControls.Add(SubControl); } forea...

WPF Docking library

I need to use an existing WPF docking library. There are several libraries: AvalonDock .NetBar SanDock ActiPro Infragistics does anyone has any experiance with one of those libraries? Can you recommend one of them? ...

C# ASP.Net Fancy Buttons

I am developing a C# ASP.Net project. And I would like to do something very similar to what is shown in the following website. However, that is a solution for the HTML <a> tag, and I am looking for a solution for ASP.NET buttons. What are my options? ...

Can I use a base class method to enable a variety of ui controls in .net?

I need to write a delegate for a worker thread that will handle a wide variety of form controls (buttons, textbox, list...) enable method. I'm thinking they must all be derived from a base class that handles the enable property, but I'm not finding any documentation, nor am I sure how to call the method. ...

Can I use a .net control parent class to enable/disable it?

I need to write a delegate for a multi-threaded program that will enable/disable a variety of controls. It seems logical that using one handler for all controls would be the best choice, but I'm not even sure this is possible in .net and if so how to implement. ...

ASP.Net - Displaying a collection of controls

I am creating a simple form. I have created two simple classes, Question and QuestionSection. I then create some subclasses of question, e.g. SimpleQuestion, MultipleChoiceQuestion, with different behaviour and markup. QuestionSection has a property of a collection of questions, like so- private List<Question> _Questions = new List<Qu...

Design Windows Forms

Hi all, can someone plz help where i can get start of learning windows form designing? what i mean by designing it's replace the Forms, Buttons, Etc...Like the Zune Player as example.. i'm developing using C#...Thanks you all, Amit. ...

Android: Very strange layout controls binding problem

Hi, I created a layout with two buttons: btnMode and btnAction. There are clickListeners set for each: btnMode.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { onModeButton(); } }); btnAction.setOnClickListener(new View.OnClickListener() { ...

How to show ipod controls?

When user double-tap home button, the ipod controls shows on the screen. I want to allow user show ipod controls by tapping custom button in my application. Is any possibility to do it? Sorry for my english. ...

Split button in .NET Winforms

I'm looking for a Split Button in .NET WinForms. The kind where one side is a button and the other side has a dropdown button. I see them used all over in windows, like in the Visual Studio Save As window, so I figured they've got to have the control in some library. I know there's one for toolstrips, but I need one thats usable out...

Control Property

Can anyone help me. I have an application it contain many aspx pages. here i am collecting all controls id's(ex:label1,texbox1,grid1.....etc ) from all page in the application till its working fine.... now i want to collect text property of that contros(ex: label1 have text property StudentId ...etc) how i can do it.... here i have cod...

iPhone + add controls dynamically

Hello, I want to add UILabel controls to my application dynamically from code (programmatically), please help me ...

Can I pass data from Winforms to WPF Control?

I have a winforms app but I would like to introduce a WPF user control into the app as a taster for further WPF implementation. This control needs to receive from its Host a single piece of information, a string. How can I pass this down from the Winforms app to the hosted control? Or, indeed, can I? ...

XML Tags in asp:TextBox prevents other controls working?

I have a series of controls on an ASP page. Some are inside an UpdatePanel and some are not. If I put an XML tag in one of the text boxes (eg, "<foo>") then all the controls within the UpdatePanel don't work. As soon as the tags are removed, everything is fine. My 'submit' button is in the UpdatePanel and the breakpoint on btnSubmit_C...

Create Property in ASP.Net Control to C# and ASPX

Hello, I am trying to create a custom property in a extended control, so that it can be acessed in both ASPX and C#. The problem wasn't actually creating it... because i managed to do it, by applying the following code: public static class Icon { public static string activityMonitor = "activityMonitor.png"; public static string...

Custom-drawn control won't render controls behind it even though it's transparent

I'm currently writing a custom-designed tab control. I created my own control instead of owner-drawing the TabControl because I figured it'd be faster and more flexible. My tab control styles itself after the VS2008 tab control; that is, when a tab is selected, part of that tab is in front of other, unselected tabs. My tab control consi...