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

Trying to populate list box with value from Menu Control

Hello, I have a Menu<Menu x:Name="buildingMenu" Margin="0,15,0,0" HorizontalAlignment="Left" Height="20" Width="200" ItemsSource="{Binding MenuItems}" ><Menu.ItemContainerStyle><Style...

View Article


How to set focus to XBAP

Greetings, I'm developing a WPF(XBAP) application.  There is a requirement that has me a bit stumped.   Basically the user experience is if they select the browser window (after minimizing it, working...

View Article


Wrappanel Items appear blurry (shake)

I have a wrap panel that contains ~200 items. All appear fineSome of the Items are "Folders" and if clicked the child items are dynamically expanded using a storyboard to adjust the height over 200 m/s...

View Article

Visual State Group Access, visual tree level?

Say you jump into Blend and create a new control, and give it a new visual state group and a couple visual states.When using VisualStateManager.GoToState(), the signature requires you to pass the...

View Article

WPF Validation

Hi I encountering an issue with WPF and Validation We are using Entity Framework and have an abstract entity c_Core this core is used for a common fields across numerous clients. This is the base...

View Article


Child Window Splash Screen Close

I want to be able to do the following in MVVM:App Startup Opens the MainWindow which in turn opens a child modal window. The child Window will load some setting and setup database connections and...

View Article

WPF taskbar notifier not working on some other system.

I have implement wpf taskbar notifier for showing notification popup.I have test it in my system and one of my colleague system it works fine.But it is not working some other window 10 PC.

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


What is the most efficient/fastest way to draw rectangles on the screen in...

  The following code draws rectangles in 2D grid. Everything is working fine except it is really slow when it has to draw more than 50,000 squares. I know it sounds like a lot of squares but I have the...

View Article


Tooltip on a ListView/GridView row

I am using a ListView with its View set to GridView so I can show columns with headers. How do I databind the tooltip for each row of the ListView/GridView in C#? I want the tooltip to be for the...

View Article

XBAP application RenderTargetBitmap memory leak and running in 64 bit process

Hi,We have a web based (XBAP) Imaging application used in healthcare industry which is used for diagnostics, image capture and video editing (gives a overview of images, videos). Currently we are...

View Article

UWP InkCanvas to WPF InkCanvas

Does anyone knows how to convert UWP InkCanvas contents to WPF InkCanvas contents?I am saving the contents from UWP InkCanvas into a byte array and then saving this byte array into database....

View Article

Touch Manipulation events for Zoom-In, Zoom-out and rotate in InkCanvas WPF

Hi, I'm developing the application in WPF InkCanvas. I want to select the stroke from InkCanvas and on touch it can be zoomIn or zoomOut also can rotate.

View Article


ListView with Dictionary

Hello I'm looking for a way to use listview with Dictionary.public class ServiceDataObject : IEquatable<ServiceDataObject> { public int ServiceID { get; set; } public string ServiceName { get;...

View Article

WPF application crash with a call to Environment.FailFast

Hi,My WPF application crashed and I found the following information from the event log.Description: The application requested process termination through System.Environment.FailFast(string message)....

View Article


How to clone or copy a Viewmodel

I have a view model and it contains other view models. I need to copy or clone the view model how can <g class="gr_ gr_184 gr-alert gr_tiny gr_spell gr_inline_cards gr_disable_anim_appear...

View Article

object does not contain a defination for Show and no extension method Show...

Hi guys. It is my first c# program where I'm trying to build a login app. I am facing the following error on Show, Add and UserName. e.g on the line "MessageBox.Show("Invalid UserName"); How do I...

View Article


wpf listbox binding XElement not updated on add XElement

I am a beginner in C# / xaml and I do not understand everything in the binding, among others if it is necessary to notify or not to refresh the view. In my code I use XML and XElement to store data....

View Article

data grid row button is not fire on single click.

When I fill the details and bind those in data grid, then I have to fire the click event on edit button click in the row of data grid. Unable to do this in single click, but it fires on the second...

View Article

[WPF][C#] Window not maximized when running on Administrator?

I have WPF application with a child window (Test) and it should be run on Administrator mode. So run your Visual Studio as administrator. And the child window will be triggered using the below...

View Article
Browsing all 18858 articles
Browse latest View live


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