Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Browsing all 18858 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article


This 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 Article


Button in title bar

Does anyone know how to add a button in the title bar of a WPF Window?

View Article

Image may be NSFW.
Clik here to view.

Center 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 Article

In .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 Article


Focus 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 Article

Code 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 Article

WPF 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 Article


C# 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 Article


Peculiar 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 Article

Datagrid 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 Article

WPF 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 Article

How 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 Article


DataGrid

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 Article

Cannot 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 Article


How 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 Article

Any 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 Article


Bind 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 Article

Mouse.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 Article

using 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
Browsing all 18858 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>