Resources can't be found when App.xaml's Build Action = Page
I changed the build action of my App.xaml to "Page" so I could handle a splash screen and make sure my application run as a single instance only (having my own entry point). It works fine in run-time...
View ArticleAsync not stopping in code when task was end
HI ,Im using the following code in a-sync and the problem is that after i get the data (from the GetUsersData();) the screen is invoked and the code is not reach to the isServiceValid,how can I change...
View Articlewpf, DatePicker Format DateTimePickerFormat.Custom?
Given <DatePicker x:Name="gDPiDatePickerTest" /> gDPiDatePickerTest.Format = DatePickerFormat.Custom; gDPiDatePickerTest.CustomFormat = "dd MMM yyyy";What is the correct syntax for...
View ArticleReg data trigger in code behind
Hello,I have below code in Window.Resources in XAML.<Style TargetType="DataGridRow"> <Style.Triggers> <DataTrigger Binding="{Binding Name}" Value="Input">...
View ArticleHow to consolidate error messages?
My WPF UI includes < Name>textbox</Name>< cellphone>textbox</cellphone> if two fields are blank then I want to get error message after cellphone part. How to achieve it?
View ArticleTouch Application - Rotation (WPF, VS 2010 c#, Windows 7)
Hi, I made a simple 2D image rotation (WPF, VS 2010 c#, Windows 7) on multi-touch tabletop. Currently it is with free rotation depending on fingers movement. Can I make rotation only towards defined...
View ArticleNew row getting added to the DataGrid even when the users don't enter any data
I have a WPF data grid which will be populated with some existing data on screen load. The user can also add new rows in the grid. To enter the value for the new row I will be double clicking the cell...
View ArticleHow to fix width for chart? wpf c#
When I create chart, width of chart is dictated by numbers of digits on Y axis. I want to fix width of chart (want the chart starts from red line and blue area would be reserved for digits at Y axis)....
View ArticleSort Listview row by Column ID in wpf
Hello,I have listview with columns ID, Item, Price, Size etc.How i sort ListView by column ID on load XAML window.Column ID would be 1, 2, 3, 4Basically i need a function when i called that function...
View ArticleThread and loading animation
Hi I am a beginner in C # WPF. I have two problems that I want to share with you so that you can help me In one part of my application I have a textbox a button on my form. On button click, I make a...
View ArticleAdding CheckBox Column In Datagrid in wpf using c#
i want to add a check-box column to datagrid using c# Im using vs2012ihave aleady a itemsource of datagrid binded to a table from database and want to add checkbox column to it
View ArticleHow to stop task and mouse cursor when having exception
m using the following code and the problem is that when I have exception in GetUserData() I get message to the UI and the mouse courser is not stopping ,when I put inside the catch the mouse...
View ArticleChange button & checkbox style programmatically when it's disbaled
Hi Guys, I would like to change the style of the button & Check box when it's disabled programmatically? cTest1.IsEnabled = false;bTest2.IsEnabled = false;So at that point how can i apply a new...
View ArticleProblem with Edit in Entity Framework
I have this form with a DataGrid in it+an edit button and by using edit button another window opens and selected item in DataGrid will be passed to edit window using an argument in it's constructor....
View ArticleHow to assign one style in runtime?
Hi ya there,This thread is PreviousThread related to.That's my general styles file: <Style x:Key="EnglishDatePicker" TargetType="{x:Type DatePicker}"> <Setter Property="Text"...
View Article"Page UP" KeyBoard key is not working properly on DataGrid in WPF
Hi All,I am working on custom DataGrid (extended DataGrid of WPF). I am facing a problem as follows -1. If I create more than 500 rows on the Datagrid and focus is on cell of 500th row. If I pressed...
View ArticleClosing my UserControl?
Hi there, From my main XAML view I am loading one Window and once loaded I'm calling one UserControl under criteria.That's fine but I don't know how to close, at first my UserControl, and finally my...
View ArticleButton with arrow shape
Hi, i want make Button with default color styles and triggers and only change shape of button to shape of arrow. Is it possible by some easy way??Can you advice how do it?? Thank you.
View ArticleXml Parser Exception
Hi: Can anyone suggest a solution? Everything else works and this code should work but I am having another parser problem with the following XML code:public static XElement DrawingTextXml(string...
View ArticleGetting Index of row in which checkbox is present
How Can I get the index of row whose checkbox column is checked in wpf grid
View Article