Click here to Skip to main content
15,916,941 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Show items in multiple columns Pin
Pete O'Hanlon3-Jul-14 23:03
mvePete O'Hanlon3-Jul-14 23:03 
GeneralRe: Show items in multiple columns Pin
pjank424-Jul-14 5:26
pjank424-Jul-14 5:26 
QuestionMultipass MeasureOverride() not calculating updated items size (added code sample) Pin
Super Lloyd2-Jul-14 3:50
Super Lloyd2-Jul-14 3:50 
QuestionDraw a rectangular box Pin
Subin Mavunkal1-Jul-14 23:24
Subin Mavunkal1-Jul-14 23:24 
AnswerRe: Draw a rectangular box Pin
Matt T Heffron2-Jul-14 13:53
professionalMatt T Heffron2-Jul-14 13:53 
QuestionXAML Pin
Member 97193591-Jul-14 22:21
Member 97193591-Jul-14 22:21 
AnswerRe: XAML Pin
Pete O'Hanlon1-Jul-14 22:55
mvePete O'Hanlon1-Jul-14 22:55 
QuestionWPF Expander Problem Pin
Kevin Marois1-Jul-14 13:49
professionalKevin Marois1-Jul-14 13:49 
AnswerRe: WPF Expander Problem Pin
Pete O'Hanlon1-Jul-14 19:11
mvePete O'Hanlon1-Jul-14 19:11 
QuestionWPF - PRism Framework Pin
Muhammed Nigil29-Jun-14 23:36
professionalMuhammed Nigil29-Jun-14 23:36 
AnswerRe: WPF - PRism Framework Pin
Pete O'Hanlon30-Jun-14 0:17
mvePete O'Hanlon30-Jun-14 0:17 
GeneralRe: WPF - PRism Framework Pin
Muhammed Nigil30-Jun-14 1:00
professionalMuhammed Nigil30-Jun-14 1:00 
GeneralRe: WPF - PRism Framework Pin
Pete O'Hanlon30-Jun-14 3:03
mvePete O'Hanlon30-Jun-14 3:03 
GeneralRe: WPF - PRism Framework Pin
Muhammed Nigil30-Jun-14 18:56
professionalMuhammed Nigil30-Jun-14 18:56 
GeneralRe: WPF - PRism Framework Pin
Muhammed Nigil30-Jun-14 19:26
professionalMuhammed Nigil30-Jun-14 19:26 
QuestionHow to display from nested usercontrol another usercontrol class on button click event? Pin
LAPEC29-Jun-14 7:12
LAPEC29-Jun-14 7:12 
QuestionHow to Display .aspx page in SilverlightWeb Application Pin
RavitejaPammi28-Jun-14 5:22
RavitejaPammi28-Jun-14 5:22 
Questionsilverlight Pin
Member 1087962427-Jun-14 19:40
Member 1087962427-Jun-14 19:40 
AnswerRe: silverlight Pin
Pete O'Hanlon29-Jun-14 6:51
mvePete O'Hanlon29-Jun-14 6:51 
GeneralRe: silverlight Pin
Jammer30-Jun-14 23:32
Jammer30-Jun-14 23:32 
GeneralRe: silverlight Pin
Pete O'Hanlon30-Jun-14 23:59
mvePete O'Hanlon30-Jun-14 23:59 
GeneralRe: silverlight Pin
thatraja30-Jun-14 23:52
professionalthatraja30-Jun-14 23:52 
GeneralRe: silverlight Pin
Pete O'Hanlon1-Jul-14 0:10
mvePete O'Hanlon1-Jul-14 0:10 
QuestionRepost from C# forum WPF app Pin
Wesley2026-Jun-14 23:26
Wesley2026-Jun-14 23:26 
Hey guys i need help with a program im working on.

<u>Problem:</u> i have no idea how to get it to work, im still new to developing apps

<u>What needs to be done:</u>

I have two WPF Windows, one is for entering information which will load the entered info into the second window.
And depending on what option selected in the combobox it must load a logo at the top of the second window and its related address below it.

Thanks Smile | :)


The Layout:

Mainwindow:

<Window x:Class="Other_Stuff.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Entry Form" Height="350" Width="525">
<Grid>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition Height="45"></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="120"></ColumnDefinition>
<ColumnDefinition Width="7*"></ColumnDefinition>
<ColumnDefinition Width="36*"/>
</Grid.ColumnDefinitions>
<Label Grid.Column="0" Grid.Row="0" Content="Client"></Label>
<Label Grid.Column="0" Grid.Row="2" Content="Pharmacy" Margin="-5,5,5,5"></Label>

<Label Grid.Column="0" Grid.Row="3" Content="Script Number"/>
<Button x:Name="Submit" Grid.Column="0" Grid.Row="4" Content="Submit" Click="Button_Click"/>

<TextBox Name="client" Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="2"></TextBox>
<ComboBox Name="PharmacyComboBox" Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="2" Margin="0,0,0,10" >
<ComboBoxItem Content="Dischem" ></ComboBoxItem>
<ComboBoxItem Content="Clicks" MouseLeftButtonUp="ComboBoxItem_MouseLeftButtonUp"></ComboBoxItem>
</ComboBox>

<TextBox Name="Scriptnumber" Grid.Column="1" Grid.Row="3" Grid.ColumnSpan="2" Height="55" VerticalAlignment="Top" Margin="5,0,0,0">

</TextBox>
<Label Content="Medicine" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,10,0,0" Grid.Row="1"/>
<ListBox Grid.Column="1" HorizontalAlignment="Left" Height="45" VerticalAlignment="Top" Width="397" Grid.ColumnSpan="2" Grid.Row="1" Name="medlist" Margin="0,5,0,0" Grid.RowSpan="2"/>

<!--<Button Content="Submit" Grid.Column="1" Grid.Row="5" Click="Button_Click" Grid.ColumnSpan="2"></Button>-->
</Grid>

</Window>

ScriptWindow:

Window x:Class="Other_Stuff.Script"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Script" Height="488.06" Width="437.313" Loaded="Window_Loaded">
<Grid>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition Height="45"></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>


</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="120"></ColumnDefinition>
<ColumnDefinition Width="7*"></ColumnDefinition>
<ColumnDefinition Width="36*"/>
</Grid.ColumnDefinitions>
<Image Grid.Column="0" Grid.Row="0" Name="LogoImage" Grid.ColumnSpan="3" Margin="0,2,0,43" Grid.RowSpan="2"></Image>
<Label Grid.Row="1" Grid.RowSpan="2" Name="AdresslbLabel" Grid.ColumnSpan="3"/>
<Label Grid.Column="0" Grid.Row="3" Grid.ColumnSpan="3" Name="ScripTextBox"></Label>
<DataGrid Grid.Column="0" Grid.Row="4" Grid.ColumnSpan="3"/>
<TextBox Grid.Column="0" Grid.Row="4" Grid.ColumnSpan="3" Name="RelatedTextBox"/>
<Image Grid.Column="0" Grid.Row="5" Grid.ColumnSpan="3" Grid.RowSpan="2" Name="AdverTextBox"/>
<Button Content="Button" HorizontalAlignment="Left" Margin="10,10,0,0" Grid.Row="7" VerticalAlignment="Top" Width="100" Height="39" Click="Button_Click"/>
</Grid>
</Window>
AnswerRe: Repost from C# forum WPF app Pin
Mycroft Holmes29-Jun-14 4:55
professionalMycroft Holmes29-Jun-14 4:55 

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.