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 ArticleUSB 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 ArticleWPF 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 ArticleWhen 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 ArticleHandling 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 ArticleHow 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 Articlexaml 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 ArticleUnique 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 ArticleRibbon 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 ArticleHow 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 ArticleWPF 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 ArticleDataTemplate 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 ArticleUpdate 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 ArticleBind 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 ArticleHow 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 Articleprint 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 ArticleDocumentViewer 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 ArticleHow 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 ArticleSerializing 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 ArticleHow 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