Click here to Skip to main content
15,909,373 members
Home / Discussions / C#
   

C#

 
GeneralRe: issue with moving a control Pin
Member 1112014730-Sep-14 3:56
Member 1112014730-Sep-14 3:56 
Thanks a lot ofr your answer:



"1. set the Button's 'Margin property to a new 'Thickness structure: [^]."
This one worked fine and looks quite easy to use. So that's perfect for my immediate use.

Trying to understand your alternate solutions:

"0. set the Button's location properties on its Canvas: example: YourCanvas.SetLeft(YourButton, 30); "
I think SetLeft is a static method, so should rather be :
Canvas.SetLeft(myCanvas1, 0);

I had difficulties to bind a button to a canvas and display it.
I suppose I have to do something like this?:

Canvas canvas1 = new Canvas();
Canvas.SetLeft(button1, 119); //button1 = button to move
canvas1.Children.Add(button1); //thisline throws an System.InvalidOperationException


"2. using animation: see 'RenderTransform, 'TranslateTransform"
As far as I understood, these features are used into the XAML code, not in the code behind? So you cannot use this to change the control's position after the application starts, can you?
Questioncan someone help me Pin
babarkhalid30-Sep-14 0:18
babarkhalid30-Sep-14 0:18 
AnswerRe: can someone help me Pin
Pete O'Hanlon30-Sep-14 0:27
mvePete O'Hanlon30-Sep-14 0:27 
GeneralRe: can someone help me Pin
babarkhalid30-Sep-14 2:04
babarkhalid30-Sep-14 2:04 
QuestionSQL Transaction Exception Pin
Zeyad Jalil29-Sep-14 23:17
professionalZeyad Jalil29-Sep-14 23:17 
AnswerRe: SQL Transaction Exception Pin
Simon_Whale29-Sep-14 23:28
Simon_Whale29-Sep-14 23:28 
JokeMessage Closed Pin
30-Sep-14 1:26
BHARAT70330-Sep-14 1:26 
GeneralRe: SQL Transaction Exception Pin
Dave Kreskowiak30-Sep-14 2:39
mveDave Kreskowiak30-Sep-14 2:39 
AnswerRe: SQL Transaction Exception Pin
Kornfeld Eliyahu Peter29-Sep-14 23:39
professionalKornfeld Eliyahu Peter29-Sep-14 23:39 
AnswerRe: SQL Transaction Exception Pin
Dilan Shaminda30-Sep-14 21:13
professionalDilan Shaminda30-Sep-14 21:13 
QuestionRelationship DataTable and DataReader ? Pin
Member 245846729-Sep-14 16:54
Member 245846729-Sep-14 16:54 
GeneralRe: Relationship DataTable and DataReader ? Pin
PIEBALDconsult29-Sep-14 18:09
mvePIEBALDconsult29-Sep-14 18:09 
QuestionC# .net Pin
abdul rafi29-Sep-14 1:57
abdul rafi29-Sep-14 1:57 
AnswerRe: C# .net Pin
Eddy Vluggen29-Sep-14 2:18
professionalEddy Vluggen29-Sep-14 2:18 
AnswerRe: C# .net Pin
BillWoodruff29-Sep-14 3:14
professionalBillWoodruff29-Sep-14 3:14 
QuestionWPF and HTML Rendering Pin
upksinghm29-Sep-14 1:55
upksinghm29-Sep-14 1:55 
AnswerRe: WPF and HTML Rendering Pin
Eddy Vluggen29-Sep-14 2:15
professionalEddy Vluggen29-Sep-14 2:15 
GeneralRe: WPF and HTML Rendering Pin
upksinghm9-Oct-14 22:56
upksinghm9-Oct-14 22:56 
QuestionData missing on Adobe Reader IX Pin
ZhangJunjun28-Sep-14 21:22
ZhangJunjun28-Sep-14 21:22 
QuestionRe: Data missing on Adobe Reader IX Pin
Eddy Vluggen29-Sep-14 3:03
professionalEddy Vluggen29-Sep-14 3:03 
Questionhow to check vaild email address? Pin
ATHIRA S28-Sep-14 20:21
ATHIRA S28-Sep-14 20:21 
AnswerRe: how to check vaild email address? Pin
BillWoodruff28-Sep-14 20:37
professionalBillWoodruff28-Sep-14 20:37 
SuggestionRe: how to check vaild email address? Pin
Kornfeld Eliyahu Peter28-Sep-14 21:01
professionalKornfeld Eliyahu Peter28-Sep-14 21:01 
AnswerRe: how to check vaild email address? Pin
Bernhard Hiller28-Sep-14 22:03
Bernhard Hiller28-Sep-14 22:03 
GeneralRe: how to check vaild email address? Pin
Pete O'Hanlon28-Sep-14 22:15
mvePete O'Hanlon28-Sep-14 22:15 

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.