How can you have keyboard shortcuts on the NotifyIconWPF ContextMenu (e.g....
Hi,I have created NotifyIcon (SystemTrayIcon) for wpf using Windows Form NotifyIcon component.I have made many failed attempts to use keyboard shortcuts on the context menu of NotifyIcon...
View ArticleDataGrid Validation, IEditableObject CancelEdit() weird behavior.
Hi guys, I've implemented a WPF datagrid and I'm trying to revert the current cell changes when there is already a row containing the cell value. On CellEditEnding, i verify that there are no cell in...
View ArticleAutoCompleteTextBox in WPF C#
I've seen a number of suggestions for AutoComplete in WPF on a TextBox. However, they are all years old by now and many are expired without working websites. Basically, I'm going to want to bind the...
View ArticleWPF - ListView with CheckBox in GridView - Checked event
I use .NET Framework 4.5, WPF.I have a ListView with a GridView. It contains 3 columns:Cb A CheckBox columnPersonID An int columnPersonName A string ColumnI would like to...
View ArticleConditional Styling in WPF
I ran through one issue, need to apply conditional styling on Menu Item, here is a bit from my Code-Snippet: <grid grid.column="0" grid.columnspan="2" grid.row="1" margin="0,10,0,0"><menu...
View ArticleWPF DatePicker SelectedDate Binding Format
Hi,I am using WPF DatePicker Control which is bound to DateTime field. Now I used stringformat property of binding like below to specify dateformat : <DatePicker SelectedDate="{Binding Path =...
View ArticleHow to resolve the Method binding issue with that of delegate type?
I am trying to create my own ContextMenuOpening event (Event ContextMenuOpening name should be same as FrameworkElement class) when I tried to trigger that event from Xaml page its throwing “Cannot...
View ArticleIs it possible to add new control to Prism application without recompilation?
I have just one module in Prism application. Let this module have name "ModuleA" and application name is "CoolAppl". This application is cool and it works really okay in production. Once some guy would...
View ArticleProblem loading a dll
I have an application needing IALoader.dll to make ink analysis. I use IACore.dll, IAWinFX.dll, Microsoft.Ink.Analysis.dll. This application is lunched automatically. I have IALoader.dll added as...
View ArticlePresentationCFFRasterizer could not be load (Upgrade from .Net 3.5 to 4.5 )
Severity Code Description Project File Line Suppression State Error Could not load file or assembly 'PresentationCFFRasterizer, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one...
View ArticleList view
Hi, Is there an example to fill one List view with one table command, on .xaml page?Many Thanks & Best Regards, Hua Min
View ArticleData repeater Height
I need to have data repeater whose height is based on number of times template is repeated.Please provide with solution
View ArticleBorderClipConverter affect Border line
How to correct the border clip convert not affect the border line ? MainWindow.xaml<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"...
View ArticleIssue in ListBox SelectedItem update
HiI am using Entity Framework in a project where ListBox is bound with ObservableCollection<tblYear> and SelectedItem is also bound with the property type of same Entity Object...
View ArticleChange the overriden default style's FontSize setter at runtime
Hello, I have overriden some default styles in my Styles.xaml and then I added it to App.xaml. This is a piece of Styles.xaml file showing TextBlock style:<System:Double...
View ArticleHow to handle Security Exception
HiI am using some mechanism to manage the UserControl/views from WPF main window:class Switcher { public static MainWindow pageSwitcher; public static void Switch(UserControl newPage) {...
View ArticleCustom WPF Datepicker
Hello,I am having certain requirements due to which i am thinking on creating a Custom DatePicker control. Below are some high level requirements:1. The UpdateSourceTrigger of the property binded to...
View Article[WPF] How to access a code behind property of ResourceDictionary in another...
Situation: There is ResourceDictionary Class1.xaml backed by code behindClass Class1.cs using x:Class. There is Property MyHeight inside Class Class1.cs.Goal: To access Property MyHeight in...
View ArticleUnable to bind to control within stackpanel
This is difficult to explain but I'll try my best. I have a grid with a number of stackpanels (15 total). Each stackpanel has a variety of controls such as comboboxes, textboxes, and checkboxes. All...
View ArticleCompare the 2 passwords, MVVM Entity Framework.
Hey Andy, how can I cause a validation error if the re-entered password doesn't match the first password? Within my User Model in my database I don't have a property for the re-entered password, so I...
View Article