use Binding ElementName=controlName in subcontrol while controlName is in...
Hi,I have a control which has subcontrol and subcontrol has other subcontrol like this:<UserControl><TabControl Height="140" Width="499"><TabItem Header="Tool"><c:ToolConfig...
View ArticleSAPBusinessObjects.WPF.Viewer (Object reference not set to an instance of an...
I have an issue with making Crystal Report working, when i try to update the data of the report. When the WPF window opens it works fine and i have no problems but when i try to do a refresh of the...
View ArticleManipulation event and panning mode simultaneously in Scrollvewer.
I am developing a WPF for touch enabled device. I am facing a strange problem. My XAML structure is <ScrollViewer> <StackPanel orientation="Horizontal"> <!--...
View ArticleScrolling of a listbox inside another listbox
I have a listbox (with normal vertical orientation), each element of which is a listbox with horizontal orientation. I want to have a ScrollBar inside of internal listbox. My code...
View ArticleGet Parent and Cast of Its Type
I got two wpf forms (user controls MainFormA and MainFormB) and share the same subform (another user contorl SubFormC)MainFormA and MainFormB are similar in some partsI access the parent from...
View ArticleWPF Image Background issue
HI,I have BitmapSource from physical image.private void RenderImage(BitmapSource source, DrawingContext dc, Rect imageRect, bool isPrinting) {I use Image object to create Image from...
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 ArticleNotify Any UIElement below UIElement That Raises Notifiction In VisualTree
Hello everybody,I would like to know does an event route from the root to all leaf? Lets say I have a Button and Textblock. Button is close to the top level while Textblock is somewhere in the depth of...
View ArticleScrollBar: no difference between "Hidden" and "Disabled"
I wanted to disable the mouse wheel scrolling when the cursor is over an element in WPF. If the mouse is over the red rectangle, the parent scrolViewer scrolling (by mouse wheel) should be disabled...
View ArticleUsing EF5, how to check if ObservableCollection has changes?
Hi, see code below (Using EF5). When an item is added or removed from the datagrid the CollectionChanged event is fired and can be handled, so an IsDirty flag can be set manually. But when changing an...
View ArticleCan't get Dynamic Data Display to work! Help!!!!
I'm writing a program for my engineering company where I need to create a line graph that will show voltage against current for tests we run. I'm trying to use Dynamic Data Display in Microsoft Visual...
View ArticleLinkLable Mouse enter issue
In WPF, We have created a custom control ‘LinkLabel’ & User Control ‘LinkLabelMenu’, ‘LinkLabelMenuItem’. We have defined the templates for these controls and ‘LinkLabelMenu’ has inside...
View ArticleSystem.Windows.Controls Radio button and Combo Box
Hi AllI have a treeview, Radio buttons and combo box in window with default selection for Radio button and combo box.Treeview should load based on radio button checked and combo box selection so I am...
View ArticleWPF - Printig problem with a picture
Hi!i have a picture that i will print..BildOrginal = @"d:\MyPicture.jpg";So far so good..Now i have the Printer Dialog with a little problem...Here is the Code: private void button1_Click(object...
View ArticleObservableCollection Mistake?
Hi!i have a bug in my source but i did not see the bug... !?<ListView x:Name="ListViewAnsprechpartner" Margin="0,0,254,0" ItemsSource="{Binding Ansprechpatner}" IsSynchronizedWithCurrentItem="True"...
View ArticleWPF Tiff Image Slideshow
Hi,I need to develop a WPF application which needs to display few tiff images. I need to develop a tiff image viewer which should have a button, on click of which the images in the tiff file should...
View ArticleWPF Image RBG Manipulation
Hi, I have a little side project that I've working on (WPF VB.Net). Basically its generates a gradient palette for use with some third party Infrared Thermography Software because I wanted to...
View ArticleCustom Scrolling In a CustomVrtualizingTreePanel
Hello WPF experts!I am wroking on few custom controls. One of them is a Panel called "CustomVirtualizingTreePanel" another is the "Tree" that is an ItemsControl with its ItemsContainers called...
View ArticleProgrammatically Set CaretPosition to a specific Inline inside a FlowDocument...
I have a RichTextBox that contains both Text and Pictures. I've done this using Run's and InLineUIContainer's. I also have some buttons that will programmatically insert any number of Runs,...
View ArticleDisable all GUI input until one method completes
I’m pretty new to WPF so I’m hoping this is a simple problem…I need to disable all GUI input until a method (initiated from a button click) completes. I do NOT want to run the method in a separate...
View Article