Kev's Catastrophic Failures
Wednesday, 18 April 2012
Friday, 28 October 2011
MVVM Combo Box Options
You have three options:
Option 1
1.Instead of adding
Instead of
Do not specify items directly in XAML, but use
Thanks To:
Pavlo Glazkov
Posted at
http://stackoverflow.com/questions/5159708/weird-databinding-issues-in-wpf-combobox
1.Instead of adding
ComboBoxItem items add String items:<ComboBox HorizontalAlignment="Left" Height="22" Margin="24,97,0,0" VerticalAlignment="Top" Width="83"Option 2
SelectedItem="{Binding fruit, Mode=TwoWay}">
<sys:String>apple</sys:String>
<sys:String>orange</sys:String>
<sys:String>grape</sys:String>
<sys:String>banana</sys:String>
</ComboBox>
Instead of
SelectedItem bind to SelectedValue and specify SelectedValuePath as Content:<ComboBox HorizontalAlignment="Left" Height="22" Margin="24,97,0,0" VerticalAlignment="Top" Width="83"Option 3
SelectedValue="{Binding fruit, Mode=TwoWay}"
SelectedValuePath="Content">
<ComboBoxItem>apple</ComboBoxItem>
<ComboBoxItem>orange</ComboBoxItem>
<ComboBoxItem>grape</ComboBoxItem>
<ComboBoxItem>banana</ComboBoxItem>
</ComboBox>
Do not specify items directly in XAML, but use
ItemsSource property to bind to a collection of strings:<ComboBox HorizontalAlignment="Left" Height="22" Margin="24,97,0,0" VerticalAlignment="Top" Width="83"
ItemsSource="{Binding Fruits}"
SelectedItem="{Binding fruit, Mode=TwoWay}"/>
Thanks To:
Pavlo Glazkov
Posted at
http://stackoverflow.com/questions/5159708/weird-databinding-issues-in-wpf-combobox
Tuesday, 31 May 2011
Free Screen Capture Software
Free Screen Recorder Software.
http://camstudio.org/
What is it?
CamStudio is able to record all screen and audio activity on your computer and create industry-standard AVI video files and using its built-in SWF Producer can turn those AVIs into lean, mean, bandwidth-friendly Streaming Flash videos (SWFs)
Here are just a few ways you can use this software:
http://camstudio.org/
What is it?
CamStudio is able to record all screen and audio activity on your computer and create industry-standard AVI video files and using its built-in SWF Producer can turn those AVIs into lean, mean, bandwidth-friendly Streaming Flash videos (SWFs)
Here are just a few ways you can use this software:
- You can use it to create demonstration videos for any software program
- Or how about creating a set of videos answering your most frequently asked questions?
- You can create video tutorials for school or college class
- You can use it to record a recurring problem with your computer so you can show technical support people
- You can use it to create video-based information products you can sell
- You can even use it to record new tricks and techniques you discover on your favourite software program, before you forget them
Thursday, 26 May 2011
Perform "Where In" Query Entity Framework
SELECT * FROM TBL_TargetLinks WHERE FkTargetID IN (1,2,3)EQUALS
Public Function GetOutputTargetLinksByIDList(ListOfIDs As List(Of Integer)) As IQueryable(Of OutputTargetLink)
Dim TargetLinks = From T In Me.GetOutputTargetLinks Where ListOfIDs.Contains(T.FKTargetID) Select T
Return Me.ObjectContext.OutputTargetLinks
End Function
Thursday, 19 May 2011
Create your own code Signing Certs
1) Go to the Visual Studio Command prompt and type
Change the text in bold to suit yourself
makecert -sv OperationakPlan.pvk -n "CN=Operational Plan Certificate" OperationalPlan.cer -b 01/01/2010 -e 01/01/2099 -r
2) Then Type
pvk2pfx -pvk OperationaPlan.pvk -spc OperationalPlan.cer -pfx OperationalPlan.pfx
Change the text in bold to suit yourself
makecert -sv OperationakPlan.pvk -n "CN=Operational Plan Certificate" OperationalPlan.cer -b 01/01/2010 -e 01/01/2099 -r
2) Then Type
pvk2pfx -pvk OperationaPlan.pvk -spc OperationalPlan.cer -pfx OperationalPlan.pfx
3) Go To Visual Studio to the Signing Tab of the Appilicatin Properties
4) Select the pfk to sign the assembly
4) Select the pfk to sign the assembly
Subscribe to:
Posts (Atom)