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
T

TJoe

@TJoe
About
Posts
328
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • WPF in an IFrame not updating
    T TJoe

    Open up a Visual Studio Command Prompt, then run "mage -cc". Basically, as long as the version is the same it will probably not pull the updated version. For more information go here[^]

    Take care, Tom ----------------------------------------------- Check out my blog at http://tjoe.wordpress.com

    WPF announcement csharp wpf help tutorial

  • Scaling woes
    T TJoe

    Sorry, I noticed that you did not implement INotifyPropertyChanged correct. The parameter being passed needs to be the name of the property that changed, not some random text. Otherwise the system will never know where to look for the changed.

    Take care, Tom ----------------------------------------------- Check out my blog at http://tjoe.wordpress.com

    WPF wpf csharp css wcf help

  • Scaling woes
    T TJoe

    You still get the same binding error with that change?

    Take care, Tom ----------------------------------------------- Check out my blog at http://tjoe.wordpress.com

    WPF wpf csharp css wcf help

  • Scaling woes
    T TJoe

    The two bindings you just posted are not the same. Compare them carefully (ignoring the fact that Mode is set on one of them though).

    Take care, Tom ----------------------------------------------- Check out my blog at http://tjoe.wordpress.com

    WPF wpf csharp css wcf help

  • Scaling woes
    T TJoe

    Did you update the binding there as well? It has the same problem as before. Make sure to look at the Output window of Visual Studio, that will have any binding errors listed. Also, make sure the Binding for the slider has Mode=TwoWay.

    Take care, Tom ----------------------------------------------- Check out my blog at http://tjoe.wordpress.com

    WPF wpf csharp css wcf help

  • Scaling woes
    T TJoe

    Sorry, your second binding is incorrect also. You have:

    <Binding ElementName="scale" Path="ScalingFactor"/>

    But "scale" is not a named element, it is a resource. To access it, you need to set the Binding.Source property like so:

    <Binding Source="{StaticResource scale}" Path="ScalingFactor"/>

    Take care, Tom ----------------------------------------------- Check out my blog at http://tjoe.wordpress.com

    WPF wpf csharp css wcf help

  • Scaling woes
    T TJoe

    Hi Ray, Following the exception, this line is bad:

    <Binding Path="{Binding Duration}" />

    So here you are binding the Path property of a Binding object to the Value stored in the Duration property. You are basically double defining your binding statement. This needs to be:

    <Binding Path="Duration" />

    Take care, Tom ----------------------------------------------- Check out my blog at http://tjoe.wordpress.com

    WPF wpf csharp css wcf help

  • Scaling woes
    T TJoe

    Hi Ray, Looks like your first problem is you need to have some sort of "shared" scale factor. You won't be able to access the element named 'myScale'. Since it's defined in a DataTemplate, there would be any number of elements with this name, so it would only be valid in the DataTemplate definition. For the second problem, you say that you are using a TypeConverter, is that correct? If it is, then you will not be able to get the "values" refreshed automatically. Meaning you would have to refresh the bindings when the scale slider is moved. What you can do is this: 1. Create a separate class (e.g. ScaleFactor) with a single property (e.g. Value) 2. Implement INotifyPropertyChanged in the ScaleFactor class and fire it when the Value changes. 3. Create an IMultiValueConverter that takes two values: 1st will be the "value" from your underlying data (you don't have to use a TypeConverter, but you probably can), 2nd will be the scale factor. The IMultiValueConverter will then multiply the two values and return that. 4. Define an instance of ScaleFactor in the Window's resource section. 5. Define an instance of your converter from #3 in the Window's resource section. 6. Update the Border's width to be a MultiBinding using your converter with the "value" and scale factor (from #4) as your input values.

    Take care, Tom ----------------------------------------------- Check out my blog at http://tjoe.wordpress.com

    WPF wpf csharp css wcf help

  • Get Namespace Name [modified]
    T TJoe

    You can simply use typeof(MyClass).Namespace.

    Take care, Tom ----------------------------------------------- Check out my blog at http://tjoe.wordpress.com

    C#

  • NameOf method?
    T TJoe

    1. You can use if-else/if statements, instead of a switch 2. Or you may be able to use:

    case typeof(MyClass).FullName:

    Take care, Tom ----------------------------------------------- Check out my blog at http://tjoe.wordpress.com

    C# help question announcement

  • Close Window problem [modified]
    T TJoe

    I'm still not 100% sure what you are asking. But I think you are looking for the EndEdit[^] method. If the cell you are currently editing is not committed to the underlying data source, then you can use EndEdit to commit the change.

    Take care, Tom ----------------------------------------------- Check out my blog at http://tjoe.wordpress.com

    C# csharp c++ help

  • Cleaning up resouces in a WPF application
    T TJoe

    Following the proper implementation of IDisposable, the finalizer should call the Dispose method for you. So if your application is shutting down, and the finalizer is called on the Window, then Dispose should be called. Are you saying that Dispose is not being called in this scenario?

    Take care, Tom ----------------------------------------------- Check out my blog at http://tjoe.wordpress.com

    .NET (Core and Framework) csharp wpf winforms help question

  • Converting and .exe to a Form Control
    T TJoe

    Check this[^] out.

    Take care, Tom ----------------------------------------------- Check out my blog at http://tjoe.wordpress.com

    Managed C++/CLI c++ help tutorial question

  • asp.net c# class to dll convert
    T TJoe

    Yeah, looks like he is trying to get people to click his link.

    Take care, Tom ----------------------------------------------- Check out my blog at http://tjoe.wordpress.com

    Database csharp asp-net visual-studio com debugging

  • Another application running in the form
    T TJoe

    This[^] is in C#, but it should help.

    Take care, Tom ----------------------------------------------- Check out my blog at http://tjoe.wordpress.com

    Managed C++/CLI winforms question

  • Character matching
    T TJoe

    You need to say that it must match at the begining and end with ^ and $ and you need to allow 1 or more matches with + ^[a-zA-Z0-9]+$

    Take care, Tom ----------------------------------------------- Check out my blog at http://tjoe.wordpress.com

    C# regex

  • When do I need to override constructors for GetConstructor?
    T TJoe

    Correct.

    Take care, Tom ----------------------------------------------- Check out my blog at http://tjoe.wordpress.com

    C# hardware question

  • may i use InternetOpen in windows XP
    T TJoe

    The CE documentation is generally in a different location than the full-blown OS documentation. Check this[^] out. But to answer your question: yes, it's there in XP.

    Take care, Tom ----------------------------------------------- Check out my blog at http://tjoe.wordpress.com

    IT & Infrastructure

  • asp.net c# class to dll convert
    T TJoe

    Is there a question in there?

    Take care, Tom ----------------------------------------------- Check out my blog at http://tjoe.wordpress.com

    Database csharp asp-net visual-studio com debugging

  • When do I need to override constructors for GetConstructor?
    T TJoe

    Yes you would need to implement the constructors in your derived classes. The base constructor only constructs the base object. Really you don't need the InitFromTextReader because you should be able to perform the initialization in the constructors (which pass the TextReader to it's base class).

    Take care, Tom ----------------------------------------------- Check out my blog at http://tjoe.wordpress.com

    C# hardware 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