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

Image showing in Visual Studio Designer but not at run time.

I am creating a multi window application in which it has an about window.I am trying to add some images in it. my images are in a folder Named Image and properties are following -Build Action =...

View Article


Memory held by the resources is not released even after disposing all the...

Hi,I created a byte array, memory stream and BitmapImage when a main page is loaded as in the below snippet. public partial class MainWindow : Window { byte[] buffer; Stream stream; BitmapImage bitmap;...

View Article


Image may be NSFW.
Clik here to view.

WPF Grid Problem

This is wrappanel and as i want it to be.This is Grid. How can i add many usercontrols into the grid as it is above?

View Article

How to modify the contents of a WPF page in real time?

I want to rotate a picture using angles stored in an array.I tried a for loop with a delay function but it is not updating the new rotating angles. public Page4() { InitializeComponent(); Rotate(); }...

View Article

Image may be NSFW.
Clik here to view.

Displaying DirectX (SharpDX.Windows.RenderForm) within a WPF appication

We try to display a live stream of an rtsp camera within a WPF application. Performance is critical in our application, and we try to display a directX window within the WPF application. My code looks...

View Article


Collapse/Remove 1 control within a ListBox based on condition

Hi, I am trying out a use case where a listbox has label and a button. The button should be visible only for the new item until the progressBar is visibile for example. And after that the listbox...

View Article

Stack panel inside menu - design mode?

Hello, I'm trying to implement a stackpanel inside menu (as MenuItem):        <DockPanel>            <Menu DockPanel.Dock="Top">                <MenuItem Header="Details">...

View Article

Default SelectedItem is not updated in Combobox

Hi,I am using ComboBox with bind the Collection with the SelectedItem and using another collection as ItemSource.When I set the default value for Collection,it is not updated in ComboBox.Code...

View Article


Image may be NSFW.
Clik here to view.

Baffling Sequence of Events

I have a wpf window which allows users to edit financial accounts; the window is populated from my database.This is the relevant portion of my FinancialAccount class:Public Class FinancialAccount...

View Article


Image may be NSFW.
Clik here to view.

How can I create custom control library in .net core 3.0?

I installed Visual Studio 2019 16.1.3 and .net core 3.0 Preview 6.Now I wanna create a new custom control library now.However, I can create a .net core WPF APP but can not create a .net core custom...

View Article

Image may be NSFW.
Clik here to view.

Trying to add rows to Datagrid

Hello,I have some code that I tried to modify to work for WPF datagridOriginal code here, thank you Xingyu Zhao I did my best to convert this code to work for WPF but I'm getting an error when trying...

View Article

Print Rotated Barcode

Hello,Does anyone know of a good way to print a rotated (vertical) barcode without losing resolution?Thank you,Justair

View Article

UserConsentVerifier from WPF

I need to call UserConsentVerifier.CheckAvailabilityAsync() from my WPF App and can find no guidance for doing so.  I can get this code to work: await UserConsentVerifier.CheckAvailabilityAsync() ==...

View Article


WPF - get the list of Windows 10 languages

In C# WPF, how to get the list of Windows 10 available languages, I need this to load the dropdown list in WPF. I see this is available in UWP but I don't find one for WPF....

View Article

GridData binding source from ICollectionView not display data

I set ItemSource of my GridData bound from an ICollectionView named "T_Work_View" as a property in my ViewModel "T_Work_SoloViewModel".I prepare data for it from function "GetTWorkInfo" in...

View Article


to prevent over load multiline wrapped TextBox

Hi All.I'm using VS 2017. In my WPF VB window I have multiline wrapped TextBox and I would like to inform user by popup message that TextBox is full when two lines is completely typed. I will...

View Article

Starting Storeboard based on property value

Hi, I did search for a solution to my problem but nothing to do.I'm using Caliburn Micro into ma project, in the code below I have a image running by the storyboard and a coumple of buttonsand in the...

View Article


ToolTipService.BetweenShowDelay still not working after 9+ years?!

Greetings!The ToolTipService.BetweenShowDelay property is defined as:"[...] the maximum time between the display of two tooltips where the second tooltip appears without a delay."In other words, if one...

View Article

Hosting a Microsoft Win32 Window in WPF vs Hosting WPF Content in a Microsoft...

I am developing a C++ game engine using WPF C# for my game editor. I do know that there is tutorials on how do these two option (Hosting a Microsoft Win32 Window in WPF vs Hosting WPF Content in a...

View Article

UCEERR_RENDERTHREADFAILURE at...

My application renders its content with D3D11 and I present it with a D3D11Image from WPFDXInterop.Sometimes when a Monitor is unplugged or when WIN+P is used to change the Projection options, my...

View Article
Browsing all 18858 articles
Browse latest View live


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