WPF Web Browser Script Error
Just I want to use SyntaxHighlighter with WebBrowser in WPF.But It gives me error. public partial class Window1 : Window { public Window1() { InitializeComponent(); wbMain.Navigated += new...
View ArticleThis BackgroundWorker is currently busy and cannot run multiple tasks...
I get this error if I click a button that starts the backgroundworker multiple times inside for loop.{"This BackgroundWorker is currently busy and cannot run multiple tasks concurrently."} How do I...
View ArticleButton in title bar
Does anyone know how to add a button in the title bar of a WPF Window?
View ArticleCenter Menu Items
Hi,I have a Menu control in my window and I am adding Menu Items to the Menu control. I am trying to figure out how to center those Menu Items within my Menu. Here is a screenshot:My Menu Items are 16...
View ArticleIn .NET Framework 4.6.2 the FormattedText() is Obsoleted, There is an build...
When I try to build the WPF project with .net framework 4.6.2, I got an error, Because the FormattedText() is Obsoleted as below: [Obsolete("Use the PixelsPerDip override", false)] public...
View ArticleFocus textbox after async call
Hi, I have a strange problem. After using an asynchronous call, I can not do focus to a particular control (textbox in this example). If I comment the lines where asynchronous calls, the focus works...
View ArticleCode Management
Hi,I am still new to WPF and I am trying to get the hang of control templates, styles, triggers, etc. I am also trying to manage my code so things don't get messy and everything is maintainable in...
View ArticleWPF binding leak
I have been using WPF for some time, but I have not heard before now that there can be binding leaks in WPF. A few days ago some guy said that the following XAML "produces two binding...
View ArticleC# BitmapImage BitmapCacheOption issues when saving image
I'm running into a strange problem when loading BitmapImages from a URI, passing them through a CroppedBitmap and encoding / saving to an image in memory via a MemoryStream.Code...
View ArticlePeculiar behaviour when using TextBlock.TextEffects
I am facing an peculiar issue when I use TextBlock.TextEffects. I have three TextBlock control with Text property as follows, 1. ti 2. fi 3. zi I apply the following TextEffects to all three...
View ArticleDatagrid doesn't delete row on delete key press
I made a WPF application and had a datagrid bound to a List<Table>. I displayed the Name property of the table for each row. I used the CanUserDeleteRows option. When I pressed the delete key,...
View ArticleWPF and Windows 10 crash
Hello, We have a WPF app that need to stay opened for a longer period of time (overnight) with different users that log on and off to the respective PC.The WPF app uses Single Instance technique from...
View ArticleHow Do You Delete a Certificate Using CertMgr.exe CertMgr ?
I'm developing a Full Trust WPF Web App to be distributed on a corporate network.I have created certificates, and signed the app.I need the certificates to be automatically installed (I've created...
View ArticleDataGrid
I want do some code when i click buttom delete in DataGrid preview the row delete. When i click delete row delete but event KeyDown not see this eventWhat event responded for this action??
View ArticleCannot create an istance of ChildView error
In my parent view, I embed child views. One of child view is called "SelectionView". So my xaml code:<StackPanel Orientation="Vertical" HorizontalAlignment="Left" ><localViews:SelectionView...
View ArticleHow to develop MVVM scratch apllication
hi to all,Please tell me , How to implement or scratch develop for MVVM application . give me any Demo .Thnaks,Aniruddha acharyaA.Acharya Feedback to us Develop and promote your apps in Windows Store...
View ArticleAny buddy tell me what difference between ICommand & Relay Coomand With example
Hi to all,Any buddy tell me what difference between ICommand &Relay Coomand With example Impliment in MVVM Project.and Why we use this type of command in WPFThanks,aniruddha acharyaA.Acharya...
View ArticleBind reference to object
Hello everybody,In a C#/WPF application, I'd like to know if it's possible to pass the reference to an object's property asCommandParameter. Usually, I do something like this to send parameter to a...
View ArticleMouse.DirectlyOver returns the wrong UIElement in WPF
Hi All,While i try to mouse over on the "Label" element , Mouse.DirectlyOver it returns the "TextBlock" as a result. Why it happen like this? private void Dynamic_Design_PreviewMouseMove(object...
View Articleusing a wpf window in a class library project
Is it possible to use window (namespace System.Windows) in a library project?I've tried to use some wpf controls in a library project, but the only control I can add is the UserControl.xaml (and I need...
View Article