WPF Textblock Convert Issue
am usina text block in usercontrol, but am sending value to textblock from other form, when i pass some value it viewed in textblock, but i need to convert the number to text. so i used converter in textblock. but its not working
<TextBlock Height="21" Name="txtStatus" Width="65" Background="Bisque" TextAlignment="Center" Text="{Binding Path=hM1,Converter={StaticResource TextConvert},Mode=OneWay}"/>
converter class
class TextConvert : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value != null)
{
if (value.ToString() == "1")
{
return value = "Good";
}
if (value.ToString() == "0")
{
return value = "NIL";
}
}
return value = "";
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
return (string)value;
}
}
is it right? whats wrong in it??
wpf textblock
add a comment |
am usina text block in usercontrol, but am sending value to textblock from other form, when i pass some value it viewed in textblock, but i need to convert the number to text. so i used converter in textblock. but its not working
<TextBlock Height="21" Name="txtStatus" Width="65" Background="Bisque" TextAlignment="Center" Text="{Binding Path=hM1,Converter={StaticResource TextConvert},Mode=OneWay}"/>
converter class
class TextConvert : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value != null)
{
if (value.ToString() == "1")
{
return value = "Good";
}
if (value.ToString() == "0")
{
return value = "NIL";
}
}
return value = "";
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
return (string)value;
}
}
is it right? whats wrong in it??
wpf textblock
are u getting any output?
– Kishore Kumar
Jun 2 '10 at 6:20
yes, I would like to know the output as well....it looks right.
– VoodooChild
Jun 2 '10 at 6:23
yes am getting number in textblock,the values are 0 and 1, if 0 will bind some text as same for 1 some text, am getting the numebr value in textblock, but converter is not working to replace the number for text
– Spen D
Jun 2 '10 at 6:28
add a comment |
am usina text block in usercontrol, but am sending value to textblock from other form, when i pass some value it viewed in textblock, but i need to convert the number to text. so i used converter in textblock. but its not working
<TextBlock Height="21" Name="txtStatus" Width="65" Background="Bisque" TextAlignment="Center" Text="{Binding Path=hM1,Converter={StaticResource TextConvert},Mode=OneWay}"/>
converter class
class TextConvert : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value != null)
{
if (value.ToString() == "1")
{
return value = "Good";
}
if (value.ToString() == "0")
{
return value = "NIL";
}
}
return value = "";
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
return (string)value;
}
}
is it right? whats wrong in it??
wpf textblock
am usina text block in usercontrol, but am sending value to textblock from other form, when i pass some value it viewed in textblock, but i need to convert the number to text. so i used converter in textblock. but its not working
<TextBlock Height="21" Name="txtStatus" Width="65" Background="Bisque" TextAlignment="Center" Text="{Binding Path=hM1,Converter={StaticResource TextConvert},Mode=OneWay}"/>
converter class
class TextConvert : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value != null)
{
if (value.ToString() == "1")
{
return value = "Good";
}
if (value.ToString() == "0")
{
return value = "NIL";
}
}
return value = "";
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
return (string)value;
}
}
is it right? whats wrong in it??
wpf textblock
wpf textblock
asked Jun 2 '10 at 6:13
Spen DSpen D
1,58782842
1,58782842
are u getting any output?
– Kishore Kumar
Jun 2 '10 at 6:20
yes, I would like to know the output as well....it looks right.
– VoodooChild
Jun 2 '10 at 6:23
yes am getting number in textblock,the values are 0 and 1, if 0 will bind some text as same for 1 some text, am getting the numebr value in textblock, but converter is not working to replace the number for text
– Spen D
Jun 2 '10 at 6:28
add a comment |
are u getting any output?
– Kishore Kumar
Jun 2 '10 at 6:20
yes, I would like to know the output as well....it looks right.
– VoodooChild
Jun 2 '10 at 6:23
yes am getting number in textblock,the values are 0 and 1, if 0 will bind some text as same for 1 some text, am getting the numebr value in textblock, but converter is not working to replace the number for text
– Spen D
Jun 2 '10 at 6:28
are u getting any output?
– Kishore Kumar
Jun 2 '10 at 6:20
are u getting any output?
– Kishore Kumar
Jun 2 '10 at 6:20
yes, I would like to know the output as well....it looks right.
– VoodooChild
Jun 2 '10 at 6:23
yes, I would like to know the output as well....it looks right.
– VoodooChild
Jun 2 '10 at 6:23
yes am getting number in textblock,the values are 0 and 1, if 0 will bind some text as same for 1 some text, am getting the numebr value in textblock, but converter is not working to replace the number for text
– Spen D
Jun 2 '10 at 6:28
yes am getting number in textblock,the values are 0 and 1, if 0 will bind some text as same for 1 some text, am getting the numebr value in textblock, but converter is not working to replace the number for text
– Spen D
Jun 2 '10 at 6:28
add a comment |
3 Answers
3
active
oldest
votes
ok I think I know what the problem is - let see if I can define it for you :)
in your xaml file where you want to use TextConvert, define Resource for it (unless you are doing it already, then I haven't a clue why its not working)
<Grid.Resources>
<Shared:TextConvert x:Key="TextConvertKey" />
</Grid.Resources>
shared being the xmlns ofcourse.
Then in the textbox use it like:
Text="{Binding Path=hM1,Converter={StaticResource TextConvertKey},Mode=OneWay}"/>
EDIT:
If you set a breakpoint in the converter class, does the debugger go in there?????
EDIT 2:
am using like this voodoo
local:HealthTextConvert x:Key="TextConvert"
This is absolutely wrong. How can you Call it HealthTextConvert when the converter name is TextConvert???
it should be
local:TextConvert x:Key="whateverKeyNameYouWant"
and
in the textbox is should be
Text="{Binding Path=hM1,Converter={StaticResource whateverKeyNameYouWant},Mode=OneWay}"
i have already added it to my grid resources.. but its stil convert class is not working
– Spen D
Jun 2 '10 at 6:38
let me see what hM1 looks like?
– VoodooChild
Jun 2 '10 at 6:46
hM1 is a variable,it may be 0 or 1
– Spen D
Jun 2 '10 at 6:47
If you set a breakpoint in the converter class, does the debugger go in there?????
– VoodooChild
Jun 2 '10 at 6:47
no, i ichecked that too, its does not going to that break point.
– Spen D
Jun 2 '10 at 6:48
|
show 8 more comments
I can see immediately a problem with your converter definition.
class TextConvert : IValueConverter
{
...
Should be declared public to be able to use it as a resource.
public class TextConvert : IValueConverter
{
...
Also, its not a good thing to be doing this...
return value = "Good";
...
return value = "NIL";
It should just be (even though it will not matter if you leave it, just bad programming =P):
return "Good";
...
return "Nill";
add a comment |
Try by removing Path
in the below line
Text="{Binding **Path**=hM1,Converter={StaticResource TextConvert},Mode=OneWay}".
Sometimes it works without Path
:).
Also look into the output window(Alt+Cntl+O)...to see where the issue is.
but its not working anish..?
– Spen D
Jun 2 '10 at 6:57
output window doesnt show any exception.
– Spen D
Jun 2 '10 at 6:59
Deep ..did u get the answer ?
– Relativity
Jun 2 '10 at 7:53
Namespace shud be like this - xmlns:Model="clr-namespace:WpfControlLibrary2.ViewModel" And Class in that namespace shud be used as below - <ObjectDataProvider x:Key="Datas" ObjectType="{x:Type ViewModel:UserControlViewModel}"></ObjectDataProvider>
– Relativity
Jun 2 '10 at 8:00
using ObjectDataProvider...u can have the instance of a class as a static resource
– Relativity
Jun 2 '10 at 8:12
|
show 2 more comments
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f2955393%2fwpf-textblock-convert-issue%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
ok I think I know what the problem is - let see if I can define it for you :)
in your xaml file where you want to use TextConvert, define Resource for it (unless you are doing it already, then I haven't a clue why its not working)
<Grid.Resources>
<Shared:TextConvert x:Key="TextConvertKey" />
</Grid.Resources>
shared being the xmlns ofcourse.
Then in the textbox use it like:
Text="{Binding Path=hM1,Converter={StaticResource TextConvertKey},Mode=OneWay}"/>
EDIT:
If you set a breakpoint in the converter class, does the debugger go in there?????
EDIT 2:
am using like this voodoo
local:HealthTextConvert x:Key="TextConvert"
This is absolutely wrong. How can you Call it HealthTextConvert when the converter name is TextConvert???
it should be
local:TextConvert x:Key="whateverKeyNameYouWant"
and
in the textbox is should be
Text="{Binding Path=hM1,Converter={StaticResource whateverKeyNameYouWant},Mode=OneWay}"
i have already added it to my grid resources.. but its stil convert class is not working
– Spen D
Jun 2 '10 at 6:38
let me see what hM1 looks like?
– VoodooChild
Jun 2 '10 at 6:46
hM1 is a variable,it may be 0 or 1
– Spen D
Jun 2 '10 at 6:47
If you set a breakpoint in the converter class, does the debugger go in there?????
– VoodooChild
Jun 2 '10 at 6:47
no, i ichecked that too, its does not going to that break point.
– Spen D
Jun 2 '10 at 6:48
|
show 8 more comments
ok I think I know what the problem is - let see if I can define it for you :)
in your xaml file where you want to use TextConvert, define Resource for it (unless you are doing it already, then I haven't a clue why its not working)
<Grid.Resources>
<Shared:TextConvert x:Key="TextConvertKey" />
</Grid.Resources>
shared being the xmlns ofcourse.
Then in the textbox use it like:
Text="{Binding Path=hM1,Converter={StaticResource TextConvertKey},Mode=OneWay}"/>
EDIT:
If you set a breakpoint in the converter class, does the debugger go in there?????
EDIT 2:
am using like this voodoo
local:HealthTextConvert x:Key="TextConvert"
This is absolutely wrong. How can you Call it HealthTextConvert when the converter name is TextConvert???
it should be
local:TextConvert x:Key="whateverKeyNameYouWant"
and
in the textbox is should be
Text="{Binding Path=hM1,Converter={StaticResource whateverKeyNameYouWant},Mode=OneWay}"
i have already added it to my grid resources.. but its stil convert class is not working
– Spen D
Jun 2 '10 at 6:38
let me see what hM1 looks like?
– VoodooChild
Jun 2 '10 at 6:46
hM1 is a variable,it may be 0 or 1
– Spen D
Jun 2 '10 at 6:47
If you set a breakpoint in the converter class, does the debugger go in there?????
– VoodooChild
Jun 2 '10 at 6:47
no, i ichecked that too, its does not going to that break point.
– Spen D
Jun 2 '10 at 6:48
|
show 8 more comments
ok I think I know what the problem is - let see if I can define it for you :)
in your xaml file where you want to use TextConvert, define Resource for it (unless you are doing it already, then I haven't a clue why its not working)
<Grid.Resources>
<Shared:TextConvert x:Key="TextConvertKey" />
</Grid.Resources>
shared being the xmlns ofcourse.
Then in the textbox use it like:
Text="{Binding Path=hM1,Converter={StaticResource TextConvertKey},Mode=OneWay}"/>
EDIT:
If you set a breakpoint in the converter class, does the debugger go in there?????
EDIT 2:
am using like this voodoo
local:HealthTextConvert x:Key="TextConvert"
This is absolutely wrong. How can you Call it HealthTextConvert when the converter name is TextConvert???
it should be
local:TextConvert x:Key="whateverKeyNameYouWant"
and
in the textbox is should be
Text="{Binding Path=hM1,Converter={StaticResource whateverKeyNameYouWant},Mode=OneWay}"
ok I think I know what the problem is - let see if I can define it for you :)
in your xaml file where you want to use TextConvert, define Resource for it (unless you are doing it already, then I haven't a clue why its not working)
<Grid.Resources>
<Shared:TextConvert x:Key="TextConvertKey" />
</Grid.Resources>
shared being the xmlns ofcourse.
Then in the textbox use it like:
Text="{Binding Path=hM1,Converter={StaticResource TextConvertKey},Mode=OneWay}"/>
EDIT:
If you set a breakpoint in the converter class, does the debugger go in there?????
EDIT 2:
am using like this voodoo
local:HealthTextConvert x:Key="TextConvert"
This is absolutely wrong. How can you Call it HealthTextConvert when the converter name is TextConvert???
it should be
local:TextConvert x:Key="whateverKeyNameYouWant"
and
in the textbox is should be
Text="{Binding Path=hM1,Converter={StaticResource whateverKeyNameYouWant},Mode=OneWay}"
edited Jun 2 '10 at 7:07
answered Jun 2 '10 at 6:33
VoodooChildVoodooChild
8,23465695
8,23465695
i have already added it to my grid resources.. but its stil convert class is not working
– Spen D
Jun 2 '10 at 6:38
let me see what hM1 looks like?
– VoodooChild
Jun 2 '10 at 6:46
hM1 is a variable,it may be 0 or 1
– Spen D
Jun 2 '10 at 6:47
If you set a breakpoint in the converter class, does the debugger go in there?????
– VoodooChild
Jun 2 '10 at 6:47
no, i ichecked that too, its does not going to that break point.
– Spen D
Jun 2 '10 at 6:48
|
show 8 more comments
i have already added it to my grid resources.. but its stil convert class is not working
– Spen D
Jun 2 '10 at 6:38
let me see what hM1 looks like?
– VoodooChild
Jun 2 '10 at 6:46
hM1 is a variable,it may be 0 or 1
– Spen D
Jun 2 '10 at 6:47
If you set a breakpoint in the converter class, does the debugger go in there?????
– VoodooChild
Jun 2 '10 at 6:47
no, i ichecked that too, its does not going to that break point.
– Spen D
Jun 2 '10 at 6:48
i have already added it to my grid resources.. but its stil convert class is not working
– Spen D
Jun 2 '10 at 6:38
i have already added it to my grid resources.. but its stil convert class is not working
– Spen D
Jun 2 '10 at 6:38
let me see what hM1 looks like?
– VoodooChild
Jun 2 '10 at 6:46
let me see what hM1 looks like?
– VoodooChild
Jun 2 '10 at 6:46
hM1 is a variable,it may be 0 or 1
– Spen D
Jun 2 '10 at 6:47
hM1 is a variable,it may be 0 or 1
– Spen D
Jun 2 '10 at 6:47
If you set a breakpoint in the converter class, does the debugger go in there?????
– VoodooChild
Jun 2 '10 at 6:47
If you set a breakpoint in the converter class, does the debugger go in there?????
– VoodooChild
Jun 2 '10 at 6:47
no, i ichecked that too, its does not going to that break point.
– Spen D
Jun 2 '10 at 6:48
no, i ichecked that too, its does not going to that break point.
– Spen D
Jun 2 '10 at 6:48
|
show 8 more comments
I can see immediately a problem with your converter definition.
class TextConvert : IValueConverter
{
...
Should be declared public to be able to use it as a resource.
public class TextConvert : IValueConverter
{
...
Also, its not a good thing to be doing this...
return value = "Good";
...
return value = "NIL";
It should just be (even though it will not matter if you leave it, just bad programming =P):
return "Good";
...
return "Nill";
add a comment |
I can see immediately a problem with your converter definition.
class TextConvert : IValueConverter
{
...
Should be declared public to be able to use it as a resource.
public class TextConvert : IValueConverter
{
...
Also, its not a good thing to be doing this...
return value = "Good";
...
return value = "NIL";
It should just be (even though it will not matter if you leave it, just bad programming =P):
return "Good";
...
return "Nill";
add a comment |
I can see immediately a problem with your converter definition.
class TextConvert : IValueConverter
{
...
Should be declared public to be able to use it as a resource.
public class TextConvert : IValueConverter
{
...
Also, its not a good thing to be doing this...
return value = "Good";
...
return value = "NIL";
It should just be (even though it will not matter if you leave it, just bad programming =P):
return "Good";
...
return "Nill";
I can see immediately a problem with your converter definition.
class TextConvert : IValueConverter
{
...
Should be declared public to be able to use it as a resource.
public class TextConvert : IValueConverter
{
...
Also, its not a good thing to be doing this...
return value = "Good";
...
return value = "NIL";
It should just be (even though it will not matter if you leave it, just bad programming =P):
return "Good";
...
return "Nill";
answered Oct 5 '10 at 4:44
Tri Q TranTri Q Tran
4,07112754
4,07112754
add a comment |
add a comment |
Try by removing Path
in the below line
Text="{Binding **Path**=hM1,Converter={StaticResource TextConvert},Mode=OneWay}".
Sometimes it works without Path
:).
Also look into the output window(Alt+Cntl+O)...to see where the issue is.
but its not working anish..?
– Spen D
Jun 2 '10 at 6:57
output window doesnt show any exception.
– Spen D
Jun 2 '10 at 6:59
Deep ..did u get the answer ?
– Relativity
Jun 2 '10 at 7:53
Namespace shud be like this - xmlns:Model="clr-namespace:WpfControlLibrary2.ViewModel" And Class in that namespace shud be used as below - <ObjectDataProvider x:Key="Datas" ObjectType="{x:Type ViewModel:UserControlViewModel}"></ObjectDataProvider>
– Relativity
Jun 2 '10 at 8:00
using ObjectDataProvider...u can have the instance of a class as a static resource
– Relativity
Jun 2 '10 at 8:12
|
show 2 more comments
Try by removing Path
in the below line
Text="{Binding **Path**=hM1,Converter={StaticResource TextConvert},Mode=OneWay}".
Sometimes it works without Path
:).
Also look into the output window(Alt+Cntl+O)...to see where the issue is.
but its not working anish..?
– Spen D
Jun 2 '10 at 6:57
output window doesnt show any exception.
– Spen D
Jun 2 '10 at 6:59
Deep ..did u get the answer ?
– Relativity
Jun 2 '10 at 7:53
Namespace shud be like this - xmlns:Model="clr-namespace:WpfControlLibrary2.ViewModel" And Class in that namespace shud be used as below - <ObjectDataProvider x:Key="Datas" ObjectType="{x:Type ViewModel:UserControlViewModel}"></ObjectDataProvider>
– Relativity
Jun 2 '10 at 8:00
using ObjectDataProvider...u can have the instance of a class as a static resource
– Relativity
Jun 2 '10 at 8:12
|
show 2 more comments
Try by removing Path
in the below line
Text="{Binding **Path**=hM1,Converter={StaticResource TextConvert},Mode=OneWay}".
Sometimes it works without Path
:).
Also look into the output window(Alt+Cntl+O)...to see where the issue is.
Try by removing Path
in the below line
Text="{Binding **Path**=hM1,Converter={StaticResource TextConvert},Mode=OneWay}".
Sometimes it works without Path
:).
Also look into the output window(Alt+Cntl+O)...to see where the issue is.
edited Jan 3 at 5:45
Keith
298319
298319
answered Jun 2 '10 at 6:55
RelativityRelativity
2,7971666111
2,7971666111
but its not working anish..?
– Spen D
Jun 2 '10 at 6:57
output window doesnt show any exception.
– Spen D
Jun 2 '10 at 6:59
Deep ..did u get the answer ?
– Relativity
Jun 2 '10 at 7:53
Namespace shud be like this - xmlns:Model="clr-namespace:WpfControlLibrary2.ViewModel" And Class in that namespace shud be used as below - <ObjectDataProvider x:Key="Datas" ObjectType="{x:Type ViewModel:UserControlViewModel}"></ObjectDataProvider>
– Relativity
Jun 2 '10 at 8:00
using ObjectDataProvider...u can have the instance of a class as a static resource
– Relativity
Jun 2 '10 at 8:12
|
show 2 more comments
but its not working anish..?
– Spen D
Jun 2 '10 at 6:57
output window doesnt show any exception.
– Spen D
Jun 2 '10 at 6:59
Deep ..did u get the answer ?
– Relativity
Jun 2 '10 at 7:53
Namespace shud be like this - xmlns:Model="clr-namespace:WpfControlLibrary2.ViewModel" And Class in that namespace shud be used as below - <ObjectDataProvider x:Key="Datas" ObjectType="{x:Type ViewModel:UserControlViewModel}"></ObjectDataProvider>
– Relativity
Jun 2 '10 at 8:00
using ObjectDataProvider...u can have the instance of a class as a static resource
– Relativity
Jun 2 '10 at 8:12
but its not working anish..?
– Spen D
Jun 2 '10 at 6:57
but its not working anish..?
– Spen D
Jun 2 '10 at 6:57
output window doesnt show any exception.
– Spen D
Jun 2 '10 at 6:59
output window doesnt show any exception.
– Spen D
Jun 2 '10 at 6:59
Deep ..did u get the answer ?
– Relativity
Jun 2 '10 at 7:53
Deep ..did u get the answer ?
– Relativity
Jun 2 '10 at 7:53
Namespace shud be like this - xmlns:Model="clr-namespace:WpfControlLibrary2.ViewModel" And Class in that namespace shud be used as below - <ObjectDataProvider x:Key="Datas" ObjectType="{x:Type ViewModel:UserControlViewModel}"></ObjectDataProvider>
– Relativity
Jun 2 '10 at 8:00
Namespace shud be like this - xmlns:Model="clr-namespace:WpfControlLibrary2.ViewModel" And Class in that namespace shud be used as below - <ObjectDataProvider x:Key="Datas" ObjectType="{x:Type ViewModel:UserControlViewModel}"></ObjectDataProvider>
– Relativity
Jun 2 '10 at 8:00
using ObjectDataProvider...u can have the instance of a class as a static resource
– Relativity
Jun 2 '10 at 8:12
using ObjectDataProvider...u can have the instance of a class as a static resource
– Relativity
Jun 2 '10 at 8:12
|
show 2 more comments
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f2955393%2fwpf-textblock-convert-issue%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
are u getting any output?
– Kishore Kumar
Jun 2 '10 at 6:20
yes, I would like to know the output as well....it looks right.
– VoodooChild
Jun 2 '10 at 6:23
yes am getting number in textblock,the values are 0 and 1, if 0 will bind some text as same for 1 some text, am getting the numebr value in textblock, but converter is not working to replace the number for text
– Spen D
Jun 2 '10 at 6:28