Ok, I'm not sure I understand how this should work, but in my app I have bound a key gesture (Ctrl+K) to a RoutedCommand. No matter where I focus in my app, the key combination works, except if I use it inside of a WindowsFormsHost containing a web browser control. I tried capturing the PreviewKeyDown event for the web browser control an...
Hello,
I have a ListBox like this :
<ListBox DataContext="{Binding UpdateSourceTrigger=PropertyChanged}"
ItemsSource="{Binding UpdateSourceTrigger=PropertyChanged}"
ListBoxItem.Selected="ListBoxItem_Selected">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel>
...
I've got a long list of items which I'd like to filter. I've added an IsFiltered property to the view model in my list. Using an ItemContainerStyle I'm able to bind the ListViewItem's visibility to the IsFiltered property.
<ListView ItemsSource="{Binding Path=MyItems}">
<ListView.ItemContainerStyle>
<Style TargetType="{x:Ty...
I am trying to debug a .NET 3.5 application which uses WPF. On most of our machines the application launches fine, but we have a single machine on which the application hangs on the first .Show(). The process seems to spin with full CPU usage, and eventually (if I'm attached with a debugger) I get:
Managed Debugging Assistant 'Cont...
I have a ListBox containing a large number of Image controls. The Source of each Image is set to a URI on a remote server. About 20 images are visible at a time (the panel is a VirtualizingStackPanel), and each time the ListBox is scrolled it takes a few seconds to render the images, resulting in extremely sluggish scrolling. The images ...
Hi.
I am trying something simple but struggling to get a simple solution, just not seeing it hehe.
I have a number: “150” witch can be split in any number of segments when the user enters the segment amount in a textbox; a items control gets populated with textboxes showing the segment sizes. This works.
I want to be able to edit a se...
I came through this http://stackoverflow.com/questions/87184/what-is-the-best-way-to-localize-a-wpf-application-sans-locbaml . But, this didn't answer what I'm looking for.
I'm creating a CustomControl in WPF. I would like to provide localization support. The control contains, images, strings etc.,
Any help would be greatly appreciated...
If you press ctrl+tab in the .NET IDE, it shows all the active files and their images. Can anybody tell me how to implement this functionally using WPF?
...
I use (WPF) synchronized scroll viewer:
http://www.codeproject.com/KB/WPF/ScrollSynchronization.aspx?msg=3577911#xx3577911xx
The main point, I have two datagrids for which I would like to set synchronized scroll viewers. XAML code:
<DataGrid AutoGenerateColumns="false" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
...
At the University we teach .NET (both VB and C#) using Windows Forms. We want to introduce the concept of Windows Presentation Foundation (WPF) to our advanced course. Which fundamentals of WPF does students need to learn in order to get the basic knowledge of WPF?
The idea is for student to use WPF in at least one of six assignments, ...
HI All,
I am trying to bind some XML into a combobox using the below code:
<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Name="myComboBoxControl">
<UserControl.Resources>
<DataTemplate x:Key="dataTempla...
Hello guys,
I've got a flat ADO.NET datatable that stores hierarchy. There is a data relation between fields ID and ParentID of the same table which describes hierarchy and there could be any number of levels.
I want to show hierarchy in WPF TreeView. I know that I should make unnamed HierarchicalDataTemplate with DataType: markup ext...
Hi all,
I am really getting mad since several hours... I am trying to do a custom ListView control, almost everything is fine except for the GridViewColumnHeader bar color.
I have an ExListView control overriding ListView and a ExGridViewColumnHeader overriding GridViewColumnHeader. My problem is that only the column header are styled,...
I have XAML File as below:
<Window x:Class="ComboBoxCheck.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:check="clr-namespace:ComboBoxCheck"
Title="Window1" Height="300" Width="320">
<Window.Resources>
<ObjectDataProvider x:Name="Designation" Me...
What is the correct way to retrieve a window's position in WPF?
Here's some attempts I made. First attempt, the obvious
Point GetPosition(Window win)
{
return new Point(win.Top, win.Left);
}
but this returns the "wrong" position when the window is maximized. Second attempt:
Point GetPosition(Window win)
{
if (win.WindowState...
Hello everybody,
I'm working on a application which is communicating by network to monitor another application's variables.
The remote application has loads of variables, and I want to transfer only the variables that I'm currently watching on my user interface, to avoid overloading the network.
I try to keep the architecture of my a...
Is there a way to prevent the Tab Unload/Reload when a tab changes in a WPF tab control? Or if that is not possible, is there a recommended method for caching the tabs contents so they don't have to be regenerated with each tab change?
For example, one tab's UI is completely customizable and stored in the database. When the user selects...
I am trying to do some databinding magic. I have a Shipments view that lists shipments, and provides filtering and ordering ability on the list. The filter string box, Delivery Status filters (checkboxes) and Ordering Radiobuttons are databound to properties in the ViewModel. I want to add the ability to save state and I have elected ...
This is basically a follow up question to my previous question found here
I'm trying to group items in a combobox but my problem is that either the GroupDescription is shown or the items.
If I add collectionView.GroupDescriptions.Add(new PropertyGroupDescription("Team")); then my ComboBoxItem style will be disregarded (it never gets to...
Hello,
Why databinding TwoWay don't work on the text property of a combobx in .net 4.0 (it's working in .net 3.5) ?
My code :
I have an xml file like this :
<xml>
<combobox option="" obs="tralala">
<option value="here" />
<option value="there" />
</combobox>
<combobox option="blue" obs="">
<option value="one" />
...