No announcements
Found 78164 threads
-
0 Votes
WPF change UserControl textblock from another window
Hi Mrutynjaya M, According to your description, you have three Window, one is usercontrol, another is curTemp window, another is Mainwindow, so you need to add ...Answered | 3 Replies | 1826 Views | Created by MRUTYUNJAYA.M - Wednesday, August 1, 2018 6:40 PM | Last reply by Cherry Bu - Friday, August 3, 2018 3:34 AM -
0 Votes
Binding a DP with a TextBlock inside the same UserControl
In the code-behind for the UserControl's constructor, try adding this under the call to InitializeControl().Answered | 1 Replies | 3231 Views | Created by Fairydhwen - Tuesday, December 29, 2009 1:47 PM | Last reply by DaveyBoy1138 - Tuesday, December 29, 2009 3:26 PM -
0 Votes
Set text from Page to UserControl TextBlock in metro style apps
Hii Use this in this method "DispalayMessageOnUserControl" var x = ...Answered | 4 Replies | 2178 Views | Created by R.Shankar - Wednesday, July 4, 2012 11:31 AM | Last reply by R.Shankar - Wednesday, July 4, 2012 12:30 PM -
0 Votes
usercontrol
If you really want to do this, you shouldn't be using a UserControl.Answered | 1 Replies | 4200 Views | Created by krex - Thursday, October 2, 2008 2:13 PM | Last reply by Colin Eberhardt - Thursday, October 2, 2008 3:31 PM -
3 Votes
Set TextBlock width Dynamically
But, I will have to change the position of the size of TextBlock in one usercontrol relative to other.Answered | 8 Replies | 12126 Views | Created by thisissuneel - Tuesday, August 2, 2011 8:28 AM | Last reply by thisissuneel - Tuesday, August 2, 2011 2:10 PM -
0 Votes
[UWP][XAML] Binding an UserControl in an UserControl
>” it works for TextBlock binding and not for my SymbolIcon binding.”Answered | 4 Replies | 2476 Views | Created by Sylvain Bruyère - Thursday, April 14, 2016 3:41 PM | Last reply by Sylvain Bruyère - Thursday, April 28, 2016 12:56 PM -
2 Votes
Show selected ListItem in TextBlock
Yep, the grid is optional and just how Blend generates it, you can set the DataContext directly on the TextBlock, or higher up in the tree, as DataContext is inherited from the parent.Answered | 4 Replies | 3771 Views | Created by Ron Dongelmans - Tuesday, May 4, 2010 7:19 AM | Last reply by Chuck Hays - Wednesday, May 5, 2010 8:32 PM -
0 Votes
UserControl Binding
I found this to be the best approach to bind to the DependencyProperty "Text": <UserControl ... x:Name="self"> ...Answered | 2 Replies | 2023 Views | Created by Michael Osthege - Wednesday, August 8, 2012 9:21 AM | Last reply by Michael Osthege - Saturday, August 11, 2012 8:00 PM -
0 Votes
Binding dynamic Style to UserControl
Currently I am using code behind to update teh FontSize properties of my usercontrols manually...Answered | 4 Replies | 4633 Views | Created by Shalan007 - Sunday, June 20, 2010 6:40 AM | Last reply by Shalan007 - Wednesday, June 23, 2010 7:31 AM -
0 Votes
Styles apply the TextBlock
Hi Ram, The TextBlock class does not have a Template property for setting customized template.Answered | 3 Replies | 7174 Views | Created by Rammohan Ammiti - Monday, November 9, 2009 10:14 AM | Last reply by Zhi-Xin Ye - Wednesday, November 11, 2009 4:34 PM -
0 Votes
UserControl inheritance
</TextBlock> </Grid> ...Answered | 5 Replies | 7656 Views | Created by sqlguy - Sunday, January 17, 2016 7:36 PM | Last reply by Magnus (MM8) - Sunday, January 17, 2016 9:08 PM -
1 Votes
WPF UserControl: DataContext
hi, u can also set the usercontrol datacontext property <UserControl.Resources> <viewmodel:MainViewModel x:Key="vm" ...Answered | 3 Replies | 27563 Views | Created by ShrishailHalijol - Monday, June 25, 2012 4:40 PM | Last reply by Jagan Krishnan - Monday, June 25, 2012 5:39 PM -
1 Votes
How to make textblock appear inside a shape in XAML
That's one way of doing it but I think that you would be better off defining a Usercontrol in its own template and then reusing it in your mainpage: For instance, this is ...Answered | 3 Replies | 4394 Views | Created by Shawn Dan - Tuesday, March 13, 2012 1:28 AM | Last reply by Matt Small - Wednesday, March 14, 2012 2:07 PM -
1 Votes
Show current datetime in TextBlock using only xaml
See the link, it is not supported you can do it as mentioned in the link ...Answered | 12 Replies | 70157 Views | Created by AtlMike - Tuesday, January 12, 2010 1:33 PM | Last reply by BorisAdams - Tuesday, August 9, 2016 12:01 AM -
0 Votes
Validated Textbox in a UserControl
UserControl: <UserControl x:Class="SandBox.UserControl12" ...Answered | 6 Replies | 1906 Views | Created by Syslock - Friday, October 26, 2012 8:29 AM | Last reply by parth.shah - Saturday, November 3, 2012 7:56 AM -
0 Votes
Using a UserControl as listview/listbox item
If you are testing this please remove the TextBlock and leave only the usercontrol and you will see what I mean.Answered | 9 Replies | 5041 Views | Created by sqlguy - Monday, March 8, 2010 5:56 PM | Last reply by Andy ONeill - Thursday, March 11, 2010 9:14 PM -
2 Votes
ApplicationViewStates inside a UserControl
<controls:MyLayoutAwareControl Loaded="StartLayoutUpdates" ...Answered | 4 Replies | 3110 Views | Created by Marco Morais - Tuesday, August 7, 2012 4:26 PM | Last reply by Can Bilgin - Monday, August 13, 2012 8:57 PM -
0 Votes
Flowing text from one textblock to another textblock.
I would vote for expanding textblock, however, if you really need it, you should create converter, that splits text according the maxwidth.Answered | 3 Replies | 3442 Views | Created by Jackrock79 - Wednesday, November 12, 2008 4:12 PM | Last reply by Krishna Vangapandu - Wednesday, November 12, 2008 7:05 PM -
0 Votes
newline in a textblock
<TextBlock Name="test" Text="Line 1 Line 2"> </Answered | 1 Replies | 5500 Views | Created by Jackrock79 - Monday, October 13, 2008 5:36 PM | Last reply by Drew Marsh - Monday, October 13, 2008 7:19 PM -
1 Votes
How to set focus of a textblock Out of Browser?
The TextBlock does not have a Focus method.Answered | 5 Replies | 952 Views | Created by Shekhar SHEKHAWAT - Tuesday, July 22, 2014 12:21 PM | Last reply by JayChase - Tuesday, July 29, 2014 1:24 AM - Items 1 to 20 of 78164 Next ›
No announcements