How to Highlight the Entire Row in RichTextBox?
I'm currently making a Song Editor. I already have a way to to find the rows that need to be selected, i have it stored in a dictionaryI want to highlight the row like thisbut i can only figure out how...
View ArticleHow to get the user control values to main window in wpf using mvvm pattern
I have 4 text boxes in user control In my mainwindow.xaml I will be clicking an add button so that my user control and another add button will be visible. Here I have entered all the values in...
View ArticleHow to set ToolTip style to the control style.
I have my ToolTip style<Style x:Key="{x:Type ToolTip}" TargetType="ToolTip"><Setter Property="OverridesDefaultStyle" Value="true"/><Setter Property="HasDropShadow"...
View ArticleHow to use XAML to share some of the properties of multiple TextBlocks
Is there a standard way in XAML to collect similarly derived properties with the same values from several controls into one place? What is the best way to do it?The code below demonstrates the...
View ArticleStyling a List Views which uses ListViewItem and a GridViewColumn
I am designing styles for WPF ListView. I am facing some issues while using ListViewItem and GridViewColumn inside ListView. Please refer the code mentioned below of ListViewItem style:<Style...
View ArticleWPF Grid - Cell background color
Is it possible to obtain access to a cell on a Grid and change it's background color?
View ArticleUpdate Listview GUI with updatet List as itemssource
I am creating an application which will record all my events and the people added to it. This will look as following:In the Application i have two listviews. On the left i have the various events and...
View ArticleReference on UIElement
When I Create MVVM in view I can Write 1 string DataContext=new ViewModel();My Class ViewModel Have property refer to control on View on example LbMaximHow I Can bound my property LbMaxim in...
View ArticleText box custom control to display a label within a textbox
Hi AllI am new to WPF and my first assignment is a tricky one. I have been assigned a task to generate a custom control for the textbox which will show the label for the textbox within the textbox...
View ArticleHow to put an image in a DataGrid column header?
I'm attempting to put an image in the header of a column of my DataGrid. I am seeing the string for the class of the image, but not the image itself. How do I do this? Here is my...
View ArticleControlTemplate - Border set CornerRadius
Hi, I've a content control with a Border inside. I have to use this control to make different corner radius in a toggle button control (only left corner, center and right corner). To do this I've make...
View Articledatabinding combobox in datagrid wpf
Dear Friends I have read a very good sample about this in (https://social.technet.microsoft.com/wiki/contents/articles/26347.wpf-combobox-binding-in-datagrid.aspx) from Andy ONeill (very genius) but I...
View ArticleDatagrid Horizontal scroll bar not get visible when binded to datatable has...
HiI have an scenario to display empty rows with more than 25 columns in displayIn this case Horizontal scrollbar not get display, so i can't scroll and see all the columnswhen i debug and saw...
View ArticleUI Task Block || The calling thread can not access this object because...
Hi,I want to load data without blocking my UIWhat's wrong with my Code ?I have an exception when i try to set the datasource of the pivoGridControl [The calling thread can not access this object...
View ArticleOffline Image Cache in WPF
I have a WPF app, which loads images from URL when there's internet connection & should load those images from cache whenever there's no active internet connection. My problem is - images are not...
View ArticleWPF DataGrid with Entity Framework Core - Updating a row
It looks like there is something i don't understand with WPF Datagrid:If i use DataGridTextColumn then it is working as expected. If i change a field and the to SaveChanges(); it will Save the changes...
View ArticleItems collection must be empty before using ItemsSource
namespace SIOCONN_GUI_MVVM.Views { /// <summary> /// Interaction logic for CreateEventsView.xaml /// </summary> public partial class CreateEventsView : UserControl...
View ArticleMemory Leak In WPF When Binding With DataTable/DataView
Hello, I Have a Project in WPF Which is using DataTable/DataView and Binded with View Everywhere. Now i am facing problem of memory leak. today i have google on web and found that due to , INotoify...
View Articlewpf 3D transparencies and diffuse materials issue
Hello all, I've just now run into the "notorious" issue regarding transparent diffuse materials and z-buffer ordering in WPF described here:...
View ArticleThe items collection must be empty before using itemssource
I'm trying to data bind two itemssources. I assume I have to rearrange my xaml. But I don't know how to do this.How can I solve this problem?My xaml:Page x:Class="Dienstverplaatsing.Page1"...
View Article