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 Articleconverting 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 Articlearray 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 ArticleUI 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 Articleopen 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 ArticleHow 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 ArticleHow 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 ArticleSaving 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 ArticleHow 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 ArticleCustom 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 ArticleConvert 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 ArticleHow 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 ArticleFormatted 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 ArticleInternationalization 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 Articlestring 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 ArticleView 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 ArticleUnable 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 ArticleTankWars 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 ArticleKeep 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