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

How can I get Yes/No from a MessageBox in WPF?

Hi,I have a MessageBox in WPF with C# an I will now ask wich Button was clicked... MessageBox.Show("Close Application?", "Question", MessageBoxButton.YesNo, MessageBoxImage.Warning); How can I get...

View Article


WPF client server?

Hello all, I'm not sure of this really qualifies as a WPF application but here goes:A group here at work has created a number-crunching command-line application in C/C++ with compiled versions that run...

View Article


Detecting Sleep State on Tablet PC

When WPF application runs on windows 10 tablet pc, do we have any option to detect its shift to sleep state? PowerModeChanged event can be handled on desktop pc if it goes to sleep, but that cannot be...

View Article

Grid cellleave event is not firing sometimes

Hi i am new to WPF ..i need to do some validations on grid ..so i Wrote cell leave event in grid .but the problem is ..if i edit the cell in grid and immediatly i clicked on other control like button...

View Article

Image may be NSFW.
Clik here to view.

Menu Items Not Showing

Hi,I am having an issue with a Style that I am creating. I am making a Style for a Menu and MenuItems. I have two Resource Dictionaries one for my SolidColorBrushes and another for my Styles.For some...

View Article


How to Indent TabStrip of a TabControl

HiI have a Window with a Grid containing some Labels and TextBoxes and then a TabControl. In order to improve the Layout I need to "move" the TabStrip from the top left corner to the right.I know that...

View Article

WPF Animations : How do I create a line animation where a line revolves...

It is kind of like the regular loading circle, but instead of the circle, it is a rectangle moving around the button which was clicked?I did some basic animations in WPF where I set From and To values...

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


Data Binding to a data type that inherits from TreeViewItem

I have a TreeView that is binded to a data type called "File". Everything works fine until I make the "File" data type inherit from "TreeViewItem".Working example:Data Type:public class File { public...

View Article


Sub Menu Items Not Showing

Hi,I am having some problems with my sub MenuItem's not showing. I have the Header showing for each MenuItem that is nested within a Menu. But when I nest MenuItem within a MenuItem tag , the sub...

View Article

Windows 10 WPF

I’ve got a C# WPF application which has a menu that uses a resource to style it.The problem only occurs in Windows 10 where a disabled menu item is not grayed out.  In Windows 7 it works fine.Does...

View Article

WPF app crashes when user signs off from Windows

Hi, My WPF application crashes if while it's running, the user signs off from Windows. It also crashes when a laptop is connected to a projector and we unplug the display cable. This happens in various...

View Article

WPF TreeListView and ListBox objects listing question

Hello Everyone :)so, I am creating a a little order screen as practice, and thinking how to go about doing a tree list view, once at the end of the child, such as sales, if the user clicks sales, in...

View Article


WPF listbox is showing up blank or all white?

Hello,this is an addition to my last question, but now that i got the right direction, i am having issues and I know its something simple, sadly cant find what am I doing wrong :(so when someone clicks...

View Article

Dynamically creating a TreeView or bindable Source

I have a list of strings, a general formatting of:"Header_subheader1_subheader2_item" The problem is the actual string can vary in the amount of subheaders it contains.  It might not have any, it may...

View Article


Sound Command that can intercept the Thread

Good Day all i am working on a Kinect Sensor Program, but i think this question can best be answered by the WPF forum. In my Kinect Project , the User can use Kinect Gestures  or Voice Commands. THe...

View Article

how can we achieve functionality which listed bellow with out using dataTrigger

Hi,here is the problemThere are number coming 1 ,2,3, and -1 how to show 1 for green and 2 red , 3 yellow and -1 exception except data trigger is there any other way?Thanks,Bhagya

View Article


HwndHost - overritten functions like WndProc, TabIntoCore etc. get no invoke

We try to host a Delphi Window into a Wpf-Application, there are some small problems.We are not able to set the focus to the tab which contains the win32-Application. We tried to override the WndProc...

View Article

Get maximum itemid from nested observablecollection

HiI have nested observablecollection. It contains n levels.How to get maximum id (integer type) from this nested observablecollection, as i have to add new item at the selected node.In order to add new...

View Article

Type universe cannot resolve assembly: System.Runtime

To All,I've a wpf project that compile correctly no errors in vs13, but when I open in vs2015 the xaml designer compliantsType universe cannot resolve assembly: System.Runtime, Version=4.0.0.0,...

View Article
Browsing all 18858 articles
Browse latest View live


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