Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
T

Timmy Kokke

@Timmy Kokke
About
Posts
10
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • silverlight
    T Timmy Kokke

    http://silverlight.net[^] is the place that explains everything. From the very basic beginning....

    Dawn is nature's way of telling you to go to bed.

    WPF sysadmin question

  • WPF Binding to an attached property from a DataTemplate [modified]
    T Timmy Kokke

    My fault... I misread your post, I guess I was working a bit too late... :zzz: Anyway, I just recreated a solution based on your code in a previous post. I do not entirely understand what you're trying to do... When I click the Test button, button 3 moves to the first column and a 6th button is added to the grid. Like this:Screenshot[^]. Is this what is supposed to happen? If not, could you explain a bit more about what should happen.

    Dawn is nature's way of telling you to go to bed.

    WPF wpf csharp css wcf com

  • WPF Binding to an attached property from a DataTemplate [modified]
    T Timmy Kokke

    Inside a datatemplate you can bind to a relative source, a parent, of the object by using the RelativeSource attribute. You should try and experiment with something like:

    <DataTemplate DataType="{x:Type local:Obs}">
    <Button Grid.Row="{Binding Path=Row, RelativeSource={RelativeSource AncestorType={x:Type Grid}}}"
    Grid.Column="{Binding Path=Col, RelativeSource={RelativeSource AncestorType={x:Type Grid}}}"
    Click="Button_Click">
    ..

    Good Luck!

    Dawn is nature's way of telling you to go to bed.

    WPF wpf csharp css wcf com

  • Expander control show up with the button on the right? [modified]
    T Timmy Kokke

    You'll have to create a template for the expander. The easiest way to do this is in Expression Blend, so you don't have to type all the template stuff. The expansion indicator is nothing more than a circle and a poly on a grid, which can be changed and moved aound very easily. The tricky part is that an expander contains 4 templates, one for every direction. So, You'll have your expander. In Blend you right-click the expander and click edit template -> edit a copy. This will give you the main template. Now you right-click "HeaderSite" in the objects pane and edit that template. I believe you're now where you want to be. If you change the grid and move the parts around you're done. Good Luck!

    Dawn is nature's way of telling you to go to bed.

    WCF and WF question

  • Can we import 3DMax's models ( *.max files) in Expression Blend ?
    T Timmy Kokke

    I believe the .Max format is protected so it won't be possible to use .max files directly. Instead you might use .3DS. You may even consider importing the 3DS into Blend which can export to Xaml. I don't know it there are Xaml exporters at the moment. But it should be too hard to write a simple exporter using MaxScript.

    Dawn is nature's way of telling you to go to bed.

    WPF csharp wpf question

  • Insert mutiple items in ObservableCollection<t></t>
    T Timmy Kokke

    How are they stored at the moment? in a List? You can convert a List to an ObservableCollection thru its constructor: ObservableCollection<object> Col = new ObservableCollection<object>(originalList); You can concatenate one sequence to another with: Collection1 = Collection1.Concat(Collection2); Hope this helps.

    Dawn is nature's way of telling you to go to bed.

    WCF and WF design question

  • What exactly does the '@' symbol do in front of a string?
    T Timmy Kokke

    I use it a lot when I want large strings, like pieces of xml, to be readable in code. with @ you can write something like this:

    string xml = @"
    <xml>
    <test>
    <value>1</value>
    <value>2</value>
    </test>
    </xml>"

    instead of:

    string xml = "<xml><test><value>1</value><value>2</value></test></xml>"

    Dawn is nature's way of telling you to go to bed.

    C# question

  • string
    T Timmy Kokke

    The string you are uses does look a lot like XML. You could try using Linq to XML (http://msdn.microsoft.com/en-us/library/bb308960.aspx[^]).

    XElement element = XElement.Parse(YourString);
    string Result = element.Attribute("Result").Value

    Dawn is nature's way of telling you to go to bed.

    C# question

  • WPF Help Needed on Resizing data grid
    T Timmy Kokke

    Are you using a Gridview? or do you show a datatemplate in a listview? Either way you can use a timer to do this. Here is some information about that on MSDN: http://msdn.microsoft.com/en-us/library/system.threading.timer.aspx[^] In the TimerCallback you can add items to the list you are showing.

    Dawn is nature's way of telling you to go to bed.

    WPF question csharp css wpf help

  • Vector3D simple question
    T Timmy Kokke

    A vector is like an arrow pointing in a direction, with a particular length. Here is some more information about vectors in 3D: http://www.nondot.org/sabre/graphpro/3d2.html[^]

    Dawn is nature's way of telling you to go to bed.

    WPF question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups