0
votes
0answers
20 views

WPF interoperability - how can I get the including Form object from the WPF control?

I have a form of Form1 class and a WPF user control inside it (inside ElementHost). How can I get the Form1 object from this control's code-behind? Here is the code: /// <summary> /// ...
1
vote
1answer
19 views

XAML WPF User Control changing state

I am trying to create a WPF user control using XAML it is a old fashion checkbox control and the below code look ok on screen but in order for the control to change state you have to click on the path ...
0
votes
0answers
22 views

wpf - How to freeze/lock specified UserControls in a window

I have a Window that contains two UserControls A and B, i want to freeze/lock A while clicking B, please is there any way to do that using Threads or anything else?
0
votes
1answer
47 views

WPF Mouse Down Event won't fire

I must be doing something stupid here but I cant get a MouseDown event to fire when I am clicking on the UserControl. Driving me Mad. Here's the XAML for the UserControl: <UserControl ...
2
votes
2answers
56 views

WPF cut, copy, paste functionality on a user control

I have a canvas on which you can add UserControls (consists of images and textboxes) Im trying to implement cut, copy, paste functionality on these UserControls, so the context menu is attatched to a ...
2
votes
3answers
47 views

WPF - UserControl with images not showing properly

Ok, here is my problem: I have created a UserControl named MultiImage, which is composed by a two images, one bigger than the other. What I am trying to do in the MainWindow is that, when you ...
0
votes
1answer
32 views

Adding resource dictionaries to a usercontrol library in wpf

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 ...
0
votes
1answer
40 views

Image property in usercontrol

I'd like to make a simple UserControl in WPF as follows : an image (let's say 128x128) with another image on it, smaller (48x48). Let's call them imgMain and imgOverlay (the small one). Now I want to ...
2
votes
1answer
61 views

WPF C# User control page IsVisibleChanged event

i have some user control page , and a MainWindow , so i would like to set user control page to hidden , and once its hidden , it stops its audio from playing i know i have to do something with ...
0
votes
0answers
36 views

Default binding to UserControl for custom DP

I have a custom DP that runs or stops an animation. I want this to default to start and stop based on the UserControl visiblity (the DP is of type Visibility which makes this easier) Can I do this ...
2
votes
1answer
31 views

RenderTransform.TranslateTransform animating in usercontrol in wpf

i want to create a wpf usercontrol that displays an Image and has a toolbar panel, i want to set features listed below to the my userControl: tool bar panel hidden when mouse cursor is out side of ...
0
votes
2answers
38 views

WPF contextMenu control for bring forward and send backward

Having trouble with something here which I'm hoping is actually simple. I have a custom UserControl in WPF which allows me to display an image. When the program is running a user can add this ...
1
vote
2answers
46 views

Button Enablity WPF

I have a UserControl in which I have a DataDrid and in that DataGrid I have two ComboBoxes. Now what I want to do is when I select any item from both the ComboBoxes the Button which is outside the ...
2
votes
1answer
50 views

How to use Extend Custom Control and use in Window

I want to make a window similar to the Android screen that shows the state of bluetooth, wifi..etc. I have a class that checks the state of said device and returns a byte value of 0 for off, 1 for on ...
0
votes
1answer
70 views

Howto avoid a “object reference not set to an instance of an object” exception in XAML code while design time?

i have a problem with a wpf usercontrol which is of my own devising. The problem is that i get a "object reference not set to an instance of an object" exception in XAML code while design time, when i ...

1 2 3 4 5 108
15 30 50 per page