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

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


How to specify time Spans for Message Trace in wpf Application

I had been working on this report on Message trace in Office365. I would want to give filters for Startdate and enddate from my WPF(C#) application. How can i do that.i tried the following. When i...

View Article

running a XBAP application

Good day, i get this exception while running my XBAP applicationRequest for the permission of type 'System.Net.DnsPermission, System. Version=4.0.0.0, Culture=neutral,...

View Article

Is this breaking the MVVM pattern?

We've been having discussions lately as to what is acceptable to put in the code behind of a view, and what should go in the view model. I seem to be a lone voice, and wanted to hear what others have...

View Article


Right Click Treeview Item

Helloi have a treeview in my WPF / c#  application.what happen?without selecting a  treeviewItem,  the right click is enabled and i  got error each time. but if i've selected treeviewItem fisrt before...

View Article

Changing brightness of window (Form)

Hi,   I have a WPF application that have multiple forms/user controls. I would like reduce brightness of active form if form is ideal (No movement on the form) for 90 seconds and become dark gradually...

View Article

Can't build a wpf project on a FIPS enabled system

System is Windows 7 Ultimate x64 with Visual Studio Pro 2012 RCThe system has FIPS enabled in the Local Security Policy.I create a new WPF project, try to build it and get the following errors:Error 1...

View Article


How To Load 3D models in wpf c# at runtime

hi all,Does anyone please help me on how to dynamically load any (.obj, .fbx) 3D model in wpf c# at runtimeRegrads

View Article


ManipulationBoundaryFeedback does not work in webbrowser in wpf

I am using ManipulationBoundaryFeedback to avoid the window from being dragged on touch device , this works fine will all the other controls except when the webbrowser. Any work Around for this? Thank...

View Article

How can I run my WPF application on Linux?

Hi everyone, We have built a medium size application in WPF application. Now we need to run that application in Linux. Is there anyway to run this application on Linux with minimum changes?Md. Nazmul...

View Article

Create "balloon arrow" in popup control

Hi, how can I create an balloon arrow in a popup control?This is my code:<!--Settings popup--><Popup PlacementTarget="{Binding ElementName=settingsButton}" StaysOpen="False" Placement="Top"...

View Article

Combobox Binding

Hi,Today i'm trying to bind Combobox items to a navigation property (defined with EF).And i'm try to update a Texblock on item selected, but this item isn't really updated by the selection.So my...

View Article


Cannot update to database, shows "An unhandled exception of type...

Im doing a add case form using WPF but i can't seem to get it right. Below is a sample of my code, i cannot seem to get it to update my database. column name in my database is IncRpNo. I dont see why...

View Article

Get UIElement form UITestControl or AutomationElement

Is there any possibility to get UIElement from UITestControl or AutomationElement?I tried to get it using HwndSource class but with no luck.WpfText uiTestTextBlock = ...; var textBlock =...

View Article


Image may be NSFW.
Clik here to view.

DrawingContext.DrawImage not scaling down image properly depending on rect...

Hi,I am trying to make a tile of images using RenderTargetBitmap. But the tile towards the right and bottom side is not drawing properly. See below the code used and the image obtained . Any idea what...

View Article

Know when UIElement is shown on screen

Hi there,So I have a wrap panel with a scrollbar and I'm putting a bunch of controls in them.  I would like to perform actions when the controls become visible (are scrolled into view), either just for...

View Article


Image may be NSFW.
Clik here to view.

1251 codepage symbols showing in WPF controls.

Hi all!I have a problem with showing some 1251-codepage symbols in WPF controls, TextBox for example.I fill an array of bytes and convert it into a string using Encoding.GetString method:public partial...

View Article

x:Shared showing different behaviors

Below code shows two images correctly.<Window x:Class="Le1_41.ControlSharingWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"...

View Article

Multibinding and Validatios Rules

I have some doubts / questions regarding MultiBinding 1) What is the best way to use MultiBinding? Using ViewModel property directly or use the controls?public string Cantidad { get { return _cantidad;...

View Article
Browsing all 18858 articles
Browse latest View live


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