When I run a Perl script I get
Can't locate XML/LibXSLT.pm in @INC
So I try doing this in cpan:
cpan> install XML::LibXSLT
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Fri, 02 Oct 2009 13:28:24 GMT
Running install for module XML::LibXSLT
Running make for P/PA/PAJAS/XML-LibXSLT-1.68.ta...
Hello,
I (and other programmers from another forum) have been trying to solve a binding problem for a few days. No one could help... Will anyone here be able to help me ? Apparently, the problem seems quite simple but when you dive in it, trust me, you burn some neurons...
Here it is : I've created a test project which reproduces the pro...
I want to be able to have a dynamic Gradient in Silverlight, such as below:
<RadialGradientBrush GradientOrigin="0.20,0.5" Center="0.25,0.50"
RadiusX="0.75" RadiusY="0.5">
<GradientStop Color="{Binding Path=GradientStart}" Offset="0" />
<GradientStop Color="{Binding Path=GradientEnd}" Offset="1" />
</RadialGrad...
I have following code:
<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300">
<Grid>
<TextBox Text="{Binding Path=Name,
Mode=OneWayToSource,
...
I need a library to handle computational geometry in a project, especially boolean operations, but just about every feature is useful. The best library I can find for this is CGAL, but this is the sort of project I would hesitate to make without garbage collection.
What language/library pairs can you recommend? So far my best bet is i...
I have class Products with unknown numbers of properties such as "Name", "Price" and so on. I retreive them only when parsing some txt file.
How should I:
write a Product class to emplement dynimicly adding Properies
Bind this collection of Products with unknonwn numbers of properties to ListView in XAML (or should I build in code be...
I understand that they're different since one works for setting *compile-path* and one doesn't. However, I need help with why they're different.
let creates a new scope with the given bindings, but binding...?
Thanks!
...
how to bind Dictionary to ListView and Text box?
namespace Models
{
public class DynamicList
{
#region Constructor
public DynamicList()
{
_propDict = new Dictionary<string, object>();
dynimicListProps = new List<DynimicListProperty>();
}
#endregion Constructor
#region Fields
private Dic...
Let's say I have a product object (pretty much empty) and I bind it to a Product view. Then I click update in the view. In my CustomModelBinder my bindingContext.Model is always null on the update request. Is there a recommended way of me retrieving the prior model at this point or do I always have to recreate it?
...
This is a follow-up question to my previous one about replacing GridView contents programmatically.
I have a GridView displaying a DataSet. All of my columns are bound in my xaml with DisplayMemberBinding:
<GridViewColumn DisplayMemberBinding="{Binding Path=FirstName}"
Header="First Name"
...
I have a treeview that is bound to a collection and each item in the collection is bound to another collection. (using hierachle data templates)
I would like to use the collection view .Filter event handler to search the tree.
The problem is that I need multiple collection views.
What would be the best way to filter the tree view items...
I have a Datagrid with a combo box bound column that works great as follows:
<tk:DataGridComboBoxColumn SelectedValueBinding="{Binding DefaultLocationID}"
SelectedValuePath="LocationID"
DisplayMemberPath="LocationName"
Header="Default Location"
ItemsSource="{Binding Source=...
What is the proper way to implement Custom Properties in Silverlight UserControls?
Every "Page" in Silverlight is technically a UserControl (they are derived from the UserControl class). When I say UserControl here, I mean a Custom UserControl that will be used inside many different pages in many different scenarios (similar to an ASP....
Hi all, just wondering if there is something built into asp.net mvc where I can override how a specific member is bound.
For example, imagine I have a form:
<form ...>
<input type="text" name="Things" />
...
</form>
And I have the controller action that handles the postback:
public ActionResult MyPostbackAction(IEnumerable<int> ...
This should be really easy but I can't figure out how to make it work...
I have an ASP.NET UserControl (.ascx) with the following property:
public string LabelCssClass
{
get
{
return _labelCssClass;
}
set
{
_labelCssClass = value;
}
}
I want to bind that property into the HTML of the UserContro...
I would like to use a WPF ToggleButton to expand and collapse some controls in my application. How can I use XAML to accomplish this?
I'm thinking that I could somehow bind the Visibility attribute of some controls to the ToggleButton's IsChecked state, but I do not know how to do this.
Maybe I need to give my ToggleButton a Name, then...
Suppose I have a business object 'obj1' that has property 'P'.
Let's also assume that I have a list of business objects: 'List<BussObj> list' and each BussObj object contains 2 properties: 'A' and 'B'.
This list is bound to combobox: combobox.ItemsSource = list;.
I would like to specify binding (in C# code) that would bind combobox.Se...
Hi,
I have the following scenario:
A database
A DataSet that is filled by the database
Two Forms:
The first Form contains a ComboBox that shows a certain set of categories. The ComboBox is binded to a DataTable "categories" in the DataSet.
The second Form is supposed to be a category manager where you can add, edit and delete categor...
Hi folks,
I have a Dictionary and want to display the number of items in this dictionary with a Label, without updating the label manually each time I add or remove an item from the dictionary.
I tried it with the Binding class:
Binding bindingNodeCount = new Binding("Text", _graphDisplay.data.nodes.Keys, "Count");
labelNumberOfNodes....
I'm trying to wire up a slider and textbox such that the textbox controls the slider position and the slider position is reflected in the textbox. This is a basic two-way element-to-element binding.
What I have - The slider position displays in the text box. Adjusting the slider is reflected by an updated value in the textbox. This work...