Click here to Skip to main content
15,914,013 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: editing the listview in WPF Pin
User 27100915-May-08 6:51
User 27100915-May-08 6:51 
QuestionHow Silverlight write data to XML file? Pin
tomalani15-May-08 1:57
tomalani15-May-08 1:57 
AnswerRe: How Silverlight write data to XML file? Pin
Michael Sync15-May-08 7:29
Michael Sync15-May-08 7:29 
GeneralRe: How Silverlight write data to XML file? Pin
Michael Sync15-May-08 17:57
Michael Sync15-May-08 17:57 
QuestionComponent One WPF Grid with VS 2008 Pin
Arijit Manna14-May-08 21:30
Arijit Manna14-May-08 21:30 
AnswerRe: Component One WPF Grid with VS 2008 Pin
User 27100915-May-08 6:54
User 27100915-May-08 6:54 
GeneralRe: Component One WPF Grid with VS 2008 Pin
Arijit Manna15-May-08 21:15
Arijit Manna15-May-08 21:15 
GeneralRe: Component One WPF Grid with VS 2008 Pin
Arijit Manna22-May-08 22:15
Arijit Manna22-May-08 22:15 
Hi Karl,
I have run the program , but it is giving 2 errors.
i)Could not create an instance of type'StaticExtension'
ii)Cannot find the type 'VisibilityToBoolConverter'
I am sending the relevant XAML code as well as the VisibilityToBoolConverter.vb code
<XAML>
<CheckBox IsChecked="{Binding Visibility ,
Converter={x:Static local:VisibilityToBoolConverter.Default},
Mode=TwoWay}"/>
<TextBlock Text="{Binding Caption}"/>
</XAML>
<VisibilityToBoolConverter.vb>
Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text
Imports System.Windows.Data
Imports System.Windows
Imports System.Globalization

Namespace NEW_WpfApplication_20_5_08
Public Class VisibilityToBoolConverter
Implements IValueConverter

Public Shared ReadOnly [Default] As New VisibilityToBoolConverter()

Public Function Convert(ByVal value As Object, ByVal targetType As Type, ByVal parameter As Object, ByVal culture As CultureInfo) As Object Implements IValueConverter.Convert
If TypeOf value Is Visibility Then
Return CType(value, Visibility) = Visibility.Visible
Else
Return Binding.DoNothing
End If
End Function

Public Function ConvertBack(ByVal value As Object, ByVal targetType As Type, ByVal parameter As Object, ByVal culture As CultureInfo) As Object Implements IValueConverter.ConvertBack
If TypeOf value Is Boolean Then
Return If(CBool(value), Visibility.Visible, Visibility.Collapsed)
Else
Return Binding.DoNothing
End If
End Function
End Class
End Namespace
</VisibilityToBoolConverter.vb>
Could you please point out the error in my application ? Sigh | :sigh:
Regards
Arijit
QuestionWpf datagrid Pin
member2713-May-08 2:48
member2713-May-08 2:48 
AnswerRe: Wpf datagrid Pin
User 27100914-May-08 6:50
User 27100914-May-08 6:50 
GeneralRe: Wpf datagrid Pin
Feras Mazen Taleb30-Dec-08 22:17
Feras Mazen Taleb30-Dec-08 22:17 
GeneralRe: Wpf datagrid Pin
User 27100930-Dec-08 22:23
User 27100930-Dec-08 22:23 
GeneralRe: Wpf datagrid Pin
Feras Mazen Taleb31-Dec-08 3:41
Feras Mazen Taleb31-Dec-08 3:41 
QuestionTreeViewItem.MouseDoubleClick fires three times. Pin
Lutosław13-May-08 1:58
Lutosław13-May-08 1:58 
AnswerProblem resolved Pin
Lutosław13-May-08 2:02
Lutosław13-May-08 2:02 
GeneralRe: Problem resolved Pin
Mark Salsbery13-May-08 6:22
Mark Salsbery13-May-08 6:22 
GeneralRe: Problem resolved Pin
Lutosław14-May-08 14:46
Lutosław14-May-08 14:46 
GeneralRe: Problem resolved Pin
Mark Salsbery14-May-08 14:53
Mark Salsbery14-May-08 14:53 
GeneralRe: Problem resolved Pin
Lutosław14-May-08 23:10
Lutosław14-May-08 23:10 
QuestionDataBinding using WPF Pin
cbe_200813-May-08 0:24
cbe_200813-May-08 0:24 
AnswerRe: DataBinding using WPF Pin
Pete O'Hanlon13-May-08 0:42
mvePete O'Hanlon13-May-08 0:42 
QuestionWorld map using silverlight Pin
rajahram11-May-08 21:35
rajahram11-May-08 21:35 
AnswerRe: World map using silverlight Pin
Michael Sync11-May-08 22:07
Michael Sync11-May-08 22:07 
QuestionHow to create Tab control in silver light (Expression Blend 2) Pin
kishorekumar.malla@live.com10-May-08 23:41
kishorekumar.malla@live.com10-May-08 23:41 
AnswerRe: How to create Tab control in silver light (Expression Blend 2) Pin
Michael Sync11-May-08 22:03
Michael Sync11-May-08 22:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.