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

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


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

We try to Host a Delphi Windo into a Wpf-Application, thats no problem, but there are some small problem.We are not able to set the focus to the tab which contains the win32 Application. We tried to...

View Article


Registration form develop in MVVM using data base

Hi to all,Any body tell me . How to impliment Registraton form in MVVM project architecture with data base using sql 2008.my queries. 1. I want to developer registration form.2. Using MVVM.3. Using...

View Article

Image may be NSFW.
Clik here to view.

Control.Template MenuItem

I have been learning a lot about general workflows for styles and templates. I am using Resource Dictionaries to store my styles and my applications brushes and colors. I am currently working on styles...

View Article

How do I create a simple DataTemplate in C#?

I've been looking all morning to find some way of creating a simple, no data binding, data template. I've come across this article on Code Project titled Creating WPF Data Templates in Code: The Right...

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

Image may be NSFW.
Clik here to view.

Center Menu Items

Hi,I have a Menu control in my window and I am adding Menu Items to the Menu control. I am trying to figure out how to center those Menu Items within my Menu. Here is a screenshot:My Menu Items are 16...

View Article

Animations stutter while MediaElement is loading a Video

Hi,I have a MediaElement which is loading a new video once a while. It takes 1-2 seconds on my system from setting the new MediaElement.Source until the video is fully loaded and ready to play. In the...

View Article


Image may be NSFW.
Clik here to view.

Microsoft WPF application - Mouse drag on Graph area

Hello,In my wpf applciation where we used graph through .Net namespace (System.Windows.Controls.DataVisualization.Charting) and displaying it on Canvas.As per customer need we have to work on graph...

View Article


System.AccessViolationException + WPF (modern ui) + async (await)

My application is running on many computers, and has several tabs (pages). But on a single computer, one of the tabs (pages) throws accessviolationexception. This tab (page) is different from the...

View Article

How to achieve Grouping and Ungrouping Canvas programmatically In wpf...

I want to group , ungroup canvas user control in wpf application.Though this can be achieved with microsoft visual studio in built function Group and Ungroup which we get from Object and Timeline...

View Article

Elementhost and derived WPF class

Hello,I have a wpf class derived from System.Windows.Controls.Button-- --- JButtonWPF.cs ---using System.Windows; using System.Windows.Controls; namespace Jedox.Controls { public partial class...

View Article

Describe all properties of UpdateSourceTrigger

Hi to all,I did try  all  4 properties about UpdatesourceTrigger  . Default,LostFocus,PropertyChange and Explicit .Trying this link...

View Article


Image on Canvas

Good Day :) Help me realize my idea. I wont import jpg on canvas. If image big then size canvas i want see scroll like dataGrid when datagrid have many collomn and row. Which help me change visible...

View Article

Unable to scroll to position in datagrid after datacontext refesh

When I refresh the datacontext I cannot get the scrollviewer to scroll back to its original position. For example, I scroll down to a row, double click to open a window and modify the content which...

View Article


ItemData for ComboBox in C# /WPF

I am quite new to C#/WPF. I am trying to bind a combo box to a list of items encapsulated by a class with members id and name in XAML. I am actually displaying the name in the combo box. I also need to...

View Article

C# WPF - How to select Multiple Items programatically in a Databound ListBox...

Using Windows Presentation Foundation for a Dialog. The underlying code for the ListBox is:   <ListBox Name="listBox1" Width="300" Height="600" Margin="0,0,5,0" SelectionMode="Multiple" />My code...

View Article


WPF Treelistview with mousedown event

Hello Everyone,starting my training, but sadly stuck on something probably everyone knows, so i am trying to make an event to happen on a child treeitemview, if user left clicks on it, I want a message...

View Article

Image may be NSFW.
Clik here to view.

Content Resizes With Element

I am having an issue with a Control Template that I am making. I have a Resource Dictionary that is storing all my brushes and paths for graphics. I have another Resource Dictionary that is storing all...

View Article

Image may be NSFW.
Clik here to view.

Powershell WPF window sizes Different when run outside of PS ISE.

Hey there,I am currently working on a Powershell GUI Script utilising WPF. The problem Im having is that within the ISE when I run the script it all looks great. When I right click on the script from...

View Article
Browsing all 18858 articles
Browse latest View live


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