(Lviv community of .NET developers)

Recent posts

Причины и следсвия

April 23, 2008 08:57 by rat
Есть некая тенденция у молодых девелоперов, которая сводиться к тому что обычно написав проблемный код, они пытаются исправить следствие а не причину. ... >>>

Currently rated 5.0 by 2 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories: General
Actions: Permalink | Comments (2) | RSSRSS comment feed

Microsoft Expression Blend 2 December Preview

December 7, 2007 11:33 by rat

I am glad to announce that the new CTP of the Blend 2 is out

... >>>

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags: ,
Categories: WinFx
Actions: Permalink | Comments (0) | RSSRSS comment feed

ClickOnce, локализация и GAC

November 23, 2007 13:01 by rat

Недавно столкнулся с такой вот проблемой: есть контролы в отдельной ассембле, есть сателитные ассембли с локализированными версиями ресурсов для контролов, и то и другое лежит в GAC.
Есть проэкт в котором используется контрол из вышеупомянутой ассембли, и потому есть референс на ассемблю с контролом (естественно на GAC, соответственно в референсе есть только название ассембли - никаких путей).
Нужно задеплоить программу через ClickOnce.

И вот сама проблема: при деплойменте сателитные ассембли студия не находит, и потому не деплоит. Если добавить локализированные ресурсы в референсы, то ассемблю деплоймент положит не в папку с нужным языком, а просто рядом с программой, что собственно проблему не решит.

... >>>

Currently rated 4.0 by 2 people

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Markup Extensions

October 25, 2007 10:36 by rat

First of all, what is this misterious thing, MarkupExtension? As it follows from it's name, this is some kind of the extension for the XAML markup syntax, and in our case that is an the extension that allows user to shorten or simplify some operations in XAML, or at least provide some non-string data in case TypeConverter can not be used. One of the most common examples of the MarkupExtension is a shortened declaration of a data binding, like {Binding Path}. {StaticResource key} is also widely used, and that is also a MarkupExtension. Both of them can be declared in element syntax, but that is not widely used because the amount of XAML needed in such case is a bit larger, so I will use attribute syntax in my samples.

... >>>

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags: ,
Categories: WinFx
Actions: Permalink | Comments (0) | RSSRSS comment feed

ASP.Net AJAX Control ToolKit Extender for CardSpace

October 25, 2007 08:56 by rat

Нарыл вот в блогах интересный пост, мож кому нада будет..

Цытирую:

I've created a control based on the ASP.NET AJAX Control Toolkit that gives a web site the ability to easily add cross browser support for CardSpace and othe Identity Selectors.

The concept comes is loosely based on dominick baier's CardSpace Control for ASP.NET, however I think that you'll find that it should be more flexible in regards to the UI abilities.

I have offered the control to the ASP.NET AJAX Control Toolkit team and they are considering its inclusion in the project.

This prototype code is attached to this blog entry.

CsAjax.zip


Currently rated 4.0 by 2 people

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags: ,
Categories: .NET | ASP.NET
Actions: Permalink | Comments (0) | RSSRSS comment feed

Theme dictionary in WPF

September 20, 2007 16:01 by rat

I have just found out one cool feature in WPF: there is one cool markup extension called ThemeDictionaryExtension, that can provide ResourceDictionary, associated with a current theme.


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags: ,
Categories: WinFx
Actions: Permalink | Comments (0) | RSSRSS comment feed

Expression Blend 2 September Preview

September 17, 2007 11:26 by rat

Думаю, уже об этом многие читали, но я осмелю повториться: очередная версия Бленда увидила свет: Expression Blend 2 September Preview уже доступен к скачиванию.

... >>>

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags: ,
Categories: WinFx
Actions: Permalink | Comments (0) | RSSRSS comment feed

Render, Arrange и Measure механизмы в WPF

September 14, 2007 10:03 by rat

Есть в WPF пару забавных механизмов, которые не так уж и хорошо описаны в нете - это рендеринг, компоновка и измерение.
Про них и я буду писать некоторые свои познания. (думаю будет полезно почитать особенно тем, кого интересует вопрос производительности програмного обеспечения написанного на WPF)

... >>>

Currently rated 4.8 by 4 people

  • Currently 4.75/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags: , ,
Categories: Performance | WinFx
Actions: Permalink | Comments (0) | RSSRSS comment feed

What is WPF

September 13, 2007 09:26 by rat

What is WPF

(for those, who is still not aware of it)

WPF (part of WinFX/.NET Framework 3.0) is a brand-new presentation framework, built on top of the .NET Framework 2.0, that was originally designed to be used on Windows Vista, but it was also adopted for Windows XP as well. It allows developers and designers to create applications with much higher level of usability and incredible visual appearance, spending less time to the development and allowing designers to show full power of their imagination.

... >>>

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags: ,
Categories: WinFx
Actions: Permalink | Comments (0) | RSSRSS comment feed

Troubles with finding elements in the tree

September 3, 2007 15:43 by rat

Sometimes you need to add some elements to the children collection of some container, for example, panel.

So you just write down my_panel.Add( child );

Later you find out that you need to find this element using it's name. You have specified it even before adding element to the container, so you expect it to be found be calling FindName method of the container.

But when you call FindName and provide it the name of the added in runtime element, it returns just null. Note: in case with elements, added throung the XAML this method works fine.

So what is the difference? The name has been set and the element is in logical children collection - it just must work.

After a short investigation it turned out that FindName method does not take elements children collection content into account - it get a INameScope and uses it to resolve the element by it's name. So after you add element in runtime, you should do the following:

System.Windows.NameScope.GetNameScope( elements parent ).RegisterName(name, object to link name with );

Hope it will help someone :)


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories: WinFx
Actions: Permalink | Comments (0) | RSSRSS comment feed