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

WPF .NET Core 3.0 Settings

The following code from WPF application in .NET 4.8 works just fine, <Window x:Class="Vtsr.MainWindow"        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"...

View Article


WPF MVVM Mouse Hover Index

I need WPF MVVM Mouse Hover Index.I Tried below code, Hover True or False is Working, But I Need the Index of the Mouse Hover in the ListView.using System.Windows; using System.Windows.Input; namespace...

View Article


List TreeViewItem bring forward/bring backward/bring front /bring to back

I try to shift TreeViewItem itemsLike belowtreeViewItem.Items.Add(workDaysTreeViewItem[0]); treeViewItem.Items.Add(workDaysTreeViewItem[1]);...

View Article

Creating a collection of properties

Hello, I'm looking for advice, I have about fifty properties (brush) binder on rectangles. How can I make a collection of these properties? Thank you for your help Sincerely private Brush _rec1; public...

View Article

Bind WPF Auto Complete TextBox with DataTable C#

Developing application in WPF, i want to Bind Auto Complete Textbox with dataTable. I have table in database, retrive data from Database and stored in DataTable. After that bind that datatable with...

View Article


WPF - What's goodness for using .NET Core, instead of .NET Framework?

Just wondering if there is any goodness for using .NET Core, instead of .NET Framework for application such as WPF?  

View Article

What is the correct method for inverting a...

When using DataVisualization.Charting what is the correct method for inverting a lineseries graph so that 0 is at top. I am able to transform the chart and the line series appear correct but the legend...

View Article

WPF- String to date conversion issue when changing system format.

I created WPF application.. And entering a date by calendar..... Bind StartDate (string data type) with calendar. It was working fine until  system format was -mm/dd/yyyy.But when i changes date format...

View Article


How to scale Element without Line Thickness? (help)

I created custom grid as Canvas, where I can draw rectangles which have Border with custom color. The grid can be resizable in X Y independently. Everything is ok until I scale Canvas. I use Transform...

View Article


Image may be NSFW.
Clik here to view.

Animated ListBox Item when scrolling in WPF

I need advice. How can I create an animation of items in the ListBox with scrolling, see the picture. I need to achieve the same animation when using WrapPanel. I will be glad for any advice. animated...

View Article

How to clear all textBoxes in one function?

Hi all,I have more Grids (for example: 15-20) so I know only this way how to clear/enable all textBoxes ... and other type (chckBox, radioButton, ...)pubic void clearAll(bool b) { // for dataGrid1...

View Article

Image may be NSFW.
Clik here to view.

PropertyGrid choose items make chang item property

I try to do something on propertyGrid like below imageHere is what I want to do.1.I try select ItemType from A to C Then it will trigger event set Control ItemMode Second_Bx Second_By three unable or...

View Article

Failed to print a visual to XPS Printer from other thread than the main UI...

Hi,I'm working on the print feature of our product and get an odd problem.Here is it:Xaml (just a simple window with two...

View Article


Image may be NSFW.
Clik here to view.

WPF PropertyGrid load image path

I try to let PropertyGrid load image path like below imageI want to load image path into Picture let it show like Desktop\01.jpgBelow is my project linkCan help me fix it...

View Article

Getting height and width from a System.Windows.Media.Visual

Hello. I have a function where I'm passing a Visual and I'm wanting to get the height and width of that Visual. Is it possible to do this?Thanks!

View Article


Change images within one image box on a timer?

Hi everybody.I am in desperate need of some help.  I am self learning programming (crazy, I know).  I am working on my first project which is an application for kids with special needs.  I am stuck on...

View Article

Image may be NSFW.
Clik here to view.

#TFS 2018 #Team Foundation Server #DevOps #Role Access User Role Management...

Dear All,Your quick help will be highly appreciated...I have created a project in TFS 2018, In this project we have multiple folders as every folder is related a to a component (Each component will...

View Article


Trigger Binding to Child Control Not Working

I have this on a WPF Window<local:TestControl><local:TestHost /></local:MediaPlayer> Classes defined like thispublic class TestControl : ContentControl { static TestControl() {...

View Article

Image may be NSFW.
Clik here to view.

Rotate item on Canvas

I try to rotate image(or ContentControl) on Canvas like below imageI try to use MouseDown event to update Rotate Center like below codeelse if (e.RightButton == MouseButtonState.Pressed) { ////Set...

View Article

ASCII table

Hey, I have a command that I have to make with the ASCII table. The values that I have to give must be unique and certain characters must change. I just don't know how to get started.

View Article
Browsing all 18858 articles
Browse latest View live


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