Hello,
i have a problem with wpf-grid in .net-framework. I have defined a grid in a UserControl, which contains a listview, that shows some content. The content of the listview is presented with DataTemplate and contains a TextBlock which could getting very wide.
My grid should separate the UserControl in two 50-50 parts. Both parts sho...
I'm in the process of creating a message application in WPF, as part of this I have a listbox which shows all the messages currently avaliable with the authors Title and Name. Anyway I'm currently in the developing but the data I wish to show isn't appearing but the titles do (Author: and Title:). Please be aware my XML file is a test th...
I have searched around but have been unable to find out the recommended pattern for generic exception handling when using a control such as the wpf toolkit datagrid.
As an example, at the moment I am getting unhandled exceptions caught by my shell application. This happens when a user clicks on a column header to sort it, and it is unab...
Here is my button template,
<Microsoft_Windows_Themes:ButtonChrome
x:Name="Chrome"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
RenderDefaulted="{TemplateBinding IsDefaulted}"
RenderMouseOver="{TemplateBinding IsMouseOver}"
RenderPressed="{TemplateBinding IsPressed}">
...
In my WPF application I would like to attach an input gesture to a command so that the input gesture is globally available in the main window, no matter which control has the focus.
In my case I would like to bind Key.PageDown to a command, however, as soon as certain controls receive the focus (e.g. a TextBox or TreeView control), thes...
Hi,
I've got a KeyFrame Animation storyboard and a separate rotation transformation in my Window.Resources.
The rotation transformation works as I can alter the angle and see the content rotate. I know the storyboard is being called, because it took me a few goes to get the PropertyPath right after I clicked on the button.
However no...
Is there an alternative to Attached Command Behaviour for handling events like DataGrid's MouseDoubleClick event, or TextBox's LostFocus event in the ViewModel ?
e.g., View::
<Window ........
DataContext=".......">
<TextBox LostFocus="{Binding Command1}" />
<! -- or -->
<WpfToolkit:DataGrid...
I have this custom wpf user control:
ShowCustomer.xaml:
<UserControl x:Class="TestControlUpdate2343.Controls.ShowCustomer"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid>
<TextBlock Text="{Binding Message}"/>
</Grid>
</UserContro...
Hi all,
I have a ViewModel with a boolean MultipleSelections property and a DataView FoundData property. My view contains an Infragistics XamDataGrid bound to the FoundData property and SelectionTypeRecord is set to Extended (or it is not set and defaults to Extended).
I want to be able to change the SelectionTypeRecord to Single when ...
Hello,
I'm trying to bind a Dependency Property from my UserControl to my MainViewModel.
This is how the DependencyProperty looks like:
public static DependencyProperty ItemHasChangesProperty = DependencyProperty.Register("ItemHasChanges",
typeof(boo...
Is there a way to bind a value to the absolute position of a control using XAML?
I have a Line element that I would like to be drawn between two Buttons in my application. I was thinking that binding the starting point of the Line to the position of the Button would be the easiest way to make this happen, using RelativeSource somehow.
...
When I create a user control in WPF it would appear that all the children of this control are declared as internal? I've not been able to verify this, nor finding any resources discussing this matter at all.
I can access the controls in the same assembly, but not in a project referencing the assembly where the user control is located. I...
I'm fairly new to WPF. In our current project, we've added validation rules for all data entry fields that we need validation for. We have also copied code (also posted elsewhere here at stackoverflow) that recursively loops over all bindings and their validation rules, in order to know whether or not all the data is valid before saving ...
Hi there,
I want to create a custom scrollviewer control for a touch screen application without using scrollbars. To accomplish letting the users know that they can scroll the content, I am fading the bottom and top part of the scrollviewer with a linear gradient using an opacitymask. This all works fine, except for a problem with the o...
Is there any opensource library/WPF Control that can act as bitmap editor (e.g. just like old good MS Paint)? Or some example for starting point?
To be clear — I'm looking for a library (or something), that can be used inside my application.
Any other ideas are wellcome.
...
Is there anyway to change the dropdown button of the datetimepickers color to look like the attached image? If I have to use WPF I will, but I was hoping there would be a way to do it through code.
Thanks
...
I might be suffering of Monday's dumbness, but I can't find a nice way of expanding all treeview nodes after I've added them in code behind (something like treeView.ExpandAll()).
Any quick help?
...
Hello I'm using the WPF DataGrid and I'm trying to get the ComboBox Column to work.
<tk:DataGridComboBoxColumn Header="GroupLevel"
DisplayMemberPath="Type"
SelectedItemBinding="{Binding Path=GroupLevel}"
>
<tk:DataGridComboBoxColumn.EditingElementStyle>...
I have an extensive WPF application and I now want to incorporate some reports. I understand how to create the reports with RDLC but what about viewing them? Ideally, I'd like to use the DocumentViewer but I don't think that's one of the supported file types. Some articles have suggested using the ReportViewer, but I do not have that as ...
I have a small WPF app (although I guess it doesn't really matter whether it's a wpf form or a webform app?) that I want to have launch a new browser window and POST to a specific url. I've been messing around with:
System.Diagnostics.Process.Start("http://myurl.com");
to launch the window but I don't think I can use the same process ...