custom-controls

ExtJs 4 combobox with checkboxes

Deadly 提交于 2019-12-03 00:21:33
I'm looking for EXTJS4 combobox control which allows selecting multiple items via checkboxes inside. Actually I need this control http://lovcombo.extjs.eu/ but it is implemented for ExtJs3. I tried to convert it to ExtJs4 but the task is not trivial actually. Could you suggest similar component for ExtJs4. Or maybe you could point me to some tutorial or example - how to do such things? Subrata Nath Multiselect combo with checkbox in ExtJS4.0 can be achieved with addition few lines of code. Basically you need to make use of the existing css class which get applied during selection and

Propagate ListBoxItem IsSelected trigger to child control

旧城冷巷雨未停 提交于 2019-12-03 00:14:43
问题 I'm developing a CheckedListBox with self removable ListBoxItem s. The problem is that an item only gets checked if the user clicks on the CheckBox area, which is kind of awkward. How do I create ListBoxItem triggers ( IsSelected ) to check the checkboxes on a "DataSourced" ListBox ? Eg: Below is my control (all other code have been omitted for brevity): <ListBox x:Name="executors" ItemsSource="{Binding Executors}" HorizontalAlignment="Left" Height="121" Margin="23,19,0,0" VerticalAlignment=

creating custom itemscontrol

99封情书 提交于 2019-12-02 23:00:13
I'm trying to create a custom control derived from ItemsControl . The ItemsControl is initialized with items, but they are not shown. the itemsControl : public class PipeControl : ItemsControl { static PipeControl() { DefaultStyleKeyProperty.OverrideMetadata(typeof(PipeControl), new FrameworkPropertyMetadata(typeof(PipeControl))); } public PipeControl() { Checkers = new ObservableCollection<Checker>(); Checkers.Add(new Checker()); Checkers.Add(new Checker()); Checkers.Add(new Checker()); Checkers.Add(new Checker()); Checkers.Add(new Checker()); } public ObservableCollection<Checker> Checkers {

How to make a control to be painted/refreshed properly

坚强是说给别人听的谎言 提交于 2019-12-02 21:52:26
问题 I have a control derived from checkbook which I called "SettingBooleanButton", but when any window or dialog is dragged over the control the control keeps signs of the drag The next image shows the effect of dragging an application window over control This is the code block that I have for OnPaint() Public Class SettingBooleanButton Inherits CheckBox Private _settingSection As String Private _settingName As String Private _associatedSetting As Setting Public Event StateChange(ByVal

C# WinForm custom grid layout [closed]

限于喜欢 提交于 2019-12-02 20:06:35
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I need to create a list of objects that has a custom layout like this: would you please tell me ho to implement it in the winform c# application? Note that the data can not bind from a database directly and it should fill in the code. Thanks 回答1: Wael's answer does indeed show you

Silverlight Error “Layout Cycle Detected Layout could not complete” when using custom control

六月ゝ 毕业季﹏ 提交于 2019-12-02 19:27:50
I'm building a custom control in Silverlight by deriving from ContentControl and doing some special formatting to put a dropshadow behind the contents. I've nearly got it working but have recently ran into a bizarre error. It works fine if it contains anything besides a Border, or a Grid/Stackpanel/etc that does not have an explicitly defined height and width. I get a JavaScript error in IE, and the text says: Runtime Error 4008... Layout Cycle Detected... Layout Could Not Complete. If I specify a height and width on the contained grid/stackpanel/etc it works fine. There is a ton on the web

A good WPF scrolling timeline control? (fancy datetime picker)

…衆ロ難τιáo~ 提交于 2019-12-02 19:20:56
I'm looking for somthing I can use as a timeline control. A kind of "banner" the user can drag to the left or the right to go forward or backwards in time and then he or she should be able to select a point in time on that control. A fancy datetime picker :-) Any ideas? Try this one also http://timeline.codeplex.com You are welcome to try my new TimelineControl. I've publish it in codeplex: TimelineControl Ido. You can find TimeLine Panels here and here And datetime picker here , I have personally used the datepicker from Kevin's Bag O tricks a lot There is a datetime picker and month calendar

Custom elements in ASP.NET with custom child-elements

折月煮酒 提交于 2019-12-02 17:41:41
I know that it is possible to define custom tags in ASP.NET with User Controls. But as far as I know you can only add attributes to these controls. I would like to be able to embed more complex data, a bit lite this: <myControls:MyGraph id="myGraph1" runat="server"> <colors> <color>#abcdef</color> <color>#123456</color> </colors> </myControls:MyGraph> It this possible in ASP.NET? Should I try to extend a ListView? Or it there a better and more correct solution? It is certainly possible. For your example the classes would look like: [ParseChildren(true)] class MyGraph : WebControl { List<Color>

UIScrollView like Twitter app for iPad

不羁岁月 提交于 2019-12-02 17:21:34
I'm looking for a tutorial or for some ideas to make a custom controller that looks like the one in the Twitter app for iPad, I mean the stacked pages with a main menu on the left. Thanks in advance for any help!! we had created a mock project and added in github https://github.com/raweng/StackScrollView I have a solution for this. Place a table view as a sidebar menu on the left side. Place a scroll view on the top. Add content into scroll view. The scroll view will cover the table view. Set the width of content size of the scroll view to the sum of the content width and the sidebar width.

custom attribute on custom Button does not show

我是研究僧i 提交于 2019-12-02 17:02:15
问题 I extended the Button widget to be able to apply several custom attributes. One of the attributes is a color filter I try to apply to its background when the button is created. It does not work. (See the screen shots and code below) I tried to directly set the background color, on the same code place, and it does change the background color, but it is not what I need, since I am using my own button PNGs. there are 2 problems so far: The color filter is not applied The custom button is offset,