Binding Visible/Collapsed to ContentPresenters within a TabControl.
Hello,I've been struggling with this WPF issue for a few days, and I'm pretty much at the end of my rope. I'm a WPF newbie...- I have two DataTemplates declared as Window.Resources.- I have a...
View ArticleDisable Mouse Right click in datagrid
Hi Friends, Can any one Suggest,how to disable mouse right click in WPF Datagrid. Thanks in Advance,
View ArticleStrange Exception
Hey guys,So every so often (twice in the past calendar year), I see an unhandled exception pop up in my application, but for the life of me, I can't hunt it down to fix it or at least catch it. The...
View ArticleBrowsing for folders
Hello all,I'm opening again a discussion of how to use a standard WPF dialog to browse for folders. The posts I have found are from 2008 to 2010 and maybe there is some solution available. MS Office...
View Articleproblem with window while making simple animation
Hi fellows.I am making a custom control which will be a window. in Xaml my code looks like this:(tobe easier to read I omitted some controls)<Window.Resources><!-- Window style --><Style...
View ArticleWPF SelectedItem binding between two datagrids
I am developing a User Interface for a host monitoring application, which is already being monitored on database level. I have displayed 2 datagrids on my UI which will populate on run time.These two...
View ArticleWPF Usercontrol my Richtextbox is not importing the flowdocument properly
Hey guys,I have created a usercontrol (and by created I mean ripped off wholesale from a much better coder than me) that is basically a mini word processor. What I want to do is click on a richtextbox...
View Articleneed tooltips on textblocks in combobox selecteditem
I have a bound combobox with a datatemplate. The datatemplate is a grid with labels (textblocks, actually) and bound data items. For the combobox selecteditem, I want to have tooltips for the labels...
View Articlewhy "ToolTip tooltip = (ToolTTip)label.ToolTip;" returns zero???
Heyif i'm typing "ToolTip tooltip = (ToolTTip)label.ToolTip;" and try to Access the ToolTip, it throws an exception, the obejt is not set o a reference, why???
View ArticleDisable Mouse right click in XAML
Hi,Can we disable mouse right button click in Xaml(No code behind) . I am trying to do with triggers.. but could not find a way. I know we can do it in code behind (e.Handled=true).But can we do same...
View Articleload data on the data grid which is on ctrlBeta by the buttonclick event of...
Hi,I have 2 User controls say ctrlAlpha and ctrlBeta. ctrlAlpha has a button on it and ctrlBeta has a datagrid on it. I want to load data on the data grid which is on ctrlBeta by the buttonclick event...
View ArticleBinding ImageSource from String
I would like to bind string form my custom dependency onject to my button style template.In my Dictionary.xaml <Style x:Key="{x:Type local:myButton}" TargetType="{x:Type...
View ArticleProgramatically Forcing A WPF Menu to Refresh ItemsSource
Hi,In my app I have a menu that contains the following menu item:<MenuItem Name="menuitemFrameDatabase" Header="{Binding Source={StaticResource dataprvdFramesDatabase}, XPath=.}"...
View ArticleException raising when Serialize ContextMenu
Hi Experts,I tried to serialize ContextMenu of a Grid control by using the following code.XmlSerializer serialiser=new XmlSerializer(typeof(ContextMenu)); XmlWriter...
View ArticleHow to use DispatcherTimer?
I have a WPF application. I have a panel that I want to repopulate every 1 minute getting data from the network. I know that I can use the DispatcherTimer class to set the timespan for ticks and make...
View Article100 Radio buttons with group of two's, How to desable radiobutton by group name.
In my page 100 radio button with different 50 group name. I have written only single click event of all button and I want to disable the buttons by group name?How to implement this ?THanks
View ArticleDynamically pass rows and columns to the static empty grid in WPF
Hi...i am very new to WPF, moreover to C# also... pls help me. i have createdgrid in XAML without any rows or columns . now i have two buttons beside, if i clickbutton1 -> grid should set to 4x4...
View ArticleSimple GridView Style
This is so simple I'm sorta baffled as to why I'm having such issues with it - In my resource dictionary, I'm trying to keep my users from dragging and dropping the column headers of gridviews in the...
View ArticleIssue in Refreshing or filtering the property present in an object ,wherein...
Hi,we are facing an Issue in Refreshing or filtering the property(A1) present in an object(A) ,wherein the Object(AA) is present inside another Object using CollectionViewSource.Parent Object : AA...
View Article