No announcements
Found 2269926 threads
-
0 Votes
TextBlock did not center the text
Setting HorizontalAlignment="Center" would be telling the parent panel how to position the element.Answered | 2 Replies | 3664 Views | Created by Sigbert - Tuesday, October 14, 2008 5:31 PM | Last reply by Sigbert - Tuesday, October 14, 2008 8:18 PM -
1 Votes
Dynamically Font Resizing in TextBlock
Hi, when we try to resize a textblock change the fontsize <Window x:Class="Resize.Window4" ...Answered | 2 Replies | 5588 Views | Created by Igor Kondrasovas - Wednesday, April 29, 2009 7:15 PM | Last reply by Igor Kondrasovas - Friday, May 1, 2009 2:49 PM -
2 Votes
How to render a canvas stored in a database via binding
Can you show me how to add the Canvas to the DataTemplate as a data-bound object?Answered | 4 Replies | 4477 Views | Created by Mark Latham - Thursday, July 29, 2010 5:04 PM | Last reply by Mark Latham - Monday, August 2, 2010 2:20 PM -
0 Votes
dynamic position of flyout?
Hello RandyPete, You can put popup in the canvas control and than set its X,Y position base on pointer click.Answered | 7 Replies | 1309 Views | Created by RandyPete - Wednesday, November 19, 2014 5:49 AM | Last reply by Jamles Hez - Thursday, November 20, 2014 5:37 AM -
0 Votes
Draw line in canvas
Transform(new Point(0, 0)); Where Canvas is the element which you want to get position, and rootVisual is Application.Current.MainWindow or ...Answered | 3 Replies | 55749 Views | Created by kiwis - Sunday, April 15, 2012 5:45 AM | Last reply by Annabella Luo - Monday, April 16, 2012 6:24 PM -
1 Votes
How to Add Elements To Canvas From List
I'd like to place positioned items in a grid from a list.Answered | 1 Replies | 3172 Views | Created by Tamás Küzdi - Sunday, May 6, 2012 11:05 AM | Last reply by Matt Small - Monday, May 7, 2012 3:18 PM -
0 Votes
underline blank spaces in TextBlock
Lets call each character 10 pixels wide and your textblock 100 pixels wide.Answered | 7 Replies | 8870 Views | Created by Racsus - Wednesday, May 12, 2010 4:03 PM | Last reply by Olaf Rabbachin - Thursday, May 13, 2010 9:43 AM -
0 Votes
Canvas Origin?
After I asked the question, I realized that I could just apply the transform to the polyline as a whole instead of the canvas.Answered | 2 Replies | 7128 Views | Created by dslamb - Thursday, October 16, 2008 5:12 AM | Last reply by dslamb - Friday, October 17, 2008 3:45 AM -
0 Votes
How to bind to canvas
It is not the default template of canvas.Answered | 3 Replies | 549 Views | Created by BitSmithy - Tuesday, February 23, 2016 11:46 PM | Last reply by Barry Wang - Monday, February 29, 2016 2:22 AM -
0 Votes
Trimmed TextBlock for GroupBox Header
Hello Firewire, it's only possible if I bind the TextBlock MaxWidth to the ActualWidth of his Parent (GroupBox) and calc minus 20.Answered | 9 Replies | 6135 Views | Created by Firewire918 - Tuesday, September 15, 2009 6:46 AM | Last reply by Firewire918 - Monday, September 21, 2009 1:56 PM -
1 Votes
How to restrict movement of textbox outside the canvas ?
Hi Raghav-MSDN, I think you could set a flag property to determin if your TextBox could be moved, you could get the relative position to your canvas side, or ...Answered | 4 Replies | 2587 Views | Created by Raghav -MSDN - Friday, February 17, 2012 12:59 PM | Last reply by Sheldon _Xiao - Tuesday, March 6, 2012 6:29 AM -
3 Votes
How to make textblock selectable?
Because a TextBlock doesn't have this functionality.Answered | 3 Replies | 19687 Views | Created by Deeyaa - Monday, May 11, 2015 1:38 PM | Last reply by Magnus (MM8) - Tuesday, May 12, 2015 12:56 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 my ...Answered | 3 Replies | 4439 Views | Created by Shawn Dan - Tuesday, March 13, 2012 1:28 AM | Last reply by Matt Small - Wednesday, March 14, 2012 2:07 PM -
3 Votes
Rotation With Canvas
>is it possible to prevent rotation effect on canvas's child element ?Answered | 7 Replies | 1729 Views | Created by TRushit R - Monday, December 21, 2015 5:15 AM | Last reply by Andy ONeill - Tuesday, December 29, 2015 3:04 PM -
0 Votes
Positioning a TextBlock on the Canvas within code
Hi, This an easy thing to do in code: mt.SetValue(Canvas.LeftProperty, ...Answered | 2 Replies | 7404 Views | Created by MSDN_Forums_User - Friday, March 27, 2009 11:57 PM | Last reply by .netdan1 - Saturday, March 28, 2009 12:50 AM -
0 Votes
How to access controls in TextBlock
</TextBlock> I could post code-behind example if you don't know how to implement it.Answered | 3 Replies | 4183 Views | Created by kemkacen55 - Friday, August 6, 2010 1:22 PM | Last reply by Alireza Khalili - Saturday, August 7, 2010 1:08 PM -
0 Votes
Cannot do cropping on Canvas after dynamically add/remove canvas Eventhandler
What do you mean by cannot do cropping, I set breakpoints at the StopMarking method, I can receive the start position and end position even I disable the ZoomMode of the ...Answered | 1 Replies | 665 Views | Created by FireDance - Thursday, November 6, 2014 9:01 AM | Last reply by Jamles Hez - Friday, November 7, 2014 3:19 AM -
1 Votes
Mark Negative Points in Canvas
For instance you have a canvas 100, 100 in size.Answered | 4 Replies | 1679 Views | Created by NANDAKUMAR T - Monday, October 6, 2014 2:21 AM | Last reply by Trevor Fellman - Tuesday, October 7, 2014 10:47 PM -
0 Votes
Binding shapes to canvas
To get rid of your 'background' image, you can create your canvas's background from an ImageBrush.Answered | 2 Replies | 3515 Views | Created by JCorker - Monday, August 13, 2012 4:08 PM | Last reply by Jürgen Röhr - Monday, August 13, 2012 6:07 PM -
0 Votes
how to draw an arrow line point to a ellipse or textblock like state machine graph
You should add sp to the Canvas's Children collection, use the Geometry.Parse method and specify a valid color.Answered | 4 Replies | 1586 Views | Created by Map to new space - Thursday, February 11, 2016 7:35 PM | Last reply by Map to new space - Friday, February 12, 2016 4:57 PM
No announcements