hi,
i am trying to do something pretty common with GWT.
creating a button behavior with an image and a text. by positioning the text on top of the image.
i have used the HTML widget but how can i make the text not selectable?
...
After custom control is created there automatically appeared file for C# code - MyCustomControl.cs:
public class MyCustomControl : ContentControl {
static MyCustomControl( ) {
...
DefaultStyleKeyProperty.OverrideMetadata(typeof(MyCustomControl),
new FrameworkPropertyMetadata(typeof(MyCustomControl)));
}...
I have a custom control with a TextBlock inside it:
<Style TargetType="{x:Type local:CustControl}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type local:CustControl}">
<Border Background="Blue"
Height="26"
Width="26...
In Xaml page I reference my custom control this way:
<MyNamespace:CustControl x:Name="Cust1" />
Now I want change the property of this custom control in MouseLeftButtonDown event trigger:
private void Grid_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
}
But when I try to write something like
CustControl.Is...
I try to use enum type as a dependency property in my custom control, but always get an error:
public enum PriceCategories
{
First = 1,
Second = 2,
Third = 3,
Fourth = 4,
Fifth = 5,
Sixth = 6
}
public static readonly DependencyProperty PriceCatProperty =
DependencyProperty.Regi...
We have a medium sized application that depends on several usercontrols, namely:
A tablelayout panel, with 2x5 grid of usercontrols, with 3+ levels of inheritance. A big issue we're running into with our application has proven to be startup time (both cold\warm), one of the big big hangups we're getting is initializing this usercontrol...
Hi, I am needing to create a custom control.
Basically, I'm wishing to create a light weight(and better using jquery) Accordion control.
What are some good references for getting started with doing such a thing. I will be deriving it from a Panel because it's very similar(just needs a bit of JS tacked onto the end) but I want it to on...
i want to customize a listfield in blackberry which can able to list image and text in a row.can any one tell me how to customize and if you can provide me some code snippet
...
Hi,
I want to display messages from my application exactly in the same way as that of native messaging application of Blackberry.
How do I achieve it in listfield? Also I want to add date headers that will display messages in the order in which they are received.
Please help.
Thanks in advance.
...
I have created a web custom control and used within an aspx page. I found the validation controls provided by asp.net are applicable to the built in server controls. I am not able to attach these validation controls with my custom control.
For ex. If i am using TextBox control then the RequiredFieldValidator is applicable to it. but whe...
This is what I want: I have a custom Panel which arranges a certain type of item. My Panel also has a few dependency properties (ArrangeMode, MinDate, ...), which influence the rendering. Example:
<TimeLinePanel ArrangeMode="Compact" MinDate="...">
<TimeLineItem ... />
<TimeLineItem ... />
</TimeLinePanel>
To be able to data-b...
Please bear with me Silverlight Designer Gurus, this is compicated (to me).
I'm creating a custom control which derives form the Silverlight 3.0 ListBox. In an effort not to show tons of code (initially), let me describe the setup.
I have a class library containing a class for my control logic. Then I have a Themes/generic.xaml t...
Hi, I'm having a heck of a time trying to template bind the StrokeThickness of a rectangle.
My goal is to allow a user of my custom control to set a property called SelectedBorderThickness which will, in fact, set the StrokeThickness of a rectangle.
I thought I understood templating but I guess I really don't.
If I do this:
<Rectangl...
I want to be able to display some simple chunks of HTML in my native BlackBerry app, NOT returned from a URL. This is similar to existing Stackoverflow questions (e.g. here and here), but I need help getting the actual BlackBerry sample code to run (or perhaps somebody to tell me why this is doomed to not work!).
The BlackBerry website...
I have custom drawn fields which are focusable.
Normally the default focus color is Blue which obviously doesn't match to every theme.
So can you give me efficient or non efficient ideas to change the color of the focus?
Thanks
...
Hello.
I'm developing a Windows Mobile 5.0 or above with .Net Compact Framework 2.0 SP2 and C#.
I have a custom control called PullDownMenu (it inherits from System.Windows.Form.Control). This is the code that I use on a WinForm to show it:
PullDownMenu menu = new PullDownMenu();
menu.Location = new Point(0, 0);
menu.Dock = DockStyle....
I am creating a completely custom (only inherits from WebControl) combobox/dropdownlist search control with autoComplete capabilities.
JQuery handles assigning the onhover and onclick events for list items (divs with strings in them) and handles the web service call for getting the list of items for the matching text.
The server hand...
i want to create a field that looks like this ....can any one tell me how this could be done which field could i use where in i can select values by using the trackball/wheel or in case of storm i could slide...
...
is there a custom component that extends DateChooser that only has the month and year but not the date grid to select a specific day. All i need is the month and year not any specific day. if the month is changed i could use the change event to select the 1st day of that month
...
I'm trying to create a custom DataGridViewButtonCell to download a file once clicked. That class works flawlessly, but will NOT add itself to the DataGridView when I use the rows.add() method. It seems to just use the ToString() method for a label then create its own from the CellTemplate.
The type for the particular column is DataGrid...