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

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 Article


Disable Mouse Right click in datagrid

Hi Friends,       Can any one Suggest,how to disable mouse right click in WPF Datagrid. Thanks in Advance, 

View Article


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

Can i implement a WindowClass as SpashScreen??

or just an Image?

View Article

Image may be NSFW.
Clik here to view.

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


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

Image may be NSFW.
Clik here to view.

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

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


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


why "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 Article

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

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

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


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

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


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

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


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

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

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


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