Does anyone know of a ListView implementation that support UI Virtualization when grouping is enabled? By default the VirtualizingStackPanel is disabled when grouping is setup.
It seems that Microsoft is not going to implement this within v4.0 of the .NET Framework so I am look for alternate solutions.
...
My GroupStyle Header never appears in the combobox....
The Grouping is working fine....It's sole a binding issue but am not able to figure out.
<DataTemplate>
<Border Background="Red">
<TextBlock Text="{Binding Path=value}" />
</Border>
</Data...
Hello,
I've bound my TextBox to a string value via
Text="{Binding AgeText, Mode=TwoWay}"
How can I display string.empty or "" for the string "0", and all other strings with their original value?
Thanks for any help!
Cheers
PS: One way would be a custom ViewModel for the string.. but I'd prefer to do it somehow in the XAML dire...
I have a ListBox with an ItemTemplate consisting of a TextBlock and a ComboBox. The problem is that the width of the text inside the TextBlock is not the same for each item and the ComboBox controls are not aligned.
How can I set the TextBlock in the template so all items are the same width, that is the one of the widest?
Here is my xam...
I'm trying to use MultiDataTriggers to enabled/disable a button based on the value of two text boxes.
The docs state that the conditions in a MultiDataTrigger are logically ANDed together. In the example below if txtFirst.Text is foo and txtSecond.Text is bar I'd like to enable the button. However, the button always stays disabled (IsE...
In my XAML file I want to display this text which contains double and single quotation marks:
You shouldn't choose "Copy if New".
None of these work:
<TextBlock Text="You shouldn't choose "Copy if New":"/>
<TextBlock Text="You shouldn't choose ""Copy if New"":"/>
<TextBlock Text="You shouldn't choose \"Copy if New\":"/>
<TextBlock...
We're looking at patterns such as MVP that can help make us seperate UI from logic from data. The initiative is late in the game, but is an effort to begin to set rules that we need to write more testable code (currently we write hairballs, spaghetti, duct-tape and wood screws, etc.)
As we look to the approaches to take with out 2.0 ...
Hi, I have a WPF ListView with "Auto" column widths. After rendering, the column widths correctly match content, that is ok.
I need to determine the correct (rendered) DesiredSize of the ListView right after assigning to ItemsSource, prior to rendering.
The problem is that calling Measure() breaks the Auto width behavior - it resizes t...
Hello,
I've following ListView Item (in a WPF Form):
<ListView Name="listViewTeam" ItemsSource="{Binding Path=TeamList}">
<ListView.View>
<GridView ColumnHeaderTemplate ="{StaticResource BlueHeader}">
<GridView.ColumnHeaderContainerStyle>
<Style TargetType="{x:Type GridViewCol...
I am getting a eroor from my code, i cant trace the issue/bug . here is my code bit...
private void DoArrange()
{
Point center = new Point((this.Width - ItemSize) / 2, (this.Height - ItemSize) / 2);
double radiusX = center.X;
double radiusY = center.Y;
double scale = ScalePerspective;
for (in...
How can I restrict TextBox to accept only capital letters, or for example digits, or forbid to put any special character?
Sure it's a piece of cake to catch TextInput event and handle the text here, but is it the proper way to do this?
...
<data:DataGridTemplateColumn Header="Name">
<data:DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding Name}">
</DataTemplate>
</data:DataGridTemplateColumn.CellTemplate>
<data:DataGridTemplateColumn.CellEditingTemplate>
<DataTempla...
I want to put a command on a ListBoxItem. The ListBoxItem use a DataTemplate composed of a StackPanel (containing an Image and a TextBlock, both using Binding). I want that the doubleclick on that ListBoxItem fire the command.
I have tried this :
<DataTemplate>
<StackPanel>
<StackPanel.Resources>
<CommonUI:Comma...
Hi,
I have a WPF application with several windows. I would like to define GLOBAL inputBindings.
To define LOCAL inputbindings, i just declare the input in Window.InputBindings or UserControl.InputBindings.
To define GLOBALs, I wish i could do the same with the Application class...
<Application
....>
<Application.InputBindings>
...
...
I have a very simple user control, and I'm trying to instantiate it in XAML. I find that when I go a bit overzealous with the namespacing, I run into problems with x:Name.
Here is my UserControl:
<UserControl x:Class="UserControlTest.UserControl1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schema...
I have a 16 bit grayscale image that I want to display using WPF in .NET 3.5 sp1. Currently, I display that image using an embedded winform that uses OpenGL to set the image display format to Luminance 16.
DirectX has a similar property, SurfaceFormat.
I want to be able to display an image in WPF and set the SurfaceFormat to Luminan...
Is the June 2009 WPF Toolkit safe to use in applications that will be shipped out to customers?
I'm seriously concerned that my application will crash three days prior to release. This concern stems from the fact that that the WPF Toolkit does not seem to be endorsed by Microsoft, even though it appears to be developed by established ...
I am using the very handy WPF Toolkit Xaml to have a nice GUI. I am having issues however with the combobox items. I have successfully bound to the combobox control, but the items in the dropdown show the bound object, not the displaymember. Funny enough, when I select an item, the correct displaymember is shown in the textbox.
Any h...
I'm trying to implement a property changed event (or which ever is appropriate) in my wpf project and I'm trying to find the best way to do this.
I have this header where it has an expand/collapse icon and in my window, I might have multiple headers. I want the default to be collapsed when all headers are listed in the beginning but whe...
If you set TextWrapping to "Wrap", a WPF TextBlock can have several lines of text.
Is there a "clean" to get this number of lines of text? I considered looking at the desired height and dividing it by an estimated height of each line. However, that seems quite dirty. Is there a better way?
...