Add A StyleSetting inside a Style
Hello,I have this code:<dxb:BarEditItem Name="eFileToolSelect" Content="Tool" Hint="The current selected tool" Description="The current selected tool" IsEnabled="{Binding ReadyMode}"...
View ArticleCanvas WPF: Zoom on pointer and Pan (again)
Hi,after two days lost by attempting to resolve this problem, I think that i need help to solve it... ;)I've made a simple application with a Canvas into the main window. For testing, this Canvas is...
View ArticleGraphical GUI with Boxes connected
Hello,I have to develop a C# GUI application. Upon launching the GUI the user can create a module which is a box control displayed in the view. This box is basically a list view in which I can...
View ArticleTouch Event responsiveness/performance/delay
When I manipulating a framework element with MouseEvents everything works fine andit responds instantly without any delay. But when I manipulate this element with my finger (TouchEvents) the...
View Articlehow to filter a listbox while user enters charater in a textbox, mvvm light
what are the codes to use to filter out my listbox as the user is typing in the textbox? i am new to c# and what i did acheive till now is as follows, the data in my listbox is from database. I have...
View Articlebackground color of selected item in SimpleListBox
Hi guys, SimpleListBoxItem's Trigger is not working. Why?Here is the default of SimpleListBoxItem:<Style x:Key="SimpleListBoxItem" d:IsControlPart="True" TargetType="{x:Type...
View ArticleHow to get a horizontal SimpleListBox
Hi Guys.The following does not work for SimpleListBox. So, How to get a horizontal SimpleListBox<ListBox> <ListBox.ItemsPanel> <ItemsPanelTemplate> <StackPanel...
View ArticleBulk update and delete from table
Hi, We have delete 8000 records from DB at same time. While going for...each loop and obj.delete(), we are facing performance issue. Can someone help for bulk insert and delete from DB.We found chunk...
View ArticleWPF Generic.xaml with Visual Studio 2015
I just wanted to migrate our Project to the new Visual Studio 2015. Unfortunately I got a problem with the Generic.xaml. I have a user control in a separate assembly and put all styling stuff in a...
View ArticleAdding a background to WPF
Hi,I am new to WPF. I am trying to add a background to my WPF form,but I recive this error when I hit run.I am migrating from WinForms,and I find WPF really hard to work with.Is there any chance for...
View ArticleDifference between Data template, Control Template & Item Template
Hi All,What is difference between Data template, Control Template & Item Template (in detail) in WPF ?There are lots of article on net related to this issue, but they are too confusing.Please...
View ArticleWPF datagrid right alignment for particular column how?
Hello Exports,I have a wpf data grid and below code is working fine but when I change default alignment to right alignment then change back colour of the column, How to set default back colour? or how...
View Articlewho to Stop processing if application window is totally obscured ?
I am developing a WPF application when the application is shown a thread work and show a refreshed data on the application ui . for saving performances i want to stop this Thread if the application is...
View Articlengen.exe application - the application was unable to start correctly...
after installing the .net 4.5.2 framework, if I inatall my application using installer it show the error, "ngen.exe application - the application was unable to start correctly 0xc00007b. click OK to...
View ArticleWPF Listbox taking long time to load when there are 32K reocrds
Hi,I have a listbox in my xaml page and I ahve 32086 records to get binded to that. Listbox is taking more than 10 minutes to load in the page. 1. What is the max Limit of records to be loaded in wpf...
View ArticleSet property from message
My thread send one time the following message:Messenger.Default.Send(new NotificationMessage(Notifications.IsStop));In my VM that receiver message set a property IsStop = true; private bool isStop;...
View ArticleFatal Error occurs while closing a window
Hi,I am facing fatal error while closing a window which has two dockable panes and one document pane.When i set auto hide of one of the dockable pane and move my focus to it, the dockable pane shows...
View ArticleGetting null item in select template of DataTemplateSelector
I am trying to use ContentTemplateSelector of ContentControl to load the DataTemplate for it in code behind.For the first time alone, getting null in the argument item of SelectTemplate.Here is my code...
View ArticleInitialize New null Rows >> C#
my code:DataTable tbl = lib.GetDataFromTable("SELECT column_name, data_type, nullable FROM user_tab_columns WHERE table_name = '" + _table + "' order by column_id", "Usr");for (int element = 0; element...
View ArticleIOException
When I tried to transform byte[] into BitmapImage, at the step bitmap.EndInit() it threw the IOException: unable to read from the source.Following is the code:BitmapImage bitmap = new BitmapImage();...
View Article