
January 29, 2010 09:44 by
Brian Keating |
Pretty cool app to pass a minute or so http://chriscavanagh.wordpress.com/

69dd4775-4ee6-44f7-814d-7dda1d91394c|0|.0

January 28, 2010 09:47 by
Brian Keating |
Extension Method
internal static class InteropExtensions
{
public static bool? ShowDialog(this System.Windows.Window win, IntPtr handle)
{
WindowInteropHelper helper = new WindowInteropHelper(win);
helper.Owner = handle;
return win.ShowDialog();
}
}
Usage
var win = new WpfWindow();
win.ShowDalog(windowsFormOwnerHandle);
047a28dc-ca7c-4797-b3ce-b879e3a6d1d7|0|.0

January 26, 2010 22:09 by
Brian Keating |
I've been playing with a workflow service hosted here http://www.briankeating.net/PSService/PSService.svc
Feel free to give it a bash) Endpoint is using basic http binding.
Tonight I whipped a Sql Server Compact Database out of another little app I have lying around so I could sit it behind the webservice persist data.
But
To my horror it doesn't work..
I get the following exception " sql compact is not intended for asp.net development"
I can imagine why I guess.. bit what a pity.. it's not allowed..
f7d0b298-b7fd-4011-ad50-b56b4bc94ea6|0|.0

January 15, 2010 11:00 by
Brian Keating |
Addin splitters to the WPF grid couldn't be easier.
Veritcal
<GridSplitter />
Horizontal
<GridSplitter Height="3"
ResizeDirection="Rows" Background="Transparent"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch" Grid.Row="1" />
e6fdf5a1-d5da-457b-84c6-bcabc1f397a3|0|.0

January 7, 2010 22:17 by
Brian Keating |
Ever have a control on a window and want to be able to receive buttonclicks from this child control?
More than one I've done this the hard way, but now.....
public VariablesWindow()
{
this.InitializeComponent();
variables.AddHandler(Button.ClickEvent, new RoutedEventHandler(HandleChildClick));
}
private void HandleChildClick(object sender, RoutedEventArgs args)
{
Button senderButton = args.OriginalSource as Button;
if (senderButton != null && senderButton.Content != null)
{
string buttonText = senderButton.Content as string;
if (buttonText == "_Cancel")
{
this.DialogResult = false;
Close();
}
else if (buttonText == "_OK")
{
this.DialogResult = true;
Close();
}
}
}
5b197c8d-34ef-4534-81ce-262acc3ca8bb|0|.0