Anti aliasing cannot be turned off in WPF. But I want to remove the blurred look of WPF fonts when they are small.
One possibility would be to use a .net 2.0 component. This looks like it would lose the transparency capability and Blend support. Never tried it though.
Anyone has a solution for this? Any drawbacks from it?
Thank you
...
I want to catch the NavigationService.Navigating event from my Page, to prevent the user from navigating forward. I have an event handler defined thusly:
void PreventForwardNavigation(object sender, NavigatingCancelEventArgs e)
{
if (e.NavigationMode == NavigationMode.Forward)
{
e.Cancel = true;
}
}
... and that wo...
Background: I have a little video playing app with a UI inspired by the venerable Sasami2k, just updated to use VMR9 (i.e. Direct3D9 with DirectShow) and be less unstable. Currently, it's a C++ app using raw Win32, through necessity: none of the various toolkits are worth a damn. WPF, in particular, was not possible, due to its airspac...
I have a ListBox that has a style defined for ListBoxItems. Inside this style, I have some labels and a button. One that button, I want to define a click event that can be handled on my page (or any page that uses that style). How do I create an event handler on my WPF page to handle the event from my ListBoxItems style?
Here is my s...
I am having trouble finding good guides for WPF.
I have experience in C# and .NET but I don't know anything about WPF except for the regular marketing-ish description of the technology as a whole.
Can anyone point me to a good beginner's tutorial/guide on WPF.
...
I have an images folder with a png in it. I would like to set a MenuItem's icon to that png. How do I write this in procedural code?
...
Using WPF, I have a TreeView control that I want to set its ItemTemplate dynamically through procedural code. How do I do this? I assume I need to find the resource somewhere.
myTreeViewControl.ItemTemplate = ??
...
How stable is WPF not in terms of stability of a WPF program, but in terms of the 'stability' of the API itself.
Let me explain:
Microsoft is notorious for changing its whole methodology around with new technology. Like with the move from silverlight 1 to silverlight 2. With WPF, I know that MS changed a bunch of stuff with the rel...
How does one go about referencing a class's static properties in xaml? In other words, I want to do something like this:
C#
Class BaseThingy {
public static readonly Style BaseStyle;
...
}
XAML
<ResoureDictionary ...>
<Style BasedOn="BaseThingy.Style" TargetType="BaseThingy" />
</ResourceDictionary>
What is the syntax to do...
Here's the situation: I need to bind a WPF FixedPage against a DataRow. Bindings don't work against DataRows; they work against DataRowViews. I need to do this in the most generic way possible, as I know nothing about and have no control over what is in the DataRow.
What I need is to be able to get a DataRowView for a given DataRow...
Anybody have a good example how to deep clone a WPF object, preserving databindings?
The marked answer is the first part.
The second part is that you have to create an ExpressionConverter and inject it into the serialization process. Details for this are here:
http://www.codeproject.com/KB/WPF/xamlwriterandbinding.aspx?fid=1428301&a...
Today I was listening to the Hanselminutes show about .NET 3.5 SP1...What's inside, and they twice mentioned the Office 2007-like Ribbon control that is included in Visual Studio 2008 Service Pack 1.
I am very interested about this, as I was previously looking at purchasing this from a 3rd party vendor (likely DevComponent's DotNetBar...
I'm trying to write a custom WPF ValidationRule to enforce that a certain property is unique within the context of a given collection. For example: I am editing a collection of custom objects bound to a ListView and I need to ensure that the Name property of each object in the collection is unique. Does anyone know how to do this?
...
Hey,
Didn't get a reply to this on the MSDN WPF forum, so I thought I'd try here.
Some WPF controls - like the button - seem to happily consume all the availible space in its' container if you don't specify the height it is to have.
And some - like the ones I need to use right now, the (multiline) TextBox and the ListBox - seem more w...
Learning WPF nowadays. Found something new today with .Net dependency properties. What they bring to the table is
Support for Callbacks (Validation, Change, etc)
Property inheritance
Attached properties
among others.
But my question here is why do they need to be declared as static in the containing class? The recommmended way ...
What's the best way to asynchronously load an BitmapImage in C# using WPF? It seems like many solution exist, but does a standard pattern or best practice exist?
Thanks!
...
I want to show a chromeless modal window with a close button in the upper right corner.
Is this possible?
...
I have seen lots of questions recently about WPF...
What is it?
What does it stand for?
How can I begin programming WPF?
...
I had a discussion with some colleagues mentioning that there are not too many projects that we do which make use of WPF for creating UI for a windows application (we almost always use Windows Forms instead).
Are your experiences the same - i.e. there is not too much adoption of this technology?
Why do you think that is? And will we ha...
What tools beside Visual Studio's Cider do you use?
Have you succeed in using something from Microsoft Expression product family?
EDIT:
Here are revealed tools:
Snoop
Mole debugger visualizer
Perforator suggested by Matt Hamilton
The Expression Blend 2.5 Preview suggested by Anthony Conyers
Kaxaml suggested by Anthony Conyers & Brad L...