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

Hosting Win32 MDI Application inside WPF Browser Application

I have a complex MDI Parent WinForms Application which needs to be hosted inside a WPF Browser Application.Note: I have no neccesity to interact b/w host and source(Winforms and WPF). Just need to host...

View Article


Keeping track of focus

I have a control with multiple input controls.  I want to keep track of the keyboard focus such that the display in the control changes depending on whether any of the contained controls has the...

View Article


Property that is bond to menu item it does not change value in menu item in wpf

 View Model i  have binded property to menu item but text in menu item does not changed ,although Time is changed each tick   timer = new DispatcherTimer();            timer.Interval = new TimeSpan(0,...

View Article

Image is not showing in runtime.

Hii,I am working on wpf app. and i am using image control and using below XAML code<Image  Source=".../Icon/Login.ico" Grid.RowSpan="3"/>its showing the image but when i sun the program its not...

View Article

WPF App notification when Windows theme changes

Hi,I have a WPF application with C# for the code behind. For the best user experience, it is recommended for the end user to close and reopen the app when there is a theme change, normal (Aero theme...

View Article


await Task.Yield() not returning to controller, UI thread blocking (WPF)

This function is supposed to do an animation asynchronously (without needing to call Dispatcher.Invoke() on everything), then exits the function when the animation is complete. public static async Task...

View Article

How to get back to default value when textbox has been lost focus

How to implement the textbox will get back to the default value when textbox in lost focus ?E.gAny changes that has been done by user on textbox A, if he/she does not press the enter key and lost focus...

View Article

Large XPS documents load very slowly in DocumentViewer

I have converted some large PDF files to XPS files by printing them from Adobe Acrobat to the Microsoft XPS Document Writer printer.  I have noticed that the XPS files are 3 to 4 times as large as the...

View Article


WPF Apps stop responding to touches while mouse continues to work

WPF applications stop responding to the touchscreen (we are using simple button click events) after some period of time (not consistent) but WILL respond to mouse clicks and the non-WPF applications...

View Article


Using HierarchicalDataTemplate's DataType to handle Generic XML Data (via...

Goal: create UI to display generic XML in a treeView using HierarchicalDataTemplate's dataType parameter keying off different type of XmlNodes (such as XmlElement and XmlAttribute)...

View Article

Loading New Windows

Using WPF and C# -I am writing a program which has two windows - Window1 (login window) and Window2 (main part of the program).  When the program starts Window1 opens normally and prompts user for...

View Article

Image may be NSFW.
Clik here to view.

Please help(ComboBox into datagrid insert)

<StackPanel><Grid DataContext="{Binding ElementName=CcItems}"><Label Content="İşlem Seç :" Height="25" Canvas.Left="10" Canvas.Top="35" Width="68" Margin="10,35,268,15"...

View Article

Image may be NSFW.
Clik here to view.

Calling All Wise Men! WPF Gurus Needed! Apply Within! No One Turned Away!

Calling all wise men!Join us and rejoice! The time for giving is upon us again!A time for family (community) and gifts of knowledge!Why not wrap up a little something extra special this year.After all,...

View Article


How to bind a label (fire the binding) to a property in MVVM?

I have a listbox which gets populated with some items on project startup.  The listbox items are based on a ContactModel object (FirstName, LastName, FullName).  The listbox SelectedItem property has...

View Article

Image may be NSFW.
Clik here to view.

Spellcheck window color settings when custom styles in Application.xaml is used

Hi there. I am developing a WPF application in VB.net. I have created custom styles which are a  mostly a black/grey monochrome theme. The background is black and control foregrounds are mostly gray in...

View Article


Please help me do this simple animation

Hello,I'm new to WPF animation (although an old hand at WPF in general), and am getting very confused, as there seem to be a lot of different ways of doing things, and a lot of poor explanations of how...

View Article

How to use attached behaviour for textbox lost focus set back default value

Same case as this previous post link but different implementation. Because I have around 10 textboxes, and I think is it not good to create a lots of lost focus command in view model, plus this reset...

View Article


I need to get a line of VB.Net converted to WPF in C#

Here is the line of code in VB CType(frm.Controls("Label" & begin + 1), Label).Text = DescLine(seclist(begin))Below for loop, assinging string to labels in a form.For begin As Integer = 0 To...

View Article

Binding CustomControl's Property to its inner Context Menu

Hii,I've my custom Control in which, i'm defining a static contextMenu to its one of the template part control. For e.g. Look at the code below.<ControlTemplate...

View Article

Measuring performance for controls in wpf

I want to analyze my own controls in my wpf app. what the correct way to do that? i want to measuring from the control created level till rendering on the screen, which events can i use for start the...

View Article
Browsing all 18858 articles
Browse latest View live


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