Skip to content

WPF

Silverlight, WPF and XAML programming discussions

This category can be followed from the open social web via the handle wpf@forum.codeproject.com

4.8k Topics 18.9k Posts
  • Standardising Styles Accross Multiple Applications

    wpf csharp question career
    6
    0 Votes
    6 Posts
    15 Views
    J
    Thanks for this Pete, I've pretty much got a working style.dll done now. Lots of tweaking to do and wotnot but this is indeed a seriously neat solution. Just a quick one, do you have any neat tricks that you found on your journey down this route? Jammer Going where everyone here has gone before! :) My Blog
  • Need WPF Defination

    csharp wpf
    3
    0 Votes
    3 Posts
    7 Views
    R
    http://en.wikipedia.org/wiki/Windows_Presentation_Foundation[^] Sincerely, -Ron
  • TreeView ShowLines

    question csharp wpf help
    2
    0 Votes
    2 Posts
    7 Views
    R
    Don't know but Bea Costa has a great blogspot that shows how to hide/show the expander: http://www.beacosta.com/blog/?cat=7[^] Perhaps there is a similar pattern for which you seek. Sincerely, -Ron
  • Databinding Image to BitmapImage [modified]

    wpf database csharp wcf com
    6
    0 Votes
    6 Posts
    16 Views
    D
    Hi, Pete: I have tried as you suggested but still no joy. No doubt I'm doing something really stupid so I'll post the code that I use. This is the code I use to get my list of BitmapImages: private void Window_Loaded(object sender, RoutedEventArgs e) { List images = GetProductImages(); lstProductImages.ItemsSource = images; } private List GetProductImages() { List images = new List(); using (SqlConnection cn = new SqlConnection(cnString)) { string sql = "SELECT Top 10 ProductImage From Products WHERE NOT (ProductImage IS NULL)"; SqlCommand cmd = new SqlCommand(sql); cmd.Connection = cn; cmd.Connection.Open(); SqlDataReader reader = cmd.ExecuteReader(); while (reader.Read()) { byte[] productImage = null; productImage = (byte[])reader["ProductImage"]; using (MemoryStream ms = new MemoryStream(productImage)) { //ms.Seek(0, SeekOrigin.Begin); ms.Position = 0; BitmapImage bm = new BitmapImage(); bm.BeginInit(); //bm.CacheOption = BitmapCacheOption.OnLoad; bm.StreamSource = ms; bm.EndInit(); ms.Close(); images.Add(bm); } } cmd.Connection.Close(); } return images; } This is the XAML for the listbox: <Setter Property="ItemTemplate"> <Setter.Value> <DataTemplate> <Border BorderBrush="Black" BorderThickness="4" CornerRadius="5" Margin="6"> <!--<Image Source="{Binding Path=UriSource}" Stretch="Fill" Width="100" Height="120"/>--> <Image Source="{Binding Path=StreamSource}" Stretch="Fill" Width="100" Height="120"/> </Border> </DataTemplate> </Setter.Value> </Setter> <Setter Property="ItemsPanel"> <Setter.Value> <ItemsPanelTemplate> <WrapPanel /> </ItemsPanelTemplate> </Setter.Value> </Setter> <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled" /> Does anything obvious jump out at you? Karl: I've looked at both of those sites and played around with what they suggested to no avail. Thanks very much, dlarkin77
  • WPF Browser Application With Ajax

    csharp wpf question
    2
    0 Votes
    2 Posts
    6 Views
    C
    Yes it is.... All depends on how do you want to make your communications to the server, but you will be enabled to do it ONLY with the server that send you the xbap... that means that if you are trying to run your app from VS2008 and it is configured to open your browser to the file repository you will be not able to test any AJAX, you need to publish it to an IIS and then your AJAX response should be on that same server instance. or at least on that host -no reference to a por number restrictions on the documentation-. Greetings Carlos de Luna
  • wpf xbap listbox problem

    wpf help csharp css dotnet
    3
    0 Votes
    3 Posts
    8 Views
    P
    Thanks Ron, It's working fine with KeyboardNavigation.DirectionalNavigation="Cycle" Pat
  • How to set mouse position?

    docker help tutorial question
    9
    0 Votes
    9 Posts
    22 Views
    P
    There's nothing stopping you adding the WinForms reference to WPF and doing this. Deja View - the feeling that you've seen this post before. My blog | My articles
  • WPF and no end list

    csharp wpf data-structures
    2
    0 Votes
    2 Posts
    6 Views
    L
    You are referring to a carousel. Infragistics has one and there are others you can dowload and learn from. You can use their's or write you own. Check out the recent WPF Panel and WPF 3D Panel artciles here on Code Project. Cheers, Karl » CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP Profile Just a grain of sand on the worlds beaches.
  • Using a Grid as an ItemsPanel

    css wpf wcf tutorial question
    18
    0 Votes
    18 Posts
    44 Views
    E
    Why thank you, pretty chuffed so far considering my design skills are non-existant... Now trying to sort out some issues with saving it to a bitmap. My Blog[^]
  • WPF animation and performance

    help csharp asp-net wpf debugging
    2
    0 Votes
    2 Posts
    8 Views
    L
    Uros, give this a try and post the results. Change the Opacity of all controls to 100%. Ensure that you are not using any BitMapEffects and lets us know how the animation works. Cheers, Karl » CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP Profile Just a grain of sand on the worlds beaches.
  • float Dependency Property Exception

    wpf help csharp html css
    3
    0 Votes
    3 Posts
    10 Views
    R
    Yes that worked. Thanks. :) Sincerely, -Ron
  • Photo Gallery using Silver light

    tutorial
    3
    0 Votes
    3 Posts
    8 Views
    R
    thanks alot. Rajendran.AL
  • Problem with UserControl [modified]

    tutorial csharp wpf design help
    3
    0 Votes
    3 Posts
    8 Views
    K
    Great. That solved my problem. Thanks
  • 0 Votes
    5 Posts
    15 Views
    L
    Thanks! Cheers, Karl » CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP Profile Just a grain of sand on the worlds beaches.
  • Debugging Silverlight

    visual-studio help tutorial question
    3
    0 Votes
    3 Posts
    9 Views
    E
    Thanks for your reply! As it turns out, the Silverlight debugger was turned on. I was using FireFox as the browser, so before I tried to delete the temp internet files, I decided to use Internet Explorer. Voila! It works! So I must have run into a bug regarding debugging a Silverlight project running in FireFox. Thanks again! Ian
  • How can i use DataGridView in WPF Application?

    wpf question csharp
    9
    0 Votes
    9 Posts
    20 Views
    P
    Karl Shifflett wrote: Josh & I have classes together over there will be a great time! I'm jealous. I bet that's one hell of a time. Deja View - the feeling that you've seen this post before. My blog | My articles
  • Flipping Image? [modified]

    csharp wpf help question
    17
    0 Votes
    17 Posts
    38 Views
    E
    Though not a Computer Science degree as you might think.  Electrical & Electronics Engineering for me, although at the moment I am doing much better in the software & digital electronics side of things, suprise suprise :rolleyes:
  • 0 Votes
    5 Posts
    11 Views
    L
    Pete O'Hanlon wrote: the thing I really love about WPF. So many ways to solve the same problem Me too! :cool: Cheers, Karl » CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP Profile Just a grain of sand on the worlds beaches.
  • How to set bitmap on a button control?

    question csharp wpf graphics tutorial
    10
    0 Votes
    10 Posts
    27 Views
    P
    Karl Shifflett wrote: Just two regular guys keeping it real and returning back to the community that helped us get going and keep our sanity I'd go with that. :) Deja View - the feeling that you've seen this post before. My blog | My articles
  • DirectX vs XNA

    visual-studio graphics game-dev question
    9
    0 Votes
    9 Posts
    29 Views
    P
    Jammer wrote: I use SONAR as my main tool of choice for my recording studio Cool. I love Sonar (it just fits easier with my being a guitarist), and I compose on Sibelius. Deja View - the feeling that you've seen this post before. My blog | My articles