Advanced Forum Search Results
-
Hi Jonathan,
I'm using the October 2009 toolkit, unser Visual Studio 2008.
But the AutoCompleteBox is no more part of the toolkit, it's in the main Silverlight assemblies.
Patrick
-
Hello,
there is a bug in the processing of the Enter key in the AutoCompleteBox.
In the documentation of the AutoCompleteBox.OnKeyDown method, it is said that:
This implementation sets the KeyEventArgs..::..Handled property of the event data to true in the
following situations:
The IsDropDownOpen
property is true, the SelectionAdapter ...
-
Define an handler for the GotFocus event and set IsDropDownOpen to True inside.
Patrick
-
Bryian,
you should set AutoGenerateColumns to False.
<data:DataGrid x:Name="dg" Margin="8,52,21,62" AutoGenerateColumns="False" />Patrick
-
Wilfred,
the documentation for PropertyInfo.CanWrite says "If the property does not have a set accessor, it cannot be written to."
Perhaps the Button.IsFocused property has a set accessor, but you cannot use it because it is not public.
You can define an extension method "CanWritePublic" that first checks if CanWrite is ...
-
Andrus,
setting t.TextAlignment just sets the text alignment in the TextBlock, you must set t.HorizontalAlignment to HorizontalAlignment.Center to align the TextBlock inside the column.
You can also set HorizontalAlignment to Stretch and use TextAlignment inside the TextBlock.
TextBlock t = new TextBlock();
t.Text = (e.Row.GetIndex() + ...
-
Eisen,
UserControl has a Content property of type UIElement, so you can assign any UI element that descend from UIElement to it.
But USerControl can have only one child element, if you want more elements, you must add a Panel (like Canvas, Grid, etc.) to your UserControl and add all the UI elements to the Children collection of this Panel ...
-
Eisen,
what you can do is subscribe to the SizeChanged event of the StackPanel. In the event, take the new width of the StackPanel, divide it by the number of buttons and set each button size at this value.
In Delphi Prism, this is something like this:
MyStackPanel.SizeChanged +=
Method (sender : Object; e : ...
-
Sriram,
your code should be:
foreach(var item in rightsInformation.Values)
The default enumeration for a dictionary is not the value, but a KeyValue pair.
Patrick
-
Larry,
you can avoid a lot of type casting, with the following:
1. Define a method in your App.xaml to change the page. Something like:
public void ChangePageUp (UserControl Page) {
var Children = rootGrid.Children;
Children.Clear ();
Children.Add (Page);
PageBreadCumb.Add (Page);
}By calling ChangePageUp, the code will also be ...