I've a created a simple scrollviewer (pnlDayScroller) and want to have a separate horizontal scrollbar (associated scroller) to do the horizontal scrolling. All works with the below code accept I need to bind the visibility of the associated scroller.
I can't simply bind this to the visibility property of the horizontal template part...
<Canvas.DataContext>
<ViewModels:VMSomeControl Model="{Binding RelativeSource={RelativeSource TemplatedParent}}" />
</Canvas.DataContext>
<!-- DataContext is not passed into these Instances.
they also have no knowledge of their TemplatedParent. -->
<Canvas.Resources>
<!-- is there a way to use a binding t...
I have a problem whit binding in wpf i have a textbox where i can do some input, then i try to bind the textinput to a custom usercontrol. This work for the usercontrol within RowDetailsTemplate but not in the CellTemplate. For each object in the CellTemplate i get this error output:
System.Windows.Data Error: 4 : Cannot find source fo...
Hello.
I have a wpf control named DataPicker which has a dependency property named SelectedDate.
In simple cases it works well but there is one case where binding fails and I can't understand why: when i try to bind it inside a ListView.
For example, I have class (INotifyPropertyChanged is implemented)
public class TestClass : IN...
I am just getting into the Silverlight world, and wish I didn't learn WPF first so I wouldn't be so frustrated with the little things that are missing.
In WPF I was using commands (RoutedUICommand) for my view/UI to handle "events" (by event I mean something the user did) and passing them to the viewmodel.
Now in silverlight I find tha...
http://stackoverflow.com/questions/2455963/wpf-mvvm-dynamic-animation-using-storyboards
There is a question i have found that relates directly to the issue I am having. The answer provided in that thread is a bit short, however. I did a little looking on google for 'attached properties' and i still remain a bit confused.
Could someon...
I am trying to bind to a static property on a static class,
this property contains settings that are deserialized from a file.
It never works with the following XAML :
<Window.Resources>
<ObjectDataProvider x:Key="wrapper" ObjectType="{x:Type Application:Wrapper}"/>
</Window.Resources>
<ScrollViewer x:Name="scrollViewer" Scrol...
I'll try to make this as simple as I can.
I want to do this:
<Storyboard x:Name="MoveToLocation">
<DoubleAnimation Duration="0:0:0.5" To="{Binding X}" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="grid" d:IsOptimized="True"/>
</Storyboard>
As you may have noticed the...
Hi everyone,
i was asked this question in an interview.
late binding is dynamically identifying the symbol during the runtime as far as my knowledge is concerned.please correct me if i am wrong.
i was asked a question like what are some of the problem that we would face when we use late binding in c++. i was actually out of my own ide...
Hi, I have a problem with binding in ComboBox. I'd like to bind ComboBox items to ListView columns and as a selected value return value of attached property defined on the selected column.
In example bellow you can see working sample that displays width of selected column. If you try to change SelectedValuePath in ComboBox into (loc:Sam...
I'm using ASP.NET MVC Binding Framework.
Let's say I have a class Item, that has a mandatory field Id.
I am binding a List, and do not want one error message for each element in this list.
If more then one error happen when binding the Id field, I want only one message to be added to ModelState and shown to the user.
In one sentenc...
Hi!
I would like to set two values for two different nodes from user input in XForms. I am curious about how this is done, if at all possible.
For example, if I have the following data model:
<xf:instance id="criteria_data" xmlns="">
<criteria>
<set>
<root></root>
<criterion></criterion>
</set...
Hi all,
I am trying to figure out the right place to bind a function prototype to be called later. The full code of the example can be found here:
http://www.iprosites.com/jso/
My javascript example is very basic:
function Obj(width, height){
this.width = width;
this.height = height;
}
Obj.prototype.test = function(){
...
My ListView does not refresh its bindings when i call OnPropertyChanged. I have tried to force it to refresh by:
NestedArguments.GetBindingExpression(ItemsControl.ItemsSourceProperty).UpdateTarget();
But still, no luck!
YES, it does get updated. I have set a breakpoint and checked.
What is going on?
Other bindings seem to work wit...
I've written a game in C# with SDL.NET and OpenGL. I want to add a menu to it, for which I need Qt. What bindings do you recommend for Qt in C#?
Qyoto? (apparently it's still unstable in Windows.)
qt4dotnet?
other?
Requirements:
fast
should just work and be polished - i.e. no weird problems at every step
integration with the builds...
I have two properties in my view model:
//Relationship has property ReasonForEndingId
private Relationship editRelationship;
public Relationship EditRelationship
{
get
{
return editRelationship;
}
set
{
if (editRelationship != value)
{
...
I would like to avoid having to build a menu manually in XAML or code, by binding to a list of ICommand-derived objects. However, I'm experiencing a bit of a problem where the resulting menu has two levels of menu-items (i.e. each MenuItem is contained in a MenuItem):
My guess is that this is happening because WPF is automatically gen...
How would I accomplish what Salesforce.com does for logging in with WCF? I would like to have an authentication service that returns a token on a correct login. Then, each set of service calls would pass the token back. I don't want to pass the token on each method call.
What is throwing me is how the session header is part of the bindi...
I really don't know how to title this question, but I need some help with binding to a ListBox.
I have an object, that contains (among other information) 2 properties that need to be bound in one ListBox. One of these is an ObservableCollection of objects, called Layers, and the other property holds an enum value of either Point, Line o...
In XAML I can write something like this:
<Setter Property="PropertyName" Value="{Binding ...}" />
How would I do this in code? I've constructed bindings in code before, but I can't seem to find any static ValueProperty object on the Setter class to pass to BindingOperations.SetBinding().
...