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

Does the window/page/user-control loaded event fire before any controls'...

I got a question about the order of when events fire, especially Loaded events, in WPF windows, pages and user controls. To my way of thinking I would expect that a window, or page, or user control's...

View Article


USB device as a key

Hi, my program is starting from USB-flash. I would like to only authorized USB-devices can be used. So, how can I get unique ID of this drive to check it with my list of autorized USB-devices?Is there...

View Article


WPF Binding works only once

I've created a Binding with converter, but it updates target only once - when it is setted. I've try to change modes, access modifiers, etcWhen I call setMode("somestring") target didn't updateBut...

View Article

When form is loaded make the image hidden in wpf

When the form is loaded i want the Image to be hidden and based on the binding to the model i want to show the image and visibility is set on it. Second part workd fine my question is when the form is...

View Article

Handling ScrollViewer within TabItem with a nested Grid

Hi,I'm trying to do something quite simple. We need to display data in a Grid inside a TabItem...  We want to display the various input controls in columns that will be resized when the window is...

View Article


How to add tooltip to rectangle in adorner

I have a horizontal slider representing a time interval. I want to mark some times with narrow vertical rectangles (or vertical  lines) with tooltips providing descriptions. An adorner seems reasonable...

View Article

xaml translatetransform.X binding to value

HI,  I'm relatively new to some of Xaml features.. I'm trying to implement this progressbar with an arrow on top that shows the progress indicator in addition to the filled bar. I used polygon to...

View Article

Unique USB-device ID's

Hi, does anyone know, why USB-stick ID vary on different PC's and even one PC on different sessions?I have a code to get DeiceID:Dim Devices As New ManagementObjectSearcher("Select * From...

View Article


Ribbon and Cancas

Hi!I have a lot WPF Mask in Canvas not Grid!And on this masks i will build in Ribbons but i found no sample how i can do that with canvas...To the Background:In Grid i can  strech the window and the...

View Article


How to Save WriteableBitmap On Hard Disk

Hello,I am using WriteableBitmap for Barcode that is generated randomly with some unique number. I want to save this file in C:\ With name Barcode.jpeg. After saving i will read it on Flow Document for...

View Article

WPF System.Windows.Media.RenderData cause memory leak

Hi there,I am using .Net 4.0 and I found the memory leak caused by System.Windows.Media.RenderData. Here are some explanation on what I did:1) I tried to use...

View Article

DataTemplate And Update Binding Explictly Problem

I am using a DataTemplateSelector to swap different input methods for user based on whether he wants text or date. Which means the selector switches between a TextBox and a DatePicker. Each control...

View Article

Update Binding when Property A in Property B(Path of binding) in class C...

Good time of a day. I have class A and class Bclass B have property PBclass A have property-wrapper PA for inner field of type Bso, i have class C, which i cannot change.I've try to create Binding with...

View Article


Bind ComboBox SelectedItem to a property of View Model

Hi I am trying to bind my ComboBox selected Item to a property in my view model where a setter will take this value and perform some other logic. Now my ComboBox is working correctly pulling items off...

View Article

How to print Invoice in WPF

Dear All,I am create a Point Of Sales System in WPF. I want to print invoice while completion of Order. Data Will be provided from TextBox for Invoice,(txtinvoices, txtQty, txtTotalPrice, txtAmountPaid...

View Article


print size

how do I make my receiving and outging email larger. Right now it is to small to read and I can't make it larger

View Article

DocumentViewer translation

HiI'm hosting a DocumentViewer (WPF control) on a Windows Forms control. The DocumentViewer works fine but my problem is if i use the application on e.g. a Spanish or France OS then the tooltips etc....

View Article


How to Bind Data to DataGrid at Run-Time

All, I have some test code that works with some test data defined as private ObservableCollection<TestClass> _testData = new ObservableCollection<TestClass>(); public...

View Article

Serializing FixedDocument (not to XPS)

Hello,I'm writing an application that should look like for example a very simple version of CorelDraw. It should allow user to edit a single page document and put some elements (lines, images, text...

View Article

How to set xaml file not to embedded in assembly as content

A xaml file used to set build action as "Page".It will embedded xaml file in assembly.How can xaml file to be a real file in output directory that program read it from a file.It just like ASP.Net MVC's...

View Article
Browsing all 18858 articles
Browse latest View live


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