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

Rotation Animation only using XAML

Hi, I am creating a Circular Gauge control using WPF & MVVM with maximum usage of DataBinding.... I am using an Ellipse and 'Path' ( for the needle to be rotated). I am setting the the rotation...

View Article


converting svg path to a rectangle.

Hello friends,objective : Convert an svg rectangle to xaml rectangle and calculate following attributes.X ,Y ,RX, RY, Height ,Widthfor a given sample path (<path d="M0 585.9 A9.42477 9.37886 -180 0...

View Article


array element to textbox.Text

Hi!i must bring a data from an array to a textbot.text.here are my data:// In "ar" are String Lines... Array ar = (Array)MyTabelle; // This is not working: textBoxStatus1.Text = ar[1];...

View Article

UI Error Validation

Hi,I Have a DataGrid.And I have Add,Edit,Save functionality for it.When I click on Add, a blank row is added and all are mandatory field.And I am showing Red Circle(through Validator.Validation) .So my...

View Article

Showing Dicom Images for Healthcare

View Article


Image may be NSFW.
Clik here to view.

open System menu in my button right click

i want to open system menu in my button right click.how it is possible.joby James

View Article

How to shrink list box when added multiple items , one by one ?

Hi All,          When i added items in list box  one by one click on "Add" Button   than increased width of list box.  and again remove some items in list box than shrink list box automatically  on...

View Article

How to access a control in a form from another form.

Hi,I have a Contentpane in Form1. On a button click event from Form2 I need to hide the content pane which is in Form1. How can I achieve this.Thanks

View Article


Saving non-designer application settings from ComboBox...

[EDIT: I figured out that this only applies for ComboBox controls, so this isn't the problem I thought it was. I've updated the description with the new information]Hi,I'm curious about the recommended...

View Article


How to catch an OutOfMemoryException while XpsDocumentWriter.WriteAsync() ?

Hi,I want to print some XPS documents.Sometimes (if the document is pretty large) an OutOfMemoryException is thrown.Unfortunately the whole application crushes in that case.I want to catch such...

View Article

Custom Binding in Subclassed DataGridTextColumn

hii did some research but don't see this exact issue anywherei sub-classed the DataGridTextColumn to provide for some custom functionalitynow aside of the the standard "Binding" property, i would like...

View Article

Convert image to byte array and vice versa in WPF

Hi,I am creating an C# WPF application, in that i need to Convert an Image into byte[] array and byte[] to Image. Please help me anybody.-Ramesh

View Article

How to ZoomIn WPF ListView Content without zooming scrollviewer?

I have a WPF ListView and a slider to zoom the content of the ListView. When I use the LayoutTransform, the content and the scrollviewer zooming. I want only the listviewitems to zoom but not the...

View Article


Formatted Text: How to change the LineHeight property of a FormattedText?...

Here's how my code looks like:string text = "The quick brown fox jumps over the lazy dog"; double fontSize = 18; FontFamily font = new System.Windows.Media.FontFamily("Arial"); FlowDirection...

View Article

Internationalization with WPF, Satellite Assemblies, XAML

Using satellite assemblies for localization.  All resources are compiled in the default culture, en-US in its own assembly.  When I change the culture to "xo-XO", pseudo language.  I can see that the...

View Article


string currency format

Hi AllI specified in form for TextBox string currency format likeText="{Binding Path=BillAmount, StringFormat='{}{0:C}'}"But when I type in and then move coursor to other field I didn't see that...

View Article

View and ViewModel What is the best approach ?

Hi Experts,I know that View and ViewModel must be losely coupled. But in a MVVM application should we place the V and VM in different assembly for its ok to keep them in the same assembly ? Appreciate...

View Article


Unable to control storyboard from from another wpf window

I have 2 wpf windows . 1. in which i draw a canvas , create storyboard and play that storybooard2. this is basically a controller via which i want to control the pause and play functions of the story...

View Article

TankWars with gravity or physic engine?

Hello,iam trying to build a simple tankwars copy.How can i get a path for the bullet. I have the angle, the power of the shot, the wind and the wind direction. So now can i get now the path with a...

View Article

Image may be NSFW.
Clik here to view.

Keep control in bottom after scaling

My page structre is on top there is a panel of height 30 and on bottom also there is a panel with height 30 . And a scrollviewer in the middle I always want to keep the scrollviewer in the center. But...

View Article
Browsing all 18858 articles
Browse latest View live


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