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

WPF if else listbox

I have a project for my internship and i need to make something.i have 2 listboxes listbox 1 goes to a folder1 and picks up files from there and shows it on the listbox.listbox2 does exactly the same...

View Article


MVVM. How to show Photo Printing Wizard when printing multiple pictures

hi,Im trying to write a method to print all pictures stored in a directory. I found several ways to do this, but all of them send the output directly to the printer. What I want, is the Photo Printing...

View Article


How to backup a database correctly?

Hi all,I  work in WPF and I need to backup a database of my created program. For me is a backup to save a database file on a different place. So I use maybe not correct way ...My way of backup ...1. My...

View Article

Disable ListView Item

I have an IList that I am binding to a Listview.  This ListView will be used for multi-selecting items for use in another method (checkbox in each row).  There are some specific items in the IList that...

View Article

How to update user inputs frequently with out blocking control in wpf...

HiMy apology, I could not able to put my requirement in proper words. Following is the explanation. I am also new to WPF. I have stackpanel with one text box. user inputs text in it. Lets say this...

View Article


Foreground not reflected in Customized "Menu" control

We have customized the WPF "Menu" control by modifying the Microsoft provided ControlTemplate.When the user changes Foreground property of Menu, if MenuItem is enabled and is empty (i.e. do not contain...

View Article

Add controls/fields when pressing “enter”

I need to add an additional row of specific fields/controls (text box, combo box) mimicking the previous when the user presses “enter” after typing in the last text box on that row. Basically, the data...

View Article

Serious bug in slider.

So, i spent some time researching a bug that presented itself as slider's thumb intermittently jerking to Minimum or Maximum position when moving. I found out that it would happen only when you do a...

View Article


After resize object (rectangle or grid), clip is not resized (help)

I have Grid which contain some graphics and all graphics are cliped with grid. The cliping object is inside grid, othervise I got black (or object colored) object.Imagine:Grid- rectangleClip-...

View Article


DataGrid: Different Cell Types in Same Column

I have a ViewModel that has among others the following properties (not showing any MVVM related code):class MyVM {   string Name { get; set; }   Type Type { get; set; }   object Value { get; set; }...

View Article

Image may be NSFW.
Clik here to view.

Multi-Color Buttons with Image and two Labels

Ok, so just as a heads up I am probably making this way more difficult than it needs to be which is what is the issue but if I could get some help I'd appreciate it.I'm trying to create a set of (9)...

View Article

Export to xaml from richtextbox having images..

Hi Tean,     Below code working for save the content.string rtbContent = XamlWriter.Save(rtb.Document);  File.WriteAllText(@"C:\Temp\" + Guid.NewGuid() + ".xaml", rtbContent);while opening the file in...

View Article

WPF application without a window loading automatically

I have set up a WPF application so that it does not load a window automatically by modifying the app.xaml.cs as shown below and by setting the build action to Page. I have also removed the starturl...

View Article


Get TreeView Checked Item ParentName

Hi,Am using this below code to add checkbox to treeview nodes in WPFXaml Code<HierarchicalDataTemplate DataType="{x:Type net:User}" ItemsSource="{Binding Path=View.Groups}" ><StackPanel...

View Article

RibbonGallery selected item stucked

Hi! Inside a RibbonSplitButton I have a RibbonGallery, which has an ItemsSource of an observablecollection. When any item on the dropdown list is clicked, it triggers a window to be displayed. The...

View Article


HierarchicalDataTemplate Second Level not showing.

I have been fighting this thing for too long now.  I am just not getting this apparently.  Can someone tell me what I am doing wrong with the xaml that is causing the second level to not show.Here is...

View Article

Start WPF Application from .NET core App

Hello everybodyI got an issue that i am not able run WPF application from .NET Core app. I want to use simple WPF application as dummy RasberryPI, just to see if .NET core console application set I/O...

View Article


WinAPI function SetCursorPos issues. Win 10 version 1803

Hi, my name is Sergey and i have a question. I have Window 10 I have a code like this:WinAPI.SetCursorPos((Int32)(start.X), (Int32)(start.Y + 1)); Wait(); WinAPI.SetCursorPos((Int32)(end.X),...

View Article

How can I add some Visual effect based on this swapping functions?

Hi All!From my previous thread I asked about how to swapping button inside a grid...

View Article

Image may be NSFW.
Clik here to view.

WPF CroppedBitmap + RenderTargetBitmap = EventHandler leak problem and Freeze...

Hi all,I am wondering if there is a .net `EventHandler` leak surrounding CroppedBitmap and RenderTargetBitmap. It's causing me a huge nightmare!My WPF app runs an always running render call at 60fps. I...

View Article
Browsing all 18858 articles
Browse latest View live


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