String format using MultiBinding?

you are trying to bind a string to an object. But StringFormat requires its target to be a string type. try putting a TextBlock in your label content and bind your data to it <StackPanel> <Slider x:Name=”sl1″ Minimum=”10″ Maximum=”100″/> <Slider x:Name=”sl2″ Minimum=”10″ Maximum=”100″/> <Label x:Name=”label13″ Background=”Yellow” Foreground=”Black”> <Label.Content> <TextBlock> <TextBlock.Text> <MultiBinding StringFormat=”{}{0} x {1} Test”> … Read more

How to bind multiple values to a single WPF TextBlock?

You can use a MultiBinding combined with the StringFormat property. Usage would resemble the following: <TextBlock> <TextBlock.Text> <MultiBinding StringFormat=”{}{0} + {1}”> <Binding Path=”Name” /> <Binding Path=”ID” /> </MultiBinding> </TextBlock.Text> </TextBlock> Giving Name a value of Foo and ID a value of 1, your output in the TextBlock would then be Foo + 1. Note: This … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)