Listbox Virtualization with ScrollViewer.CanContentScroll="False"?
Looks like listbox with ScrollViewer.CanContentScroll="False" does not support virtualization. And if i set the CanContentScroll to True, scrolling is not smooth but does support virtualization...
View ArticleIssue printing selected italic fonts
Hi,I have an application, that allows the user to edit text via RichTextBoxes (including all standard manipulations like changing fonts, styles, ...). Finally the user can print his document. The...
View ArticleA proper solution to a WPF application using On Screen Keyboard
Hi. I´ve been working for some time on a good OSK solution for my WPF apps, that are running on a tablet. But it´s hard working with the OSK.exe and tabtip.exe, because of several bugs, strange...
View Articlehow can I play a video that is encoding yet with WPF?
I'm encoding an FLV video, and I want to show the result on my WPF application while the video is still encoding.I use MediaElement, but it only plays to the total time that the video has when I open...
View ArticleListview canvas panel
Hi. I am looking into creating a list view that would allow similar behavior with Windows desktop. What i need is ability to have a an item selection functionality and allow custom positioning of the...
View ArticleVisualBrush pixelates the content
I have an issue with VisualBrush, as seen on the right side of this image.The shown object is a Rectangle, which uses VisualBrush to show its contents - two items of a ListBox (this complication was...
View ArticleHow setup and access underlying ID's in selected Rows in a wpf DataTemplated...
I've populated a wpf ListBox using a DataTemplate in xaml and a System.Data.DataSet in the vb.net code behind. I've sneeked in a underlying numeric database ID in a DockPanel ToolTip of the...
View ArticleXAML Custom Control HELP??
I need to draw the following UserControl in XAML:The Yellow rectangle needs to rotate 360 degree when I set a property on the control to TRUE to indicate that it is operating...while rotating the...
View ArticlePassing parameters to a Page using constructors
In my application I have two pages placed on a Navigation Window. Page 1 the Main Page and has three buttons on top ( like a ribbon menu) and a Frame ( on second half of the page to navigate within...
View ArticleProgrammatically add rtf hyperlink to rtf file
I need to create a method that receive a string with a filepath and I have to update a rtf file inserting that string as a hyperlink. The problem is how to translate the filename into a clickable rtf...
View Articlewpf richtextbox memory leak,how to resolve
I use WPF RichTextBox control to show dynamic log info like this:public void AppendLoginfo(LogInfo loginfo){if (txtMsg.Document.Blocks.Count >...
View ArticleHow get colored ListItem sub-control to enact system highlight color when...
When I place <TextBlock Text="Some Text"/> in a ListBox, the text appears in the system text color as expected; and when the row is selected the text appears the system highlight color as...
View ArticleHow hide/unhide rows from a wpf data bound DataTemplated ListBox?
I've populated a wpf ListBox (ListBox1) using a DataTemplate in xaml and a System.Data.DataSet in the vb.net code behind. I wish to "move" rows to and from ListBox1 and ListBox2. I can copy rows from...
View ArticleHow to Access button present in WPF cell of WPF table in coded UI?
I am Testing WPF Application using Coded UI.. My testcase is like verifying whether button is enabled or not. wpf button is present in wpftcell which is in the wpftable.The hirarichy of the button is...
View ArticleWPF Custom ItemsControl notifies underneath Containers
I am trying to write a small simple custom ListBox. I started deriving fromItemsControl and I managed to build almost everything the normal microsoftListBox includes except SelectedItems...
View ArticleScrollIntoView Is not working for a horizontal list of items
I am loading the contents to a listbox horizontally using the below layout.<ScrollViewer HorizontalScrollBarVisibility="Auto" Style="{StaticResource ResourceKey=customScrollViewer}"...
View ArticleCannot add content of type 'System.Windows.Interactivity.EventTrigger' to an...
Hi All,Recently I changed a .Net 4.0 WPF project to .Net 3.5 . My code is:<i:Interaction.Triggers> <i:EventTrigger EventName="SelectionChanged">...
View ArticleWPF Combobox Dual Bind
Recently start to learn WPF and am struggling with some of the concepts, especially databinding and comboboxes. I have the following 2 tables: provTable provID provName cusTable provID By using the...
View ArticleChanging Frame Source and accessing function on another Page
In a WPF page i had a frame control and on Click event of a button i am setting frame source and makes it visible. My main view is lilke this.<Page...
View ArticleCombobox selection not changing on tab change
Hi,As you see in the above picture, initialy the tab index was on combobox ("Create new").Once i pressed tab key, the tab index changed from combobox to Subscribe button, but the selection didnt...
View Article