none
Custom Minimize and Maxmize mode in WPF RRS feed

  • Question

  • Hi,

     I set the windowstyle="None" now i customize the Minimize and maxmize button with new functionality...


    Pls suggest me.

    Thanks
    Ram
    Friday, December 4, 2009 10:12 AM

Answers

  • Hi Ram,

    Please refer to this sample application:

    http://www.dreamincode.net/forums/showtopic121576.htm

    Thanks.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Tuesday, December 8, 2009 7:08 AM
  • Hello Ram,

    I'm not so clear with your scenario, if you set WindowsStyle to "None" the Minimize and Maxmize button will not appeared in your Window, so how do you want to customize them?

    Otherwise, if you set WindowStyle to "None" we could built our own button with the same look of the built-in buttons, you could refer to this tips:
    http://blog.voidnish.com/?p=156

    Thanks.
     

    Tim Li

    MSDN Subscriber Support in Forum

    If you have any feedback on our support, please contact msdnmg@microsoft.com


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    • Marked as answer by Tim Li Tuesday, December 8, 2009 7:08 AM
    Monday, December 7, 2009 6:36 AM

All replies

  • Hello Ram,

    I'm not so clear with your scenario, if you set WindowsStyle to "None" the Minimize and Maxmize button will not appeared in your Window, so how do you want to customize them?

    Otherwise, if you set WindowStyle to "None" we could built our own button with the same look of the built-in buttons, you could refer to this tips:
    http://blog.voidnish.com/?p=156

    Thanks.
     

    Tim Li

    MSDN Subscriber Support in Forum

    If you have any feedback on our support, please contact msdnmg@microsoft.com


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    • Marked as answer by Tim Li Tuesday, December 8, 2009 7:08 AM
    Monday, December 7, 2009 6:36 AM

  • Hi Tim

    Thanks for your reply..


      actaully.. i am not used the current window style...  now i set the my window style to None. so make as new three button like Minimize, Maxmize, and Close buttons

     If i click my Minimize button, Maxmize Buttons i need work according scenario .. now suggest me.

    Thanks
    Ram

    Monday, December 7, 2009 6:39 AM
  • Hi Ram,

    After you create your own Buttons, you could set a event handler to them to handle the Click event, for example:
    You could have following xaml in your xaml editor:
      <Button Height="23" HorizontalAlignment="Right" Margin="0,18,1,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click">Minimize</Button>

    and then hanve following event handler in your code behind file(.cs) :

     private void button1_Click(object sender, RoutedEventArgs e)
            {

            }

    Now your could wirte your code in button1_Click method  and they will be proceed when the Minimize button is clicked.

    Thanks.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Monday, December 7, 2009 6:48 AM


  • Pls, suggest me the code...


    pls give me sample application


    Thanks
    Ram
    Tuesday, December 8, 2009 5:25 AM
  • Hi Ram,

    Please refer to this sample application:

    http://www.dreamincode.net/forums/showtopic121576.htm

    Thanks.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Tuesday, December 8, 2009 7:08 AM
  • Hi Tim,


    Today morning i find that link.. i implemented that same souce code.. it's petty cool with souce code too.


    Thanks
    Ram
    Tuesday, December 8, 2009 7:12 AM