RangeAtrribute with a error when property value is out of range...
Hello,In my application, i have a class with few properties. For each property value of type uint/int/ushort/short there is a specific range. I am assigning value to this objects programtically. I want...
View ArticleUser Control with combobox
I created a UserControl with TextBlock, TextBox and ComboBoxI have MainWindow with TabControl and this tabcontrol has several UserControls, one UserControl per TabItemThe UserControls in TabItems have...
View ArticleProblems with Twoway Binding in ControlTemplate
Hi Im having Problems with the following Binding Scenario:MyViewModel.Text <= TwoWayBinding => MyUserControl.Text <= TwoWayBinding source TemplatedParent => TextBox.TextIn Text: I have a...
View ArticleSavefiledialog and Webbrowser in Wpf
Hello.I am using Webbrowser in my WPF application and i have two questions.1- Can I customize the interface of the dialogbox? ie change the title bar and the appearance of the drop-down list. I would...
View ArticleFlickering / ghosting when manipulating Shape objects
Hello all. I'm adding some Shape objects to an InkCanvas and have noticed the occasional flicker/ghosting when I manipulate them via mouse events. I'm hoping someone has seen this and/or has some...
View ArticleAdvise on using await async call efficiently
Dear all,I have a list of product in an SQL serve database that is collected through a back end service and then display to a WPF application. As the list of product in the database can be huge, I...
View ArticleWhere Does My View State Go When I Change Tabs?
I've got an application built using the workspace model from here. As far as I can tell it's working just fine with the exception that my views lose their state when I switch tabs and then switch...
View ArticleWhat is the correct way to Enable/Disable a button based on User Input in MVVM?
My wpf/mvvm app displays some default text from the ViewModel in a textblock (the textblock above that has hardcoded text) on StartUp. After a user inputs some text in a textbox and clicks the button...
View Articlehow to bind combo box values at design time
i want to set name and values of different schools in combo box at design timeso when i select a school name its values gets displayed
View ArticleAnimating list box selected item
Dear all,Initially, I have a list box of items define as below :Items are define with a visible picture as shown above and with a white border which is not visible here as its width is set to 0 at this...
View ArticlecomboBox is not supporting if condition. plzzzz help
Hello i am writing a program using IDE VS 2012 and using Blend for Interface. i am having a serious annoying problem. i have multiple Comboboxes. and i have put some if else condition on it to get my...
View ArticleUpload a file to localhost using WPF Application
Hi,I want to upload videos to localhost through WPF application. Please Guide me...:)Thanks in Advance
View ArticleIs it possible to have Integer values for Slider?
Is it possible to restrict the Slider control to generate integer values only. I tried using SmallChange=1 attribute but that works only through keyboard - not mouse. I also tried using ticks...
View ArticleQuestion about Heiocracy? w/ error message
My error message is as follows"An unhandled exception of type 'System.ArgumentException' occurred in PresentationCore.dllAdditional information: Must disconnect specified child from current parent...
View ArticleHow can i update first form from second?
I have two WPF form! in first i fill my grid from Constructors. Then open second form (Showdialog) i update,delete,insert in database. How can i refresh my constructor in firstform when close Second?
View Article(C# WPF)How could I hide a control (ex. a textbox) and display it again
I searched on the Internet.It's really strange, I've tried textbox1.visibility=visibility.hidden. And I got this:Property or indexer 'System.Windows.UIElement.IsVisible' cannot be assigned to -- it is...
View ArticleMouseDown event not working WPF
Bubbling for MouseDown event doesn't work for usual controls: buttons, textbox, etc. On the other hand PreviewMouseDown works for the same. Also, bubbling for MouseDown works for container controls...
View Articlewhat is the most simplest way for mouse hover popup image in WPF.
1)i have certain textboxes and images. I want that a picture should come when the mouse pointer comes on the label or textbox or any image. i am using IDE VS 2012 and Blend for interface. If it can be...
View ArticleWhy does giving a Style an x:Key value, disable that style?
Hi,I'm new to WPF and I'm exploring styles, control templates etc - all very interesting.While experimenting I encountered something puzzling, appears to be a problem in WPF.I created a style for...
View Articlewpf - mismatch between the processor architecture
Last post of the night...I'm getting an error about a mismatch in architecture. I'm kind of new to VS, but can code a little. My knowledge into these deeper issues is about non-existent thought. I read...
View Article