Advanced Forum Search Results
-
Hi,
I have written my own MessageBox using the ChildWindow.
It has the possibility of showing up to three buttons (Yes, No and Cancel).
But I have problems returning the results in DialogResult.
When Yes is clicked I set DialogResult to true - Works fine.
When No is clicked I set DialogResult to false - Works fine.
When Cancel is ...
-
Hi!
Actually, since latest release of the AutoCompleteBox you don't need a Converter for this anymore, just use the property ValueMemberBinding.
Example:
ItemTemplate="{StaticResource SupplierDataTemplate}" ValueMemberBinding="{Binding Name}"
Regards,
Håkan
-
Is there anyway to turn off the automatic centering of Silverlight 3 ChildWindows?
I want to do the centering myself since my "host" UserControl is much smaller than the RootVisual.RenderSize that it seems to use.
I tried to set a negative top and left margin on the child window. Seemed to work fine at first, until I resized the ...
-
Hi,
I have a DataGrid with validation on an amount column. If the amount is 0 it will be displayed in red, otherwise black.
The validation is made in a converter. So I have bound the Foreground property of the TextBlock to this converter.
This works fine, but at one point in my code I need to rebind the converter manually. I do is this ...
-
Yes, I'm aware of everything you wrote, and maybe my problem is impossible to solve this way.
Here is my scenario:
I'm creating an invoice registration form.
My DataGrid concist of two columns. (actually more but they are not of interest here.)
The first one is product. It's a drop down of products you can purchase.
The ...
-
Thanks, it worked!
BindingExpression exp = quantity.GetBindingE xpression(TextBlock.TextProperty);
Binding bind = exp.ParentBinding;
quantity.SetBinding(TextBlock.TextProperty, bind);
-
Hi,
I have a TwoWay ValueConverter where "Path=." that is, the whole record is passed as value to the converter.
This works fine in the Convert method, but how does it work with the ConvertBack method?
Example, my object has a Quantity property with data type decimal. It will store time durations in minutes, but I want to display ...
-
Hi.
I have a ValueConverter in a DataGrid that depends on the data on the current row.
Depending on which type of "product" that is selected in a drop-down in the first column, another column should display either a timespan or a decimal value.
Think of it as an invoice registration form.
If you select a merchandise type of product, ...
-
Hi.
I have a frustrating problem.
Our business application have a WCF service layer with 7 services, divided between different areas in the application.
We also use Entity Framework for our models.
The problem occurs when trying to use an entity fetched with one service together with an entity fetched from another service, for eample:
We ...
-
No other solution for my problem?
Shortly described:
I have a UserControl with a StackPanel.
The UserControl is hosted within another UserControl. From this "host control" I want to add content (HyperlinkButtons) in the StackPanel of the "child control".
Preferrably I would like to add it directly in XAML, kinda like you add ...