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

What is the correct way to organize the Buttons of the ribbon when there are...

I am working in an application that didn't have a ribbon before. We are making major changes in the way the functionality of the application can be accesed, but not in the functionality itself.The...

View Article


How do we place a data-bound textbox into a container control, that can be...

We're using a TabControl in WPF. We want to put a data-bound textbox onto each tab control, and have that bound to the same field in a database. Of course we could put a textbox at the bottom of each...

View Article


How to use backgrounworker and display progressbar in WPF

Hi Guys,I would be grateful if somebody help me out to fix this issue. I have a datepickers and a button inside a groupbox in WPF.I have a progressbar but it's not working when i click on the...

View Article

INotifyPropertyChanged is not always being respected

Is there any common scenario that can cause a call to INotifyPropertyChanged.PropertyChanged() from within an object's property setter to NOT cause that property's getter to then be automatically...

View Article

Making few letters in TextBlock Bold

Is it possible? (in code behind)

View Article


Custom tabcontrol at design time in WPF

I want to create a tab control with background and tabs header with different colors at design time. Is it possible in WPF?At design time, I want to add the tabs (Custom Tabpage) in Tab control (Custom...

View Article

Serializing FixedDocument (not to XPS)

Hello,I'm writing an application that should look like for example a very simple version of CorelDraw. It should allow user to edit a single page document and put some elements (lines, images, text...

View Article

C# break problem

Hi,a short question about breaking...I have the folowing code: private void DecimalValidationTextBox(object sender, TextCompositionEventArgs e) { if (e.Text == "\r") { break; } .... The break is not...

View Article


Pesky binding problem

Is it just me or are binding problems with WPF just not very well supported by VS (2010)?I have the following error displayed (about one for each item in the listbox (shown below)):System.Windows.Data...

View Article


Custom ValidationRule throws ArgumentOutOfRangeException

Hi  there.I've been developing a custom ValidationRule, following the MS example by the letter but it is throwing an ArhumentOutOfRangeException during the validation process.I have the following...

View Article

MS Ribbon: Binding to the IsMinimized and Expanded help...

Hi,Having no success in binding to the IsMinimized and Expanded properties. xmlns:Properties="clr-namespace:StockTraderRI.Properties"<ribbon:Ribbon x:Name="Ribbon" Title="Ribbon Title"...

View Article

ListView not updating white copying files in different thread

The Listview updates at the end if I have copy running in main thread, but it does not update at all if running in different thread:public void btnPaste_Click(object sender, EventArgs e) { Thread t =...

View Article

VERY URGENT: multiple views or stack panels at the same time

Hi all of you,I am trying to find out how can I  put at the same time four or five views in my WPF application. When the user click any of them that view maximizes and occupy the whole screen but a...

View Article


Bind to Style.TargetType Property

When we create a Style for CellValuePresenter that contains Triggers for specific edit templates to suppress Tooltips app wide for those editors e.g.<Style.Triggers> <DataTrigger...

View Article

Does ListView support binding that is sensitive to changes made to items in...

I'm having trouble with a ListView as described here.So I want to ask is it possible to have a ListView render objects that have multiple properties AND have theListView automatically update when these...

View Article


TextBox Validation for input , without changing a lot

Hi ,we have 100 Textbox , now i have to come up with some solution, which can be less code change,so i want to do some thing if some one enter textbox less then zero, should as error type.i have one...

View Article

Image may be NSFW.
Clik here to view.

Rounded Corner RadContextMenu Style for Submenu

I couldn't able to apply rounded corners to the SubMenu's in the RadContextMenu. I do like to know how to set the minwidth for submenu just like in the TopLevelMenu. Any help would great. Thank you in...

View Article


TransformToAncestor & VisualTreeHelper.GetOffSet()

    I have written a little programme to retrieve offset value of child element relative to its parent element using TransformToAncestor and VisualTreeHelper.GetOffSet(), but one stunning discovery I...

View Article

How to Close Application From Child Form Rather Than Parent Form in WPF

Hello,I am using a Login Page as my startup page. After Login MainWindow.xaml is showing and Login Page is hiding. I want to Exit all application on Exit Button of MainWindow form.I am trying to close...

View Article

What is this troublesome expression I see within Activity Tag in my workflow...

<Activity mc:Ignorable="sap sads" x:Class="{x:Null}" this:_48d3.argument1="12345"Is this an exiting bug for .net 4 and it went away afterward?  Any hint?  I have three threads going on this issue,...

View Article
Browsing all 18858 articles
Browse latest View live