Hi everyone,
I've got a richtextbox, that I plan on saving to a database, which can be loaded back into the same richtextbox. I've got it working so that I can save the flowdocument as DataFormats.XamlPackage, which saves the images, but the issue is that the text isn't searchable. With DataFormats.Xaml, I've got the text of course, b...
Can anyone suggest a good, free wpf-based property grid?
I used to use Denis Vuyka's original WPF PropertyGrid, which I liked, but I lost the source code. And unfortunately (for me, anyway) the only version currently available is a paid version. Can't find the original, simpler non-paid version anywhere.
...
I have a standard listbox. I can add items using a input textbox. I can delete them using delete key or context menu. When i delete the items from top of the list, scrollbar resizes properly. If i scroll to the bottom and then delete items the scrollbar resizes incorrectly i.e instead of increasing in size it decreases in size. If i scro...
Hello everyone,
I'm trying to bind to an item inside a collection but the index for that item needs to be "variable".
Take the following pseudo syntax for example:
<TextBlock Text="{Binding Fields[{Binding Pos}]}" />
Is something like this possible? If my property Pos is 1 it should bind to the first item out of the collection "Field...
First attempt at implementing MVVM pattern on line-of-business project. I am running into questions that I assume there are eaiser answers for like this one:
Protype window is basic master-detail view of a list of items. (a list of Person objects). The view contains an Infragistics xamDataGrid for the master list. As the item is select...
How can I make a MS Paint clone in WPF?
I use Canvas and Shapes, but I don't know how to implement erasing. Should I use different controls, image control for example, or other drawing technology?
...
Hi!
I need to be able to handle the double click and single click event on the WPF StackPanel. But there is no such thing as the StackPanel's DoubleClick Event.
I want to do 2 different operations in these 2 EventHandlers.
Any idea how to do that?
Thank you
...
I want to produce an interactive chart - so far I've found GraphSharp which looked very promising, however I've found myself struggling due to lack of documentation and a difficult to understand sample.
All I need is to be able to place arbitrary WPF controls as my "nodes", have arrows joining them and be able to collapse / expand parts...
Is there a way to embed a string in XAML, give it and ID and refer to it later.
I have tried:
<Window x:Class="WpfApp1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:System="clr-namespace:System;assembly=mscorlib"
...
I need to calculate the width of each UIElement in a custom panel. If looping over Children:
foreach (UIElement child in Children) { ... }
I can't do child.DesiredSize.Width = myCalculatedWidth;
Since DesiredSize and DesiredSize.Width are read only.
The docs say that that Measure() updates the DesiredSize of the UIElement, so I tried...
What it is the most brief and concise way of adding event handlers to UI elements in XAML via an IronRuby script? Assumption: the code to add the event handler would be written in the IronRuby script and the code to handle the event would be in the same IronRuby script.
I'd like the equivalent of the following code but in IronRuby. Hand...
I have a ListBox that I have added a context menu to. I want one of the items in the context menu to be bound to a command and I want the parameter passed to that command to be the currently selected item of the ListBox control. Here's my xaml:
<ListBox
x:Name="selectedVascularBeds"
Ite...
i want to add button in specific cell of gridview (of listview) in wpf or in datagrid of wpf
or
if any1 can tell me way to change resource key of specific column at runtime
...
I've been having trouble using a value converter with a data trigger. In some of my code it seems like the DataTrigger's Path is being applied to the root element, rather than the element which the style applies to.
I created a simple test case, and I don't understand its behavior. I'm expecting the Button to turn red or blue depending ...
Hello
I have a view model to manage a dialog type of view that allows filtering of a listing (if necessary) and selection of an item. The code works fine whether I set IsSynchronizedWithCurrentItem to true or not. My understanding is that this property is not true by default in a ListView, so I'd like to better understand this property....
In our WPF application we show a data bound GridView, and one of the grid fields is a filter field which is combination of several sub-fields. In the grid, I show a simple string concatenation of the field, but I want the tooltip to show a formatted presentation of the filter. The formatted presentation might contain some or all of the f...
Hello
Has anyone got any particular resources (links, books, whatever) that have helped them use the wpf DataGrid better?
My goal is to wind up with a control that has two related but different data enterable DataGrids in it as well as a footer that totals the amounts of several columns. I'm encountering various challenges and am so fa...
Where would I start looking if I wanted to create my own property grid control in WPF?
...
I have a list view that is displaying data using the gridview. This list is displaying data typical of grid views. Lots of data displayed in rows and columns. However, on some rows I do not have any data to display, in the columns. I would like to swap out the item template for that row and display another template for the entire ro...
Hello
I am using a DataGrid in a WPF app that has several (literally one for each day of the week) columns which differ only in their data index. A sample of the xaml is below.
How can I refactor this into something more DRY?
Cheers,
Berryl
SAMPLE XAML (two of seven columns):
<dg:DataGridTextColumn
Header="{Binding Source={Stat...