user-controls Questions

5

Solved

Hai am having a WPF user control, when i use that control in another window it loading twice, so its throwing exception for me, coz am having some function in usercontrol_loaded event, when it lo...
Soundproof asked 17/3, 2010 at 8:17

6

Solved

Embedded in the worksheet sheet1 I have a Form Control combo box named combobox_test and it has selected value x in addition to that, i also have embbeded a button that when i press it i want it t...
Shippen asked 18/11, 2010 at 21:29

5

Solved

I know I can set the style of a UserControl like so in the control by adding an attribute: Style="{StaticResource MyStyle}" And having a style in my ResourceDictionary that looks something like ...
Ache asked 18/3, 2016 at 10:44

5

Solved

I am relatively new to WPF, and some things with it are quite foreign to me. For one, unlike Windows Forms, the WPF control hierarchy does not support IDisposable. In Windows Forms, if a user contr...
Ratel asked 11/10, 2009 at 8:56

5

Solved

I'd like to create a UserControl (in this case a square-Button with defined Backgroundcolors) which can host it's own content. UserControl: <UserControl x:Class="SGDB.UI.Controls.ModernButton"...
Largess asked 6/4, 2016 at 9:7

10

Solved

I was asking a related question but messed the title up and no-one would understand it. Since I am able now to ask the question more precisely, I decided to reformulate it in a new question and clo...
Osric asked 10/1, 2009 at 7:27

4

Solved

I have created a user control class library and I used a ResourceDictionary file in it. Now, I want to use my usercontrol in a WPF application, but I have to add ResourceDictionary file again in my...
Legault asked 23/7, 2013 at 10:15

4

Solved

I want to reuse my UserControls in other UserControls like page or window as DataTemplates, in this example inside a ListBox. Everything is MVVM. I've a UserControl called "CardControl" to display...
Tailstock asked 12/9, 2011 at 14:12

6

Solved

Is it possible to disable the "Select all" button in the upper left corner of the WPF DataGrid?
Pigeonwing asked 12/5, 2010 at 10:30

10

I have an Outlook 2013 and 2016 VSTO Add-in project and am trying to add a WPF user control to a custom task pane as described here. The problem I have is when I add the User Control (WPF) it gene...
Alphaalphabet asked 3/12, 2015 at 15:50

5

Solved

I have a custom usercontrol and I want to do something relatively simple. When ever a numeric up down in that usercontrol's value changes, have the main form update a display window. This is not ...
Farouche asked 24/10, 2011 at 19:28

2

Solved

I want to call a method from user control in WPF I´ve a Window with a list and I have a method that get this list. private ObservableCollection<int> _lst; public MainWindow() { Initialize...
Unorganized asked 23/2, 2014 at 22:29

9

Solved

How do I get access to the parent controls of user control in C# (winform). I am using the following code but it is not applicable on all types controls such as ListBox. Control[] Co = this.TopLev...
Arturoartus asked 11/1, 2012 at 14:5

4

Solved

I have an existing library (not a Winforms application) that supplies some Winforms to a bona-fide Windows application. Within this library, I would like to create a User Control to group some cont...
Malleus asked 19/1, 2012 at 18:29

5

Solved

I'm creating a WinForms user control using Visual C# 2008 Express Edition. Everything was going on nicely until I found I could play with a List<> collection property from the properties win...
Beatabeaten asked 11/2, 2011 at 20:6

4

Solved

I have a WPF app that uses DataGrid to display some data. When I run the program there is an additional column as shown here: Here is what it looks like when I design it in VS2010 I have turne...
Harber asked 13/12, 2011 at 18:34

2

Solved

I defined a style in a ResourceDictionary for a button with an image: <Style x:Key="BotonIrAInicioStyle" TargetType="Button"> <Setter Property="Margin" Value="0"/> <Setter Propert...
Attlee asked 27/4, 2013 at 2:8

5

Solved

I'm wondering what the best way is to store user settings? For a web 2.0 app I want users to be able to select certain settings. At the moment is it only when to receive email notifications. The e...
Entry asked 5/11, 2009 at 17:6

3

Solved

I'm using the following button style which takes away the borders and makes a transparent background to make my image buttons: <Style x:Key="EmptyButtonStyle" TargetType="{x:Type Button}"> ...
Swede asked 24/9, 2011 at 20:55

12

I'm trying to open a user control in one of our projects. It was created, I believe, in VS 2003, and the project has been converted to VS2008. I can view the code fine, but when I try to load the d...
Eroto asked 18/4, 2010 at 20:44

4

Solved

I get this message at runtime of ASP.NET 2 page : The page 'MyFolder/blabla.aspx' cannot use the user control 'MyFolder/MyControl.ascx', because it is registered in web.config and lives in the sam...
Demos asked 3/6, 2010 at 8:31

2

Solved

I have created a user control with a TextBox and two Buttons, but I haven't created events, just I place them to user control. When I want to add the user control to my form it says: Cannot mov...
Grouchy asked 18/3, 2013 at 7:18

5

I have this weird problem that I cannot handle myself. A class in the model of my mvp-project designed as singleton causes an InvalidCastException. The source of error is found in this code line wh...
Agan asked 23/3, 2010 at 13:35

2

Solved

I have created a UserControl with some DependencyProperties (in the example here only one string property). When I instantiate the Usercontrol, I can set the property of the UserControl and it is s...
Bedclothes asked 7/6, 2013 at 13:30

3

Solved

I have an UserControl in WPF: <UserControl x:Class="XLogin.DBLogin" x:Name="DBLoginUserFrame" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.micros...
Dolhenty asked 23/1, 2013 at 11:50

© 2022 - 2024 — McMap. All rights reserved.