CheckBox in DataGrid Header to Check or UnCheck CheckBoxes in all DataGrid Items
We have an MVVM application with what should be a simple requirement. You've all seen this in the wild. You check the "header" checkbox and all "detail" checkboxes become checked. Ditto for...
View ArticleWait event triggered problem
I have a window in which I need to create multiple BarGraphs from different datasets. For each dataset I create a StackPanel with a Busyindicator at startup, while the data is loaded. Each one loads in...
View ArticleMake grid as a style or template
Hi everyone,I'm making an application which has 3 windows with the same main grid definition<Grid><Grid.RowDefinitions><RowDefinition Height="Auto" /><RowDefinition Height="Auto"...
View ArticleHow to get the xmal of background of DataGridHeaderBorder
Hi all,I believe that the style of background of DataGridHeaderBorder is like <LinearGradientBrush.....I want to modify the style of background of DataGridHeaderBorder. But I cannot get the whole...
View ArticleStoryboard with RotateTransform
Hi everyone,I'm now making a small application which displays a Mini Clock to window screen when windows starts. Everything has worked fine .But currently, I want to implement an rotation animation for...
View ArticleWPF WebBrowser Document Text Selection Change event.
Hi,I have a requirement to Enable/Disable a Button based on Selecting/UnSelecting respectively of WebBrowser Document text. I am using 'HTMLDocumentEvents_onselectionchangeEventHandler' to achieve this...
View Articlehow to calculate coordinate values of a control in runtime in wpf in xaml
Hi Iam new to wpf iam developing a appliacation.I was stucked at one point.I had a control which can drag and drop and can make resizable in the form now when i dragged the control from the original...
View ArticleCannot press button while using moving borderless window
Hi everyone,I'm currently using this code :http://stackoverflow.com/questions/1592876/make-a-borderless-form-movableThis code helps me to make my borderless window to be movable . But I cannot press my...
View ArticleC# PreviewKeyDown Event - Allow Special Characters
Hello,I have a textbox and a PreviewKeyDown Event in which i want to allow Special Characters,A-Z and 0-9 only. Other keys such as keyboard modifiers, F1-F12, Esc,Tab, etc are not allowed. private void...
View ArticleParsing merged Xaml files
Hi,I'm trying to parse one Xaml file, which has merged dictionaries property, which references a couple of other Xaml files.So the file I want to parse<ResourceDictionary...
View ArticleHow does a listview works?
Hello,I want to work with a listview, and in other projects it's all right, but in this project there is no more than one, blanc line in the listview...
View ArticleWPF AccessKeyManager annoying sound
I'm adding now some shortcut keys to my wpf application. I have one ComboBox and I want each item to be able to have a shortcut key. Now, I do this with custom class deriving from ComboBoxItem and...
View ArticleAccess Resource from dynamically built ResourceDictionary in code behind!
Hi Everyone,I have built a ResourceDictionary in code:like thisIt works fine for binding in xaml etc, but if I try to access the resource in code like:string xyz =...
View ArticleWhy doesn't this databind???
I have the following very simple XAML:<Window x:Class="WpfApplication7.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"...
View Articlecomment / uncomment menu button in VS2012
Hi All.I just install VS2012 and I didn't see comment/uncomment button in menu bar. Is it possible to install them in menu bar?Thanks.
View ArticleWhy doesn't this databind???
I have the following very simple XAML:<Window x:Class="WpfApplication7.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"...
View ArticlePass events from an overlying Canvas to an underlying Canvas's children?
Hello all, I have the following scenario:A Window consisting of a Grid. Filling the Grid I have an InkCanvas underlying a regular Canvas on top of it (in the ZIndex sense). At run time I am adding...
View ArticleMake button cant be pressed at its transparent space
Hi everyone, I'm now trying to make an ToggleSwitch for WPF Application . Here is my code :<ToggleButton Name="btnTest" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Width="60"...
View Article.Net 4.5.2 breaks Aero interop
Hi,I have a simple of example illustrating that a regression was introduced in .Net 4.5.2. This works in .Net 4.5.1. For the sake of discussion, I also tried the 4.5.3/4.6 preview and its still...
View ArticleButton mouseover event hides the button's background Image
hi,I used an image for a button's background in WPF.I also want the button to glow when mouse is over it. I used triggers to do this.But when the mouse is over the button, the image is hidden and the...
View Article