Click here to Skip to main content
14,842,132 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: load usercontrol in background worker Pin
Rusdy Perkasa11-Sep-20 17:20
MemberRusdy Perkasa11-Sep-20 17:20 
GeneralRe: load usercontrol in background worker Pin
Mycroft Holmes11-Sep-20 12:20
professionalMycroft Holmes11-Sep-20 12:20 
GeneralRe: load usercontrol in background worker Pin
Rusdy Perkasa11-Sep-20 17:27
MemberRusdy Perkasa11-Sep-20 17:27 
GeneralRe: load usercontrol in background worker Pin
Gerry Schmitz11-Sep-20 18:14
mveGerry Schmitz11-Sep-20 18:14 
GeneralRe: load usercontrol in background worker Pin
Rusdy Perkasa11-Sep-20 18:28
MemberRusdy Perkasa11-Sep-20 18:28 
GeneralRe: load usercontrol in background worker Pin
Gerry Schmitz12-Sep-20 4:47
mveGerry Schmitz12-Sep-20 4:47 
GeneralRe: load usercontrol in background worker Pin
Eddy Vluggen12-Sep-20 8:44
professionalEddy Vluggen12-Sep-20 8:44 
QuestionCan we add animation to WPF just like we have SHAPE animation in powerpoint? Pin
User-86216959-Jul-20 23:57
MemberUser-86216959-Jul-20 23:57 
Hi Team,

I want my window to be closed like SHAPE animation in PowerPoint. I have written below code but it's not working like SHAPE animation present in Microsoft PowerPoint. It is going from outer to inner but in rectangle shape. I have to keep Outer to inner behavior but with SHAPE animation.
Below is the code I have created:
MainWindow.XAML
<Window.RenderTransform>
      <TransformGroup>
          <ScaleTransform x:Name="rectScale"/>
      </TransformGroup>
  </Window.RenderTransform>
  <Window.Resources>

and in .cs file
DoubleAnimation scale_x = new DoubleAnimation()
           {
               From = 1,
               To = 0,
               Duration = TimeSpan.FromSeconds(5),
           };

           DoubleAnimation scale_y = new DoubleAnimation()
           {
               From = 1,
               To = 0,
               Duration = TimeSpan.FromSeconds(5),
           };
           DoubleAnimation center_x = new DoubleAnimation()
           {
               From = 400,
               To = 400,
               Duration = TimeSpan.FromSeconds(5),
           };
           DoubleAnimation center_y = new DoubleAnimation()
           {
               From = 300,
               To = 300,
               Duration = TimeSpan.FromSeconds(5),
           };
               rectScale.BeginAnimation(ScaleTransform.ScaleXProperty, scale_x);
               rectScale.BeginAnimation(ScaleTransform.ScaleYProperty, scale_y);
               rectScale.BeginAnimation(ScaleTransform.CenterXProperty, center_x);
               rectScale.BeginAnimation(ScaleTransform.CenterYProperty, center_y);

Can someone please guide where I am missing and how can I make it working.

Thanks
QuestionVertical text in WPF grid Pin
Member 79891226-Jul-20 8:54
MemberMember 79891226-Jul-20 8:54 
AnswerRe: Vertical text in WPF grid Pin
Gerry Schmitz6-Jul-20 12:10
mveGerry Schmitz6-Jul-20 12:10 
AnswerRe: Vertical text in WPF grid Pin
Richard Deeming6-Jul-20 23:43
mveRichard Deeming6-Jul-20 23:43 
GeneralRe: Vertical text in WPF grid Pin
Member 79891227-Jul-20 5:03
MemberMember 79891227-Jul-20 5:03 
QuestionBehavior/DP Question Pin
Kevin Marois22-Jun-20 8:27
professionalKevin Marois22-Jun-20 8:27 
AnswerRe: Behavior/DP Question Pin
Richard Deeming23-Jun-20 4:44
mveRichard Deeming23-Jun-20 4:44 
GeneralRe: Behavior/DP Question Pin
Kevin Marois1-Jul-20 8:30
professionalKevin Marois1-Jul-20 8:30 
GeneralRe: Behavior/DP Question Pin
Richard Deeming1-Jul-20 23:32
mveRichard Deeming1-Jul-20 23:32 
GeneralRe: Behavior/DP Question Pin
Kevin Marois2-Jul-20 8:49
professionalKevin Marois2-Jul-20 8:49 
Question2 xaml windows question Pin
Michele Smith26-May-20 7:10
MemberMichele Smith26-May-20 7:10 
AnswerRe: 2 xaml windows question Pin
#realJSOP26-May-20 7:43
mva#realJSOP26-May-20 7:43 
QuestionCreate DataGrid From List<T> With Properties As Columns Pin
Kevin Marois18-May-20 7:14
professionalKevin Marois18-May-20 7:14 
AnswerRe: Create DataGrid From List<T> With Properties As Columns Pin
Richard Deeming18-May-20 8:47
mveRichard Deeming18-May-20 8:47 
GeneralRe: Create DataGrid From List<T> With Properties As Columns Pin
Kevin Marois18-May-20 8:52
professionalKevin Marois18-May-20 8:52 
QuestionWPF ListBox Pin
michaelbarb7-May-20 10:03
Membermichaelbarb7-May-20 10:03 
AnswerRe: WPF ListBox Pin
Richard Deeming10-May-20 21:52
mveRichard Deeming10-May-20 21:52 
GeneralRe: WPF ListBox Pin
michaelbarb11-May-20 19:11
Membermichaelbarb11-May-20 19:11 

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.