WPF XAML Style Gallery
WPFThemes is a good resource for WPF themes and styles. As of now they do not cover many controls like Window Popup Datagrid etc.. Is there any other resource to help developer in styling a WPF application? ...
WPFThemes is a good resource for WPF themes and styles. As of now they do not cover many controls like Window Popup Datagrid etc.. Is there any other resource to help developer in styling a WPF application? ...
The following example successfully shows the property Title in the ListBox, but is there a way to show method GetTitle() so that I don't have to turn all my methods into properties? e.g. neither of these seem to work: <TextBlock Text="{Binding GetTitle}"/> <TextBlock Text="{Binding GetTitle()}"/> XAML: <Window x:Class="TestBindMetho...
In the following example, how can I get: the button to be "disabled-grey" the message to say "working..." while the work is being done, not after the work is done? XAML: <Window x:Class="TestIsEnabled8938.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/...
I have read this question. My question is whether WPF Unleashed is still the most recommended (since the question is over a year old)? Also, what do you think about WPF Recipes or Pro WPF? ...
Hello, everybody! I've run into a problem with data-binding inside control template while the property is initialized inside the constructor. Here is the show-case (you can also download sample solution): CustomControl1.cs public class CustomControl1 : ContentControl { static CustomControl1() { DefaultStyleKeyProperty...
The following example fills the ItemsControl with a List of BackupDirectories which I get from code. How can I change this so that I get the same information from the app.config file? XAML: <Window x:Class="TestReadMultipler2343.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas....
I want to make a menu control like the Windows Start menu. Can anyone give me ideas? ...
I have been working through Josh Smith's article on MVVM at http://msdn.microsoft.com/en-us/magazine/dd419663.aspx. Each section makes sense to me but I am having a hard time putting it all together as a coherent unit mentally. I have 2 questions that would help a ton. If I were to build the sample ap, what would be the logical order t...
Is there any way to bind a value to a textblock that is obtained from a method. For example, I pass my Person object into the HierarchicalDataTemplate, from there I can access its Weight property. Now lets say I want to get the weight in mars, I would call the InMars method that takes a parameter of int EarthWeight . Now earthweight is g...
Hello I am having trouble firing a validation rule in the context laid out below. From a visual standpoint I have a DataGrid with columns for every day of the week where a user can enter the number of hours worked on a given activity. There are also labels to display the total hours entered for each day, as well as for the week. It is ...
I have a WPF UserControl nested inside an ElementHost in a WinForm UserControl intended for use inside an Excel Custom Task Pane (CTP). WinForms isn't displaying a border present on my WPF UserControl. Why is this? WPF UserControl: <UserControl x:Class="InventoryCreator.MyWPFControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/...
Is there any way to have a class library with the same name as an WPF application? I just hit an IOException "Cannot locate resource 'blah.xaml'." after renaming a class library to match the WPF application. i.e. only the file name extension is different. e.g. MyApp.exe and MyApp.dll. If I rename to MyApp.Library.dll all is well. Top...
I have a desktop WPF application that loads it's resources from the web, this allows us to do different things like...add a christmas theme later on down the road around the holidays if we want. To load the Theme, I would just replace the Applications current resource dictionary with our own resource dictionary like so. Resourc...
Hi all, I am using the standard WPF theme Aero.NormalColor.xaml. And it works very well. However for the whole application, I would like to override the Foreground color of textboxes to red. My first try is that <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictio...
Is there a way to bind WPF calendar to 2 date fields as a date-range (i.e. start date and end-date) with xaml binding? ...
I am looking for any best practices or guidelines regarding animation in WPF. Especially information regarding performance considerations. ...
Quick question: I have a very busy form going on that I have developed for information about say book records. I want to design an 'add new book form' that is essentially a pop up to input the info. What is the best way to do this? Use a Usercontrol that is called on a button click or menu click? an entire new form? Have seen this type...
I am defining a StackPanel containing multiple Buttons in my xaml file. I'd like to be able to remove buttons based on some events, and have the "gap" where that button was be filled by having the following Buttons move up on the screen. I used: buttonName.Visibility = System.Windows.Visibility.Hidden; but that just hides the button an...
If I have a custom class called "VideoMedia" (which contains a standard Uri for the video path) and I have a DatatTemplate that I use to create a Video Player like control. <DataTemplate DataType="{x:Type v:VideoMedia}"> <MyLib:VideoPlayer/> </DataTemplate> (The VideoPlayer class extends UserControl and simply controls the playbac...
Hi, I'm having a problem when drawing a 3D line on MouseMove event in WPF. The drawing seemed to be trailing (like mouse cursor-trailing effect)/smeared in Viewport3D, and it doesnt 'clean' the previous drawing (from previous mouse move) I'm using ScreenSpaceLines3D from CodePlex to draw the 3D line on top of a 3D cube. I want it to b...