I have two projects. One is working and the other isn't however the differences between them is nothing that I think "should" be of any importance. The first project is the one that is broken and it is the one I am trying to fix. The second project is a little sample project that I created when the first project just won't work at all. O...
I have an application with a WPF WebBrowser control which displays a Flash file. The flash file is used for WebCam/Microphone chat. At the moment, everytime the flash is loaded it displays a dialog box asking for permission to use the microphone and camera.
How can I fake a click on the allow button to stop hassling users with this ques...
How do I include text decorations such as Underline, Strikethrough etc in a Style definition:
<Style x:Key="UnderlinedLabel">
<Setter Property="Control.FontFamily" Value="Trebuchet MS" />
<Setter Property="Control.FontSize" Value="14" />
<!-- Next line fails -->
<Setter Property="Control.TextDecorations" Value="Under...
I have a WPF ListBox, and I've added some 'FooBar' objects as items (by code).
FooBars aren't WPF objects, just dumb class with an overwritten ToString() function.
Now, when I change a property which influences the ToString, I'd like to get the ListBox to update.
How can I do this 'quick and dirty' (like repaint).
Is dependency proper...
Hi,
I have two windows that have a listbox bound to a ListCollectionView, both are sorted with the same SortDescription, View1 and View2
When i add item through View2 its reflected in View1 and i can see the label after the focus change event, then View2 gets sorted. and View1 is now unsorted.
How can i slove this issue?
Thanks,
Eric...
Folks,
I'm looking for a syntax-highlighting Textbox component, preferably free, with source, and capable of being used in Winforms, ASP.NET and WPF alike. Also, it should support not just display, but also editing contents.
I've discovered the excellent, FREE ActiPro SyntaxHighlighter for ASP.NET - but that's unfortunately ONLY for AS...
Can Windows Presentation Foundation read/write WMF/EMF files without having to use WinForms Interop or Win32.
If it does not, what is the reason?
...
DUPE: http://stackoverflow.com/questions/285147/what-is-javas-answer-to-wpf
Is there an Java equivalent to the WPF platform?
...
I’m porting a WPF app to silverlight 2, and have come across several WPF features which are presently missing from SL. Could anyone help me with equivalents or suggest workarounds.
I want to handle clicks and double clicks on a textbox embedded in a list box. The WPF implementation uses PreviewMouseLeftButtonDown/Up on a listbox contro...
I need some help understanding the ADO.NET Entity Framework.
I'm trying to represent and manipulate hierarchical data in a WPF TreeView control with the ADO.NET Entity Framework.
Each of these Things has a single parent and zero or more children.
My "delete" button...
Private Sub ButtonDeleteThing_Click(...)
db.DeleteObject(Di...
The only example I can think of is in html - if you dynamically add a TR w/ a colspan + div inside it containing details (editable) on the click of the previous TR for example
I'm trying to grok XAML and wanted to see if someone could point me in the right direction w/ this wacky request.
...
The default behavior of a WPF ContextMenu is to display it when the user right-clicks. I want the ContextMenu to show when the user left-clicks. It seems like this should be a simple property on ContextMenu, but it is not.
I rigged it, so that I handle the LeftMouseButtonDown event in the code-behind and then display the context menu....
I am relatively new in the WPF world and one thing I immediately noticed is how laggy the window content is drawn when you resize a window. For example if you have scrollbars at the window edges those scrollbars will be partly hidden while shrinking and have space between them and the window border when enlarging.
This even happens with...
Is there way to get a current browser location URL in WPF browser application XBAP? I mean a location from where the application is loaded.
Thanks.
...
I have an XML document and a CSS file that goes with it, which includes the page formatting style (both exported from Adobe Framemaker). I would like to import this data and display portions of the XML document in a web browser control with in Windows Forms or WPF. It's not clear to me how do make all of this work together.
Any suggesti...
Ok, that question was really hard to ask in one line. Here's the deal. If I have this XAML:
<ResourceDictionary
x:Class="MyAssembly.MiscResources"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<SolidColorBrush x:Key="MyBrush" Color="Purple" ...
Let's say I have a sine curve in ZedGraph that goes from -10 to +10 on the y-axis. I'd like to be able to put limits on the curve (let's say minimum of -5, and maximum of +7), such that anything below -5 and anything above +7 is shaded, and everything in the middle is not. Is this possible in ZedGraph? Is this possible in any OpenSource ...
I have a visual brush which is a group of shapes, the main colour of which is a dynamic resource itself - so the shape is for example MyShape and the Colour, MyColour which is referenced by the Shape object.
My problem is when I update the colour for this - it only happens the first time the shape is loaded (the colour needs to be set fi...
I was talking to someone today about picking a design pattern for how to handle logic in their WPF program and hoping that the SO community can help with further advice to make the decision easier. What factors in favour of commands outweigh the inconvenience?
I prepared a full sample along with some UML diagrams of the first two of thr...
I have not marked this question Answered yet.
The current accepted answer got accepted automatically because of the Bounty Time-Limit
With reference to this programming game I am currently building.
As you can see from the above link, I am currently building a game in where user-programmable robots fight autonomously in an arena.
...