Click here to Skip to main content
15,886,678 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: UserControl question Pin
AghaKhan1-May-09 6:17
AghaKhan1-May-09 6:17 
GeneralRe: UserControl question Pin
Gideon Engelberth1-May-09 11:49
Gideon Engelberth1-May-09 11:49 
GeneralRe: UserControl question Pin
AghaKhan1-May-09 18:56
AghaKhan1-May-09 18:56 
GeneralRe: UserControl question Pin
RugbyLeague1-May-09 9:19
RugbyLeague1-May-09 9:19 
GeneralRe: UserControl question Pin
Gideon Engelberth1-May-09 17:09
Gideon Engelberth1-May-09 17:09 
AnswerRe: UserControl question Pin
fjparisIII3-May-09 2:22
fjparisIII3-May-09 2:22 
QuestionMy WCF client deadlock Pin
Richard Dutton1-May-09 4:32
Richard Dutton1-May-09 4:32 
QuestionDependency properties!Performance issue Pin
pioner30-Apr-09 19:48
pioner30-Apr-09 19:48 
I`ve got some problems with understanding how dependecy properties work so for sure smbd can explain it to me little better.
Let`s imagine simple GUI hierarchy Button:UIElement
class UIElement
{
public (DependecyProperty)static Font font;
}
I especially simplified this,but for me the keyword here is STATIC.


class Button:UIElement
{
private Font buttonfont;
public Button()
{
buttonfont=UIElement.font;
}
public Font GetFont()
{
return buttonfont;
}

public SetFont(Font font)
{
buttonfont=font;
}
}

So i`ve read somewhere that dependecy properties needed for performance and resource managment.
And the example was Form with Buttons
So let`s imagine Form with 10 Buttons
1.If no explicit SetFont invoked then 1 Font object needed.
Totally the same thing could be done with WindowsForms declaring global Font object(probably static)
2.If someone invokes,for example SetFont(Color.Random) then numberOfObjects=SetFontInvocations+1(for example)
{if we use ONLY Color.SomeColor to set colors, then no new objects created in any part of code,because Color enumeration exists and all colors automaticaly created)
And again the same situations with WindowsForms
So if it`s possible could you pls show where WPF can improve resource managment in this simple situation.
Thank you all for helping. Smile | :) Smile | :)
AnswerRe: Dependency properties!Performance issue Pin
Gideon Engelberth1-May-09 3:27
Gideon Engelberth1-May-09 3:27 
QuestionSaving image transform without losing metadata Pin
fjparisIII30-Apr-09 6:35
fjparisIII30-Apr-09 6:35 
AnswerRe: Saving image transform without losing metadata Pin
fjparisIII30-Apr-09 8:47
fjparisIII30-Apr-09 8:47 
GeneralRe: Saving image transform without losing metadata (NOT SOLVED: where is everybody?) Pin
fjparisIII30-Apr-09 15:01
fjparisIII30-Apr-09 15:01 
GeneralRe: Saving image transform without losing metadata Pin
fjparisIII2-May-09 17:16
fjparisIII2-May-09 17:16 
GeneralRe: Saving image transform without losing metadata Pin
fjparisIII3-May-09 16:53
fjparisIII3-May-09 16:53 
AnswerRe: Saving image transform without losing metadata Pin
Pete O'Hanlon4-May-09 9:12
mvePete O'Hanlon4-May-09 9:12 
GeneralRe: Saving image transform without losing metadata Pin
fjparisIII4-May-09 9:36
fjparisIII4-May-09 9:36 
GeneralRe: Saving image transform without losing metadata Pin
Pete O'Hanlon4-May-09 9:42
mvePete O'Hanlon4-May-09 9:42 
GeneralRe: Saving image transform without losing metadata Pin
fjparisIII4-May-09 9:58
fjparisIII4-May-09 9:58 
GeneralRe: Saving image transform without losing metadata Pin
Pete O'Hanlon4-May-09 10:06
mvePete O'Hanlon4-May-09 10:06 
GeneralRe: Saving image transform without losing metadata Pin
fjparisIII20-May-09 14:59
fjparisIII20-May-09 14:59 
GeneralRe: Saving image transform without losing metadata Pin
fjparisIII22-May-09 13:25
fjparisIII22-May-09 13:25 
QuestionCookies vs. isolated Storage Pin
Ray Cassick30-Apr-09 3:44
Ray Cassick30-Apr-09 3:44 
AnswerRe: Cookies vs. isolated Storage Pin
Mark Salsbery30-Apr-09 6:00
Mark Salsbery30-Apr-09 6:00 
AnswerRe: Cookies vs. isolated Storage Pin
GuinnessKMF4-May-09 3:28
GuinnessKMF4-May-09 3:28 
QuestionResource Dictionary and Data Templates Pin
BlitzPackage30-Apr-09 1:50
BlitzPackage30-Apr-09 1:50 

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.