Click here to Skip to main content
15,892,005 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Create Image Programtically Pin
#realJSOP29-Apr-10 23:52
mve#realJSOP29-Apr-10 23:52 
AnswerRe: Create Image Programtically Pin
Tim Yen1-May-10 3:08
Tim Yen1-May-10 3:08 
GeneralRe: Create Image Programtically Pin
#realJSOP3-May-10 2:56
mve#realJSOP3-May-10 2:56 
QuestionDisplay an Exception in Treeview with innerexception being child Pin
Troyzajac29-Apr-10 5:19
Troyzajac29-Apr-10 5:19 
AnswerRe: Display an Exception in Treeview with innerexception being child Pin
rhuiden30-Apr-10 4:10
rhuiden30-Apr-10 4:10 
QuestionBinding Selected Value to Combobox Pin
LePoulpe30329-Apr-10 4:08
LePoulpe30329-Apr-10 4:08 
AnswerRe: Binding Selected Value to Combobox Pin
Parwej Ahamad29-Apr-10 6:14
professionalParwej Ahamad29-Apr-10 6:14 
GeneralRe: Binding Selected Value to Combobox Pin
LePoulpe3032-May-10 23:28
LePoulpe3032-May-10 23:28 
OK Sry for late answer

here's the XAML Code (please note I tried to use a textblock to bind the combobox to)


<Window x:Class="WpfnHydrate.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:nhy="clr-namespace:Maxmat.TestnHydrate.Business.Objects;assembly=Maxmat.TestnHydrate"
xmlns:diag="clr-namespace:System.Diagnostics;assembly=WindowsBase"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
Title="Window1" Height="379" Width="461" Loaded="Window_Loaded">
<Window.Resources>
<Style TargetType="Button">
<Setter Property="Width" Value="50"></Setter>
<Setter Property="Margin" Value="10"></Setter>
</Style>
</Window.Resources>
<StackPanel>
<Border>
<WrapPanel>
<ComboBox Width="50" x:Name="lstMainTable" ItemsSource="{Binding}" DisplayMemberPath="Idmaintable" SelectionChanged="lstMainTable_SelectionChanged"></ComboBox>
</WrapPanel>
</Border>
<StackPanel x:Name="EditionPanel">
<WrapPanel>
<Label>StringField:</Label>
<TextBox Text="{Binding Path=Stringfield, Mode=TwoWay}"></TextBox>
</WrapPanel>
<WrapPanel>
<Label>DateField:</Label>
<my:DatePicker SelectedDate="{Binding Path=Datefield, Mode=TwoWay}" Height="25" Name="datePicker1" Width="115" xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit" />
</WrapPanel>
<WrapPanel>
<Label>BooleanField:</Label>
<CheckBox IsChecked="{Binding Path=Booleanfield, Mode=TwoWay}"></CheckBox>
<Label>Static Combo</Label>
<ComboBox x:Name="cmbStatic" ItemsSource="{Binding}" DisplayMemberPath="Name" SelectedValuePath="Idstatic" SelectedValue="{Binding Path=Text,ElementName=ToStaticValue,Mode=OneWay, diag:PresentationTraceSources.TraceLevel=High}"></ComboBox>
<TextBlock x:Name="ToStaticValue" Text="{Binding Path=Tostatic}"></TextBlock>
</WrapPanel>
<WrapPanel Margin="10" >
<Button x:Name="cmdNew" Click="cmdNew_Click">New</Button>
<Button x:Name="cmdSave" Click="cmdSave_Click">Save</Button>
</WrapPanel>
</StackPanel>
</StackPanel>
</Window>
QuestionDatabase Populated Menu Pin
Tripathi Swati29-Apr-10 0:53
Tripathi Swati29-Apr-10 0:53 
AnswerRe: Database Populated Menu Pin
Abhinav S29-Apr-10 18:29
Abhinav S29-Apr-10 18:29 
GeneralRe: Database Populated Menu Pin
Tripathi Swati29-Apr-10 18:42
Tripathi Swati29-Apr-10 18:42 
GeneralRe: Database Populated Menu Pin
Abhinav S29-Apr-10 19:18
Abhinav S29-Apr-10 19:18 
Questionhow can I apply textblock properties to Path??? Pin
urooj_mahmood28-Apr-10 21:50
urooj_mahmood28-Apr-10 21:50 
AnswerRe: how can I apply textblock properties to Path??? Pin
Abhinav S29-Apr-10 18:34
Abhinav S29-Apr-10 18:34 
GeneralRe: how can I apply textblock properties to Path??? Pin
urooj_mahmood29-Apr-10 20:24
urooj_mahmood29-Apr-10 20:24 
AnswerRe: how can I apply textblock properties to Path??? Pin
Abhinav S30-Apr-10 18:45
Abhinav S30-Apr-10 18:45 
GeneralRe: how can I apply textblock properties to Path??? Pin
urooj_mahmood2-May-10 20:16
urooj_mahmood2-May-10 20:16 
AnswerRe: how can I apply textblock properties to Path??? Pin
Abhinav S2-May-10 21:04
Abhinav S2-May-10 21:04 
GeneralRe: how can I apply textblock properties to Path??? Pin
urooj_mahmood2-May-10 22:08
urooj_mahmood2-May-10 22:08 
QuestionWPF : Collapsing the visibility of a grid [modified] Pin
Prasoon Chaudhary28-Apr-10 20:43
Prasoon Chaudhary28-Apr-10 20:43 
AnswerRe: WPF : Collapsing the visibility of a grid Pin
Arun Jacob28-Apr-10 21:00
Arun Jacob28-Apr-10 21:00 
GeneralRe: WPF : Collapsing the visibility of a grid Pin
Prasoon Chaudhary28-Apr-10 21:22
Prasoon Chaudhary28-Apr-10 21:22 
AnswerRe: WPF : Collapsing the visibility of a grid Pin
Arun Jacob28-Apr-10 22:47
Arun Jacob28-Apr-10 22:47 
GeneralRe: WPF : Collapsing the visibility of a grid Pin
Prasoon Chaudhary29-Apr-10 1:32
Prasoon Chaudhary29-Apr-10 1:32 
QuestionDialog window in a class library Pin
USAFHokie8028-Apr-10 9:12
USAFHokie8028-Apr-10 9:12 

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.