Click here to Skip to main content
15,909,051 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Data binding model: "Main->Details" Pin
Wayne Gaylard29-Aug-11 3:42
professionalWayne Gaylard29-Aug-11 3:42 
GeneralRe: Data binding model: "Main->Details" [modified] Pin
bitwise.csc29-Aug-11 3:51
bitwise.csc29-Aug-11 3:51 
GeneralRe: Data binding model: "Main->Details" Pin
bitwise.csc29-Aug-11 11:14
bitwise.csc29-Aug-11 11:14 
GeneralRe: Data binding model: "Main->Details" Pin
Wayne Gaylard29-Aug-11 22:03
professionalWayne Gaylard29-Aug-11 22:03 
QuestionTutorial to display Google Maps using WPF-WCF Pin
Member 819216328-Aug-11 5:24
Member 819216328-Aug-11 5:24 
AnswerRe: Tutorial to display Google Maps using WPF-WCF Pin
Abhinav S28-Aug-11 22:19
Abhinav S28-Aug-11 22:19 
QuestionRound corner border not that easy Pin
Zapacila27-Aug-11 22:36
Zapacila27-Aug-11 22:36 
QuestionA Combobox size within menu [modified] Pin
Saksida Bojan27-Aug-11 6:35
Saksida Bojan27-Aug-11 6:35 
Hello. After a long time i again pick WPF. Since this is nearly a hobby, i didn't learn much or forgot about it.

HTML
<Menu DockPanel.Dock="Top">
        <ComboBox  IsEditable="False" Width="{Binding Path=ActualWidth, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Menu}}"></ComboBox>
</Menu>


I tried that. I Wanted ComboBox to use a size to take all spaced that shows menu. But in my case. It is a little to big. I do not wan't to explictly define the width of ComboBox. Can someone help me?

Thank you in advance.

Edit:

I used SizeChanged on a menu and used the folowing.

comboBoxProcessList.Width = (Double)((Menu)sender).ActualWidth - 15;


I do not like the current solution. It would be best if it was possible to do in xaml or if i could get the size of a ContentPresenter of the parrent element. In my case it is Menu

modified on Saturday, August 27, 2011 3:04 PM

AnswerRe: A Combobox size within menu Pin
Abhinav S27-Aug-11 7:02
Abhinav S27-Aug-11 7:02 
GeneralRe: A Combobox size within menu Pin
Saksida Bojan27-Aug-11 8:08
Saksida Bojan27-Aug-11 8:08 
QuestionConnecting a C# Array to a Listbox Control 2 ways Pin
MacAllen26-Aug-11 19:45
MacAllen26-Aug-11 19:45 
AnswerRe: Connecting a C# Array to a Listbox Control 2 ways Pin
Abhinav S26-Aug-11 21:29
Abhinav S26-Aug-11 21:29 
QuestionConditional Controls in WPF? Pin
MacAllen26-Aug-11 19:34
MacAllen26-Aug-11 19:34 
AnswerRe: Conditional Controls in WPF? Pin
VallarasuS26-Aug-11 20:52
VallarasuS26-Aug-11 20:52 
AnswerRe: Conditional Controls in WPF? Pin
Abhinav S26-Aug-11 21:25
Abhinav S26-Aug-11 21:25 
AnswerRe: Conditional Controls in WPF? Pin
Alisaunder27-Aug-11 3:10
Alisaunder27-Aug-11 3:10 
AnswerRe: Conditional Controls in WPF? Pin
VallarasuS28-Aug-11 8:16
VallarasuS28-Aug-11 8:16 
QuestionDisappearing namespace? [modified] Pin
Alisaunder26-Aug-11 7:32
Alisaunder26-Aug-11 7:32 
AnswerRe: Disappearing namespace? [modified] Pin
Saksida Bojan27-Aug-11 10:50
Saksida Bojan27-Aug-11 10:50 
GeneralRe: Disappearing namespace? Pin
Alisaunder27-Aug-11 11:47
Alisaunder27-Aug-11 11:47 
GeneralRe: Disappearing namespace? Pin
Alisaunder27-Aug-11 17:25
Alisaunder27-Aug-11 17:25 
GeneralRe: Disappearing namespace? Pin
Saksida Bojan27-Aug-11 19:30
Saksida Bojan27-Aug-11 19:30 
GeneralRe: Disappearing namespace? Pin
Alisaunder28-Aug-11 0:32
Alisaunder28-Aug-11 0:32 
GeneralRe: Disappearing namespace? Pin
Alisaunder30-Aug-11 5:05
Alisaunder30-Aug-11 5:05 
QuestionWPF Pie Chart Question Pin
#realJSOP26-Aug-11 7:30
professional#realJSOP26-Aug-11 7:30 

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.