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
B

BenScharbach

@BenScharbach
About
Posts
19
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Convert xaml to C#
    B BenScharbach

    I think the best thing to do is to convert the xaml headers, like DataGridTextColumn to equivalent classes in C#. The red items in xaml are the properties for that class. For example, the Header and IsReadOnly is most likely in the original DataGridTextColumn class as additional properties. Most xaml headers can be located as similar class names. Finally, the binding could be changed to reference the DataGrid's name instead.

    Ben Scharbach Temporalwars.Com YouTube:Ben Scharbach

    WPF wpf csharp wcf

  • WPF ObservableCollection vs List Problem
    B BenScharbach

    I would try to add the serialize attribute to the data-model you mentioned. No sense trying to resolve the WPF part until the data-model part is working from your API. Then I would create a view-model class to separate the data-model class from the WPF window. Add the INotifyProperty pattern to the view-model. And then in xaml, make sure to reference the name of the public properties in your view-model for the collections; like your OC.

    Ben Scharbach Temporalwars.Com YouTube:Ben Scharbach

    WPF help csharp asp-net database visual-studio

  • Error 'not all code paths return a value'
    B BenScharbach

    I agree with adding the Default keyword in the Case block.

    Ben Scharbach Temporalwars.Com YouTube:Ben Scharbach

    C# help wcf xml

  • Optional property c#
    B BenScharbach

    I would add the optional property in an Interface. Then you inherit the Interface you want to apply optional methods or properties. For example;

    public interface IExtraProperty
    {
    // Something like this
    public int ExtraPoperty { get; set; }
    }

    public class MyClass : IExtraProperty

    Ben Scharbach Temporalwars.Com YouTube:Ben Scharbach

    C# csharp tutorial question

  • Tool or style help to manage coding
    B BenScharbach

    Possibly a 3-rd party vendor like telerik. Use of the XAML Dictionary to group up the styles. Also, on the WPF Themes - Home[^] on CodePlex, there are additional toolkits that might help.

    Ben Scharbach Temporalwars.Com YouTube:Ben Scharbach

    C# help csharp sharepoint question announcement

  • COM and C#.net Interoperability
    B BenScharbach

    Not sure, but I believe you have to turn on this feature in the AssemblyInfo page. Then, you have to put it on the Type you want to make visible.

    // Setting ComVisible to false makes the types in this assembly not visible
    // to COM components. If you need to access a type in this assembly from
    // COM, set the ComVisible attribute to true on that type.

    Ben Scharbach Temporalwars.Com YouTube:Ben Scharbach

    C# csharp c++ question database com

  • Writing to UI Thread in a Real time Application
    B BenScharbach

    Anytime I do BW threads talking the UI, I have to use the Dispatcher.Invoke or Dispatcher.BeginInvoke to send the changes back to the UI thread. I am not sure if the Dispatcher specifically is available in the old WinForm, but the cross-thread issue be the right direction to think about to resolve your issue.

    Ben Scharbach Temporalwars.Com YouTube:Ben Scharbach

    C# csharp winforms linq graphics design

  • what is the use of multiple endpoints in WCF service?
    B BenScharbach

    First thought that comes to mind is different connections to your WCF service. For example, you might use Named-Pipes for one of your connection end-points. This would only allow applications on your computer to access this end-points. However, you might decide to allow others in the company to connect to your service. But, you wouldn't want to lose the original end-point for internal app-to-app communication on your computer, so you would create a new end-point with this transport difference.

    Ben Scharbach Temporalwars.Com YouTube:Ben Scharbach

    WCF and WF question csharp wcf

  • cycle
    B BenScharbach

    In C#, you can use this formula to account for the floats issues with zero; (Math.Abs(priorDegreePosition - degreePosition) < double.Epsilon) As the other writers mentioned, this number of -1.38778e-016, is pretty close to zero. If you were to move the decimal over the 16 place-holders, it would round to zero. Therefore, it sounds more of a formatting issue you are dealing with in your C++ example. In my statement above, C# has the smallest value for doubles/floats in the Epsilon.

    Ben Scharbach Temporalwars.Com YouTube:Ben Scharbach

    Visual Studio

  • visual studio 2010
    B BenScharbach

    I would recommend watching on of my YouTube videos for C# Application development. I put out new C# videos periodically. I use VS 2010 Pro in my demonstrations in the videos. That might help you out. Good Luck. :-D

    Ben Scharbach Temporalwars.Com YouTube:Ben Scharbach

    Visual Studio csharp database visual-studio tutorial question

  • First major program!
    B BenScharbach

    Keep up the good work! :zzz:

    Ben Scharbach Temporalwars.Com YouTube:Ben Scharbach

    Visual Studio java database visual-studio collaboration announcement

  • hi
    B BenScharbach

    I would use the DateTime structure and TimeSpan structures to gain this information for the OS. Then I would put this into some type of Silverlight or WPF XAML format. Finally, I would use threading to free-up the UI from stalls, so the user can move around your wonderful calendar with ease! ;P

    Ben Scharbach Temporalwars.Com YouTube:Ben Scharbach

    C# csharp help

  • Is this madness? The pursuit of single-statement methods
    B BenScharbach

    Interesting!! I have never seen a method, like your RemoveDuplicatesButton_Click() use the => syntax at this point?! That actually works?

    Ben Scharbach Temporalwars.Com YouTube:Ben Scharbach

    C# performance question

  • Issue with the below code
    B BenScharbach

    Yes, instead of writing the same old boiler-code (as they call it), I would use PostSharp to create code-injection attributes which would automatically wrap the method with your try-catch{} exception-logger. This reduces the redundant code and improves the visibility of your class code.

    Ben Scharbach Temporalwars.Com YouTube:Ben Scharbach

    C# help database question code-review

  • how to bind a wpf app to the hardware?
    B BenScharbach

    I found these two links that might help you resolve your issue; Get pc (system) information on windows machine - C# script - Stack Overflow[^] How To: (Almost) Everything In WMI via C# Part 2: Processes[^] Good Luck. ;)

    Ben Scharbach Temporalwars.Com YouTube:Ben Scharbach

    C# question csharp mobile wpf hardware

  • make a video tutorial
    B BenScharbach

    That would be an interesting C# video tutorial to create. I will keep this in mind on my Youtube C# video channel. :laugh:

    Ben Scharbach Temporalwars.Com YouTube:Ben Scharbach

    C# tutorial csharp com

  • first program in visual c#
    B BenScharbach

    I would remove the letter 'i' declared above the for() loop, and use the var keyword inside the for instead. Other than this observation, I am not sure what your question is. :^)

    Ben Scharbach Temporalwars.Com YouTube:Ben Scharbach

    C# csharp visual-studio

  • C# and the media player
    B BenScharbach

    I believe you can also get to the Event-Logs in windows via Visual Studios Env; which is better, since it groups up items for you. The path I use is Server Explorer>Servers>[Computer]>Event Logs>Application>[Your App]. :)

    Ben Scharbach Temporalwars.Com YouTube:Ben Scharbach

    C# csharp question

  • Bind To DP On Control
    B BenScharbach

    Did you set the DataContext to your custom create class called "MaroisRadioButton":confused: I believe in the code-behind you need to set the DataContext to this custom class so XAML engine can locate this custom dependency property.

    Ben Scharbach Temporalwars.Com YouTube:Ben Scharbach

    WPF wpf help question wcf com
  • Login

  • Don't have an account? Register

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