I have a class which has a DependencyProperty member:
public class SomeClass : FrameworkElement
{
public static readonly DependencyProperty SomeValueProperty
= DependencyProperty.Register(
"SomeValue",
typeof(int),
typeof(SomeClass));
new PropertyMetadata(
new P...
How can I bind to a UserControl's property from within its ResourceDictionary? I want an object I declare in my resources to have the same DataContext as the UserControl it is contained in:
<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xm...
Hi,
I used to have one project where i had defined all my application settings. In all the different forms I binded controls to those settings and everything worked great.
I decided to split the one project into several ones. One of the projects is now shared by all and that project is now hosting the application Settings.
The problem i...
Hello,
I have a VC++ managed app that was built and tested against VC80.CRT version 8.0.50727.762. I verified that the embedded manifest points to 762, and the build machine has 762 as the latest VC80.CRT version.
The app has now been also run on a machine that has both 762 as well as a later version of the runtimes (4053).
Both mac...
i just took the demo jquery UI dialog (model dialog) sample
and tried to include it in my asp.net mvc project and i have observed something weird.
If you have content inside a jquery ui dialog div tag, the default model binder doesn't pick it up during posting to the server as it if removed these elements from the form
the full view...
Hello,
what do I have to change in my xaml/code to make the binding to the properties => SchoolclassName and LessonName work on both TextBlocks? I get no Binding errors but I do not see anything displayed?
<Grid Margin="20" Height="300" Background="AliceBlue">
<ListView ItemsSource="{Binding Timetable}">
<ListView.V...
I am a newcomer to WPF, attempting to build a project that follows the recommendations of Josh Smith's excellent article describing The Model-View-ViewModel Design Pattern.
Using Josh's sample code as a base, I have created a simple application that contains a number of "workspaces", each represented by a tab in a TabControl. In my appl...
hi
I have 2 questions:
1- We all know that can create an array list full of some employee objects and bind a datagridview to it.
but is that way have some advantages to other ways?
2- using the way above, how can we get the employee object info when a user clicks on a row of the datagridview?
thank you
...
How one can achieve late binding in C language ?
...
Is there a way to get the file and/or assembly version for an object in VB6?
We are having some reference issues, and I am able to create the object in late binding on the machine that is having problems so I am hoping to spit out the version it is grabbing to figure out where that version is sitting.
...
Hi All,
I am working on a WPF application similar to visio. I would like to be able to logically group some of the items in my diagram, each of which is a UIElement, and control certain behaviors (i.e. visibility) at the group level.
My first attempt at this was to create a control, called a Group, which had width & height = 0. I w...
I have a combobox that is bound to a an instance of a class. I need to get the user's selection ID of the combobox and set a class property equal to it.
For example, here is the class:
public class robot
{
private string _ID;
private string _name;
private string _configFile;
[XmlElement("hardware")]
public hardware...
How it is determined whether the below call is bound at compile time or at runtime?
object.member_fn;//object is either base class or derived class object
p->member_fn;//p is either base class or derived class pointer
EDITED:
#include <iostream>
using namespace std;
class Base
{
public:
Base(){ cout<<"Constructor: Ba...
I've got a simple question, I've got a combobox whose itemsSource is bound to a relatively expensive service call.
If I have the combobox in question disabled will the binding still fire? If so what I can I do to ensure that the expensive call is only made when it really needs to be?
...
I've totally lost in the command binding that is used in MVVM. How should I bind my object to the window and/or its command to the control to get method called on the button click?
Here is a CustomerViewModel class:
public class CustomerViewModel : ViewModelBase
{
RelayCommand _saveCommand;
public ICommand SaveCommand
{...
I have two separate Silverlight usercontrols containing grids and i want these to share a set of columndefinitions. The columndefinitions must be created dynamically. How can i do this?
...
I have this DP:
public bool ShowEntireHierarchyEx
{
get { return (bool)GetValue(ShowEntireHierarchyExProperty); }
set { SetValue(ShowEntireHierarchyExProperty, value); }
}
public static readonly DependencyProperty ShowEntireHierarchyExProperty =
DependencyProperty.Register("ShowEntireHierarchyEx"...
Can someone help me translate this to CLR code:
<ContentControl Content="{Binding}" />
...
Here is JSF code:
<o:chart id="categoryLineChart" model="#{categoryReports.categoriesLineChart}"
view="line"
rendered="#{categoryReports.reportRendered}"
height="#{categoryReports.scaleHeight}" width="#{categoryReports.chartWidth}"
binding="#{categoryReports.lineChartComponent}">
<o:chartNoDataMe...
Does a Binding know the variables it stores? Or do I always have to use this in conjunction with local_variables?
...