August 28, 2013

C# Inline Method

Questions:
- What's the solution for inline method in C#
- C# inline method
- I there a WPF inline method solution
- How to make inline functions on .Net
- ... Inline function in c sharp ...

Solution:
Add this Attribute above your method or functions like below
[MethodImpl(MethodImplOptions.AggressiveInlining)]




August 26, 2013

Debugging WPF Controls at Design Time

Question:
- How to debug Visual Studio 2012 instance design-time
- Debug at Design Time in WPF
- WPF Debugging Design-Time Exceptions
- How to debug in design time
- Debugging a control at design time in ...
- Test DesignerProperties.GetIsInDesignMode in Design mode
- I want stop code in code under GetIsInDesignMode ...

Solution:
OK, Step with me with open eyes, It's so easy and fun
- Open another empty VS (we called NEW)
- In NEW visual studio go to Attach to Process...
- Find and select XDesProc.exe and click on Attach button
- Back to main VS and go to a xaml (UI) and do a somethings ;-)
when the somethings change you can find it in NEW visual studio.
It's so easy, yeap, Take enjoy :)


July 31, 2013

I hit b, n and m and get "bn", "nm", "m,"

Problem
- I Hit "b" and get "bn"
- I Hit "n" and get "nm"
- I Hit "m" and get "m,"
- Microsoft Wireless Keyboard Problem in hit b, n, m
- Microsoft Wireless Keyboard 3000 problem with "b", "n" and "m" keys

Solution
Don't clean the keyboard with vacuum-cleaner, it's OK just replace your batteries
This is a pathetic sign for low battery i think so 

July 26, 2013

Prevent Show a UserControl in ToolBox

Problem:
- I don't want User Controls showing up in the toolbox
- How to put out a UserControl from Visual Studio ToolBox
- My user controls appear in tool box
- User control must not show in toolbox
- Prevent a base class from VS2012 toolbox

Solution:
Just Add these lines to top of your class.
PS: The first line is enough

[System.ComponentModel.DesignTimeVisible(false)]
[System.ComponentModel.ToolboxItem(false)]