How do you style a WPF GridView Header?
...
Here is the code that I currently have to create underlined header text in WPF. There has got to be an easier method then using tables. <Grid> <FlowDocumentScrollViewer> <FlowDocument> <Table> <Table.Columns> <TableColumn Width="Auto"/> </Table.Columns> <TableRowGroup> <TableRow> <TableCell> ...
One of my biggest pet peeves with how databinding works with XAML is that there's no option to strongly type your databindings. In other words, in C#, if you want to access a property on an object that doesn't exist, you won't get any help from Intellisense, and if you insist on ignoring Intellisense, the compiler will gripe at you and ...
I am learning WPF and wanted to look at source code to some good full fledged WPF apps which are used for business apps, data binding using data bound controls like grids and good use of WPF design and patterns. Not interested in WPF apps which show off WPF's graphics capabilities. Yes I am into your typical boring business apps. Also l...
Looking for good video tutorials for learning WPF using Visual Studio 2008 and Expression Studio. (Beside the videos on WindowsClient.net) ...
This is basically implementing search/find in a WPF window or User control. Let's say you have a WPF window with dynamic readonly text some on textblock, some in a listbox, some in treeview, some in textblocks etc. The user should be able to type in a search term in a textbox on the top and be able to see it highlighted wherever and in ...
Hi, I have a UserControl that contains other controls and TextBox. It has Value property that is bound to TextBox text and has ValidatesOnDataErrors set to True. When validation error occurs in Value property binding, error template (standard red border) is shown around entire UserControl. Is there a way to show it around TextBox only...
Hi All, I have a listview(lstViewOwner) which should display the folder and its files. I select the path by browsing.. once I give the path to a textbox, based on the path, it should open the folders and its files in a hierarchial way.. I mean Folder1 Excel1.xls Excel2.xls Excel3.xls Folder2 Excel1.xls Excel2.xls Actually ...
Hello, I am wondering if it was possible to change the styling of a column in a wpf datagrid depending on the type of item in the ItemsSource collection. I have a wpf datagrid from the wpf toolkit. The single rows in the grid should be styled depending of the type of item from the ItemsSource collection. So all items are of the same ...
Hi ! I Have a ListView with many Items that is to be loaded in search. And I'd like to provide user the richer user interface so that when loading, I'd display a rotating circle (known from AJAX waiting). I realize that I'll have to go into Threads or something, but as I've never done this before in WPF, I'm sure there is something be...
Hi, Im having requirement of passing reference of control to another custom control . Like I created custom control which contains dependency property associateDatagridProperty public static readonly DependencyProperty AssociatedDataGridProperty = DependencyProperty.Register( "AssociatedDatagrid", ...
When I run the following code, an XML file is correctly created in c:\temp: XmlSerializer xs = new XmlSerializer(typeof(ObservableCollection<Models.Customer>)); using (StreamWriter wr = new StreamWriter("C:/temp/CustomerMock2.xml")) { xs.Serialize(wr, CustomerList); } However, I actually want it to be created in a sub-directory un...
Hi, I am having a property of int type in my view model which is bound to a text box. Everything works properly, two way binding works fine except in one case - If i clear the value of text box, property setter doesn't gets called and although value is cleared in text box, property still holds the previous value. has anyone faced simi...
I was reading Pro WPF in C# 2008 yesterday (in anonymous bookstore) and in chapter 2 they mention that XAML allows for the graphic design and the programmer to be completely independent. It got me wondering if most companies are moving toward having dedicated design specialists for implementing there UI’s? I know at our company we have...
In my Shell.xaml I want two modules to each take up half the height and be expandable. Why is the first module being cut off? Shell: <Window x:Class="HelloWorld.Desktop.Shell" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:cal="http://www.code...
Hi! I've written an UserControl whose DataContext contains a collection and an bool property. The collection is being displayed (and editited) within a data grid, which has custrom column templates. The DataContext of a control in a column is of course an item of the collection of the UserControl's DataContext. However I need to bind on...
Our company is developing an application (WPF, targeted to .NET 3.5) with the WPF Diagramming Components from MindFusion.Apparently, printing and saving XPS Documents results in various errors on different systems. I reduced the problem to a single sample XPS Document created from our application.I'll first give an overview of the conce...
Currently I'm working on a Ultrasound scanning project, which displays the continues images aquired from a probe, to do that I'm writing following code. XAML: <Image Name="imgScan" DataContext="{Binding}" Source="{Binding Path=prescanImage,Converter={StaticResource imgConverter}}" /> C# Assignment: Bitmap myImage = GetMeImage(); ima...
Hi. Last time I started to implement a Model View ViewModel to work easily with WPF. I have to say, that it's elegant, but there's one thing I have to remark. I noticed a performance issue when working with MVVM. Wrapping the original object into an "Viewable" object can be expensive in case of many items. I recently had a ListView wit...
I am trying out WPF for the first time and I am struggling with how to bind controls to a class that is built up using composition of other objects. For example, If I have class Comp that is built up of two separate classes (note various elements left out for clarity): class One { int _first; int _second; } class Two { string...