I have a WPF application with localization. In my project file (.csproj) I have added a string:
<UICulture>en-US</UICulture>
Now the problem is - when I compile the default localization (en-US folder) is always put to the root of $(OutDir) of the project.
Question: how do I move this directory into a subfolder (say, $(OutDir)localize...
I have a .NET solution with a couple of projects. The output is a WPF application. Now I would like to put my binary resources (images/icons) in a single project/assembly in this solution, so that all my other projects in can use them.
My question is how I can do that? What type of project should I create and how should I reference thes...
I have a 16x16 .png file which I have loaded as an ImageSource (BitmapSource) and it is working fine when I use it on an Image in a tabcontrol header.
I now want to use that same image in a floating window (inherited from the WPF Window class) when the user drags the document tab. (This is AvalonDock which I have tweaked to allow images...
I want to animate movement of a selection box in ListView so it will move from old selected item to currently selected.
I don't even know where to start - could someone please share ideas how to achieve that or it's impossible to do in WPF.
...
I am about to start a new Windows applications and the contenders for the platform are:
Windows Forms
WPF
Silverlight
Now my experience with WPF at least in my last application was not very encouraging (the app failed to run on the deployment machines and I had to re-do it in Winforms). So my confidence is shaken here.
My app is for...
As I started using WPF at higher DPI resolutions, I got into troubles with scaling of toolbar images. XAML images solve that problem.
However I find it very hard to find free toolbar/ribbon XAML images that you can use in your own projects. What I found is usually not free and one probably needs more than few collections to get all need...
Hi Guys
I´ve got a ListView which is bound to the ObservableCollection mPersonList. The Class Person got an enum Sex. What i want to do is to set the background of the ListViewItem to green if the person is male and to red if the person is female.
Thanks for the answers!
i tried it like this but whats wrong with it?
<Style x:Key="Cust...
Is there any good tutorial for creating WPF controls entirely at runtime?
Thanks
...
Hi!
Anyone knows how to return a value from Dispatcher.Invoke in WPF? I want to return the selected index for a combobox.
Thanks!
...
Does anyone have any pointers for creating a tristate image button?
I have the following but what I really want to do is have a control with multiple ImageSource properties like <Controls.TristateButton Image="" HoverImage="" PressedImage="" />
<Style TargetType="{x:Type Button}">
<Setter Property="Template">
<Setter.Value...
A note - the classes I have are EntityObject classes!
I have the following class:
public class Foo
{
public Bar Bar { get; set; }
}
public class Bar : IDataErrorInfo
{
public string Name { get; set; }
#region IDataErrorInfo Members
string IDataErrorInfo.Error
{
get { return null; }
}
string IDataE...
Hi everyone, I have an ItemsControl in my View, that is bound to an ObservableCollection from ViewModel. The collection is filled, and afterwards an event from VM to view is raised (think search results and SearchFinished event).
I would like to move keyboard focus to the first item in an ItemsControl, but when I do it in View's code-be...
Hi I am new to WPF.. Can any one tell what is the difference between standalone applications and XAML browser applications (XBAPs) and how it differs in handling navigation and other stuff..
...
Do you use a code generator for WPF/XAML?
If so, in what capacity?
Is it 3rd party/in-house?
...
Hello,
i am trying to to generate a XPS Document from a WPF Control. Printing works so far, but i cannot find a way to create the XPS in landscape mode.
My code to create the XPS file, mostly taken from another SO page
public FixedDocument ReturnFixedDoc()
{
FixedDocument fixedDoc = new FixedDocument();
PageCo...
The following code works, but I'm curious as to why I need the Path to be prefixed with "DataContext"? In most other cases, the path used is relative to DataContext. Is it because I am using a RelativeSource? Because the source is at the root level (Window)?
<Style TargetType="TextBox">
<Setter
Property="IsRea...
I want to implement a custom canvas that recycles containers when used as an ItemsPanel. So I derived from VirtualizingPanel and override the ArrangeOverride and MeasureOverride. I am doing the generation in MeasureOverride like this:
var children = base.InternalChildren;
var itemsControl = ItemsControl.GetItemsOwner(this);
...
Hi all!I'll give an example of what I intend to do:
I have 2 StackPanels one containing an Ellipse the other one containing nothing;
I want to drag the Ellipse from one stack panel to the other . The actual drag & drop is already done and works fine. However I'd like to know how to keep that that Ellipse shape at the tip of my mouse cu...
I use ToolBar for my WPF application. As I understand, there is no easy way to make it floating. I just want to remove element which I don't want to be displayed: several dots in the left side of ToolBar. Is there any Properties to customize view of ToolBar? Or, maybe, it's possible to redefine a ToolBar Template?
...
I need to apply paragraph formatting to a selection in a rich text box. My RTB will behave the same way as the rich text boxes on StackOverflow--the user can type text into the RTB, but they can also enter code blocks. The RTB will apply very simple formatting to the code block--it will change the font and apply a background color to the...