Click here to Skip to main content
15,921,840 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Silver Light Tools Information Required Pin
Lev Danielyan6-Jan-09 0:05
Lev Danielyan6-Jan-09 0:05 
GeneralRe: Silver Light Tools Information Required Pin
mr_muskurahat6-Jan-09 0:24
mr_muskurahat6-Jan-09 0:24 
GeneralRe: Silver Light Tools Information Required Pin
Lev Danielyan6-Jan-09 1:16
Lev Danielyan6-Jan-09 1:16 
AnswerRe: Silver Light Tools Information Required Pin
patelpiyush10-Feb-09 5:01
patelpiyush10-Feb-09 5:01 
Questionwhat is silverlight Pin
NidhiKanu4-Jan-09 21:57
professionalNidhiKanu4-Jan-09 21:57 
AnswerRe: what is silverlight Pin
ColinM1235-Jan-09 12:55
ColinM1235-Jan-09 12:55 
GeneralRe: what is silverlight Pin
NidhiKanu5-Jan-09 18:32
professionalNidhiKanu5-Jan-09 18:32 
GeneralRe: what is silverlight Pin
ColinM1237-Jan-09 11:35
ColinM1237-Jan-09 11:35 
AnswerRe: what is silverlight Pin
Mohammad Dayyan8-Jan-09 10:42
Mohammad Dayyan8-Jan-09 10:42 
QuestionHow create Report with WPF?? Pin
VisualLive4-Jan-09 19:49
VisualLive4-Jan-09 19:49 
AnswerRe: How create Report with WPF?? Pin
User 2710094-Jan-09 19:59
User 2710094-Jan-09 19:59 
AnswerRe: How create Report with WPF?? Pin
hossei.gholami23-Dec-09 9:16
hossei.gholami23-Dec-09 9:16 
QuestionCompatible with VS 2005 Pin
avi_dadi20024-Jan-09 19:15
avi_dadi20024-Jan-09 19:15 
AnswerRe: Compatible with VS 2005 Pin
Aman Bhullar6-Jan-09 5:25
Aman Bhullar6-Jan-09 5:25 
AnswerRe: Compatible with VS 2005 Pin
Mohammad Dayyan8-Jan-09 10:45
Mohammad Dayyan8-Jan-09 10:45 
AnswerRe: Compatible with VS 2005 Pin
CrazyCoder269-Jan-09 20:32
CrazyCoder269-Jan-09 20:32 
QuestionFocusing problem ? Pin
Mohammad Dayyan4-Jan-09 3:26
Mohammad Dayyan4-Jan-09 3:26 
AnswerRe: Focusing problem ? Pin
Mark Salsbery4-Jan-09 6:30
Mark Salsbery4-Jan-09 6:30 
GeneralRe: Focusing problem ? Pin
Mohammad Dayyan4-Jan-09 6:52
Mohammad Dayyan4-Jan-09 6:52 
GeneralRe: Focusing problem ? Pin
Mark Salsbery4-Jan-09 9:32
Mark Salsbery4-Jan-09 9:32 
GeneralRe: Focusing problem ? Pin
Mohammad Dayyan4-Jan-09 21:44
Mohammad Dayyan4-Jan-09 21:44 
QuestionWPF save button Pin
siten03083-Jan-09 12:23
siten03083-Jan-09 12:23 
AnswerRe: WPF save button Pin
Mark Salsbery3-Jan-09 15:09
Mark Salsbery3-Jan-09 15:09 
siten0308 wrote:
how can this be done, its easy in C# but WPF.... ??


You're already writing your WPF code in C#, aren't you? Smile | :)

Just one of the many possibly ways...

In the click handler you could simply change the button's Content
(assuming the button Content is a String):
private void cropbutton_Click(object sender, RoutedEventArgs e)
{
  ...
    Button btn = sender as Button;
    if (cropmode == true}
    {
        btn.Content = "Cancel";
        cropmode = false;
    }
    else
    {
        btn.Content = "Crop Image";
        cropmode = true;
    }
  ...
}




There's some sample code for encoding to JPEG here: JpegBitmapEncoder Class[^]

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: WPF save button Pin
siten03083-Jan-09 18:42
siten03083-Jan-09 18:42 
GeneralRe: WPF save button Pin
Mark Salsbery3-Jan-09 20:58
Mark Salsbery3-Jan-09 20:58 

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.