I wrote app with multiple views. Viewmodels are assigned to "smartcontentcontrol" which is derived from contentcontrol and overrides contentproperty metadata to handle changed event for that dependency property. I put some effects on that callback for visuals (renderbitmap and so on).
Now i have extended my viewmodel so, that uppon assig...
I have the following sql table which contains menu (website menu) data.
Table Name: MenuItems
Columns: Id, MenuId, ParentMenuItemId, Text.
My goal is to bind a DDL according to the following hierarchy (example):
Id: 1, MenuId: 1, ParentMenuItemId: -1, Text: 'One'
Id: 2, MenuId: 1, ParentMenuItemId: 1, Text: 'Two'
Id: 3, MenuId: 1,...
Hi,
I want to send an array of objects in the get request string. I know this isn't the optimal solution, but I really just want to get this up and running.
If I have a class, something like this
public class Data
{
public int a { get; set; }
public int b { get; set; }
}
public class RequestViewData
{
public IList<Data> MyDa...
I have a control on a page that contains a listbox. I also have another control which is a detail view.
Both of the controls have their own ViewModel which their child controls bind to.
Image Outlook. It has a list of folders and when you select a folder the detail control displays the contents of the folder.
How can I bind the detai...
Hi,
I've got combo box bound to a custom collection type - its basically an overridden ObservableCollection which I've added a facility to update the underlying collection (via Unity).
I don't want to confuse the issue too much, but thats the background.
My xaml looks like this
<ComboBox ItemsSource="{Binding Manufacturers}" DisplayM...
I have some code that looks like this:
<Expander Header="{Binding SelectedSlot.Name}"
Visibility="{Binding ShowGroupSlot, Converter={StaticResource BooleanToVisibility}}">
<Controls:GroupPrototypeSlotControl Slot="{Binding DataContext.SelectedSlot,
RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x...
Blend 4 is telling me this is invalid markup and its not telling me why:
<ImageBrush Stretch="Fill" ImageSource="{Binding Avatar, Mode=OneWay}"/>
I'm pulling data from a Twitter feed, saving to an ImageSource, and then binding it to an ImageBrush(as seen below) to be used as the Fill for a Rectangle. Here is more context:
<Rectangle...
Hello,
I want to create buttons with images and text inside. For example, i would use different images and text for buttons like 'Browse folders' and 'Import'.
One of the options would be to use a template.
I had a look at simliar question
http://stackoverflow.com/questions/1933127/creating-an-imagetext-button-with-a-control-template
...
Hello,
I have created a custom control for ImageButton as
<Style TargetType="{x:Type Button}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Local:ImageButton}">
<StackPanel Height="Auto" Orientation="Horizontal">
<Image Margin="0,0,3,0" So...
Hi,
I wanted to bind Width of column header to the Width of the header defined. However the code doesn't work. If I specify the Width explicitly (Width="100"), it works fine. Can someone shed some light and tell me what is wrong with the code below?
<dataGrid:DataGridTemplateColumn x:Name="pdpCol" Width="100">
<dataGrid:DataGri...
When I initialize a control property from code, the binding to the same property defined on XAML don't work. Why?
For Example, I set control properties on startup with this statements:
myControl.SetValue(UIElement.VisibilityProperty, DefaultProp.Visibility);
myControl.SetValue(UIElement.IsEnabledProperty, DefaultProp.IsEnabled);
and ...
I'm using this code:
Dim VehiclesTable1 = dsVehicleList.Tables(0)
Dim VT1 = (From d In VehiclesTable1.AsEnumerable _
Select VehicleTypeName = d.Item("VehicleTypeName") _
, VTypeID = d.Item("VTypeID") _
, ImageURL = d.Item("ImageURL") _
, DailyRate = d.Item("DailyRate") _
...
I am using Netbeans Swing GUI builder to design my app's GUI. I have a JTextField tf and a JCheckBox cb.
Now, I want that the tf is enabled only when the cb is both enabled and selected.
I am performing the below steps to perform this in Netbeans:
Right click on tf >> Properties >> Binding
Click on button ... at the right of enabled
...
Pretty Basic one here guys.
I have a View which holds 2 textfields for input and a submit button
<%using (Html.BeginForm("DateRetrival", "Home", FormMethod.Post)){ %>
<%=Html.TextBox("sday")%>
<%=Html.TextBox("eday")%>
<input type="submit" value="ok" id="run"/>
<% }%>
the following controller action which I want to bind the dat...
I've seen in WPF where you can bind control values to properties of other controls. How is that binding accomplished in C++?
For example, if I have a class called Car and a guage control called RPM, how do I tie the value of RPM to the member variable Car.RPM, so that when Car.RPM changes, it is automatically (as in without a specific u...
I have a business object that comes from the core of the application. That object does not inherit from INotifyPropertyChanged. It contains some property that my XAML code bind to it.
I only want to update the properties not the UI dynamically (OneWayToSource style).
By example, if I change the text of a text box, the source item does n...
Hi I am using a custom model binder with asp.net mvc 2.0 , everything works locally but when deployed to the server runing iis 7, i get a weird error which is hard to get information about the error is as follows, I am also attaching my model binding class
[MissingMethodException: Method not found: 'System.Collections.Generic.IDictionar...
Looking for some help on some names for a project I'm currently working on. I don't have a compsci degree so I don't know what to call this.
I have a method called TryToGetSetValue(Direction direction, object value, object valueOnFail)
Then there would be a Direction enum
public enum Direction
{
ModelToForm,
FormToModel
}
Ba...
First off, I hage to write this on my mobile. But I'll try to format it properly.
In Netbeans I created a jTable and bound it's values to a JPA result set. This works great. The qery contains a param which i set in the pre-create box of the "query result" component. So just before netbeans creates the query result i write this:
myQuery...
How do I bind any version or a range of versions of an assembly by using the app.config?
I'm currently binding the MySql.Data assembly like this:
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" applies-to="v2.0.50727">
<qualifyAssembly
partialName="MySql.Data"
fullName="MySql.Data, Ve...