Binding Content from ContentPresenter to ContentPresenter
hey there; I have a Hierachical DataTemplate for a Customer object and inside this template I have a contentpresenter to show a address object. so basically something like...
View ArticleWCF _how to add user and password to the specific call in order to get the data
I use add reference service to call to this service,when I do it for services that doesn't have user and password I was able to get the data but since that this service needed to provide user and...
View ArticleIssues : While Disabling Combobox Items using ComboBoxItem.IsEnabled Property
Hi,I have a combobox with Itemsource as List<String> Items , say the items have 3 item(Item1,Item2,Item3) in it. i need to disable 2nd item. To achieve that i am iterating through combobox...
View ArticleHow to display Images in Flow document Reader
using (MemoryStream ms = new MemoryStream()) { bmp.Save(ms, ImageFormat.Png); BitmapImage bmpImage =...
View ArticleHOME/END key bindings are intercepted by the middle control
i have a WPF application, on the very top Frame level I defined a bunch of key bindings. one of them is<KeyBinding Gesture="HOME" Command="myCommand"/>the app has a tab control and each tab has...
View ArticleHow to combine ellipse and path to be able to fill different colors?
I am wondering if it is possible to achieve. I need to create one combined path where arrow and ellipse are combined. At the same time, I need to be able to fill ellipse background with one color and...
View ArticleWPFApplication Directory as Source/General WPF question
Hello!I have two questions regarding WPF and C#. The first one: I am currently desingning the printing output of my application and I want to put some images into it. So I looked up some solutions...
View Articleskype uri for wpf
hi,i want to integrate skype in my wpf application, i couldnt find particular uri so i have decided to open it from the web browser can any one help me........
View ArticleMVVM: How to pass data between ViewModels
I'm a relative newbie to WPM MVVM, and I'm rewriting a Winform app to WPF. The original design is a window containing only a single tab control. Each tab in-turn hosts various controls and functions as...
View ArticleWhat does [0] means in "{Binding [0].ErrorContent}"?
Hi there:I'm studying validation and I ran across this xaml code:<TextBox x:Name="AddressBox"><TextBox.Text><Binding ElementName="This" Path="IPAddress"...
View ArticleDataGrid ScrollBar always start from first column even after frozen columns
If I have a DataGrid with 20 columns of data. FrozenColumnCount of the DataGrid is 2. ScrollBar only could start scroll from third column. May i know is there anyway to override the ScrollBar to make...
View ArticleI built a wfp in vb 2010 using 1680x1050 and when using 1024x768 form is cut...
I built a Windows Forms App in vb 2010 using 1680x1050 resolution and when using 1024x768 on a different computer the form is cut off on right side.Probably my mistake from the start. When I created my...
View ArticleWhy the use of ReadOnlyCollection in this Convertion method
Hi there:I'm studying Data Validation in Bindings, and I ran accross this Validation method:public class ErrorsToMessageConverter : IValueConverter { public object Convert(object value, Type...
View ArticleIDataErroInfo not displaying as tool tip
hi,My problem is error is not displaying as tool tip but display in ContentPresenter! Both codes are given below.//this is working fine.<ContentPresenter Grid.Row="1" Grid.Column="2"...
View ArticleWPF and MVVM with login authentication
Hi, I'm pretty new to WPF and wanted to find out the best way to authenticate an user with the username/password stored in a Sql server database . I'm using MVVM framework and from what I read it was...
View ArticleHow to get a wpf datagrid cell value of each row in a button click event
Hi Friends,I am binding wpf datagrid using ObservableCollection. Now i want to save all the rows cell content to database(MySql) after clicking on the save button. Here my problem is how to get the...
View ArticleMultitrigger problem
I have changed the template for ListBoxItem. In that template I have the following triggers... <!-- IsSelected --> <MultiTrigger>...
View ArticleKeyboard input on a HwndSource-hosted TextBox
I'm using HwndSource to host WPF controls in a Win32 (MFC) window. The Win32 project is actually native and I use a mixed-mode MFC Extension DLL in the middle to wrap the HwndSource. One of the WPF...
View ArticleTrouble with MultiTrigger and IsMouseOver property
Hi, I'm working at a custom control in WPF. This control should work as menu with buttons. The buttons are on left side of the window (4..5 one below the other) and realized by rectangles. At the...
View ArticleLinq to sql vs SqlCommand in search query
Hello,Im having a problem while searching. My program is slow on search. I am a beginner in linq to sql.My Code below:conn = new AtaLIMSDataContext(); var t = from b in conn.tblResultOrders...
View Article