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

Image may be NSFW.
Clik here to view.

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 Article


Why 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 Article


WPF 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 Article

WPF 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 Article

wpf, DispatcherTimer Example?

Given:    //Global descriptor    System.Timers.Timer gTimerFlag = new System.Timers.Timer();    //------------------------------    private void SetTimerInterrupts()    {      gTimerFlag.Enabled =...

View Article


getting 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 Article

Visual 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 Article

Data 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 Article


WPF 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 Article


MultiBinding 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 Article

Moving 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 Article

wpf 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 Article

D&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 Article


Representing 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 Article

Copy 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 Article


Identity 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 Article

DatePicker: 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 Article


Multiple 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 Article

Richtextbox

hi  i am using wpf application but i can not insert  in richtextbox to  sql  why ?:(  i m working linq to sql 

View Article

GlyphRun, 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
Browsing all 18858 articles
Browse latest View live


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