Hello there,
i'm building a Videoplayer custom control (Project called WpfCustomControlLibrary1) and want to add a Load Command.
This is what i have added in my class to get this Command:
Public Class VideoPlayer
Inherits Control
...
Public Shared ReadOnly LoadCommad As RoutedUICommand
....
Shared Sub New()
'This OverrideMetadata...
i want to create 2 buttons for blackberry which look like this...
and the second one inverted of the above
i wanted to do this without using images (for efficiency) and the buttons should appear only when there is focus on them and dis sapper when focus goes off..
...
I am trying to build a custom control that I want to exist as the root element of my xaml.
I currently have
the generic.xaml template sorted.
A new template in the blend folder that will allow me to make a new 'DaveControl'
The ability in blend to add content to it that will appear in the contentpresenter.
However, If I run it, the...
I am trying to host a custom Windows Forms control in WPF. My custom control does not have a public constructor, and it has a static Create() method which looks something like this:
public abstract class MyCustomControl : UserControl
{
internal MyCustomControl(...) { }
public static MyCustomControl Create(SomeEnum kind)
{
sw...
I am working on a project with some other developers and I notice that they created a custom component to create a readonly implementation of a combobox. But what is the difference between a component and a custom user control?
Why not use a custom user control for something like that?
...
I've created a custom control for use in my Silverlight application. Its template is defined in the control library's Generic.xaml. Is there any way to set properties of the items in that template from the control's .cs file?
...
I recently added a control library project to my Silverlight app's solution, so the solution now has three projects:
SLClient
SLClient.Controls
SLClient.Web
SLClient has a project reference to SLClient.Controls, which contains the following:
Themes
Generic.xaml (contains default CustomTextBox template)
Templates.xaml (contains add...
Helo!
I have a small problem with CreateChildControls() method.
I have a List of items, and each item will have a Button with Click event.
Items will be added in Page_Load event.
So for each item in a list, I would like to add a Button with EventHandler
like this:
foreach (Item i in _items)
{
Button del = n...
I Have a custom button:
And I need the text to be centered, here's my code:
NSMutableParagraphStyle *style =
[[NSParagraphStyle defaultParagraphStyle] mutableCopy];
[style setLineBreakMode:NSLineBreakByWordWrapping];
[style setAlignment:NSLeftTextAlignment];
att = [[NSDictionary alloc] initWithObjectsAndKeys:
style, NSPara...
Hi,
I've got a custom control which has a DependencyProperty MyAnimal - I'm binding an Animal Property on my ViewModel to the MyAnimal DependencyProperty.
I've stuck a TextBox on the Control so I can trigger an Event - whenever I trigger the event the MyAnimal property has been set - however if I put a break point on the Setter of the ...
Hello.
I wonder what can be a cause for the non-apparition of custom/user controls in the Visual Studio Toolbar.
Thanks.
I have a solution with some projects and a lot of custom controls. Normally, these controls should appear in the toolbar automatically after the solution (re)build...
(I use VS2005, but this problem appears also in...
I extended treeview, treenode, and nodetype so I could have custom nodes. Certain nodes have image buttons on them allowing them to add a child node or delete the node. I can't handle any of the events from my buttons.
Public Class ContentTreeView
Inherits TreeView
Public Event OnAddChild(ByVal sender As Object, ByVal e As EventArgs)...
I have a custom control that does some work for me on async postbacks. Normally, I'd call the control directly from the presentation side using the following code on the ASPX page:
<mytag:CustomControl runat="server">
html (or other text) goes here
</mytag:CustomControl>
However, in my current application, I need to dymanically...
I built a custom control, and with theme support on it looks very strange. Is there any way to make it so that it will always draw with themes off, even if the application is built with theme support on?
EDIT: I found a way to turn theming off and it didn't help much. The problem is that it's a special button descended from TBitBtn, ...
I am looking for a link to instructions or a walkthru for Creating Custom Controls in Asp.net 3.5.
I have already looked at the following :
http://forums.asp.net/t/1385382.aspx : Turning an .ascx User Control into a Redistributable Custom Control asp.net 3.5
http://msdn.microsoft.com/en-us/library/aa479318.aspx : Turning an .ascx...
I'm creating a custom control as a kind of wrapper for a popular jQuery plugin. However, I'm new to custom controls and I'm having a bit of a problem with how things work and I'm afraid I don't even know enough to properly phrase my Google searches.
I need to have the control look a certain way in ASP.NET's XML for ease of use later. ...
I want to create a custom field on which I can place more than one line of text as well as images.
And the field can be used like a button(onclick event etc.)
...
Hi,
I want to create a table representing data I have, but I want each row to have a custom display. I have developed a little custom control that represents a row and has a few items in it (text box, check box, progress bar), however how do I now in the main form create multiple instances of this for the data I have?
e.g. is there a ...
What I am trying to accomplish is to have clickable hyperlinks in the message text displayed by an AlertDialog. While the AlertDialog implementation happily underlines and colors any hyperlinks (defined using <a href="..."> in the string resource passed to Builder.setMessage) supplied the links do not become clickable.
The code I am cur...
In a window of my WPF application I have several hundreds of objects, they based on a custom control. They differ from each other only by name:
...
<MyNamespace:MyCustControl x:Name="x4y3" />
<MyNamespace:MyCustControl x:Name="x4y4" />
<MyNamespace:MyCustControl x:Name="x4y5" />
<MyNamespace:MyCustControl x:Name="x4y6" />
<MyNamespace:M...