Hey all!
.NET 3.5 app written in C# here with both jQuery and some ASP.NET AJAX UpdatePanel flavouring.
I'm running into an interesting issue. I created a pagination user control that is made up of LinkButtons. The user control fires off an event called CurrentPageChanged whenever someone clicks on a page, previous, first, or next butt...
I'm looking for a free User Control that provides functionality similar to that in Apple's Cover Flow. I'm aware of FluidKit, but I want something that targets .NET 2.0 for cross-platform compatibility with Mono.
I've also found IndexCards, but it costs money, and I want to make the source of my project freely available, so I can't use ...
I made a control that uses the OnPaint and base.OnPaint.
Now I want that all colors be inverted on certain conditions. But how do I do that? I now how to invert an image, but how do I do with a Graphics object?
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
MyOwnPaint(e);
if(Condition)
InvertColors(e);
}...
I was looking for it all night, but it seems that the project type is not on vs 2010.
But the main problem is, I want to make a custom control (or a user control compiled to a dll, if vs 2010 does not have the custom control library feature).
Unluckily, I was not able to find any article for 2010 but only for 2008, which is pretty much ...
Hello,
Does anyone have an idea how to keep the Height/Width Ratio 1:1 of a UserControl?
E.g. if Height > Width, Width & Height will have the same size and vice versa.
Thanks for any help.
Cheers
...
I currently have a WPF project which has one main Window, and many UserControls which are children of this Window. Many of the children of this window are Tabs. I have successfully replaced my main Window with a User Control that implements almost exactly the same functionality as the Main Window.
Replacing the Window with a UserContro...
Hey,
I have a custom user control in ASP.net:
MenuButton.ascx:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="~/MenuButton.ascx.cs" Inherits="MenuButton" ClassName="MenuButton" %>
<li><a href="<%= Link %>"><span><%= Text %></span></a></li>
MenuButton.ascx.cs:
using System;
public partial class MenuButton : System.Web....
I would like to create some custom UI controls that work with both WPF and Windows Forms.
Is this possible?
If so, can I create these controls in WPF or do I need ot use a Windows Forms control?
Are there any other considerations?
...
I have a situation as follows, i am going to use WPF for first time, so any suggestion abt how to proceed whould be great:
I hav a drop down, when i select any item from it - it should change the structure of controls in same window. New controls contain - two menu items and a text box and a list box. Selecting one menuitem will display ...
I have written a user control that contains a text box and a button. Functionality is such that you input a QuoteID into the textbox and click the button then the app goes and fetches a bunch of information about the specified quote and plops it onto the screen.
My employer wants this to be modified to be only a button which will reside...
i have user control called shopping cart.
which i have used in master page.
i want to get the textbox value from the child page in to user control.
is it possible to access control from child page in "Custom User Control" which is on master page?
...
So in the example code below, I create a UserControl UserControldChild which is a child of the main Window, Window1.xaml. Why does the FindName() method fail to find the "myButton" in the code below?
This must have to do with the WPF XAML NameScopes, but I have yet to find a good explanation as to how NameScope works. Can someone enlig...
Is it possible to create class libraries that contain UserControls so I can reuse them? If so, how? Is the markup compiled with the .dll? Thanks for any help!
...
What is the simplest solution here?
...
I have created a XAML UserControl that is used to enter the current date using some up/down controls. The interesting parts of the UserControl are as follows:
<UserControl x:Class="MyApp.Controls.DateEntry"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:uCon...
What is the best method to display repeating data with slightly different controls or sub data? For example displaying an expanded list of questions and answers. Some questions will have answers, some will not. Some button controls would show for some items while not for others.
In classic ASP I've used XML/XSL quite effectively fo...
In other words, I have a UserControl that has, for example, a label on it. Well, when the client registers with the MouseMove event of the UserControl, it should get that event whether the mouse is over the label or somewhere else on the UserControl. What would be the best way to set this up?
C#
...
I am writing a Base UserControl, that will be inherited by a bunch of other UserControls. I need to enforce a certain design for all these descendant controls (e.g. a couple of buttons must be on the top along with a label or two).
The rest of the descendant UserControl area is free to have whatever on it.
Initially, I thought that ...
The problem: I am unable to use OutputCaching with my controls which derives from MyCustomControl. Controls are loaded dynamically using definitions from database with Page.LoadControl method.
When I add to ascx <%@ OutputCache VaryByParam="*" Duration="3600"%> the
"InvalidCastException: System.Web.UI.PartialCachingControl -> MyCustom...
Hi, I am creating a custom WPF control that should have several content slots.
I'd like the user to be able to use either string, or a FrameworkElement as a value of property, for example:
<!-- MyHeading is a string -->
<MyControl MyHeading="Hello World" />
<MyControl>
<!-- MyHeading is a FrameworkElement -->
<MyControl.MyHeading>
...