I'm trying to improve performance of my Oracle SQL queries by using array binding to an OracleParameter.
This is basically what I'm trying to do:
List<string> IDValList = new List<string>();
IDValList.Add( "IDOne" );
IDValList.Add( "IDTwo" );
List<int> sizes = new List<i...
Hello,
I'm new to WPF and MVVM (started this week experimenting with it) and trying to bind image resources at runtime. The items I'm trying to display contain an enumerate property that indicates the type or state of the item:
public class TraceEvent
{
/// <summary>
/// Gets or sets the type of the event.
/// </summary>
...
I am trying to properly accomplish the following. I have a UserControl (ProgramView). It has a viewmodel (ProgramViewViewModel). ProgramView is consumed as a child control within a Window (ProgramWindow). ProgramWindow has a public property ProgramId, so the consumer of the window can specify the desired Program (data entity) to show. Pr...
Windows HTTP Server API provides mechanisms for URL Registration and Reservation so that request queues can be setup by processes: http://msdn.microsoft.com/en-us/library/aa364483(v=VS.85).aspx.
And the URL matching is done by longest matching URL Prefix. With support for strong wild cards '+' and weak wild cards '*'.
I get that IIS do...
I have class with const fields like this
Areas
{
public const int Area1Id = 1;
public const int Area2Id = 2;
public const int Area3Id = 3;
}
And a template which is binded to Area class.
Area class has int TypeId property, and I want to show different things depending TypeId property
Code like this works perfectly
<DataTrigge...
I am using a custom default button attached behaviour (as defined here: http://stackoverflow.com/questions/2683891).
I am able to bind this successfully in XAML, but in a nested user control, in code behind the following does not work:
public partial class MyNestedUserContol{
/// a DP for storing the name of the default button, used i...
I'm trying to use create external controls for Fancybox, or somehow manipulate the controls that exist to look and position how I want them.
Here is the page I'm working on.
http://bit.ly/a5AGZB
At the moment, it's set up to load these portfolio slides via iframe (HTML pages) via Fancybox. I've set the background to be white, and I've ...
I made a GUI with Tkinter, now how do I make it so when a key command will execute a command even if the Tkinter window is not in focus? Basically I want it so everything is bound to that key command.
Example:
Say I was browsing the internet and the focus was on my browser, I then type Ctrl + U. An event would then run on my program....
I want to bind a control fill color to a boolean in c#, so if it is false, the color is Red and if it is true, the color is Green.
Pretty new to XAML, but want to get into good habits from the start.
Thanks,
Ben
...
I am trying to display an adress label. what i want is if AddresssLine2 is not an empty string (its never null) it should display it then a newline (I'm using VB, so its ), otherwise just display AddressLine2, which is an empty string, so in escense it is ignored. however, the StringFormat of the inner binding of AddressLine2 is complete...
Hi
I have MVC 2 project which I need to deploy to the cloud. I have a cloud app which has a web role associated with this mvc project. When trying to start a new instance of the cloud project in the dev fabric, i get the following error:
The assembly with display name 'VJSharpCodeProvider' failed to load in the 'LoadFrom' binding conte...
I am trying to set twoway binding on a UserControl that I have created.
When I use the control in Xaml is set the DataContext like so...
<uc:MyUserControl DataContext="{Binding Path=MyObject, Mode=TwoWay}" />
My user control is defined as the following....
<UserControl x:Class="SilverlightApplication1.XText"
xmlns="http://schema...
I have a Model that has several properties. When I submit a form, I pass along the values for those properties (generated by the jQuery $.serialize() method) and they are automatically bound. This works without a problem. However, now I want to add an Id to the string, and I have to do it manually since it's not a form field. I've done s...
I want to let the user customize the background of of my application and select either a color or an image WITH an opacity binding. I want to do this in XAML if possible.
I seem to be very close - the code below works great with either the color OR the image brush (if I comment out the other), but I cannot figure out a way on how to ret...
I'm using MVC 2.0 with a Html.ListBoxFor as below:
<% using (Html.BeginForm()) { %>
<input type="submit" value=">" />
<%= Html.ListBoxFor(x => x.lstTest, new MultiSelectList(new [] {"someone", "crap", "why"})) %>
<% } %>
When I click the input submit button below with nothing selected, it posts back fine, when I ...
Hi all,
I have a label like this:
<Label Name="LblUsersWithHair">
<Binding Path="Users"
ElementName="ElementSelf"
Converter="{StaticResource Converter_UsersWithHairPresenter}" />
</Label>
And the converter:
...
public object Convert(object value, Type targetType, object parameter, System.Globalizatio...
I have a rather simple problem, but I am unable to get my head around it...
I have a class that inherits from UserControl. It has an AxisColor DependencyProperty of type Color. In the XAML structure of the class I have <ms3DTools:ScreenSpaceLines3D Thickness="2" Points="0,0,0 100,0,0" Color="{Binding Mode=OneWay, Path=AxisColor}".
The b...
I make a form, to display & edit user information, say "[b]userForm[/b]". The form contains an underlying user object model "[b]user[/b]", and binds, for example, [b]JTextField userName[/b] to the underlying field of the user model, [b]user.name[/b].
However, when a new user is selected, and I call "[b]userForm.setUser(user2);[/b]", I ...
I'm trying to set up an assembly binding redirect, using the following app.config:
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.AnalysisServices"
PublicKeyToken="89845dcd8080cc91" />
<bindin...
Hi all
I am trying to add Series binding to the Visifire graphing controls set. To this end i have created a SeriesSource dependency property of time DataSeriesCollection. This is bound in the front end using:
`<Chart SeriesSource={Binding Series} />`
Problem
When the source changes, the validation callback is called. The value th...