In XAML (or code) is there a way to default the UpdateSourceTrigger to PropertyChanged for all bindings?
http://msdn.microsoft.com/en-us/library/system.windows.data.binding.updatesourcetrigger.aspx
http://msdn.microsoft.com/en-us/library/system.windows.data.updatesourcetrigger.aspx
...
I've got a bunch of Model3DGroups and want to determine which one has been clicked on.
Here's an example of how they look like:
<Model3DGroup x:Name="Linie04OR23">
<!-- Linie04 (XAML Path = (Viewport3D.Children)[0].(ModelVisual3D.Content).(Model3DGroup.Children)[8]) -->
<Model3DGroup.Tran...
How do I expand the node by clicking on the item text?
Purpose is to make it easier to expand or close a node, apart from depending on the Expander arrow button.
...
What I need to find is when a textbox's value is changing or the dropdown's value changes inside my datatemplate item, I need to be notified in my ViewModel.cs.
So basically as a user edits a textbox inside the listbox, the viewmodel will be notified as the values are changing.
The reason is I need to go through all my Entries and upda...
Hi there,
I've been trying to resolve this issue for some time.
I'm trying to bind a TextBlock's text to a string property using the INotifyPropertyChanged interface. For some reason the PropertyChangedEventHandler is always null when the value of the property is changed thus the target never gets updated...
Any suggestions?
Code below:
...
Situation is as follows:
A DataGrid has a RowDetailsTemplate, which contains another DataGrid (the subgrid). If you add a DataGridTemplateColumn which contains an EventHandler, a NullReferenceException is thrown by PresentationFramework.dll.
This issue is only present in .NET 4.0. If the project targets .NET 3.5 (and uses WPFToolkit f...
I have a DataTrigger setup like so:
<UserControl.Resources>
<Style x:Key="resultTypeStyle">
<Style.Triggers>
<DataTrigger Binding="{Binding Result, Path=Result.Type}" Value="Confirmation">
<Setter Property="Control.Visibility" Value="Collapsed" />
</DataTrigger>
</Style.Trigger...
I have a button on a view that is bound via a RoutedUICommand to a command defined in the ViewModel.
The XAML code excerpt from the view:
<Button Content="Login" Command="{Binding Login}" />
In the View's CodeBehind I add the command binding from the ViewModel to the view's binding collection:
this.CommandBindings.Add( viewModel.Lo...
Based on the below snippet from a silverlight control how do I make the clicked HyperlinkButton open in a new browser window?
<HyperlinkButton Content="{Binding Name}" NavigateUri="{Binding Url}" />
I'm assuming that I can do this in the xaml, but I don't see a likely looking property.
Thanks,
Phil
...
I assigned x:Name in my XAML-file to a object which can trigger a MouseDown-event.
In that event I'd like to get the x:name-attribute of the sender again.
How do I do that?
The object looks like that:
<ModelUIElement3D MouseDown="ModelUIElement3D_MouseDown" x:Name="trololo">
...
I ran in to the unique situation today where I needed to bind the Visible property of a button in a DataGridRow to be based on both a property of the bound object and of the model backing it.
XAML:
<t:DataGrid ItemsSource="{Binding Items}">
<t:DataGrid.Columns>
<t:DataGridTemplateColumn>
<t:DataGridTemplateColum...
I am trying to format a data bound item to just show three decimal points. It is inside a datatemplate written in the C# code. In wpf it was formatted like this
<TextBlock Grid.Column="1" Text="{Binding Path=[XValues], Converter={x:Static my:Converters.Format}, ConverterParameter=#.##}"/>
and in c# I have this so far
new XAttribute...
I have the following style defined in the ResourceDictionary of a Silverlight 4.0 application
<Style x:Key="GridSplitterStyle" TargetType="sdk:GridSplitter">
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="VerticalAlignment" Value="Stretch" />
<Setter Property="Background" Value="Transparent" />
...
I'm in the process of removing the XAML from my Silverlight project and making it use only code (as per this article).
Here is my very simple startup event for a Silverlight application (with the standard App.xaml from the template project):
private void Application_Startup(object sender, StartupEventArgs e)
{
Grid grid = new MainP...
I am planning to use coverflow control in my Silverlight application, but I am not able to find the cover flow control in the Silverlight XAML controls tool kit.
Also right click on the "Tools pane > Choose XAML components tools >" but still the cover floe control is not there in the Silverlight library
Can anyone provide me solutions...
Hey,
I'm designing a UI in Visual Studio 2010, and I've come across a slight problem. I'm fairly new to XAML and this method of design, so this might be a rookie mistake. I've looked around but can't seem to find reference to a similar problem.
Basically, I have a grid with 2 rows, one of which contains a stackpanel and 5 columns. The ...
I have my usercontrol. I need to do that he would not seliarizovalsya with undo \ redo in richtextbox
...
I have an ordinary Label and want to make it half-transparent.
How to do this?
Code is just:
<Label FlowDirection="RightToLeft" FontSize="40" Padding="0" FontFamily="Arial" FontWeight="Bold"">
X
</Label>
...
I have found an excellent video about how to bind controls to an XML dataset completly in Blend without a single line of code.
I am trying to do the same - bind a textbox to a value of Dataset --> MyDataSet.xsd which grabs the total number of rows in a table (executes: select count(id) from books). And I am having a really hard time doi...
I want to create an own event (which I'll fire via code) for a CustomControl via XAML.
This would allow me to add a trigger for an animation which I create in XAML.
...