I have a WPF application for product purchase billing. My client wants that app should be able to bill and print upto 1-99 products at once. they use bill printer (mini size printer) for billing. How I can achieve this in WPF C#. Any code or link would be helpful.
Thank you...
...
The only method in a StreamGeometryContext that seems related to ellipses is the ArcTo method. Unfortunately it is heavily geared to joining lines rather than drawing ellipses.
In particular, the position of the arc is determined by a starting and ending point. For a full ellipse the two coincide obviously, and the exact orientation bec...
I'm using Windows Server, IIS 6.0 and VS 2008 Professional. When I click "Publish WPF application" I get "the server unexpectedly closed the connection". Any ideas?
...
There are lots of articles and video lessons that describe how to create your unique user widget (graphical control) with WPF. There are tons of technical details what is behind the scene and I feel people enthusiasm with ability to customize widgets as never before.
I remember those days when VCL library (Delphi) appeared and there wa...
In a multi-threaded WPF application, it is not possible to update an ObservableCollection from a thread other than WPF window thread.
I know there are workarounds, so my question is not how to avoid the "This type of CollectionView does not support changes to its SourceCollection from a thread different from the Dispatcher thread" excep...
It seems that XAML files should have corresponding .cs files in a C# project. I know Visual Studio does all the things for us. I'm just curious how they are linked together? I mean, are they specified in the project file, or just because they have the same names? And also, App.xaml file specifies the startup file, but how does the compil...
I want to have rectangle that and it should have stroke only on left and right side(not on upper and lower side). How can I do it ?
...
I want to open window2.xaml from the window1.xaml window as an emergent (floating) window.
In winforms that was form2.show() , how do I do it in WPF for both WPF application and WPFbrowser application?
(I assume it's different for WPF application and WPFbrowser application)
...
I'm not familiar with WPF but I've seen things I like about it for web development.
I wonder which advantages has developing a WPFbrowser application over asp.net (webforms/MVC) and viceversa. are there things you can do or use in asp.net you can't do in a WPFbroser application?
...
Can anyone tell me which is a better approach for Validation in WPF.
1. Implementing IDataErrorInfo
2. Creating ValidationRule
3. Throwing Exceptions
in terms of performance, memory leaks, code maintainability and re-use.
...
ok..
so i noticed (by trial and error) that i can bind to a collection item using index:
<TextBlock FontStyle="Italic" Text="{Binding Path=Exchanges[0].Name}" />
but what about using a dictionary key?
Path=Exchanges['AMEX'].Name
...
I'm trying to load a .xps document into a DocumentViewer object in my WPF application. Everything works fine, except when I try loading a resourced .xps document. I am able to load the .xps document fine when using an absolute path, but when I try loading a resourced document it throws a "DirectoryNotFoundException"
Here's an example ...
In my application there are only 2 windows — win_a & win_b, on each of these windows there is button that call another window, e.g. click on btn1 of win_a will call win_b, click on btn2 of win_b will show win_a.
Desired behaviour:
1. Only one instance of object is premitted at the same time, e.g. situation, where 2 instances of win_a ru...
Using standard rules, it is a royal pain to data-bind to a method. So I'm wondering if it possible to use PyBinding to do a easy one-way bind.
...
I'm getting this in my output Window:
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=VerticalContentAlignment; DataItem=null; target element is 'ListBoxItem' (Name=''); target pro...
I'm learning WPF and can't figure out how to enfore my buttons to take a square shape.
Here is my XAML Markup:
<Window x:Class="Example"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Height="368" Width="333">
<Window.Resources>
<St...
I would like to get the word that a user has clicked on in a FlowDocument.
I am currently adding an event handler to every Run in the document and iterating through the TextPointers in the Run that was clicked, calling GetCharacterRect() on each one and checking if the rectangle contains the point.
However, when the click occurs near t...
I heard that I could create a collection of mixed types and have a different Data Template for each type. How woudl I do that for a ListBox?
...
Hi Guys,
I'm relatively new with WPF.
I'm trying to understand the difference between MouseDownEvent and PreviewMouseDownEvent.
I understand the WPF event strategies and i understand that the MouseDown event is a bubbling event and the PreviewMouseDown is a tunneling event.
I also understand the order of which these events are bein...
Hello,
I have a complex WPF control that for some reasons (ie. performance) is not using dependency properties but simple C# properties (at least at the top level these are exposed as properties).
The goal is to make it possible to bind to some of those top level properties -> I guess I should declare them as DPs.(right? or is there so...