I've got a datagrid with some defined columns and then a row details template. How do I access a control in the row details template within the code behind? I've got a button that I want to programmatically enable/disable, but I can't figure out how to get access to it in the code behind. I've seen this on the MSDN:
http://msdn.microsof...
Is there a way to debug Visual Studio or Blend so I can figure out where XAML designer load errors come from in my code?
The stack traces are often useless.
Thanks...
...
Hello, and thank you for looking into my question. I would like to customize the ScrollBar in my ScrollViewer. No problem. But wait. When I do that, it also changes the ScrollBar of the inner controls. I don't want to impact those ScrollBars. How do I specify the correct scope?
Here's the XAML that almost works:
<Page
xmlns="http://s...
I have a lot of XAML that is in a complete mess and it's usually due to one thing. GRID, Grid.Column and Grid.Row craziness!!
Now theres a few common ways you can make labelled lists in XAML:.
With a <Grid>
Advantages: Autosizing width of columns and rows
Disadvantages: No easy way to insert rows/columns either in VS or Blend [STILL!!...
Can you guys tell me is there any good, kind of a sample app where you can try all those easing functions with different parameters and see the changes?
I mean there are two actual reasons why I can't built myself one:
I simply don't have time
I am a damn stupid indolent guy who needs to indulge his laziness
...
I have just started playing with Microsoft's 08/2010 WPF Ribbon release. The basics appear pretty straightforward, but how would I create a RibbonToggleButton group that would allow only one button in the group to be selected at one time, similar to the way that radio buttons are supposed to behave? Thanks for your help.
...
I've already scoured my XAML file for the word "Width" and it only appears with a number as a value at the root element, setting the width of the entire control. The word "height" only has a numerical value at the root element and two textboxes that aren't in the same Grid cell as the checkbox below.
Unfortunately, regardless of the val...
I'm writing a WPF app using an MVVM approach. In my ViewModel, I have an ObservableCollection. Periodically, my app needs to check for new messages, and, if there are any, it needs to add them to the ObservableCollection.
If I try to add to the ObservableCollection in the DoWork, it doesn't work because of thread synchronization issue...
Hi,
I want to increase the particular row height to twice in the WPF DataGrid when mouse is over that row but the remaining rows height should not be changed. When the mmouse moves over on the another row only that row height should be double and the previuos row height should become normal.
Please let me know how to do this.
Previous...
Normally, to set style using C#, I write,
btn.Style = (Style)FindResource(_styleName);
But what to do, if style is defined inside main 'ResourceDictionary', and button is inside some 'UserControl'. Also, I need to write script inside 'UserControl' only.
To make it more clear - There is a button inside UserControl which should take sty...
I am using different toggle buttons and buttons in the view. I need to use the IsEnabled and IsChecked property of the toggleButtons in the view Model to diable some buttons and toggle buttons based on some conditions. Suggest me any methods to access any properties of a control in the view to the view model.
...
Hi Experts,
We are designing one form in WPF which will have 5 modes.
Now the question is that should handle these 5 modes in the same form by defining one form enum and manipulating the visibility of the controls. One thing to be noted is that as the mode goes on changing..complexity is going to increase for handling these modes.
No...
I have the folowwing C# code in the .cs file and I want to move it to the XAML.
the code includes property called: OperationConverte
Binding binding1 = new Binding("DisplayNames")
{
Source = OperationConverter,
};
ComboBox4.SetBinding(ComboBox.ItemsSourceProperty, binding1);
Binding binding2 = new Binding("...
Hi,
I am trying to manipulate a requested document in the WPF WebBrowser-control. I already managed it to invoke JavaScript on loaded document, but I am not able to change the shown HTML-code in the control itself.
My (very simplified) code in the OnNavigating-Handler looks like this:
mshtml.HTMLDocument doc = (mshtml.HTMLDocument)...
Hello,
I have a Grid control (not a DataGrid) and I want to remove the content of e.g. the second column in the second row. Can this be done without having a reference to the content of a grid cell?
Thank you very much for any hint!
...
Hello,
i've made a binding from a TextBox to a Property. If the user write a date-value into the TextBox, it should be automatically corrected. f.e.: 20.01.10 -> 20.01.2010
The correction is done in the propertys set-block:
public String DateOfBirth
{
get
{
if (patient.DateOfBirth != DateTime.MinValue)
...
I understand the concepts of Visual and logical tree but still I am not able to understand the real use and need of these. Although its not necessary to know everything about these trees but I believe it will benefit in some advanced scenarios.
I have already gone through following articles and have understood the concepts
http://www.c...
I am looking for a WPF control which is a hybrid of TreeView and DataGrid, something like the Visual Studio debugger or QuickBooks contacts list etc.
Any other solution on how to handle editable hierarchical data in WPF will be very welcommed as well.
...
Hi,
I have an issue with datagrid row on mouse click.i am attaching beforeclick(bc8e274d68.jpg) and after click(0058e0fc53.jpg) images url of my datagrid.
Before mouse click row data is center aligned .But when i click on row data is aligning to top.
Please any one help me out to set my row data as center aligned on mouse click.
Be...
Hi, I have a similar problem to this question regarding painting of wpf controls
The application I work on is a rather large Windows forms threaded application with several wpf user controls throughout the application. The problem occurs in a plugin of the application where a third party c++ library is called on a separate thread, WndP...