Hi,
I have a WPF UserControl that i am using in a Windows Form using ElementHost.
I am passing data from my Winform to my UserControl using a ListCollectionView.
In my UserControl i have a method setdataSource where i am setting the datasource.
But i keep getting this message in the output window when i debug my program
"System.Wind...
Currently I have a Client login area. In this login area I was going to create a snippet that shows certain information for 'Admin' users.
I had a feeling I could use
<?php
if ($modx->getLoginUserType()) {
echo 'hi';
} else {}
?>
However, all User Types are web.
I was also looking around and found a script that prints out web-use...
I'm continuing to learn Silverlight and dependency properties by recreating controls. In this case, it's a scrollbar.
My scrollbar works, which is amazing, but with one problem. I have the slider width based on the LargeChange value and control width. The properties themselves correctly reflect the default values, but the slider widt...
Hi,
I have a WPF usercontrol set up in XAML with the following Triggers:
<UserControl.Triggers>
<EventTrigger RoutedEvent="GotFocus">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation To="1.5" Storyboard.TargetName="ImageContent" Storyboard.TargetProperty="RenderTransform.Childre...
Hi,
Im making a small user control, i was wondering if it was possible to make some sort of comment, that is only visible design time. For example i would like to write in the top of my control that it requires a querystring parameter named userid. This way other developers can quickly see the requirements?
cheers,
...
I created a user control in Asp.Net which I populate with <asp:Table id = "...." />
this table has columns that contain dropdownlists, textfields and other web controls...
In the code behind I am not able to access these web controls, is there a way I can access them.......or I shouldn't be doing that in the code behind of the user cont...
Hi,
I solved most of the issues I had with caching. But still there is one thing. I have a UserControl for which I use output caching. Just like this:
<%@ OutputCache Duration="1200" VaryByParam="none" %>
However, as you can see, the control is recreated every 12 minutes, because it takes from 5 to 10 seconds to generate it.
Now, t...
How can I create an instance of my UserControl dynamically (in code behind) and display it on the Canvas?
...
How to clear all usercontrols in the wpf window. in runtime i added dynamic usercontrols in my wpf window, when i refresh, i want to clear all those and need to load again. so how i can clear all usercontrols in my page.??
...
Hi all,
We are trying to use the .NET LicenseManger/Provider for our own custom component. However, it seems that this can't really be used if the licensed control will be wrapped in a 3rd party user control itself, since the saved license is always embedded in the control assembly in that case, which would force the consumer of that co...
(solved, see below)
Hi all
I'm working on an ASP.NET web forms application. In my Page I have an UpdatePanel and a user control with an UpdateProgress and a bunch of buttons. When the user clicks one of the buttons, I'd like to perform an asynchronous postback and show the UpdateProgress.
Can anyone help me with making the postback as...
Hi
I have a gridview which is placed in an Usercontrol. the gridview was created dynamically.
when I place this usercontrol directly in an ASP - Webpage, every events (rowediting, rowupdating, etc.) works perfectly.
when I place this usercontrol in another usercontrol, then the rowediting doesn't fire.
I use a "asp:commandfield" with ...
Hi.
I have some problem to be solved.
There're directories in web service which will construct my webpage's menu and controls.
Example of paths:
\\*Country\\*Division\\*Part\\*Item\\*Control
*some_root_path\USA\LADivision\ReportsPart\EditReportItem\LoadItemsControl
*some_root_path\USA\LADivision\ReportsPart\EditReportItem\ClearItem...
I have UserControl1 and I want to create it's instance and set attached property for it in the code behind of the other UserControl2.
The other words, I have in the UserControl2:
<UserControl2>
<Canvas>
</Canvas>
</UserControl2>
And I want to do:
<UserControl2>
<Canvas>
<UserControl1 Canvas.Left="100" ... />
</Canvas>
</...
How to add controls in parent control
I am using C# windows application
I have a user control including group box and checkbox group box, controls gets enabled or disabled on the basis of checked property of check box
now when using this control in other application
how can i add controls in group box??
so that they can get enabled o ...
I am creating a user control where when a user clicks a button a popup window will show up with information. The popup window is driven by a toolStripDropDown so when it shows up it does 2 things
Does not move the other controls on the form around but displays over them
That it can show the details outside the bounds of the user cont...
I dynamically load a UserControl, with an updatepanel inside, into a placeHolder. When I click an button into UserControl, should refresh the updatepanel that there are in it, but refresh entire page and the user control disappears because the aspx page's Page_Load don't load anything if it's a postback. How I can fix it?
PD: sorry for ...
I am trying to access Control using ElementName from DataTemplate that is used in different UserControl (Resources) than defined (in xaml).
Imagine this situation:
MyUserControl.xaml with following DataTemplate in resources:
<UserControl.Resources>
<DataTemplate x:Key="SomeTemplate">
<TextBlock Text="{Binding Text, ElementNam...
Greetings folks!
I'm running into a problem with WPF databinding that I hope you can help out with. I'm new to WPF but an expereienced developer (VB 3.0-6.0, C#).
Here's the scenario:
I have a C# project called MasterPartsData which contains a number of classes which reprsent different types of parts (capacitor, diode, etc). They inhe...
I have a custom ASP.NET user control that is added to a panel on a web page in the Page.Load method. The control contains some Labels and a GridView. I'm adding it to the page with this code:
ReportingControl rc = new ReportingControl(this.Username, this.SoaContext, transactionId, p.PaymentTypeRequestKey);
this.pnlPB.Controls.Add(rc);...