I added a bunch of images as project resources.
Now i want to use them in my WPF application using the image control.
How can I assign the resource to the source of the image control?
I have a WPF datagrid and it works great but I notice some sort of very tiny column before the first column ...I want to remove it ....How do I do it ?
Take a look at the picture:
http://i45.tinypic.com/2d177f9.jpg
...the thing I want to remove is what I surrounded in the red rectangle.
I have a custom user control that is based on a Grid control. I have a ViewModel that exposes this as a property. I would like the XAML on the view to bind to this. I am sure this must be easy but I am quite new to WPF. How is this achieved?
Many thanks in advance
I use checkbox in WPF window. I use some logic in unchecked event of checkbox. And I want to cancel uncheck if need it in the body of this event. How can I do this?
Can anyone suggest a guideline on when to use SnapsToDevicePixels in WPF 4.0?
Should it only be used occasionally if there is an issue, liberally throughout an App, only on certain controls or what?
Hi All
I've only just started using WPF. (I'm a WinForms guy), and from what I can see, trying to simply drag an image onto the Window is a huge PAIN. There seems to be no way where you can just select an option to tell it what picture to put indide the image control. I've seen so many sites within the last 10 minutes with atleast 10lines of code…
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 loading twice it throwing error, is there any other way to check if the usercontrol is loaded like that, else how to solve this issue.
Hi,
I have an object Trip in my object model containing a list of Nodes (e.g. NodeName, StartDate and EndDate) and I am trying to build a Custom control in WPF that draws list of rectangles: one for each Node contained in the Trip object (based on StartDate en EndDate)
Would you have any hint on how the Custom Control should be structured so that…
I am reading a book on WPF.As with all books, it gives an introduction on the problems the earlier display systems had with them.He refers to terms such as DPI, Pixels, Resolution etc.Is there any place where I can learn about them and about how they are related to each other ?
I just want ask for your comments/suggestions on how to create a customized listview (if that's a good implementation) in WPF that displays images coming from a table from a database (more like a playlist) that rotates similar to a film (moving horizontally - on loop)
Any ideas?
I have a WPF aplication that is doing some serious work (doing some calcualtions) when a button is hit. I wanted to add a 'busy animation'. However, the aplication is so busy doing its work that the animation is stopped until the calcuations are finished. Any ideas??
Can i write something like this in WPF(i know that this piece of code is wrong, but need to know if there is kind of this construct):
<TextBlock Height="50" Text="Test: {Binding Path=MODULE_GUID}" />
Or always to add some text to binding value i must do something like this:
<StackPanel Orientation="Horizontal">
<TextBlock…
In WPF, how would I do the following:
Every x milliseconds, underline 3 words at a time. After x milliseconds, underline the next 3 words.
Every x milliseconds, have 3 words appear and disappear from the window?
If I were to use Windows Forms, is there still a way of doing (1) and (2) above?
Thank you
I can't cope with set interspaces between nodes in Treeview wpf.
I manipulate padding and gives me in result interspaces between main nodes, but not between child nodes.
Is there any way to get rid of this ?
I'm probably typical in being bewildered by the many syntaxes of Wpf binding. Does anyone know of a chart that lays out all the possibilities. Across one axis is all the variations of binding syntaxes (Static, Dynamic, Self, ...), the other axis are all the variations of scoping and type. The intersection of the axis show an example.
Surely…
Is there a simple way to invert a WPF GridView so that items are bound to columns instead of rows? Or would it be necessary to write a custom view mode?
Hi, i would like to or need to use a database for my wpf project. It has to store "person" "team" "goals" and maybe 2 more things, nothing very big. Ive already used (worked) with databases in java / php (postgresql), but is there maybe an "easier" way to store the things.. i mean if the db is going to be big than i could use (postgre or…
Hi I'd like to inquire on how i can load a WPF Xaml into code so that I can change the values of the attributes of some XAML elements and output it by creating another XAML files. This is so that I can output the same file with values dynamically input by the user.
the XamlReader.Load() method cannot be used; it will throw an exception…
Hi,
I am looking for a solution for this scenario -
I need to implement a feature to allow user to add various controls to canvas(WPF, custom and third party ) and then select any one of them and modify some properties in property grid(changes needs to be reflected in UI).
I don't want to expose all the properties of any control only…
I'm dealing with a large WPF application that is outputting a large number of binding errors. A typical error looks like this:
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''.…
I have a custom control that I use inside a FlowDocument. The control uses a System.Drawing.ImageAnimator to display transparent, animated GIF images. Why is this such a pain in the butt in WPF anyway? :P
In my original implementation, this was causing memory leaks when a paragraph containing the control…
Once the added button in grid is clicked, how to find which row and column the button is located in the grid event handler, like click event or some other events? Not the button click event handler
#region Grid event handler setup
myGrid.MouseEnter += new…