Advanced Forum Search Results
-
Hi Fred,
You can create a KeyDown event handler for your control, and in this event handler, test whether the Enter key has been pressed: private void TextBox_KeyDown(object sender, KeyEventArgs e)
{
if (e.Key == Key.Enter)
{
// code here
}
e.Handled = true; // ...
-
[quote user="SweenJ2"]
One scenario would be a login box that fills a combobox with available databases. The form would load and an async Web Service call would be made to retrieve a list of available databases. I'd like to disable the form and popup a status dialog while waiting for the WS request to return. I ...
-
Hi AdmiralGanja,
On Problem 1, if nothing else works, you can try creating a Post build event command on your Silverlight project. To do so:
1) In Solution Explorer, right-click on your Silverlight solution and choose Properties;
2) In the properties page that loads, click on the Build Events tab, and enter your copy commands in the ...
-
[quote user="peterdungan"]
Other approaches I've seen include cloaking - generating a seperate version of pages for search engines to use. Would that be feasible in a multipage Silverlight site? A fairly simplistic implementation of this idea would be to have indexable pages that contain the silverlight application with parameters ...
-
Hi Rajesh,
You mean posting to this forum? If so, I don't think you can upload files to the forum server and attach them to your post. You can provide URLs of your files if they are on another web server or file-sharing service.
Regards,
Sherwin Chu
-
Assuming you have set an event handler (e.g. HyperlinkButton_Click) to the HyperlinkButton control in your column, you can access the binded object via the DataContext property of the HyperlinkButton control:
private void HyperlinkButton_Click(object sender, RoutedEventArgs ...
-
Hi Anandraj.A.,
There's 2 ways to do this:
(1) In your Person class, create a property called Age, then set its Get method to return the age value based on the current date:
class Person
{
public DateTime DOB { get; set; }
public int Age
...
-
Can you try setting the event handlers in your xaml string?
string xaml = "<Button
xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"
xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\" Click=\"Button_Click\"></Button>";
I hope that helps,
Sherwin Chu
-
I think you can only create vector based graphics in Blend. For raster graphics (e.g. bitmaps), you'd have to use other image authoring/editing tools (such as Photoshop, Illustrator, and good old Paint ).
Sherwin
-
Value converters would be the solution for you. Here's a good tutorial on how to quickly create one:
http://www.jeff.wilcox.name/2008/07/13/visibility-type-converter/
Hope that helps!
Sherwin Chu