היי,
אני חדשה בWPF, מקווה להיעזר כאן :)
אני מנסה ליצור grid עם המון שורות, כל שורה מכילה אותם פקדים (textBox, ComboBox וכ').
אני רוצה ליצור שורה אחת בresource ולשכפל אותה. וכל שינוי שאני עושה אני אצטרך לעשות פעם אחת ולא כל עשרות השורות.
איך מממשים את זה?
אני לא מצליחה לעושת משהו תקין.
ועוד שאלה, האם ניתן לעשות binding עם משוואה (הייתי רוצ הלכתוב כך:
IsEnabled="{Binding LightEn < 3}"
יש אפשרות תקנית לזה?
תודה רבה
מעולה
ניסיתי UserControl זה בדיוק מה שהייתי צריכה
אני חדשה בשפה הזו :)
תודה רבה!!
תעשי את זה עם User Control Resources נראה לי פחות מתאים פה...
אני אכתוב את זה באנגלית
מקווה שכך זה יהיה יותר ברור:
I try to create a grid with many lines.
each line contain many controls.
all the lines are the same
what I did now is to duplicate all the controls, but when I need to change something - I need to duplicate the change for all the lines.
Is there any easy way? like to build Resource that contains many controls, and each line will contain only the resource, and the changes will be only once in resource. I try to do it but get many errors. what is the right way?
Thanks
תכתבי את השאלה מחדש שיהיה יותר ברור מה את רוצה