I have a WPF ListView that is bound to a BindingList<T>. The binding works like a charm, but I have to tab out of the cell to get the bound property to update....this is an issue because most users don't tab out of the last column before clicking the save button.
How do I force the list view to "persist" the changes to the bound DataCo...
I cannot get a two-way bind in WPF to work. I have a string property in my app's main window that is bound to a textbox (I set the mode to "TwoWay"). The only time that the value of the textbox will update is when the window initializes. When I type into the textbox, the underlying string properties value does not change. When the string...
My WPF application generates sets of data which may have a different number of columns each time. Included in the output is a description of each column that will be used to apply formatting. A simplified version of the output might be something like:
class Data
{
IList<ColumnDescription> ColumnDescriptions { get; set; }
strin...
are there any additional WPF themes from microsoft except that default ones provided in
PersentationFrameWork.Aero,
PersentationFrameWork.Luna,
PersentationFrameWork.Royale &
PersentationFrameWork.Classic
i am specially interested in a Office 2007 Blue theme
...
Howdy,
I use MVVM architecture to decouple my application. That is, you often see something like
var u = new UserControl();
u.Content = new MyCustomType(); // MyCustomType is not a control
The UI is defined via data templates that reside in resource dictionaries in their own XAML files
<ResourceDictionary ...>
<DataTemplate Data...
Is it possible to access the following formatted menu item like any other standard menu item (using the underscore-method, e.g. "_File" would be accessible by pressing "f")? I would like to use "O" as "access key" here.
Unfortunately, <AccessText> does not seem to be usable directly (I imaginged something like
<AccessText Visibility="...
I am trying to share an ObjectDataProvider resource between my main application and a user control. I define the odp in a separate resource dictionary file that is included in the app and the user control.
<ObjectDataProvider x:Key="AsymmetricFrameHolder" ObjectType="{x:Type data:DataFrameAsymmetric}"/>
I then try to access this in th...
Does anyone know how to implement the standard bubble message that warns users whenever Caps Lock is enabled and a password control has focus? Is this built into the .NET framework or do I need to write my own class to do this?
Thanks.
...
I have a situation where I am using wpf data binding and validation using the ExceptionValidationRule.
Another part of the solution invovles collapsing some panels and showing others.
If a validation exception is set - i.e. the UI is showing a red border around the UI element with the validation problem, and the containing panel is col...
In my WPF app, I call a WCF service to retrieve my business object. I take that business object and bind it to a grid. I want to now apply the INotifyPropertyChanged attribute, but am unsure if it would work from WCF. My ultimate goal is to be able to edit items in a grid, click update and push those back through a WCF service.
...
I change the FontSize of Text in a Style trigger, this causes the Control containing the text to resize as well. How can I change the Fontsize without affecting the parent's size?
...
Is it possible?
I have a listview with several gridviewcolumns. The last column has a dynamic header. I dont know what the column header will be at design time. It's actually a number I want to display as a string.
<GridViewColumn Header="{Binding Path=SomeValue}"
DisplayMemberBinding="{Binding Path=OtherValue...
This question intends to provide a list of solutions to common pitfalls, "gotcha's", or design issues when developing WPF applications. This can also include proper design-patterns as long as there is an explanation as to why it works best. Responses should be voted up or down based on how common the type of issue is. Here are the rules:...
Hello,
I am relatively new to WPF and I have an issue with Adorners.
I have an inkcanvas that contains an image, I can save the image with the strokes added by the user. The issue I have is that I have a requirement that allows the user to add text over the image, and to print/save the text without damaging th image.
I used an ador...
currently i am forcing my WPF app to use the luna theme no matter what, with this XAML code
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Styles.xaml" />
<ResourceDictionary Source="NavigationCommands.xaml" />
<ResourceDict...
Hi,
I want to create 4 rectangles stacked to one row.
|----|--|------|------------|
The width of every rectangle is binded to value in %.
I decided to group rectangles to horizontal StackPanel. To calculate the width of the rectangle I want to write convertor.
What I don't know is how to create converter that must be binded to:
- v...
Hi@all
I have some weird requirements for a visualbrush:
This Visualbrush must be used in a third-party component for diagramming. We have lanes on the diagramming canvas, which stretch horizantally.
We must define a background color for this lane, and some text on the top-left corner, which must be repeated on the x-axis.
Now comes the ...
I've created a user control (in vb.net code) that contains two dock panels, one for header content (called HeaderDockPanel) and one for other content (called RootDockPanel). The dockPanels are depedency properties of the user control.
These dependency properties are declared as follows:
Public Shared ReadOnly RootDockPanelProperty As D...
I have a border element with rounded corners containing a 3x3 grid. The corners of the grid are sticking out of the border. How can I fix that? I tried using ClipToBounds but didn't get anywhere.
Thanks for your help
...
Hello,
I have a project requirement where I need to authenticate against ActiveDirectory in a remote/disconnected WPF application.
There is probably several ways to attempt to do this, but what would be the best approach using ActiveDirectory's MembershipProvider?
I need to:
Authenticate that the user exists.
obtain the AD user's gr...