bend Texture Fill, Please help!
Hi there is am looking to apply a texture fill based on a path geometry.i can do this with straight shapes, but i am looking to take the bitmap texture and bend it round the shape of an arc.Can not see...
View ArticleWhy RichTextBox Cursor jumps when using TextPointer.GetOffsetToPosition and...
Hi, In a WPF test app, I tried to uppercase all text in the RichTextBox in its TextChanged event handler, using the code below. In the TextChanged event handler, I first save the cursor position, and...
View ArticleWPF web browser control and javascripts
I have an WPF application with a window hosting a WebBrowser control. When I navigate it to a html site which using javascripts, it gives me the error "An error has occurred in the script on this page....
View ArticleWPF SEARCH BOX. NEED HELP!
Hello! Here is the code i'm workin on (see line 3 in the code as i need the word "flom" to change into what I write in the search box.The code is working when I use a button for each word. I have to...
View Articlewpf, DispatcherTimer Example?
Given: //Global descriptor System.Timers.Timer gTimerFlag = new System.Timers.Timer(); //------------------------------ private void SetTimerInterrupts() { gTimerFlag.Enabled =...
View Articlegetting Current index of row in grid
i want to get index of currently inserted row in datagrid in WPF even if the row be inserted any where in between records already present (means Row.count doesn't work);
View ArticleVisual Studio 2012 complains about comparing two Brushes
Visual Studio 2012 complains about comparing two Brushes. private void SetLabel(string stText, Brushes colorBackground) { if (colorBackGround == Brushes.Yellow) ... }Error msg "The...
View ArticleData Binding in Xaml when a textbox is updated programmatically
I have what I assume is a common problem. I have a textbox. It is bound to a property. Here's the Xaml...
View ArticleWPF DataGrid Column Sort Direction
Hi,I have a WPF Data Grid within a user control. This user control is hosted within MainWindow. In the DataGrid, all data are loaded properly and I am able to sort them accordingly. My concern is,...
View ArticleMultiBinding fails Single Binding works
HiThis works: public class answered : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { Double b = (Double)value;...
View ArticleMoving C# List to VB Array Question...
Hi!I must move a C' List to a VB Array... Something is wrong but I not see the bug :-(Here is the C# Definition:publicList<WPFGridZeilen> CobGridList2 = newList<WPFGridZeilen>();Here is the...
View Articlewpf animation issue
I have 2 user controls in a canvas in a Windows Presentation Foundation Application. First, user control one is loaded.If i Click on my first user control ,second control will be loaded in that canvas...
View ArticleD&D change list box text color
HI ,Im using D&D functionality from text box to list box and I wonder if there is simple waythat when item was dragged to the text box the item in the list box will change the color from black to...
View ArticleRepresenting my constantly updating data on a C# WPF chart
I have worked out a simple set of codes that shows my current CPU Usage that will be updated every second. I want to represent this information on a chart in WPF. I am trying to use WPF Toolkit to do...
View ArticleCopy from excel and paste into WPF DatagridTempate column
I have a WPF DataGrid with DataGridTemplateColumns, when I select rows from excel and use Ctrl+C, and then in DataGrid Ctrl+V, no data is pasted. If I change columns to DataGridTextColumn then copy and...
View ArticleIdentity Column Counter Problem
Hello,I am getting identity column counter problem.Suppose Identity column Counter is 5.And i am trying to insert record but suppose save operation failed two times but 3rd time suppose insert query...
View ArticleDatePicker: how can I translate its contents?
Hi there,Due to my WPF app run both english and spanish, the only thing to translate now is the literal "Select a date" on DatePicker control. This text appears by default.Have not idea how can I...
View ArticleMultiple DataContexts
I have a MainWindow with a DataContextOn this MainWindow I have a UserControl which has a bunch of Text boxes which are bound to data from the MainWindow's DataContext and this works correctly.I also...
View ArticleRichtextbox
hi i am using wpf application but i can not insert in richtextbox to sql why ?:( i m working linq to sql
View ArticleGlyphRun, problem with Tab Key rendering
Hello, I have a problem with rendering tab-key in GlyphRun.Here is example:ushort glyphIndex = glyphTypeface.CharacterToGlyphMap[temp[n]]; // Here I have error because when temp[n] is '\t' then this...
View Article