Wpf calendar change header background
Hi! How to change header background of a calendar control? I need only top, not all area. Thanks a lot!! ...
Hi! How to change header background of a calendar control? I need only top, not all area. Thanks a lot!! ...
Hi, I'm looking for a type of grid control that would allow the user to enter values and save them to a database. The problem with DataGrid is such that if there are no data from the database already the grid is not visible. In my application, the user should see an empty grid and be able to fill it with his data and then save it. The ne...
I've got a situation in which I need to show an integer value, bound to a property on my data context, after putting it through two separate conversions: Reverse the value within a range (e.g. range is 1 to 100; value in datacontext is 90; user sees value of 10) convert the number to a string I realise I could do both steps by creati...
OK here's the problem, I have a ContentControl3D object from thriple in that im creating a LibraryStack with images it runs fine, until i run the function where the LibraryStack gets created and filled. when i click on any of the objects inside i get the following error An unspecified error occurred on the render thread. with stacktr...
How do I cancel a user selection in a databound WPF ListBox? The source property is set correctly, but the ListBox selection is out of sync. I have an MVVM app that needs to cancel a user selection in a WPF ListBox if certain validation conditions fail. Validation is triggered by a selection in the ListBox, rather than by a Submit butto...
Hi, I get this error when I define my attached dependency properties in a class outside the class hierarchy and set the owner to a common parent class. Attached dependency property in WindowBase class (outside class hierarchy => generated error): public static readonly DependencyProperty AreaColorProperty = DependencyProperty.Register...
Hi All I have a Listview that has a checkbox as one of the columns. If I click anywhere but the actual checkbox the SelectedItem of the ListView is set to the current selected row, as expected. If, on the other hand I click onto the checkbox (without clicking on the row first) then the SelectedItem is null or the previously clicked row....
I've read this very related question here on SO, and it was extremely helpful because of the link in the answer. I'm just having a problem now going the extra step and making it all work with the MVVM pattern. Let's say I have my ViewModel, and it (or even the Model) could have an enum defined: public enum MyTypes { Type1, Type2, Type...
None of the brushes in SystemColors seems to fit the bill, and IIRC, the OS theme beginning with Windows XP uses a gradient. Is there standard OS dialog box background brush or a way to tell WPF that the window is a dialog box and it should paint the background accordingly? ...
I have some code that starts a background process for search in my WPF application: private void RunSearch(SearchArguments arguments) { _getSearchResults.DoWork += GetSarchFromDb; _getSearchResults.RunWorkerCompleted += SearchFinished; _getSearchResults.RunWorkerAsync(arguments); } RunSearch is exicute...
I don't understand, I have a toolbar with buttons bind to custom commands. Also I have an expandable control docked to the left of window - kinda NavPanel. (Devcomponents' NavigationPane to be exact) Now, everytime when it's collapsed or expanded, buttons in the toolbar become disabled and stay like that till the focus changes. Of c...
Is there any book or links that I can read some tutorial about the WPF ribbon control. I need to get some basics . Also can any one recommend good book in WPF or a starter kit. Thanks. ...
I have the problem where i have a WPF RichTextBox, and i'm extracting its XAML code and saving it to a txt file. When i copy paste the XAML code generated to a XAMLtoHTML converter like this http://blogs.msdn.com/wpfsdk/archive/2006/05/25/606317.aspx , some error must be occuring as i'm always getting a blank result! If i write test in ...
How programmatically create an element based on UserControl and dock it to the DockPanel? ...
I'm dealing with a large WPF application that is outputting a large number of binding errors. A typical error looks like this: System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=Horizon...
Assuming I have a BitmapSource (actually I have access to the raw pixels as well if necessary), how can I use a PathGeometry as a mask to cut out certain parts of the image? 01234567890123456789 0 -------------------- 1 | + + | 2 | * | 3 | * ) | 4 | * | 5 | ( ...
Given the following XAML: <Window x:Class="AdornerTesting.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="500" Width="500" Loaded="Window_Loaded"> <Grid Name="grid"> <Canvas Name="canvas" ...
How to apply validations to WPF datepicker toolkit? I want it to error out if invalid date is selected and in some case I have Arrival and Departure dates, so I want to validate it to see that the arrival date is not later than the departure date. ...
Not sure if this is possible but is there a way to open up another program like notepad within the container of a WPF window? similiar to that of being able to open a web page using the webbrowser control? Basically I would like to open notepad or other exe but keep it constrained within the WPF window container using xaml/c# code? not ...
I'm really new to the WPF in the .Net Framework (get that out of the way). I'm writing an application where the interface is very customizable by simply loading .xaml (at the moment a Page element) files into a frame and then mapping the controls via names as needed. The idea is to have a community of people who are interested in makin...